Renko boxes on price chart

Category: Indicators By: Nicolas Created: October 14, 2015, 11:05 AM
October 14, 2015, 11:05 AM
Indicators
8 Comments

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.

//parameters :
// 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
ELSE
 topprice = topprice
 bottomprice = bottomprice
ENDIF


RETURN topprice as "box top", bottomprice as "bottom box"

 

Download
Filename: Renko-boxes-on-price.itf
Downloads: 427
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...