- Springfellow-Hawk
- Messages : 539
Date d'inscription : 08/11/2009
Age : 50
Localisation : South beach california
Magic trend (modifié)
8/2/2010, 8:07 am
Peut servir de point d'entrée et de sortie.
Il est basé comme sur l’ATR, mais également sur le CCI:
Le Magic Trend proprement dit est la courbe verte et rouge sur le graphique.
Si celle-ci marque un plus haut, on est en trend haussier, si celle-ci marque un plus bas, on est sur un trend baissier. Si le Magic Trend reste stable, on reste dans la tendance initiale.
code:
if (CCI[50](typicalPrice)>=0) then
magic=Low[0]-AverageTrueRange[5](close)
endif
if (CCI[50](typicalPrice)<0) then
magic=High[0]+AverageTrueRange[5](close)
endif
if (CCI[50](typicalPrice)>=0 and magic magic=magic[1]
endif
if (CCI[50](typicalPrice)<0 and magic>magic[1]) then
magic=magic[1]
endif
return magic
Il est basé comme sur l’ATR, mais également sur le CCI:
Le Magic Trend proprement dit est la courbe verte et rouge sur le graphique.
Si celle-ci marque un plus haut, on est en trend haussier, si celle-ci marque un plus bas, on est sur un trend baissier. Si le Magic Trend reste stable, on reste dans la tendance initiale.
code:
if (CCI[50](typicalPrice)>=0) then
magic=Low[0]-AverageTrueRange[5](close)
endif
if (CCI[50](typicalPrice)<0) then
magic=High[0]+AverageTrueRange[5](close)
endif
if (CCI[50](typicalPrice)>=0 and magic
endif
if (CCI[50](typicalPrice)<0 and magic>magic[1]) then
magic=magic[1]
endif
return magic
- Springfellow-Hawk
- Messages : 539
Date d'inscription : 08/11/2009
Age : 50
Localisation : South beach california
Exemple point d entree , (cloture bougies au dessus ou au dessous)
8/2/2010, 8:10 am
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|