[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Is it possible to check for certain rules in 4hr chart from a onehr chart using timeframe commands


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: [amibroker] Is it possible to check for certain rules in 4hr chart from a onehr chart using timeframe commands
  • From: "Padhu" <ccie8340@xxxxxxxxx>
  • Date: Mon, 6 Aug 2007 23:15:17 -0500

PureBytes Links

Trading Reference Links

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
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___