![]() ![]() Plot(IIf(numberOfBars>= xab+1,RT78_6,-1e10), "S2 78.6% Retr.",colorDarkRed, styleLine | styleNoTitle |styleDots) Plot(IIf(numberOfBars>= xab+1,RT61_8,-1e10), "S1 61.8% Retr.",colorDarkRed, styleLine | styleNoTitle | styleDots) Plot(IIf(numberOfBars>= xab+1,RT50_0,-1e10), "ZR 50.0% Retr.",colorBlue, styleLine | styleNoTitle | styleDots) Plot(IIf(numberOfBars>xa, ya,-1e10) ,"Bottom" ,colorBrown, 1+8) AddColumn(CdDoji( )OR CHammer(),"Candle" ,1.0) ![]() InZone = Cya //use it for filter to receive only signals that are in in the Retracement zone.ĪddColumn(Trough_ReTest,"TR- Test",1.0) Trough_ReTest = abs((L/ya)-1) xa //upSwing Yb = LastValue(ValueWhen (PR,H,1)) //y (High) last peak Xb = LastValue(ValueWhen (PR,numberOfBars,1)) //x from last peak Ya = LastValue(ValueWhen (PS,L,1)) //y (Low) last trough Xa = LastValue(ValueWhen (PS,numberOfBars,1)) //x from last trough Title = Title + StrFormat("AVGMOV %g|%g|%g Offset = 5 //Recommended to use two sheets: one with 5 and another with 7, or maybe other offset valueĪvgmov = Offset * MA (abs(ROC(C,1)) ,20) PlotOHLC(O ,H ,L ,C ,"Price",IIf(C>O,colorGreen,colorRed),styleCandle) _N(Title = StrFormat("", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )) SetChartOptions(0,chartShowArrows|chartShowDates) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |