Candle strength

Category: Indicators By: Nicolas Created: October 29, 2017, 6:49 PM
October 29, 2017, 6:49 PM
Indicators
5 Comments

The candle strength indicator measure the “strenght” of the current candlestick by comparing its OHLC value between them.

Red and green histogram are created depending of the direction of the candlestick (bullish or bearish ones).

Code converted from MT4 version by a request in the ProBuilder french forum.

//PRC_Candle Strength| indicator
//26.10.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

value = 100*(Open-Low)/(High-Low)-50

if (Close > Open) then
 buffer1 = value
 buffer2 = 0
else
 buffer1 = 0
 buffer2 = value
endif

return buffer1 coloured(0,255,0) style(histogram), buffer2 coloured(255,0,0) style(histogram),0 style(dottedline),50 style(dottedline),-50 style(dottedline)

 

Download
Filename: PRC_Candle-Strength-1.itf
Downloads: 214
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...