- Duplicate values in Dynamic Array after ArraySort()
- How to code?
- Send only one order when conditions meets
It is not a good idea to use Global Variables of the client terminal in this way. If the EA is running on more than 1 chart they will interfere with each other.
There is no check in your code to see if the trade was closed by SL or TP. The variable is only reset if the trade is closed by the EA. Check OrderCloseTime() and if it !=0, reset the variable.
It is not a good idea to use Global Variables of the client terminal in this way. If the EA is running on more than 1 chart they will interfere with each other.
There is no check in your code to see if the trade was closed by SL or TP. The variable is only reset if the trade is closed by the EA. Check OrderCloseTime() and if it !=0, reset the variable.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use