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

Re: [amibroker] How to combine a daily MA and a hourly MA?



PureBytes Links

Trading Reference Links

Timeframeset(indaily);

d_ma=ma(c,10);//this is your daily ma

timeframerestore();

d_ma=timeframexpand(d_ma,indaily);//this allows you to make the value of the d_ma usable on your hourly chart



On 5/28/07, Clement Chin <yitman@xxxxxxxxxxxxxx> wrote:

Hi,

 

I would like to take Buy signals from Hourly chart only if the Close is above moving average 10-SMA in daily chart.

 

i.e.          If C>MA(C,10) in daily chart, I would like to take and backtest all the Buy Signals [up trend only] such as cross(ema(c,5),ema(c,13)) on same 60-minute chart.

 

How can I do the above coding? Will the two timeframes interfere each other?

 

Thank you in advance.

 

Clement

 


__._,_.___

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

__,_._,___