- Springfellow-Hawk
- Messages : 539
Date d'inscription : 08/11/2009
Age : 50
Localisation : South beach california
TTT d'Abraham
8/2/2010, 8:22 am
Un indicateur de tendance , pour se positionner dans le sens de la tendance.
Ici pas de point d'entrée , simplement une indicatation lorsque les cours évoluent au dessus du trend TTT,par exemple se positionner a l achat lors d'un replie , d'une congestion au dessus du trend.
Voici le code source de l'indicateur TTT développé par Christophe Sangouard du site O-BO:
ATRMult = 3
ATRLen = 10
ONCE HClose = Close
ONCE LClose = Close
ONCE Value2 = HClose - Value1
Value1 = ATRMult * average[ATRLen](AverageTrueRange[ATRLen])
IF CLOSE > HClose THEN
HClose = CLOSE
ENDIF
IF CLOSE < LClose THEN
LClose = CLOSE
ENDIF
IF CLOSE <= Value2 THEN
Value2 = LClose + Value1
HClose = CLOSE
ELSE
Value2 = HClose - Value1
LClose = CLOSE
ENDIF
Ici pas de point d'entrée , simplement une indicatation lorsque les cours évoluent au dessus du trend TTT,par exemple se positionner a l achat lors d'un replie , d'une congestion au dessus du trend.
Voici le code source de l'indicateur TTT développé par Christophe Sangouard du site O-BO:
ATRMult = 3
ATRLen = 10
ONCE HClose = Close
ONCE LClose = Close
ONCE Value2 = HClose - Value1
Value1 = ATRMult * average[ATRLen](AverageTrueRange[ATRLen])
IF CLOSE > HClose THEN
HClose = CLOSE
ENDIF
IF CLOSE < LClose THEN
LClose = CLOSE
ENDIF
IF CLOSE <= Value2 THEN
Value2 = LClose + Value1
HClose = CLOSE
ELSE
Value2 = HClose - Value1
LClose = CLOSE
ENDIF
- Springfellow-Hawk
- Messages : 539
Date d'inscription : 08/11/2009
Age : 50
Localisation : South beach california
Re: TTT d'Abraham
28/2/2010, 9:33 pm
manque la derniere ligne du code---->
Col = SGN (Value2 - Close)
Col = SGN (Value2 - Close)
- Springfellow-Hawk
- Messages : 539
Date d'inscription : 08/11/2009
Age : 50
Localisation : South beach california
Re: TTT d'Abraham
28/2/2010, 9:35 pm
en fait 2 ligne :---->
RETURN value2 COLOURED BY (Col) AS "Abraham Trend"
RETURN value2 COLOURED BY (Col) AS "Abraham Trend"
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum