Rakesh, thanks. I will try it.

 

Clement

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Rakesh Sahgal
Sent: Tuesday, May 29, 2007 2:02 AM
To: [email protected]
Subject: Re: [amibroker] How to combine a daily MA and a hourly MA?

 

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 <[EMAIL PROTECTED]> 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

 

 

 

__________ NOD32 2292 (20070525) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

<<image001.jpg>>

<<image002.jpg>>

Reply via email to