Hi, 
For backtesting I am trying to enter trades intraday generated by data 
in the daily time frame (for instance, when the 1 minute bar crosses 
the 20 EMA). 
I've tried using TimeFrameCompress and call the modified 20 EMA in the 
1 minute timeframe for instance:
dC = TimeFrameCompress(C, inDaily ); 
TimeFrameSet(in1Minute);
Short = Ref( dC, -1 )> MA(dC, 20) and Ref(C, -1) < MA(dC, 20);

Should go short when yesterday's close was higher than the daily 20 
MA, and the close of 1 minute ago was lower than the daily 20 MA, but 
it does not seem to work.

Is there any other way?
Thanks,
Jerry







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 other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to