| Envoyé par Esbee le 11 Décembre 2005 à 16:17
|
|
|
Hello,
Ligne rouge sous la jaune:
inputs: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ) ;
variables: MyMACD( 0 ), MACDAvg( 0 );
MyMACD = MACD( Close, FastLength, SlowLength ) ;
MACDAvg = XAverage( MyMACD, MACDLength ) ;
If MyMACD crosses under MACDAvg then ..........
Ligne rouge croise par le haut:
inputs: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ) ;
variables: MyMACD( 0 ), MACDAvg( 0 );
MyMACD = MACD( Close, FastLength, SlowLength ) ;
MACDAvg = XAverage( MyMACD, MACDLength ) ;
If MyMACD crosses over MACDAvg then ..........
Ligne bleue positive ou négative:
inputs: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ) ;
variables: MyMACD( 0 ), MACDAvg( 0 ), MACDDiff( 0 ) ;
MyMACD = MACD( Close, FastLength, SlowLength ) ;
MACDAvg = XAverage( MyMACD, MACDLength ) ;
MACDDiff = MyMACD - MACDAvg ;
If MACDDiff > MACDDiff[1] then (pour positif)
If MACDDiff < MACDDiff[1] then (pour negatif)
Le plus haut haut des 5 dernières périodes:
inputs: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ) ;
variables: MyMACD( 0 );
MyMACD = MACD( Close, FastLength, SlowLength ) ;
Plot1(Highest(MyMACD, 5), "Le plus haut");
Plot2(Lowest(MyMACD, 5), "Le plus bas");
J'espère que ça a pu aider.
Cordialement.
Esbee
|