Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Here is the formula for Bollinger bands using the Time Data Create functions from PowerPivots Plus
BBP:=Input("Bollinger Band - Period :",1,100,20);
SD:=Input("Bollinger Band - Std Dev :",1,10,2);
factor:=Input("TimeFactor", 0, 1000, 1);
offset:=Input("Offset", 0, 1000, 0);
CD:=ExtFml("PowerPivots.TDataCreate",3, factor);
BTM:=BBandBot(CD,BBP,S,SD) ;
TOP:=BBandTop(CD,BBP,S,SD) ;
BTM:=ExtFml("PowerPivots.TDataLocalize", BTM, factor, offset);
TOP:=ExtFml("PowerPivots.TDataLocalize", TOP, factor, offset);
TOP; BTM;
time factor =1 plots like a normal indicator
time factor =2 plots on a 1 min chart, the indicator as it would be plotted on a 2 min chart
time factor =2 plots on a daily chart, the indicator as it would be plotted on a weekly chart
Time factor multiplies the base periodocity by the factor in RT, In EOD it will just increase the next time frame
|