i
want to buy when price touches Bollinger band bottom and sell when
it touches Bollinger band top.
How
to write this in afl.
_SECTION_BEGIN("Bollinger
Bands");
P =
ParamField("Price
field",-1);
Periods
= Param("Periods", 7, 2, 300, 1 );
Width
= Param("Width", 1, 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 );
this
is BB afl.
Do
help out
Deepak
Patade,
Nasik.