PureBytes Links
Trading Reference Links
|
Generally, you need not worry about the range. Just write your code generically and let AmiBroker do the rest.
That being said, read up on QuickAFL:
http://www.amibroker.com/kb/2008/07/03/quickafl/
Also of interest would be the Status function using "firstvisiblebar", "lastvisiblebar", "firstvisiblebarindex", "lastvisiblebarindex":
http://www.amibroker.com/guide/afl/afl_view.php?id=141
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "Conrad Joach" <consolejoker@xxx> wrote:
>
> When writing a formula that only needs to use the data in the set of bars that is actually visible within the constraints of the chart's time frame, is it preferred (I would presume it to be) to only use those bars and skip the rest of the data that precedes it?
>
> Obviously this would not be doable for things like moving averages, but for other types of indicators.
>
> Question is, how do you get the oldest visible bar on the timeframe?
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
|