Forums › ProRealTime English forum › ProOrder support › Discussion re Pure Renko strategy › Reply To: Discussion re Pure Renko strategy
04/24/2020 at 12:51 PM
#127794
When you wish there was a delete previous post button… 😀
This is the working Renko Moving Average Indicator:
Renko Moving Average Indicator
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
//Renko moving average Boxsize = 100 renkoMax = ROUND(close / boxSize) * boxSize renkoMin = renkoMax - boxSize once usema=1 if usema then once priceMAperiod=10 count=0 sum=0 lastbox=0 for i = 0 to barindex do if renkomax[i]<>lastbox then lastbox=renkomax[i] count=count+1 median=((renkomax[i]+renkomin[i])/2) sum=sum+median if count=priceMAperiod+1 then sum=sum-last last=median break // endif endif next once avg=undefined if last<>last[1] then avg = sum/priceMAperiod endif endif Return avg coloured(255,255,0) style(line, 2) as "Renko Moving Average" |