i have these two conditions to open a buy order. How best to do it, if any of these two conditions is true.

 

double CurrMinusPrevA=iHigh(NULL,PERIOD_H1,0);

double CurrMinusPrevB=iHigh(NULL,PERIOD_H1,4);

double CurrMinusPrevC=iHigh(NULL,PERIOD_M30,0); 

double CurrMinusPrevD=iHigh(NULL,PERIOD_M30,3); 

 

if (CurrMinusPrevA<CurrMinusPrevB || CurrMinusPrevC>CurrMinusPrevD)  // this dosen't seem to work

"Open a buy order here "

 What is the way if any one of the two above conditions is met, to open a buy order? 

 
tafadzwa:

<CODE DELETED>

"Open a buy order here "

 What is the way if any one of the two above conditions is met, to open a buy order? 

Please edit your post . . .    please use the   SRC   button to post code: How to use the   SRC   button.
 
tafadzwa: if (CurrMinusPrevA<CurrMinusPrevB || CurrMinusPrevC>CurrMinusPrevD)  // this dosen't seem to work

  1. Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. Print out your values BEFORE the IF and something INSIDE so you find out why!
Reason: