Can't use Low[1] as stopLoss

 

When i try to use Low[1] as stopLoss, i get wrong value

 
Please show the whole code and the log entry.
 
Carl Schreiber:
Please show the whole code and the log entry.

         double stopL =  High[2];
        int sell = OrderSend(Symbol(),OP_SELL,0.01,Bid,3,Bid+stopL,0.00,"SellMore",0,0,Red);


The order opened has a stoploss value twice the value of High[2]

 
kamada2020:

         double stopL =  High[2];
        int sell = OrderSend(Symbol(),OP_SELL,0.01,Bid,3,Bid+stopL,0.00,"SellMore",0,0,Red);


The order opened has a stoploss value twice the value of High[2]

that is because you are adding the Bid and the stopL  together, just use stopL

 
Paul Anscombe:

that is because you are adding the Bid and the stopL  together, just use stopL

Thanks Man