Wilder Smoothed Average Programming

Post Reply
kiyohira
Posts: 31
Joined: 17 May 2013 12:41

Wilder Smoothed Average Programming

Post by kiyohira »

Bonjour/Hello,

J'essaye de programmer la moyenne mobile avec le lissage de Wilder et il ya 2 formules équivalentes:
I am trying to code the Wilder Smoothed Simple Moving Average and there are 2 equivalent formulas:

1/ Wilder Smoothed Simple Moving Average = SMA[1]+((close-SMA[1])/period)

2/ Wilder Smoothed Simple Moving Average = ExpMovingAverage du "close" avec 2*period-1 MAIS dans le cas d'une période de 130 cela fait 259 et il faut donc assez d'historique ce que je voudrais éviter !
2/Wilder Smoothed Simple Moving Average = ExpMovingAverage of "close" with 2*period-1 but with period = 130 we get 259 so I need to load more historical data which I want to avoid !

Le code joint montre que les deux formules ne sont pas équivalentes donc je suppose que la première formule est fausse, toutes suggestions sont les bienvenues. Merci.
The code enclosed shows that the 2 formulas are not equivalent, I suppose that the first formulae is then wrong, any idea or suggestion ? Thank in advance for any help.

Cordialement / Best regards,

Jean-Christophe.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “WHS NANOTRADER - EXPRESS PROGRAMMING”