Teknik Analiz Dünyasına Hoşgeldiniz. Paylaşmak Güzeldir.

Yayından kaldırmak istediğiniz formüller için algoritmabul@gmail.com ile iletişime geçebilirsiniz... 

  • DİKKAT: Formüller, Sistemler sadece eğitim amaçlıdır. Alım satım, olası anapara kaybı ve diğer kayıplar dahil olmak üzere "YÜKSEK RİSK" içerir.
  • Mucize teknik gösterge yoktur, sadece doğru veya yanlış kullanılan göstergeler vardır.

Oscillator Relative Strength Index (RSI) Custom III

Teknik analizde fiyatın yönü veya trendin devamıyla ilgili fikir veren matematiksel modellerdir. Trend oluşmamış piyasalarda fiyatlar yatay bir bantta hareket ederken trendin içinde düzeltme seviyelerini tespit eden indikatörlere OSİLATÖR denir

algoritma

eiπ + 1 = 0
Algorithmist
Algoritma
Katılım
23 Eki 2020
Mesajlar
1,797
----- Original Message -----
From: Glen Wallace <gcwallace@xxxxxxxx>
To: MetaStock listserver <metastock@xxxxxxxxxxxxxxxxxx>
Sent: July 31, 1999 13:43
Subject: Welles Wilder's Relative Strength Index (RSI)


The standard RSI function in MetaStock does not permit the use of a variable for the number of periods or for the price array, so I need to write thelong-hand version. Unfortunately, I'm having a brain fart when it comesto coding the sum of the absolute price changes on the up days (or down days)in a particular, user defined period. Does anyone have the code forthis, or can anyone suggest a solution?

RSI = 100 - (100 / (1+U/D))
Where: U = an average of upward price change on a closing basis
D = an average of downward price change on a closing basis


Re: Welles Wilder's Relative Strength Index (RSI)

To: <metastock@xxxxxxxxxxxxx>
Subject: Re: Welles Wilder's Relative Strength Index (RSI)
From: "Glen Wallace" <gcwallace@xxxxxxxx>
Date: Mon, 2 Aug 1999 14:40:46 -0700
References: <003001bedb96$0d041020$5f1c4118@xxxxxxxxxxxxxxxxxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

Thanks to everyone who offered solutions. Below is the code for anRSI where you can customize the number of periods (perhaps to increase ordecrease as volatility changes) and the price array (perhaps to a movingaverage of the close). Although I have not tested it thoroughly, whenI use similar parameters, it matches the standard MetaStock RSI function. Of course, if you spot any flaws or improvements, let me know.

Note that the parameters used in the example below have no value as an indicator; they're just for illustration.​

Relative Strength Index - Custom III
RSIPeriod:= Int(14 / (Stdev(CLOSE,10)/Stdev(CLOSE,5)));
RSIDataArray:= Mov(CLOSE,25,SIMPLE);
U:= Wilders(If(ROC(RSIDataArray,1,$)>0,
ROC(RSIDataArray,1,$), 0),
LastValue(RSIPeriod));
D:= Wilders(If(ROC(RSIDataArray,1,$)<0,
Abs(ROC(RSIDataArray,1,$)), 0),
LastValue(RSIPeriod));
100-(100/(1+U/D))

 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap
Başlatan Benzer Konular Forum Cevap Tarih
algoritma R 0
algoritma R 0
algoritma Matriks 0
algoritma R 0
U R 0
algoritma Metastock 5
algoritma Teknik Analizde Göstergelerin Matematiksel Açıklamaları 0
algoritma Teknik Analizde Göstergelerin Matematiksel Açıklamaları 0
algoritma W 0
algoritma S 0
algoritma R 0
algoritma R 0
algoritma R 0
algoritma R 0
algoritma R 0
algoritma R 0
algoritma R 0
algoritma M 0
algoritma M 0
algoritma R 0