urgent solution please

 

Good day?

HOW DO I DECLARE THE SYNTAX AND WRITE THE CODE :

If LOW and HIGH of 3 BARS >13EMA

Thanx.

 

CODE IS AS GIVEN BELOW:

double ema13, low3, high3;
low3=Low[iLowest(NULL,0,MODE_LOW,3,3);
high3=High[iHighest(NULL,0,MODE_HIGH,3,3)];
ema13=iMA(NULL,0,13,0,MODE_EMA,PRICE_CLOSE,0);
if(low3>ema13 && high3>ema13)
{
// your code comes here
}

 
jobaba:

Good day?

HOW DO I DECLARE THE SYNTAX AND WRITE THE CODE :

If LOW and HIGH of 3 BARS >13EMA

Thanx.

If its low is already higher than something, shouldn't its high be definitely higher also?
ie. the above req. is just the same as "IF LOW of 3 BARS > 13EMA". . .
Just a thought.
Reason: