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
Ive switched parameters in both functions OrderModify and OrderSelect to no avail...
The flow seems logical and I have double check all parameters.
This is happening during backtest, but should not matter.
Make the coding easie to read
see difference with your own writing this is more easie count {{{{{{{{{{{{{{{ }}}}}}}}}}}}}}
Still having difficulties. I have conducted errors to find out why.
Journal Has Reported:
1) Error 4051=Incorrect Parameter
2) Invalid Ticket for Modifying Order
For a Buy how can the SL be above the Open price ? OrderOpenPrice() + Point * MoveStopTo
for BUY Possible to have OrderStopLoss() above OrderOpenPrice() after modified had succeed and trade is in profit
LOL . . . oops <red face smiley>
beware the shame delete my post
Still having difficulties. I have conducted errors to find out why.
Journal Has Reported:
1) Error 4051=Incorrect Parameter
2) Invalid Ticket for Modifying Order
OK, maybe your error messages are spurious . . .
Why are you calling GetLastError() if the OrderSelect() works ? if it does show you an error it won't be due to the OrderSelect()
The same case for the OrderModify(), if the modify works you are still calling GetLastError(), why ? only call it if the function fails . . .
beware the shame delete my post
AHHH I love it. Both of your points make a lot of sense.
{{{{}}}}}-Is way easier as well!
Errors should only be called if function fails.
Thank you both, I hope your weekends went swell.
For a Buy how can the SL be above the Open price ? OrderOpenPrice() + Point * MoveStopTo
The SL is below the order.
Are you sure you are not refferring to the sell section?
LOL . . . oops <red face smiley>