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
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
__,_._,___
|