From 9f7a75c05764b4e87d813ac7d7a01931335905b6 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 3 Aug 2024 06:25:36 +0330 Subject: [PATCH] attach Scores to XCH Parser Signal Conditions Generator ... --- Parsers/x-saherelm.xch.parser.mq5 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Parsers/x-saherelm.xch.parser.mq5 b/Parsers/x-saherelm.xch.parser.mq5 index 8ef4b959..e52b0757 100644 --- a/Parsers/x-saherelm.xch.parser.mq5 +++ b/Parsers/x-saherelm.xch.parser.mq5 @@ -34,9 +34,24 @@ struct XCHStartegyConditionsParser // string GenerateSignalConditions(XCHStrategyConditions &conditions) { + // + // Calculate Score ... + double bullishScore = 0; + double bearishScore = 0; + mItem.GenerateScore( + bullishScore, + bearishScore // + ); + // // Generate Signal Parser Structured Conditions ... string result = + "---------------" + "\n" + + "Scores:" + "\n" + + "---------------" + "\n" + + "Bullish: " + ToString(bullishScore) + "\n" + + "Bearish: " + ToString(bearishScore) + "\n" + + "---------------" + "\n" "(" + "\n" + "//" + "\n" + "// XPV ..." + "\n" +