help,130 error,I can not find the reason!

 
my OrderSend code like this:
...
dealPrice = Ask - 15*Point;		
stopPrice = iSAR(NULL,0,sarStep,0.4,0) - 15*Point;	
profitPrice = dealPrice+120*Point;
dealTypeColor = UPCOLOR;
ticket=OrderSend(Symbol(),OP_BUYLIMIT,1,dealPrice,0,stopPrice,profitPrice,"crossReverse",16384,CurTime()+ 7200,dealTypeColor); 
if(ticket>0)
{
    if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))
    {
        ObjectCreate("Line"+ticket, OBJ_ARROW, 0, Time[0],dealPrice-20*Point);
        ObjectSet("Line"+ticket, OBJPROP_COLOR, dealTypeColor );
        ObjectSet("Line"+ticket, OBJPROP_ARROWCODE,SYMBOL_ARROWUP);
        ObjectSetText("Line"+ticket, "Buy at "+dealPrice, 10, "Times New Roman",  dealTypeColor);       // attach a lable to the arrow
        lastTradeBars = Bars;
    }
}
else 
{
    errId=GetLastError();
    Print("Error opening BUY order : ",errId," ",ErrorDescription(errId));
    Print("**** dealPrice: ",dealPrice," stopPrice: ",stopPrice," profitPrice: ",profitPrice," Ask:",Ask);
}
...


when i test it,i got 130 invalid stops error,but the stopPrice is lower than dealPrice 40-60 points, who can tell me what the error mean. Thanks in advance!
log like this:

11:12:17 FOLLOWSAR EURUSD,H1: loaded successfully
11:12:20 FOLLOWSAR inputs: defaultTakeProfit=0.012; defaultTrailingStop=0.0055; shortestPeriod=3; shorterPeriod=21; shortPeriod=45; longPeriod=84; longerPeriod=216; longestPeriod=1080; backPoint_Buy=15; backPoint_Sell=15; distanceFromMa=60; slippage=0; shorterPeriodSupportTime=2; longerPeriodSupportTime=2; longestPeriodSupportTime=2; maxSarBreakPoint=70; sarStep=0.011; 
11:12:21 1999.03.11 20:00  myFuctions EURUSD,H1: loaded successfully
11:12:25 1999.08.06 16:00  stdlib EURUSD,H1: loaded successfully
11:12:25 1999.08.06 16:00  FOLLOWSAR EURUSD,H1: Error opening BUY order : 130 invalid stops
11:12:25 1999.08.06 16:00  FOLLOWSAR EURUSD,H1: **** dealPrice: 1.0759 stopPrice: 1.0704 profitPrice: 1.0879 Ask:1.0774
11:12:26 1999.08.23 04:00  FOLLOWSAR EURUSD,H1: Error opening BUY order : 130 invalid stops
11:12:26 1999.08.23 04:00  FOLLOWSAR EURUSD,H1: **** dealPrice: 1.0656 stopPrice: 1.0615 profitPrice: 1.0776 Ask:1.0671
11:12:26 1999.09.01 10:00  FOLLOWSAR EURUSD,H1: Error opening BUY order : 130 invalid stops
11:12:26 1999.09.01 10:00  FOLLOWSAR EURUSD,H1: **** dealPrice: 1.0588 stopPrice: 1.0541 profitPrice: 1.0708 Ask:1.0603
11:12:26 1999.09.09 07:00  FOLLOWSAR EURUSD,H1: Error opening BUY order : 130 invalid stops
11:12:26 1999.09.09 07:00  FOLLOWSAR EURUSD,H1: **** dealPrice: 1.0606 stopPrice: 1.0548 profitPrice: 1.0726 Ask:1.0621
11:12:26 1999.10.04 12:00  FOLLOWSAR EURUSD,H1: Error opening BUY order : 130 invalid stops
11:12:26 1999.10.04 12:00  FOLLOWSAR EURUSD,H1: **** dealPrice: 1.0743 stopPrice: 1.0674 profitPrice: 1.0863 Ask:1.0758
 
the problem fixed,i change the code
dealPrice = Ask - 15*Point;
to
dealPrice = Ask - 16*Point;
i think the reason is the open price must lower more than 16 point to current ask price in OP_BUYLIMIT pending order, but errid 130 (invalid stops) be throwed...
 
to avoid this problem use MarketInfo(Symbol(),MODE_STOPLEVEL) function
 
to avoid this problem use MarketInfo(Symbol(),MODE_STOPLEVEL) function

thanks,Slawa
MarketInfo("EURUSD",MODE_STOPLEVEL) = 15
hoho.