last ...
This commit is contained in:
@@ -24,26 +24,49 @@
|
||||
// Imports ...
|
||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||
|
||||
//
|
||||
#include "./Olds/x-saherelm.xch.amarkets.audusd.olds.short.parser.mq5"
|
||||
#include "./2019/x-saherelm.xch.amarkets.audusd.2019.short.parser.mq5"
|
||||
|
||||
//
|
||||
// Conditions Parser ...
|
||||
struct XCHStartegyAMarketsAUDUSDShortConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
|
||||
//
|
||||
XCHStartegyAMarketsAUDUSDOldsShortConditionsParser _oldsParser;
|
||||
XCHStartegyAMarketsAUDUSD2019ShortConditionsParser _2019Parser;
|
||||
|
||||
//
|
||||
bool IsFiltered(
|
||||
XCHStrategyConditions &conditions //
|
||||
XSignal &signal,
|
||||
XCHStrategyConditions &conditions,
|
||||
bool force = true //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result =
|
||||
if (!force)
|
||||
{
|
||||
result = _2019Parser.IsFiltered(conditions);
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
false
|
||||
//
|
||||
;
|
||||
result =
|
||||
//
|
||||
_2019Parser.IsFiltered(conditions)
|
||||
//
|
||||
||
|
||||
//
|
||||
_oldsParser.IsFiltered(conditions)
|
||||
//
|
||||
;
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user