I got sometimes Takeprofit modify error 130, when takeprofit go to negativ area. that means, takeprofit move buy order under orderopenprice, sell order move to upper. Then I got the error. I saw many other EA do also same, but they works without error. Why is it?
- OrderModify Error 130 on pending orders
- Ticket changes after OrderSend
- Move to Break Even only selecting modifying 1 order
You can't move stops (or pending prices) closer to the market than the minimum
(MODE_STOPLEVEL * _Point.)
Requirements and Limitations in Making Trades - Appendixes - MQL4&Tutorial
Requirements and Limitations in Making Trades - Appendixes - MQL4&Tutorial
modify #1 sell 0.01 EURUSD at 1.05100 sl: 0.00000 tp: 1.05143 ok
I saw this log from other ea. Why is that possible?
The takeprofit is above the opened price.
If I set the takeprofit in ordersend upper than open price it would failed.
Yong Zheng:
modify #1 sell 0.01 EURUSD at 1.05100 sl: 0.00000 tp: 1.05143 ok
modify #1 sell 0.01 EURUSD at 1.05100 sl: 0.00000 tp: 1.05143 ok
I saw this log from other ea. Why is that possible?
The takeprofit is above the opened price.
If I set the takeprofit in ordersend upper than open price it would failed.
The take profit may be above the opened price but is below the current price at the time.
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