From b48442751c58342ce952f5a15fad7d74b6251f23 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Wed, 7 Aug 2024 19:06:23 +0330 Subject: [PATCH] attach symbol to signal conditions Generator ... --- Experts/x-saherelm.xch.strategy.ea.mq5 | 5 ++++- Parsers/x-saherelm.xch.parser.mq5 | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Experts/x-saherelm.xch.strategy.ea.mq5 b/Experts/x-saherelm.xch.strategy.ea.mq5 index f0054329..429fc9a3 100644 --- a/Experts/x-saherelm.xch.strategy.ea.mq5 +++ b/Experts/x-saherelm.xch.strategy.ea.mq5 @@ -667,7 +667,10 @@ void OnSignalRecieved( ); // - signal.conditions = parser.GenerateSignalConditions(conditions); // conditionsSummary; + signal.conditions = parser.GenerateSignalConditions( + signal, + conditions // + ); // conditionsSummary; // // Execute Signal Using Trade Handler ... diff --git a/Parsers/x-saherelm.xch.parser.mq5 b/Parsers/x-saherelm.xch.parser.mq5 index c1bcf5a4..57007a3f 100644 --- a/Parsers/x-saherelm.xch.parser.mq5 +++ b/Parsers/x-saherelm.xch.parser.mq5 @@ -76,7 +76,10 @@ struct XCHStartegyConditionsParser XCHStartegyDOWJONESShortConditionsParser _dowjonesShortParser; // - string GenerateSignalConditions(XCHStrategyConditions &conditions) + string GenerateSignalConditions( + XSignal &signal, + XCHStrategyConditions &conditions // + ) { // // Calculate Score ... @@ -92,6 +95,7 @@ struct XCHStartegyConditionsParser string result = "(" + "\n" + + "// Symbol: " + signal.symbol + "\n" + "// ---------------" + "\n" + "// Scores:" + "\n" + "// ---------------" + "\n" +