Fabrizio Alfredo Ortega Suni: failed modify #5 sell 0.4 EURUSD sl: 1.09665, tp: 1.09565 -> sl: 1.09613, tp: 1.09565 [Invalid stops]
This information is useless since you didn't post the current market price (Ask).
Fabrizio Alfredo Ortega Suni: ((Bid-SL>SYMBOL_TRADE_FREEZE_LEVEL*_Point))&&((TP-Bid>SYMBOL_TRADE_FREEZE_LEVEL*_Point));
You can't move stops (or pending prices) closer to the market than the minimum: MODE_STOPLEVEL * _Point or SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL).
Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
On some ECN type brokers the value might be zero (broker doesn't know.) Use a minimum of two (2) PIPs.
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
Hi I m trying to publish a product on the Market but in the Automatic Validation of my EA I get erros:
test on EURUSD,H1 (netting) 2020.04.01 10:59:41 failed modify #5 sell 0.4 EURUSD sl: 1.09665, tp: 1.09565 -> sl: 1.09613, tp: 1.09565 [Invalid stops] 2020.04.01 23:10:35 failed modify #8 buy 0.2 EURUSD sl: 1.09567, tp: 1.09667 -> sl: 1.09619, tp: 1.09667 [Invalid stops] I only modify positions (BUY case) that get true at the following statment
((Bid-SL>SYMBOL_TRADE_FREEZE_LEVEL*_Point))&&((TP-Bid>SYMBOL_TRADE_FREEZE_LEVEL*_Point));
when I test it in my terminal I dont get any error, is there an aditional requirement to modify positions? Thanks