This is read-only version of AFL library entry. Ability to add user formulas
and comment is only available from members-only area.
Details:
Formula name:
Using From and To dates from Auto Analysis in Code
Author/Uploader:
Bruce M. Moore - bmoore8702 [at] sbcglobal.net
Date/Time added:
2005-06-06 22:40:53
Origin:
Author
Keywords:
Status, FirstBarInRange, LastBarInRange
Level:
semi-advanced
Flags:
exploration
DISCLAIMER: Most formulas present in AFL on-line library are submitted
by the users and are provided here on an "as is" and "as available" basis.
AmiBroker.com
makes no representations or warranties of any kind to the contents or the operation
of material presented here. We do not maintain nor provide technical support
for 3rd party formulas. Description:
This code illustrates how to use the "From" and "To" date settings from Automatic Analyzer in AFL code. It is far faster to do it this way than to run your code from "0 to Barcount-1".
This method of extracting the dates and converting them to bar counts is rather convoluted, as you will see. I would like to see new keywords added to the AFL that allow the programmer to access the the "From" and "To" bar counts directly. In the meantime, this is the best work-around I've found.
The simple example given calculates a moving average, then plots price and the moving average.