Nicolas

CCI Trend

Category: Indicators By: Nicolas Created: March 5, 2019, 10:45 AM
March 5, 2019, 10:45 AM
Indicators
1 Comment
CCI Trend

Just the classic CCI but with nice colors and use of drawcandle instruction for color fills.

Someone asked me to reproduce the look and feel of this indicator from another platform some here it is shared for everyone.

//PRC_CCI trend | indicator
//05.03.2019
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

// --- settings 
period=14
// --- end of settings 

icci = cci[period](typicalprice)

if icci>100 then
 drawbarchart(0,icci,icci,0) coloured(0,130,250)
elsif icci>0 and icci<100 then
 drawbarchart(0,icci,icci,0) coloured(0,80,120)
elsif icci<-100 then
 drawbarchart(0,icci,icci,0) coloured(200,0,0)
else
 drawbarchart(0,icci,icci,0) coloured(120,0,0)
endif

return icci coloured(255,255,255) style(line,2), 100 coloured(91,91,91) style(dottedline), -100 coloured(91,91,91) style(dottedline)

 

Download
Filename: PRC_CCI-trend.itf
Downloads: 203
Nicolas
Nicolas Legend
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

Abdelkrim Maksour
8 years ago
#

hi sir is this indicator for mt4 and how i can get one .

ProRealCode ProRealCode
Loading...