We all know that Bollinger bands are plotted and the AFL for them is
_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();
Now, I need the Bollinger bands to be plotted with only "High" values of a candle, another set of Bollinger bands to be plotted with only "Low" values of a candle.
Can anyone alter the above syntax with the required modifications ? I have looked all over the Amibroker site, but couldnot find a reference to what I needed.
P.S: I was never a technical guy and this coding is greek and latin for me. So please don't laugh at my question :thumb::thumb:
_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();
Now, I need the Bollinger bands to be plotted with only "High" values of a candle, another set of Bollinger bands to be plotted with only "Low" values of a candle.
Can anyone alter the above syntax with the required modifications ? I have looked all over the Amibroker site, but couldnot find a reference to what I needed.
P.S: I was never a technical guy and this coding is greek and latin for me. So please don't laugh at my question :thumb::thumb: