Stoploss and TakeProfit no longer working as of 3/13/2007

 
Hi,
Dooes anyone know of any reason that my stoploss and takeprofit are no longer working? I have been testing this a system for weeks and all of a sudden it stopped
trading and the log indicates error 130 which I researched as improper stoploss and takeprofit settings. If I remove the stoploss and takeprofit from the code and will work. The code is below:
if(PT_val==1)
{
ticket=OrderSend(Symbol(),OP_BUY, Lots, Ask, 0,Ask-StopLoss*Point, Ask+TakeProfit*Point, tmpString,0,0,Green);
Print("Long Trade Area Entered, Ticket= ", ticket);
if(ticket>0)
{//103a If Successful below is executed
Print("Attempting Trade, Ticket ", ticket);
if(OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice());
LongTrade=1;
}//103b

else Print("Error opening BUY order : ", GetLastError());
if(AllowReOrderOnFail==1){
ErrorOnBuyOrSellReset();}
return(0);
}
 
May be matter in parmeter StopLevel (see MarketInfo). Use these scripts from https://www.mql5.com/ru/forum/50912 for reseach .
Reason: