This indicator will be OBE as soon as the new version of prorealtime will be released (Renko charts will have volumes showing according to the teaser) but it will be still useful for all the traders that don’t want to switch completely to a chart that ignore time. The indicator draws the volume of the exchanged shares for the period depicted by the box.
Blue skies!!
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
//percbox=1 //mm=3 //period=14 if barindex>1 and barindex<=(period) then boxsize=average[barindex](range) else boxsize = percbox*average[period,MM](TR(close)) endif if barindex<=1 then boxsize=range endif once topprice = high once bottomprice = topprice-boxsize//close - boxsize i=1 while (close>topprice+(i*boxsize)) do if (close<topprice+((i+1)*boxsize)) then topprice=topprice+i*boxsize bottomprice=topprice-boxsize endif i=i+1 wend j=1 while (close<bottomprice-(j*boxsize)) do if (close>bottomprice-((j+1)*boxsize)) then bottomprice=bottomprice-j*boxsize topprice=bottomprice+boxsize endif j=j+1 wend if topprice>topprice[1] then green=210 red=0 long=1 if long=1 and long[1]=-1 then DRAWTEXT("#con#", barindex, bottomprice[1]*0.995) coloured (210,0,0) con=round(volume/1000) ref=con endif if long=1 and long[1]=1 then DRAWTEXT("#ref#", barindex, bottomprice[1]*0.995) coloured (100,100,100) ref=round(volume/1000) endif endif if topprice<topprice[1] then green=0 red=210 long=-1 if long=-1 and long[1]=1 then DRAWTEXT("#con#", barindex, topprice[1]*1.005) coloured (0,0,200) con=round(volume/1000) endif if long=-1 and long[1]=-1 then DRAWTEXT("#ref#", barindex, topprice[1]*1.005) coloured (100,100,100) ref=round(volume/1000) endif endif DRAWRECTANGLE(barindex, topprice, barindex+1, bottomprice) coloured (red,green,0) if topprice=topprice[1] then con=con+round(volume/1000) ref=ref+round(volume/1000) endif RETURN |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Good job Gabri, I confirm that with the new ProRealTime v11, everyone will be able to use indicators on Renko charts. I’m in beta phase testing and it offers a lot of great new possibilities! I can not wait for everyone to benefit! 🙂
can u just help me with the exact definition of percbox , mm and period to understand will allow me to amend correctly for my needs – many thanks for your feedback