Skip to main content

Posts

Showing posts from March, 2019

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...