First indicator:
It uses moving averages, and following their knitting with the price itself gives an indication of the cycle. Trend indicator inspired by the diffusion curve innovation of Evrett Rogers (innovator, first follower, early majority, late majority, latecomer).
It gives an indication of the current cycle and thus maximize the probability of gain in this placing when the cycle is (yellow, opportunity) or (blue, reversal of trend).
From a more technical view, the opportunity phase is the the opening of the stochastic of the unit of higher timeframe (in other words one could have put indicator = stochastic with [50,10] and style (point, 0.5))
//Indicateur tendance
MM20=average[20](close)
MM50=average[50](close)
MM100=average[100](close)
MM200=average[200](close)
//rouge (baissier prix sous moyenne mobile 200)
c1= (close<MM200)
if c1 then
Indicateur=1
r=250
g=0
b=0
ENDIF
//orange( rebond technique)
c2= c1 and(MM20<close)
if c2 then
Indicateur=1
r=255
g=160
b=0
ENDIF
//jaune (phase1 nouveau cycle)
c3= c1 and(MM50<close)and(mm50<mm200)and(close<mm200)
if c3 then
Indicateur=1
r=800
g=250
b=0
ENDIF
//vert fluo ( phase 2 nouveau cycle)
c4= (MM200<close)and(MM50<close)and(MM50<MM200)
if c4 then
Indicateur=1
r=0
g=300
b=0
ENDIF
//vert foncé ( au dessus de tte moyenne mobile, cycle mur)
C5= (MM200<MM50)and(MM50<close)and(MM20<close)
if c5 then
Indicateur=1
r=0
g=150
b=0
ENDIF
//bleu (retournement de tendance)
c6= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM100<close)and(MM50<MM100)
if c6 then
Indicateur=1
r=0
g=0
b=300
ENDIF
//bleu (retournement de tendance 2 )
c6bis= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM50<close)and(MM100<MM50)
if c6bis then
Indicateur=1
r=0
g=0
b=300
ENDIF
//gris (phase 5 affaiblissement ou retournement à la baisse, neutre)
c7= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)
if c7 then
Indicateur=1
r=150
g=150
b=150
ENDIF
//bleu bouteille (consolidation)
c8=(MM200<MM50)and(MM200<close)and(MM100<close)and((close<MM50)or(close<MM20))
if c8 then
Indicateur=1
r=0
g=250
b=200
ENDIF
RETURN indicateur coloured(r,g,b)style(histogram)
The second code is trading signals indicator telling us when to buy or sell the market:
Below the MM200 there is no buy signal. It starts in the technical rebound by plotting a small blue histogram and that until the opportunity phase, its corresponds to the price that hits the upper Bollinger and then gives a signal that an interest is brought to the title (the probability of winning is maximum). Then the signal becomes green, and the larger the histogram, the stronger the signal. There are also signals in the code related to the crossing of the MM50, this means that the macd returns the line 0 is that there is a probable bullish recovery.
Indicateur=0
MM20=average[20](close)
MM50=average[50](close)
MM30E=exponentialaverage[30](close)
MM200=average[200](close)
MM100=average[100](close)
MM4=average[4](close)
p = 20
dev = 2
BollSup =Average[p](close)+dev*std[p](close)
BollInf = Average[p](close)-dev*std[p](close)
c000= (MM50<MM200)and(MM30E<MM50)and(MM200<close)and(MM4<MM200)
if c000 then
Indicateur=1
r=0
g=150
b=0
ENDIF
c00= (MM200<close) and(MM30E<MM50)and( MM50<close)and(MM4<MM50)
if c00 then
Indicateur=1
r=0
g=150
b=0
ENDIF
c0= (MM200<close) and (MM200<MM50)and(MM50<MM30E)and(MM30E<close)and(MM4<MM30E)
if c0 then
Indicateur=1
r=0
g=150
b=0
ENDIF
//vert, foncé signal achat
c1= (BollSup<close)and (MM200<MM50)and(MM50<close)and(MM20<close)
if c1 then
Indicateur=1.2
r=0
g=150
b=0
ENDIF
//vert, fonce signal achat tendance precoce (vert fluo)
c2biss= (BollSup<high) and (MM200<close)and(MM50<close)and(MM50<MM200)and(close<open)
if c2biss then
Indicateur=0
r=0
g=0
b=0
ENDIF
//vert, fonce signal achat tendance precoce (vert fluo)
c2bis= (BollSup<close) and (MM200<close)and(MM50<close)and(MM50<MM200)
if c2bis then
Indicateur=1
r=0
g=150
b=0
ENDIF
//bleu, signal préachat pendant rebond technique (orange)
c3= (close<MM200)and(MM20<close)and (BollSup<high)
if c3 then
Indicateur=0.3
r=0
g=0
b=300
ENDIF
//bleu, signal preachat pendant phase relance (jaune)
c4=(MM50<close)and(mm50<mm200)and(close<mm200)and (BollSup<high)
if c4 then
Indicateur=0.5
r=0
g=0
b=300
ENDIF
//bleu, signal preachat pendant phase de retournement (bleu)
c5= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM100<close)and(MM50<MM100)and (BollSup<high)
if c5 then
Indicateur=0.5
r=0
g=0
b=300
ENDIF
//bleu, signal preachat tendance neutre (gris)
c7= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)and (BollSup<high)
if c7 then
Indicateur=0.3
r=0
g=0
b=300
ENDIF
//orange, signal prevente en tendance consolidation (vert bouteille)
c8bis=(MM200<MM50)and(MM200<close)and(MM100<close)and((close<MM50)or(close<MM20))and(low < BollInf)
if c8bis then
Indicateur=0.5
r=255
g=165
b=0
ENDIF
//orange, signal prevente en tendance consolidation (vert bouteille)
c8bis=(MM200<MM50)and(MM200<close)and(MM100<close)and((MM50<close)and(close<MM20))and( BollInf<close)and(low < BollInf)
if c8bis then
Indicateur=0.3
r=255
g=165
b=0
ENDIF
//orange, signal prevente en tendance consolidation (vert bouteille)
c8biss=(MM200<MM50)and(MM200<close)and(MM100<close)and((MM50<close)and(close<MM20))and( close<BollInf)
if c8biss then
Indicateur=0.3
r=255
g=165
b=0
ENDIF
//orange, signal prevente en tendance neutre (gris)
c9= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)and (low<BollInf)and(MM200<low)
if c9 then
Indicateur=0.5
r=255
g=165
b=0
ENDIF
//rouge, signal prevente en tendance neutre (gris)
c9bis= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)and (low<BollInf)and(low<MM200)
if c9bis then
Indicateur=0.5
r=255
g=165
b=0
ENDIF
//orange, signal prevente en tendance neutre (gris)
c9biss= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)and (close<BollInf)
if c9biss then
Indicateur=0.5
r=255
g=165
b=0
ENDIF
//rouge, signal vente en tendance declin (rouge)
c10= (close<MM200)and (low<BollInf)
if c10 then
Indicateur=0.5
r=255
g=0
b=0
ENDIF
//rouge, signal vente en tendance declin (rouge)
c10bis= (close<MM200)and (close<BollInf)
if c10bis then
Indicateur=1.2
r=255
g=0
b=0
ENDIF
//orange, signal vente en tendance declin (rouge)*****
c10biss= (MM200<close)and (low<BollInf)and(MM50<close)
if c10biss then
Indicateur=0.3
r=255
g=165
b=0
ENDIF
//orange, signal prevente en tendance consolidation (vert bouteille)
c8bisss=(MM200<MM50)and(MM200<close)and(MM100<close)and((MM50<close)and(close<MM20))and( BollInf<close)and(low<BollInf)
if c8bisss then
Indicateur=0.3
r=255
g=165
b=0
ENDIF
//vert bouteille signal achat
c8bisbis=(MM200<MM50)and(MM200<close)and(MM100<close)and((close<MM50)or(close<MM20))and( BollSup<high)and(open<close)
if c8bisbis then
Indicateur=0.5
r=0
g=0
b=300
ENDIF
RETURN indicateur coloured(r,g,b)style(histogram)
You must be logged in to post a comment.
Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n'est pas une mince affaire pour un débutant comme moi!! je me dois de remercier ceux et celles qui se donnent la peine d'établir et de les partager, des indics, screeners, backtest, etc....c'est un travail de Titan (pour ma part!!).... je trouve cet indicateur très pertinent.... Merci à tous!
Bonsoir, je découvre PRT et je n'arrive pas a afficher le meme résultat pour l'indicateur de tendance. J'ai juste une ligne droite qui change de couleur. Je n'arrive pas a avoir le graphique sous forme d'histogramme. Comment faire ? Merci pour votre aide
Hi all, nice indicator, only i dont get the 'trendindicator' with the colorfull stripes working on the end of day email S&P.. I only see a box below with a horizontal line with colourchanges.. What should i do? Many thanks!
a premiere vue la chaine youtube n'éxiste plus
Bonjour Anthon ... pourrais-tu me communiquer l'adresse ou le nom de ta chaine YOUTUBE ... je ne la trouve pas ?
Bonsoir Anthon et merci pour les indicateurs qui semble particulièrement pertinents ... Pourrais-tu nous indiquer où trouver les screener de la vidéo qui vont avec les indicateurs ... mais en version "copier-coller" ou "importer" ;-) Bon WE
Bonjour Anton ... j'ai un message d'erreur ... PRT V10.3 ou V11... ne semble pas reconnaître "(proche)" ... "ligne 3 commande inconnue" ?
Great combination, easy to use and quite accurate.
Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre bleu (retournement de tendance) et bleu (retournement de tendance 2) ? Quelqu'un pourrait-il éclairer ma lanterne ? Est-il question d'un retournement à la baisse d'une part et à la hausse d'autre part ? Merci d'avance