ATR-Envelope
Forums › ProRealTime English forum › ProBuilder support › ATR-Envelope
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by Nicolas.
-
-
06/09/2020 at 10:46 AM #135278
I have attached a new indicater, wich I called Envelop-ATR , regrettably the name is changed in weightedaverage envelope ATR, I am not happy with that, because WMA in the code is not imported.
I had in mind before I published this indicator, that the Average used in the code (Sinpel, Exp, WMA, Wilder, zero lag, end-point, Hull ….) should be a point of discussion.
Therefore I ask to change the name will simplified to “ATR-Envelope”. In the attachement its seen clearly that almost every other average do the work.
In the attachement End-Point Average moving Up intentional
Changed123e=endpointAverage[n](close)+0.015*closee1=endpointaverage[n](high)+2.618*AverageTrueRange[14](close)+0.015*closee2=endpointaverage[n](low)-2.618*AverageTrueRange[14](close)+0.015*closeIn, the attachement TriangularAverage moving down intentional
Intentional moved down123e=triangularAverage[n](close)-0.01*closee1=triangularaverage[n](high)+2.618*AverageTrueRange[14](close)-0.01*closee2=triangularaverage[n](low)-2.618*AverageTrueRange[14](close)-0.01*close06/09/2020 at 11:39 AM #135284Hi Zigo, since the code you have posted used weighted average, it was obvious to me to named it “weighted average envelope”. Of course, you can change it to whatever centered average like you did in this topic 🙂
1 user thanked author for this post.
06/09/2020 at 11:40 AM #135285Hull version1234567891011121314151617181920//Berekening van het gemiddelde en zijn bandenonce n=21e= Weightedaverage[round(SQRT(n))]( 2*Weightedaverage[round(n/2)](close)-Weightedaverage[n](close))e1= Weightedaverage[round(SQRT(n))]( 2*Weightedaverage[round(n/2)](high)-Weightedaverage[n](high))+2.058*AverageTrueRange[14](close)e2= Weightedaverage[round(SQRT(n))]( 2*Weightedaverage[round(n/2)](low)-Weightedaverage[n](low))-2.058*AverageTrueRange[14](close)//Opwaartse koersen blauwe lijnen//Neerwaartse koersen rode lijnen//Gele rechthoeken zijwaartse koersenif e1>e1[2] thenDRAWSEGMENT(barindex, e1, barindex[2], e[2])coloured(0,125,175,255)//Stijgende koersenelsif e2<e2[1] thenDRAWSEGMENT(barindex, e2, barindex[2], e[2])coloured(204,0,155,255)//Dalende koersenelse//We tekenen een rexhthoek als de koersen zijwaarts gaanDRAWRECTANGLE(barindex,e1, barindex[1], e2[1])coloured(0,255,0,255)//Zijwaartse koersenendifreturn e as"Middellijn", e1 as"Stijgende koersen", e2 as"Dalende koersen"06/09/2020 at 11:49 AM #13529406/09/2020 at 11:57 AM #135296Triangular Version1234567891011121314151617181920//Berekening van het gemiddelde en zijn bandenonce n=21e=triangularAverage[n](close)e1=triangularaverage[n](high)+2.618*AverageTrueRange[14](close)e2=triangularaverage[n](low)-2.618*AverageTrueRange[14](close)//Opwaartse koersen blauwe lijnen//Neerwaartse koersen rode lijnen//Gele rechthoeken zijwaartse koersenif e1>=e1[2] thenDRAWSEGMENT(barindex, e1, barindex[2], e[2])coloured(0,125,175,255)//Stijgende koersenelsif e2<=e2[1] thenDRAWSEGMENT(barindex, e2, barindex[2], e[2])coloured(204,0,155,255)//Dalende koersenelse//We tekenen een rexhthoek als de koersen zijwaarts gaanDRAWRECTANGLE(barindex,e1, barindex[1], e2[1])coloured(255,255,0,255)//Zijwaartse koersenendifreturn e as"Middellijn", e1 as"Stijgende koersen", e2 as"Dalende koersen"06/09/2020 at 1:08 PM #135313 -
AuthorPosts