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
Thanks a lot you are great!
the stoploss value is valid
I add the ZeroMemory function and I managed to modify the stoploss it works great.
I now have to fix the initial stoploss value which is 0 the position is open and I try to modify the SL with a request action but it doesn't work the code
Thanks a lot you are great!
the stoploss value is valid
I add the ZeroMemory function and I managed to modify the stoploss it works great.
I now have to fix the initial stoploss value which is 0 the position is open and I try to modify the SL with a request action but it doesn't work the code
Also it is not guaranteed that 2 OrderSend should work in the same tick,
as the trade server could not accept (most of the times in my experience) more than one synchronous trade operations.
In your OnTick function you should check your EA state and act in consequence, something like this:
a.) is a position opened for the symbol ?