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: NASDAQ 100 Volume
Author/Uploader: Jorgen Wallgren - jorgen.wallgren [at] gmail.com
Date/Time added: 2009-03-07 06:19:27
Origin: It's interesting to know the volume in the NASDAQ 100 market, but the Index doesn't provide it. Therefore this code will use the Heatmap Composite feature and sum up all the 100 symbols trade volume
Keywords: NASDAQ Volume
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:

This code is an add-on to my Heatmap code and to be used if you trade NASDAQ 100 Stocks. In the Heatmap program, you have to enable \"Create Composite\". The Heatmap will then collect the required information for this indicator and display the total NASDAQ 100 traded Volume. Please keep in mind that the frequency of the updates depends on your

Formula:

_SECTION_BEGIN("Nasdaq 100 Volume");
// This code is an add-on to my Heatmap code and to be used if you trade NASDAQ
100 Stocks.
// In the Heatmap program, you have to enable "Create Composite". The Heatmap
will then 
// collect the required information for this indicator and display the total
NASDAQ 100
// traded Volume. Please keep in mind that the frequency of the updates depends
on your
// settings in the Heatmap program.
Title 				= "NASDAQ 100 Volume";
IndicatorOnOff	= ParamToggle("Volume","Off|On", 1);
VolumeOnOff		= ParamToggle("Volume","Off|On", 0);
Periods 			= Param("MA Periods", 78, 1, 390, 1 );
OnOff				= ParamToggle("Height Adjust","Off|On", defaultval = 0);
MaxVheight			= Param("Max Volume = Avgerage x", 3, 1, 20, 0.5 );

TotalVolume = TotalOpen = TotalCLose =0;

if(IndicatorOnOff)
{
 TotalOpen 	= Foreign("~MGComp", "O");
 TotalClose 	= Foreign("~MGComp", "C");
 TotalVolume	= Foreign("~MGComp", "V");
}
 
Plot(MA(TotalVolume, Periods ), "", colorBlue, styleThick ); 

UpBar 		= TotalClose > TotalOpen;
DownBar	= TotalClose < TotalOpen;
BarColor	= IIf(DownBar, colorRed, IIf(UpBar, colorBrightGreen, colorBlue));
VOpen 		= IIf(DownBar, TotalVolume, 0); 
VClose 	= IIf(DownBar, 0, TotalVolume);
VLow		= 0; 
VHigh 		= TotalVolume;

if(OnOff)
	VHigh = IIf(VHigh > MaxVheight * MA(TotalVolume, Periods ), VHigh = MaxVheight
* MA(TotalVolume, Periods ), TotalVolume);

SetBarFillColor(BarColor); 
PlotOHLC(VOpen, VHigh, VLow, VClose, "", Barcolor, styleCandle|styleNoLabel); 
Plot(VHigh, "", Barcolor, styleNoLine);
_SECTION_END();

Comments:


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