This so called renko indicator is an attempt to draw renko boxes on the price chart itself. It uses only close price so if a new box appear, wait for the current candle to close before making any trading decision. I would make another instance of this renko indicator with high and low values of candles instead.
// boxsize = 50
once topprice = close
once bottomprice = close - boxsize*ticksize*2
if(close > topprice + boxsize*2) THEN
topprice = close
bottomprice = topprice - boxsize*2
ELSIF (close < bottomprice - boxsize*2) THEN
bottomprice = close
topprice = bottomprice + boxsize*2
topprice = topprice
bottomprice = bottomprice
RETURN topprice as "box top", bottomprice as "bottom box"
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 :