PureBytes Links
Trading Reference Links
|
// Install as indicator and use parameter Trigger to rotate
// through watchlist
// Change in 5.09 allows the current ticker for the active
// document window to be changed in mid-stream. This is
// preferrable to SetForeign( ) because the BarCount reflects
// the number of bars in the new ticker.
WLNUM = 13;
wl = CategoryGetSymbols( categoryWatchlist, WLNUM );
wlcount = StrCount( wl, "," ) + 1;
// The chart ID is appended to the index name to make it
// unique to the document window
// NOTE - it is initialized to a large number to force it
// to rotate back to 0 at first click
curind = Nz( StaticVarGet( "nextind" + GetChartID( ) ), 999999 );
// Loop through the watchlist tickers and rotate back to 0
trig = ParamTrigger( "Trigger", "CLICK" );
if ( trig )
{
if ( curind >= wlcount - 1 )
curind = 0;
else
curind++;
StaticVarSet( "nextind" + GetChartID( ), curind );
// Set the new document ticker
OAB = CreateObject( "Broker.Application" );
OAD = OAB.ActiveDocument;
OAD.Name = StrExtract( wl, curind );
}
Plot( C, "C", colorDefault );
// Force all available bars for the ticker
SetBarsRequired( sbrAll, sbrAll );
Title = Name( ) + " - WL Index = " + Curind +
" , BarCount = " + BarCount;
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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/
|