CurrMinusPrev=iHigh(NULL,PERIOD_M5,1)-iLow(NULL,PERIOD_M5,24). OP_SELL.

 

     subtracts the current high and low of  bar 24 ago.

     when the value of CurrMinusPrev = >0.0013    i want to     OP_SELL .

     Please someone show how make OP_SELL succesfully. 

      When i test it thank you. 

 
petertrov:

     subtracts the current high and low of  bar 24 ago.

     when the value of CurrMinusPrev = >0.0013    i want to     OP_SELL .

     Please someone show how make OP_SELL succesfully. 

      When i test it thank you. 

You have to make sure you are testing it correctly, read this: Can price != price ?


Then you use OrderSend()  to send your sell order,  if you are using an ECN Broker read this:  ECN 

 
RaptorUK:

You have to make sure you are testing it correctly, read this: Can price != price ?


Then you use OrderSend()  to send your sell order,  if you are using an ECN Broker read this:  ECN 

Thanks dude