diff --git a/Parsers/x-saherelm.xch.che.parser.mq5 b/Parsers/x-saherelm.xch.che.parser.mq5 index bc7d7864..728e10e6 100644 --- a/Parsers/x-saherelm.xch.che.parser.mq5 +++ b/Parsers/x-saherelm.xch.che.parser.mq5 @@ -980,6 +980,33 @@ struct XCHCHEStartegyConditionsParser "||" + "\n" + "//"; + // + string query = "&&"; + int andIndexes[]; + int andIndexesCount = FindIndexes( + query, + result, + andIndexes // + ); + if (IsValidSize(andIndexesCount)) { + // + int lastAndIndex = andIndexes[ArraySize(andIndexes) - 1]; + + // + string beforeStr = StringSubstr( + result, + 0, + lastAndIndex // + ); + string afterStr = StringSubstr( + result, + lastAndIndex + StringLen(query) + ); + + // + result = beforeStr + afterStr; + } + // return result; }