Trinity Impulse

Category: Indicators By: Nicolas Created: December 10, 2017, 2:27 PM
December 10, 2017, 2:27 PM
Indicators
5 Comments

The “Trinity Impulse” indicator tells you when to enter the market and “flat” (ranging) periods.

When the indicator is zero, it indicates a neutral trend.

The “V” shaped pulses indicate when to enter the market in the opposite direction. Finally, the “U” shaped pulses indicate an entry in the same direction.

Converted from an MT4 indicator by a request in the Italian forum.

//PRC_Trinity Impulse | indicator
//10.12.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//Converted from MT4 indicator

// --- settings
//nPeriod = 5
//nLevel  = 34
// --- end of settings

wprice=(high + low + close + close)/4

c = cci[nPeriod](wprice)
f = weightedaverage[nPeriod](forceindex(wprice))
//----
if(c * f >= nLevel) then
 if(c > 0 and  f > 0) then
  iCF = 1
 endif
 if(c < 0 and  f < 0) then
  iCF = -1
 endif
else
 iCF = 0
endif

return iCF as "Trinity Impulse"

Download
Filename: PRC_Trinity-Impulse.itf
Downloads: 266
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...