Nicolas

Trinity Impulse

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

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
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

tiger_man_no1
7 years ago
#

Very nice ; what is the best period input date for DAILY CHART ?

domenico
8 years ago
#

nlevel1 non modifica la curva al variare del suo valore

ribou
9 years ago
#

ah d'accord merci beaucoup

ribou
9 years ago
#

bonjour Nicolas Bravo pour l'ensemble de ton oeuvre très riche en informations de qualité j'ai téléchargé ton trinity impulse mais je n'ai qu'une simple ligne horizontale = 0 merci pour ton aide

Nicolas
9 years ago
#

Cet indicateur nécessite que l'instrument possède des Volumes. Sinon il ne pourra pas se calculer et renverra une valeur nulle.

ProRealCode ProRealCode
Loading...