_SECTION_BEGIN("V.

Spiker"); LBP = Param("WMA Vol Period", 15, 1, 500, 1 ); //Volume Change Volwma=WMA(V,LBP); Volchange=(((V-Volwma)/Volwma)*100); Vol=(ROC(V,1)); Plot(Volwma, "AvgVol", ParamColor( "AvgColor", colorGold ),ParamStyle("AvgStyle",styleLine|styleDots,maskAll),1|4096); upbar = C > Ref(C,-1); downbar = C< Ref(C,-1); O = IIf(downbar, V, 0); C = IIf(downbar, 0,V); L=0; H = V; SetBarFillColor( IIf(C > Ref(C,-1), ParamColor("Up Color",ColorRGB(1, 50, 250 )),ParamColor("Down Color",ColorRGB(150, 1, 100 )))); PlotOHLC( O,H,L,C, "", IIf(C > Ref(C,-1), colorWhite,colorRed ), ParamStyle("CandleStyle",styleCandle,maskAll)); _SECTION_END(); _SECTION_BEGIN("Spiker Shadow"); C1 = Ref(C, -1); uc = C > C1; dc = C <= C1; ud = C > O; dd = C <= O; green = 1; blue = 2; yellow = 3; red = 4; white = 5; VType = IIf(ud, IIf(uc, green, yellow), IIf(dd, IIf(dc, red, blue), white)); /* gv /* yv /* rv /* bv green volume: up-day and up-close*/ = IIf(VType == green, V, 0); yellow volume: up-day but down-close */ = IIf(VType == yellow, V, 0); red volume: down-day and down-close */ = IIf(VType == red, V, 0); blue volume: down-day but up-close */ = IIf(VType == blue, V, 0);

uv = gv + bv; uv1 = Ref(uv, -1); /* up volume */ dv = rv + yv; dv1 = Ref(dv, -1); /* down volume */ VolPer = Param("Adjust Vol. MA per.", 10, 1, 255, 1); ConvPer = Param("Adjust Conv. MA per.", 4, 1, 255, 1); MAuv = TEMA(uv, VolPer ); mauv1 = Ref(mauv, -1); MAdv = TEMA(dv, VolPer ); madv1 = Ref(madv, -1); MAtv = TEMA(V, VolPer );//total volume Converge = (TEMA(MAuv - MAdv, ConvPer)); Converge1 = Ref(Converge, -1); ConvergeUp = Converge > Converge1; ConvergeOver = Converge > 0; rising = ConvergeUp AND ConvergeOver; falling = !ConvergeUp AND ConvergeOver; upshadow=ParamColor("UpShadowColor",colorDarkYellow ); downshadow=ParamColor("DownShadowColor",colorDarkGrey ); riseFallColor = IIf(rising, upshadow,downshadow); Plot(IIf(rising OR falling, 1, 0), "", riseFallColor, styleHistogram|styleArea| styleThick|styleOwnScale|styleNoLabel);

-1) AND High-Ref(High.1)-O)*Vm. Ref(Low. layer = 0. 21.1.2)+")% ABOVE its(15) days WMA".5). High-Ref(High.-1) AND High<=Ref(High.0).0)). colorWhite.""). Title = EncodeColor(colorYellow)+ ""+ Title = Name ()+ " | " +EncodeColor(colorWhite) +Date()+ " | " +EncodeColor(colorWhite)+ "Total Vol: " +EncodeColor(colorYellow) +WriteVal(V. PlotShapes( IIf( offset = 13). offset = Buy. colorLime. ///////////////////////////////////////// ///////////////////////////////////////// _SECTION_BEGIN("Title").0)+" |"+EncodeColor(colorTurquoise)+ " Yearly : "+WriteVal(YAV. Sell= (H-C)*Vm + (O-L)*Vm + IIf(C<O.format=1)+ " | " +EncodeColor(colorWhite)+ "Vol Change : " + WriteIf(Vol>0. MinDM = IIf(Low<Ref(Low.1) .3)-Wilders(Sell.(O-C)*Vm. Buy.1.1) .-1)-Low. 23.1) . _SECTION_BEGIN("Volume Oscillator"). " Today's Volume is("+WriteVal(Volchange. 1. layer = 0.-1)<Ref(Low.-1)."") +EncodeColor(colorRed)+WriteIf(V < Volwma. yposition = H.3).High-Ref(High.1))*Vm."") +"\n" +EncodeColor(colorWhite)+"Average Volume : "+EncodeColor(colorTeal)+" Weekly : "+WriteVal(WAV. 15.-1).1).-1).-1)>Ref(Low. offset = Buy.0) + WriteIf(Buy.0).0)+" |"+EncodeColor(colorSeaGreen)+ " Monthly : "+WriteVal(AMV. YYWA= Prec(((V-YAV)/YAV)*100. MMWA= Prec(((V-AMV)/AMV)*100.-1)>O. PlotShapes( IIf( 6).1.260). // Weekly & Monthly Average Volume WAV= MA(V. shapeNone ). yposition = H._SECTION_END().format=1)+ " | " +EncodeColor(colorBrightGreen)+WriteIf(V > Volwma.0)."") +"\n" +EncodeColor(colorWhite)+"WMA("+ LBP+") Vol: " +EncodeColor(colorYellow) +WriteVal(Volwma. IIf(High>Ref(High.0) + PlusDM*Vm + IIf(Ref(C. Ref(Low.(O-Ref(C.-1)-Low.-1)-Low.format=1. Wm=Wilders(Wilders(Buy. " " + WriteVal(V.2)+ "% | " +EncodeColor(colorWhite) + "V-Spiker :" +WriteIf(Buy. colorBrightGreen. shapeNone ). PlusDM= IIf(High>Ref(High. 0)).3).-1)-Low."")+WriteIf(Sell. Title = Name() + _SECTION_END().-1) AND Low<Ref(Low.(Ref(C. Buy= (C-L)*Vm+ (H-O)*Vm + IIf(C>O. ///////////////////////////////////////////// AMV= MA(V. Buy=Cross(Wm. Vm=log(EMA(V.EncodeColor(colorRed)+"V-Spiker : Sell | "."Today's Volume is("+WriteVal(Volchange.0) .Wm).format=1.-1)AND High-Ref(High.Buy".-1) AND Low<Ref(Low. yposition = H.EncodeColor(colorBrightGreen).2)+")% BELOW its("+LBP+") days WMA". PlotShapes( IIf( 6). shapeNone )." |\\c33 Volume :.IIf(High>Ref(High.3)). VVWA= Prec(((V-WAV)/WAV)*100.(C-O)*Vm. layer = 0.-1) AND Low>=Ref(Low.0) + MinDM*Vm + IIf(Ref(C.format=1.EncodeColor(colorRed)) +WriteVal(Vol. ///////////////////////////////////// YAV= MA(V.-1)<O.EncodeColor(colorBrightGreen)+" Buy | ". Sell=Cross(0.20).

+"\n" +EncodeColor(colorWhite)+"Today's Volume :"+EncodeColor(colorTeal)+" From WAV = "+VVWA+" % "+" |"+EncodeColor(colorSeaGreen)+ " From MAV = "+MMWA+" % "+" |"+EncodeColor(colorTurquoise)+ " From YAV = "+YYWA+" % " .1).-6. .10.-10. _SECTION_END(). GraphXSpace=Param("Graph Space".

Sign up to vote on this title
UsefulNot useful