Can anyone help? I've been stuck on this issue for over week!!!
I think this:
longStopPrice = NormalizePrice(Ask+sv);
must be like this:
longStopPrice = NormalizePrice(Ask-sv);
traderman58:
Can anyone help? I've been stuck on this issue for over week!!!
When the OrderModify() fails what error do you get ?
Can anyone help? I've been stuck on this issue for over week!!!
JDeel:
I think this:
must be like this:
My initial stop is set to a negative value (ex. -1000 pips).
RaptorUK:
When the OrderModify() fails what error do you get ?
When the OrderModify() fails what error do you get ?
It is no longer giving me an error, but it is not modifying the TP. I will run it again and try to provide exact logs.
traderman58:
It is no longer giving me an error, but it is not modifying the TP. I will run it again and try to provide exact logs.
Please add Print() for the Open price, the TP, the SL and Bid and Ask all to a precision of Digits using DoubleToStr()
It is no longer giving me an error, but it is not modifying the TP. I will run it again and try to provide exact logs.
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
I've written an EA that seems to be working as anticipated when I backtest or run in Visual Mode. When I first started trading on live data, I was plagued by "Order Off Quotes" errors. After much reading on the forums, I modified my code and was able to get this issue resolved. However, it is still not placing my TP orders properly. My logs show that the the modification is being sent properly, but the orders never adjust to they new prices (they maintain a value of 0). The SL orders are modified properly, so I am not sure what I am doing wrong. Any pointers would be appreciated.