Go Back   ITalkCash.com - Forum for financial investments > General Discussions And News > International Forums > News feeds
Forum Register Calendar Search Today's Posts Mark Forums Read

EXPLORE stocks trading in a Band

Reply
 
LinkBack Thread Tools Display Modes
Old 12-23-2011, 09:38 PM
Cash Administrator
 
Join Date: Dec 2007
Posts: 264,183
Default EXPLORE stocks trading in a Band

<div>Hello

Can someone pls help me to correct the foll AFL

************************************************** ******
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), ParamColor("Color", colorBlueGrey ), ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick, maskHistogram ), 2 );
_SECTION_END();

_SECTION_BEGIN("Bollinger Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), Color, Style );
Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), Color, Style );
_SECTION_END();

Sq1=Close/BBandTop(C,20,2) < 1 AND Close/BBandBot(C,20,2) < 1;
Sq2=Ref(C,-2)/Ref(BBandTop(C,20,2),-2)
Reply With Quote
Reply

Thread Tools
Display Modes


Lotto Premium Bonds Book hotel room.



Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0