RSI code help

 

what am i doing wrong here? why do i keep getting an error 130? am using fxpro and understand they use 5 decimal pip system... is there something else am not seeing?


the code if for a simple RSI expert advisor... if the RSI is over 70 then a sell position is opened with a certain SL and a TP and only one position is opened at a time. thanks in advance

int  Lots = 1;
int StopLoss = 500;
int TakeProfit = 500;
double ticket;
int start() {



   


  
  if(iRSI(NULL,0,14,PRICE_CLOSE,0)>70)
       {      
         OrderSend(Symbol(),OP_SELL,Lots,Bid,0,StopLoss*Point,TakeProfit*Point,NULL,0,0,CLR_NONE);}




         
                    
             return(0); 
  
  }
Reason: