Skip to main content

Posts

Vwap

_SECTION_BEGIN( "VWAP"); Bars_so_far_tod ay = 1 + BarsSince( Day() != Ref(Day(), -1)); StartBar = ValueWhen(TimeN um() == 091500, BarIndex()); TodayVolume = Sum(V,Bars_so_f ar_today); IIf (BarIndex() >= StartBar, VWAP = Sum (C * V, Bars_so_far_tod ay ) / TodayVolume,0); Plot (VWAP,"VWAP",co lorOrange, styleThick); _SECTION_END(); dn = DateTime(); sd = SelectedValue( dn ); start = dn == sd; mp = C; PV = mp * V; CV = Cum( V ); VSS = CV - ValueWhen( start, CV ); denom = IIf( VSS == 0, 1, VSS ); num = Cum( PV ) - ValueWhen( start, Cum( PV ) ); M = IIf( BarsSince( start ), num/denom, mp ); Plot( C, Date() + " Close", colorYellow, styleBar ); Plot( M, "M" + _PARAM_VALUES() , colorYellow, styleThick );

1st hour hi low

SetChartOptions (0,chartShowArr ows|chartShowDa tes); _N(Title = StrFormat("{{NA ME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); hv = V> 3*(MA(V,20)); colv= IIf(hv,colorCus tom12,IIf(Insid e(),colorGold,c olorBlack)); Plot( C, "Close", colv, styleNoTitle | ParamStyle("Sty le") | GetPriceStyle()  ); tn = TimeNum(); time1 = tn >= 091500 AND tn <= 101459; time2 = tn >= 101500 AND tn <= 111459; time3 = tn >= 111500 AND tn <= 121459; time4 = tn >= 121500 AND tn <= 131459; thigh1 = IIf(time1, HHV(H, BarsSince(time1  == False)), H); thigh1 = IIf(time1, thigh1, Ref(thigh1, -BarsSince(time 1))); thigh2 = IIf(time2, HHV(H, BarsSince(time2  == False)), H); thigh2 = IIf(time2, thigh2, Ref(thigh2, -BarsSince(time 2))); thigh3 = IIf(time3, HHV(H, BarsSince(time3  == False)), H); thigh3 = IIf(time3, thigh3, Ref(thigh3, -BarsSince(time 3))); thigh4 = IIf(time4, ...

Icchi Band

WH=HHV(High,5); WL=LLV(Low,5); WBP=(HHV(High,5 )+LLV(Low,5)+Cl ose)/3; RBAND=ValueWhen (Cross(MA(WBP,2 5),WBP),HHV(WH, 25),1); SBAND=ValueWhen (Cross(WBP,MA(W BP,25)),LLV(WL, 25),1); MSWNG=(RBAND+SB AND)/2; SetChartOptions (0,chartShowArr ows|chartShowDa tes); Plot( C, "Close", ParamColor("Col or", colorBlack ), styleNoTitle | ParamStyle("Sty le") | GetPriceStyle()  );  Plot(RBAND,"RES ",colorRed,styl eLine|styleThic k); Plot(SBAND,"SUP P",colorGreen,s tyleLine|styleT hick); GfxSelectFont(" Tahoma", Status("pxheigh t")/22 ); GfxSetTextAlign (6.5 );// center alignment GfxSetTextColor ( ColorHSB( 42, 42, 42 ) ); GfxSetBkMode(0) ; // transparent GfxTextOut( " " +Close, Status("pxwidth ")/ 2, Status("pxheight")/ 6 ); GfxTextOut( Name(), Status("pxwidth ")/ 2, Status("pxheight")/ 12 ); //15minscloud; SL = ( HHV( H, 78 ) + LLV( L, 78) )/2; TL = ( HHV( H, 27) + LLV( L,2...

Atr Range

// Downloaded From  www.WiseStockTr ader.com _SECTION_BEGIN( "ERO ATR BUY SELL"); ero = Param("ATR multiple", 2.8, 0.5, 10, 0.1 )*Param("ATR period", 10, 3, 50 ); ero_col=ParamCo lor( "Color", colorCycle ); r=HHV(H,ero); s=LLV(L,ero); ab=IIf(H>Ref(r, -1),1,IIf(L<Ref (s,-1),-1,0)); ac=ValueWhen(ab !=0,ab,1); sl=IIf(ac==1,s, r); Plot(sl, _DEFAULT_NAME() , ero_col, styleStaircase) ; // or styleaArea Buy=Cross(H,sl) ; Sell=Cross(sl,L ); PlotShapes(IIf( Buy, shapeSquare, shapeNone),colo rGreen, 0, L, Offset=-40); PlotShapes(IIf( Buy, shapeSquare, shapeNone),colo rLime, 0,L, Offset=-50); PlotShapes(IIf( Buy, shapeUpArrow, shapeNone),colo rWhite, 0,L, Offset=-45); PlotShapes(IIf( Sell, shapeSquare, shapeNone),colo rRed, 0, H, Offset=40); PlotShapes(IIf( Sell, shapeSquare, shapeNone),colo rOrange, 0,H, Offset=50); PlotShapes(IIf( Sell, shapeDownArrow,  shapeNone),colo rWhite, 0,H, Offset=-45); _SECTION_END(); _SECTION_BEGIN( ...

Pivot with DEMAND

_SECTION_BEGIN( "Supply and Demand Zone"); SetChartOptions (0,chartShowArr ows|chartShowDa tes); _N(Title = StrFormat("{{NA ME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, "Close", ParamColor("Col or", colorDefault ), styleNoTitle | ParamStyle("Sty le") | GetPriceStyle()  ); g = Param( "No.of Lines", 7, 1, 7, 1 ); x = Cum( 1 ); pk = BarsSince( H >= Ref( H, -1 ) AND H >= Ref( H, -2 ) AND H >= Ref( H, -3 ) AND H >= Ref( H, -4 ) AND H >= Ref( H, 1 ) AND H >= Ref( H, 2 ) AND H >= Ref( H, 3 ) AND H >= Ref( H, 4 ) ) == 0; tk = BarsSince( L <= Ref( L, -1 ) AND L <= Ref( L, -2 ) AND L <= Ref( L, -3 ) AND L <= Ref( L, -4 ) AND L <= Ref( L, 1 ) AND L <= Ref( L, 2 ) AND L <= Ref( L, 3 ) AND L <= Ref( L, 4 ) ) == 0; px1 = LastValue( ValueWhen( pk, x, 1 ) ); px2 = LastValue( ValueWhen( Pk, x, 2 ) ...