[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Bollinger band cross with price


  • Date: Fri, 11 Dec 2009 08:46:51 -0800 (PST)
  • From: Deepak Patade <deepakpatade@xxxxxxxxx>
  • Subject: [amibroker] Bollinger band cross with price

PureBytes Links

Trading Reference Links

Hi,
Can any body help me.
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.