Hi,
Below is the formula of volume for amibroker along with standard deviation bands.
I am not good with metastock coding. Can somebody please covert the formula for metastock.
help appreciated.
GraphXSpace = Param("Xspace", 10, 2, 20, 1);
// vol with std
LBP = Param("Look Back", 30, 0, 150,1 );
Mean = MA(ln(V),LBP);
StD = StDev(ln(V),LBP);
xp3 = exp(mean + 3*std); //3 band
xp2 = exp(mean + 2*std); //2 nd band
xp1 = exp(mean + 1*std); // 1st band
xm = exp(mean); // avg
xn1 = exp(mean - 1*std); // -1 band
xn2 = exp(mean - -2*std); //-2 band
Plot(xp3,"", colorCustom12 ,1|4096);
Plot(xp2,"", colorSeaGreen,1|4096);
Plot(xp1,"", colorRed,1|4096);
Plot(xm, "avg",colorBlack ,1|4096);
Plot(xn1,"",colorDarkGreen,1|4096);
Plot(xn2,"",colorBrown,1|4096);
Clr = IIf(V>Ref(V,-1),29,32);
Plot(V,"vol",Clr,2+4);
PcntInc = NumToStr((V-xm)/xm*100,2);
_SECTION_END();
Below is the formula of volume for amibroker along with standard deviation bands.
I am not good with metastock coding. Can somebody please covert the formula for metastock.
help appreciated.
GraphXSpace = Param("Xspace", 10, 2, 20, 1);
// vol with std
LBP = Param("Look Back", 30, 0, 150,1 );
Mean = MA(ln(V),LBP);
StD = StDev(ln(V),LBP);
xp3 = exp(mean + 3*std); //3 band
xp2 = exp(mean + 2*std); //2 nd band
xp1 = exp(mean + 1*std); // 1st band
xm = exp(mean); // avg
xn1 = exp(mean - 1*std); // -1 band
xn2 = exp(mean - -2*std); //-2 band
Plot(xp3,"", colorCustom12 ,1|4096);
Plot(xp2,"", colorSeaGreen,1|4096);
Plot(xp1,"", colorRed,1|4096);
Plot(xm, "avg",colorBlack ,1|4096);
Plot(xn1,"",colorDarkGreen,1|4096);
Plot(xn2,"",colorBrown,1|4096);
Clr = IIf(V>Ref(V,-1),29,32);
Plot(V,"vol",Clr,2+4);
PcntInc = NumToStr((V-xm)/xm*100,2);
_SECTION_END();