Overblog
Editer l'article Suivre ce blog Administration + Créer mon blog
14 juin 2009 7 14 /06 /juin /2009 09:17
Bonjour,

suite à la demande de LouLou, voici le code du canal de Donchian avec fibos.

Je l'avais déjà posté sur Pro-at ,il y  a quelques semaines.:

http://www.pro-at.com/forums-bourse/bourse-2-27044.html

Pour Metatrader vous avez l indicateur ci-dessous:

http://www.forexfactory.com/showthread.php?t=35346

Voir aussi :

http://www.turtletrader.com/trader-donchian.html


A+

CODE :

///////////////////////////////////////

///donchian canal

//variable per = periode --par défaut =64



/////////////////////////////////////////////////

DH=highest[per](high)

DB=lowest[per](low)

//////////difference entre le plushaut et le plus bas
aa= (dh -db)

////////////////////////////////////////////////////

fb=0.236*aa+ db
ret=0.5*aa + db
fh=0.764*aa+ db



///////////////////////////////////////////////////////////

return db coloured(255,0,0) as "bas",dh coloured (0,255,0) as "haut", ret coloured(0,0,255) as "ret",fb as "fibobas",fh as"fibohaut"

//////////////////////////////////////





Partager cet article
Repost0
Published by SOHOCOOL - dans Donchian