Help needed

 

I think this is weird, I got this error when doing test. I have no idea where's the problem, the only clue I have is stop level. Testing on 4 digit data.

I got error 130 when i used stop loss less than 10 pips, tried 6,7,8,9 all have error 130.

EURUSD,H1: Buy BreakEven OrderModify Error #130
EURUSD,H1: OrderModify error 130
EURUSD,H1: ModiBuySL = 1.45490000 (Modifying Stop Price)
EURUSD,H1: ModiBuyOP = 1.45540000 (Open Price)
EURUSD,H1: StopL = 0.00050000 (Stop Loss Provided 5 Pips)
EURUSD,H1: StopLevel = 0.0 (Stop Level)

Below, i have no problem if i increase my stop loss to 10 pips, test with no error.

EURUSD,H1: modify #8 buy 0.01 EURUSD at 1.4554 sl: 1.4544 tp: 0.0000 ok
EURUSD,H1: ModiBuySL = 1.45440000
EURUSD,H1: ModiBuyOP = 1.45540000
EURUSD,H1: StopL = 0.00100000
EURUSD,H1: StopLevel = 0.0
Tester: order #8, buy 0.01 EURUSD is opened at 1.4554

Print("StopLevel = ", MarketInfo(Symbol(), MODE_STOPLEVEL));
Print("StopL = ", DoubleToString(StopL));
Print("ModiBuyOP = ", DoubleToString(ModiBuyOP));
Print("ModiBuySL = ", DoubleToString(ModiBuySL));

if(!OrderModify(BuyTix, ModiBuyOP, ModiBuySL, 0, 0, clrRed))
{
   Print("Buy BreakEven OrderModify Error #", GetLastError());
   return;
}
 

If price is too close, or you are trying to put the stop below the price / spread, it will return 130 Invalid Stops.

 
Please send your OrderModify function body.
Reason: