Make sure of the following:
- Price, S/L, T/P and Lots are normalized to proper number of digits using NormalizeDouble().
- S/L and T/P confirm to MODE_STOPLEVEL, MODE_FREEZELEVEL; see here for limitations -> https://book.mql4.com/appendix/limits.
- Lots confirm to MODE_MINLOT, MODE_LOTSTEP, MODE_MAXLOT.
- The latest and most updated price is used (usage of RefreshRates() might be needed).
- Some brokers require you to first place the order with no stops and use OrderModify() to add stops later.
gordon wrote >>
Make sure of the following:
- Price, S/L, T/P and Lots are normalized to proper number of digits using NormalizeDouble().
- S/L and T/P confirm to MODE_STOPLEVEL, MODE_FREEZELEVEL; see here for limitations -> https://book.mql4.com/appendix/limits.
- Lots confirm to MODE_MINLOT, MODE_LOTSTEP, MODE_MAXLOT.
- The latest and most updated price is used (usage of RefreshRates() might be needed).
- Some brokers require you to first place the order with no stops and use OrderModify() to add stops later.
Thank you,I am trying~

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 everyone~
I am a newer in programming on mt4 from China
my problem is
when I use sentence
OrderSend(Symbol(),OP_BUYLIMIT, BasicLots*MathPow(LotsMultiple,i+1),p+ OrderDistance*Point+DelayPoint*Point,DelayPoint,p+ OrderDistance*Point+DelayPoint*Point-MinStoploss*Point,0,"lock",0,0,Blue);
the mt4 remind me ordersend error130
p is current Bid
and MinStoploss is 100, orderdistance is 300
this means the new order's stop price is lower than current price
please help me to deal with the problem
thanks a lot!