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

[amibroker] Need help with timeframes.



PureBytes Links

Trading Reference Links

Hi There,

I am scripting a realtime scan, and I need some help with timeframes. 

Within my settings, I want to scan on a periodicity of 30 minutes,
however I want the script to extract an ATR based on 1 minute bars.

I have been able to do this previously by using commands like
'timeframegetprice', 'timeframeexpand' and 'timeframeset', however
none of these seem to work for me with ATR. I get different values for
ATR when I use different periodicity settings. I have written the code
a bunch of different ways, with iterations such as:

aim = TimeFrameExpand(ATR(21),in1Minute,expandFirst);

or

TimeFrameSet(in1Minute);
aim = ATR(21);
TimeFrameRestore();

Can someone help me out here?

Cheers!







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
 
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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/