Termos de Referência
Hello,
I need help making one very specific change to my MT5/MQL5 indicator.
I have a working version of the indicator where the V3.4 swing signals are correct. The swing points shown by the V3.4 logic are exactly the swing points I want to use on the chart. Please treat the V3.4 code and its swing locations as the fixed reference. I do NOT want the V3.4 swing-detection logic changed.
The problem is with the newer live-alert code that was added to solve the alert timing.
What is already working
The alert timing has now been fixed.
When a correct swing is identified:
-
Candle 1 = the swing candle
-
Candle 1 closes
-
Candle 2 = the next candle
-
I receive the alert on Candle 2
This timing is now working correctly and MUST NOT be changed.
The remaining problem
The newer version has an additional live-swing detector.
This detector is producing extra swing signals too early, before the correct V3.4 swing signal appears.
So on the Strategy Tester chart I can see something like:
EARLY/WRONG SIGNAL → later the CORRECT V3.4 SIGNAL
I do NOT want those early signals.
I only want the signals that correspond to the V3.4 swing signals already shown on the chart.
What I need you to change
Please inspect the code and identify the separate live/early swing detection logic that is generating these additional signals.
I want that additional early signal generation removed or disabled.
However, I want you to preserve the existing mechanism that is currently giving me the correct next-candle/Candle 2 alert timing.
So the final behaviour should be:
V3.4 swing point on chart
→ swing candle closes
→ next candle opens
→ alert immediately on that next candle.
There should be NO additional earlier live swing signals before the V3.4 swing.
VERY IMPORTANT
Please do NOT:
-
change the V3.4 swing locations
-
change the V3.4 swing detection logic
-
change the left/right strength logic
-
add pullback logic
-
add break logic
-
delay the alert
-
make me wait several candles after the swing
-
replace the V3.4 signals with different swing points
The V3.4 signals are the ones I want.
The only problem I need fixed is:
REMOVE THE EXTRA EARLY/LIVE SIGNALS AND ONLY ALERT FOR THE V3.4 SWING SIGNALS, WHILE KEEPING THE CURRENT NEXT-CANDLE (CANDLE 2) ALERT TIMING.
I can provide the V3.4 code and the latest version of the code if needed.
Please confirm that you understand this exact requirement before making changes.