diff --git a/Parsers/x-saherelm.xch.ichwap.parser.mq5 b/Parsers/x-saherelm.xch.ichwap.parser.mq5 index 582e42c9..2fcd0e03 100644 --- a/Parsers/x-saherelm.xch.ichwap.parser.mq5 +++ b/Parsers/x-saherelm.xch.ichwap.parser.mq5 @@ -24,6 +24,14 @@ // Imports ... #include "../Strategies/x-saherelm.xch.ichwap.strategy.mq5" +// +// #include "./Ingot/x-saherelm.xch.ichwap.ingot.parser.mq5" +// #include "./Alpari/x-saherelm.xch.ichwap.alpari.parser.mq5" +// #include "./Errante/x-saherelm.xch.ichwap.errante.parser.mq5" +#include "./AMarkets/x-saherelm.xch.ichwap.amarkets.parser.mq5" +// #include "./IFCMarkets/x-saherelm.xch.ichwap.ifcmarkets.parser.mq5" +// #include "./OtetMarkets/x-saherelm.xch.ichwap.otetmarkets.parser.mq5" + // // Conditions Parser ... struct XCHICHWAPStartegyConditionsParser @@ -39,12 +47,12 @@ struct XCHICHWAPStartegyConditionsParser XMarketParser _marketParser; // - // XCHCHEStartegyIngotConditionsParser _ingotParser; - // XCHCHEStartegyAlpariConditionsParser _alpariParser; - // XCHCHEStartegyErranteConditionsParser _erranteParser; - // XCHCHEStartegyAMarketsConditionsParser _amarketsParser; - // XCHCHEStartegyIFCMarketsConditionsParser _ifcmarketsParser; - // XCHCHEStartegyOtetMarketsConditionsParser _otetmarketsParser; + // XCHICHWAPStartegyIngotConditionsParser _ingotParser; + // XCHICHWAPStartegyAlpariConditionsParser _alpariParser; + // XCHICHWAPStartegyErranteConditionsParser _erranteParser; + XCHICHWAPStartegyAMarketsConditionsParser _amarketsParser; + // XCHICHWAPStartegyIFCMarketsConditionsParser _ifcmarketsParser; + // XCHICHWAPStartegyOtetMarketsConditionsParser _otetmarketsParser; // string GenerateSignalConditions( @@ -277,7 +285,7 @@ struct XCHICHWAPStartegyConditionsParser (conditions.chtdConditions.isHSwitchedToBullish ? "conditions.chtdConditions.isHSwitchedToBullish &&" + "\n" : "") + (conditions.chtdConditions.isHSwitchedToBearish ? "conditions.chtdConditions.isHSwitchedToBearish &&" + "\n" : "") + "//" + "\n" + - "// XCHCHE ..." + "\n" + + "// XCHICHWAP ..." + "\n" + "//" + "\n" + (conditions.chcheConditions.hasBullishPower ? "conditions.chcheConditions.hasBullishPower &&" + "\n" : "") + (conditions.chcheConditions.hasBearishPower ? "conditions.chcheConditions.hasBearishPower &&" + "\n" : "") + @@ -586,108 +594,108 @@ struct XCHICHWAPStartegyConditionsParser return result; } - // // - // string market = _account.GetCompany(); - // bool isIngot = _marketParser.IsIngot(market); - // bool isErrante = _marketParser.IsErrante(market); - // bool isAMarkets = _marketParser.IsAMarkets(market); - // bool isIFCMarkets = _marketParser.IsIFCMarkets(market); - // bool isOtetMarkets = _marketParser.IsOtetMarkets(market); + // + string market = _account.GetCompany(); + bool isIngot = _marketParser.IsIngot(market); + bool isErrante = _marketParser.IsErrante(market); + bool isAMarkets = _marketParser.IsAMarkets(market); + bool isIFCMarkets = _marketParser.IsIFCMarkets(market); + bool isOtetMarkets = _marketParser.IsOtetMarkets(market); - // // - // // Ingot ... - // bool isIngotFiltered = false; + // + // Ingot ... + bool isIngotFiltered = false; // // _ingotParser.IsFiltered( // // signal, // // conditions, // // force // // // ); - // // - // // Errante ... - // bool isErranteFiltered = false; + // + // Errante ... + bool isErranteFiltered = false; // // _erranteParser.IsFiltered( // // signal, // // conditions, // // force // // // ); - // // - // // AMarkets ... - // bool isAMarketsFiltered = _amarketsParser.IsFiltered( - // signal, - // conditions, - // force // - // ); + // + // AMarkets ... + bool isAMarketsFiltered = _amarketsParser.IsFiltered( + signal, + conditions, + force // + ); - // // - // // IFCMarkets ... - // bool isIFCMarketsFiltered = false; + // + // IFCMarkets ... + bool isIFCMarketsFiltered = false; // // _ifcmarketsParser.IsFiltered( // // signal, // // conditions, // // force // // // ); - // // - // // OtetMarkets ... - // bool isOtetMarketsFiltered = false; + // + // OtetMarkets ... + bool isOtetMarketsFiltered = false; // // _otetmarketsParser.IsFiltered( // // signal, // // conditions, // // force // // // ); - // // - // if (!force) - // { - // // - // if (isIngot) - // { - // result = isIngotFiltered; - // } - // else if (isErrante) - // { - // result = isErranteFiltered; - // } - // else if (isAMarkets) - // { - // result = isAMarketsFiltered; - // } - // else if (isIFCMarkets) - // { - // result = isIFCMarketsFiltered; - // } - // else if (isOtetMarkets) - // { - // result = isOtetMarketsFiltered; - // } - // } - // else - // { - // // - // result = - // // - // isIngotFiltered - // // - // || - // // - // isErranteFiltered - // // - // || - // // - // isAMarketsFiltered - // // - // || - // // - // isIFCMarketsFiltered - // // - // || - // // - // isOtetMarketsFiltered - // // - // ; - // } + // + if (!force) + { + // + if (isIngot) + { + result = isIngotFiltered; + } + else if (isErrante) + { + result = isErranteFiltered; + } + else if (isAMarkets) + { + result = isAMarketsFiltered; + } + else if (isIFCMarkets) + { + result = isIFCMarketsFiltered; + } + else if (isOtetMarkets) + { + result = isOtetMarketsFiltered; + } + } + else + { + // + result = + // + isIngotFiltered + // + || + // + isErranteFiltered + // + || + // + isAMarketsFiltered + // + || + // + isIFCMarketsFiltered + // + || + // + isOtetMarketsFiltered + // + ; + } // return result;