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

RE: [amibroker] Day ATR during intraday backtesting



PureBytes Links

Trading Reference Links

You will need to use timeframeexpand to have the compressed ATR into the
timeframe of the base chart

TimeFrameSet(inDaily);
DayATR=ATR(3);
TimeFrameRestore();

AddColumn(timeframeexpand(DayATR, inDaily),"ATR(3)",1.5);

Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: firehorse888uk [mailto:firehorse888uk@xxxxxxxxxxx] 
Sent: Saturday, January 01, 2005 6:00 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Day ATR during intraday backtesting



Hi,

I'm trying get the daily ATR of a stock during intraday backtesting.
I tried the following code but DayATR comes back as blank during explore. If
I just use ATR(3) it gives me the ATR of the current bar interval. Can
someone tell me how I can retrieve the daily ATR during intraday
backtesting? Thanks.

TimeFrameSet(inDaily);
DayATR=ATR(3);
AddColumn(DayATR,"ATR(3)",1.5);
TimeFrameRestore();






Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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