Files:
ADX.mq4
34 kb
this code opens positions correctly but does not close them based on:
//+------------------------------------------------------------------+ // Function to manage the closing of positions if a reversal is detected //+------------------------------------------------------------------+ void ClosePositionIfInverted().
From the logs generated on mediatrader 4 the current and previous values of +DI and -DI of the current candle just closed and the previous one are calculated correctly and yet the problem persists and I have not been able to solve it for several days. I am looking for opinions regarding the resolution of this bug in my ea
Your code seems to have AI-generated elements, so it cannot be helped (would need considerable human review/corrections before being usable in a live trading environment).
NOTE: this forum primarily operates in English (your commenting in Italian adds another layer of complexity).
Oleksandr Medviediev #:
ok, I resolved bug by myself
Your code seems to have AI-generated elements, so it cannot be helped (would need considerable human review/corrections before being usable in a live trading environment).
NOTE: this forum primarily operates in English (your commenting in Italian adds another layer of complexity).

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register