Hello,

I have been going through the timeframe commands on AB website. There are 
examples about price/indicators etc from a different time .

What I would like to know is if its possible to look for occurance of certain 
rules in 4hr from a one hr chart?.

//Currently in one hour hr chart....
postiveclose=C > O;


///Switching to 4hr charts...
TimeFrameSet( 4*inHourly ); // switch now to 4 hour 

HOUR4_50EMA = EMA( C, 50 ); // 50 bar moving average from 4 hourly data 

HOUR4_200EMA = EMA( C, 200 ); // 200 bar moving average from 4 hourly data 

Condition1=(C >HOUR4_200EMA);

Condition2=Sum(Condition1,3)>=1;

TimeFrameRestore(); // restore time frame to original 



///Switching again to HOURLY charts...

Hourly_and_4Hourly_Rule=postiveclose and Condition2; // Mixes hourly and 4 hour 
rules here.

Is this possible?. Thanks.



Cheers,Padhu

Reply via email to