Welcome Features News Download Registration Support FAQ Wish list Links
Advanced stock charting and analysis program

AFL Library

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: IB Backfiller
Author/Uploader: Barry Scarborough - razzbarry [at] imageview.us
Date/Time added: 2008-09-12 15:35:31
Origin:
Keywords: IB Backfill
Level: basic
Flags: indicator

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:

A formula that will back fill all the symbols and plot the results. Create a file with all your tickers by using AmiQuote and inporting the symbols. Save the symbol list to a txt or csv file and then import that to watch list 40. If you use another watchlist you will have to change the watchlist assignment in the formula.

Formula:

_SECTION_BEGIN("1 Minute Grabber ");  
SetChartOptions(0,chartShowArrows|chartShowDates); 
Filename = StrLeft(_DEFAULT_NAME(),StrLen(_DEFAULT_NAME())-2);
_N(Title = filename + StrFormat(" - {{DATE}} {{VALUES}} "));

// Version 1a - Coded 1/23/08
// Program designed by Barry Scarborough

Watchlist = 40; 
Color = 2;
Count = 0; 
// retrive comma-separated list of symbols in watch list 
list = CategoryGetSymbols( categoryWatchlist, watchlist ); 
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ ) 
{ 
	MyC = Foreign( sym, "C");
	++Count;
	++Color;
	if(i == 0 OR count == 7)
	{
		plot(MyC, "\n" + strleft(sym, 4), color, styleownscale); // get the close
values for the symbol from the watchlist
		Count = 0;
	}
	else
		plot(MyC, strleft(sym, 4), color, styleownscale); // get the close values for
the symbol from the watchlist
} 

_SECTION_END();

Comments:

Chan Lai
chanlai61 [at] hotmail.com
2010-03-28 15:02:33
Hi,

How to use this AFL?

Thank you.


About | Privacy | Terms of Use | Contact information
Copyright © 2001 AMIBROKER.COM