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 4% Rule by Martin Zweig

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
Q: Is it possible to write the "4% Rule" intoa custom formula?

A: The "4% Rule", popularized by Martin Zweig, among others, states that you enter the market after it has gone UP 4%, and exit the market after it has gone DOWN 4%. This counter-intuitive rule is intended to get you into (or out of) the big price moves. This is a good strategy for a strongly-trending market, but a poor strategy for a sideways market.

The following formula uses the PREV function and is slow to calculate onlarge amounts of data. The formula returns +1 in buy mode, -1 in sellmode, and 0 before there is a signal.​

4% Rule
If(PREV = 1,
If(CLOSE < HighestSince(1,PREV <> 1,CLOSE)*.96,
-1,PREV),
If(PREV = -1, If(CLOSE>LowestSince(1,PREV <> -1,CLOSE)*1.04,
+1,PREV),
If(PREV = 0, If(CLOSE>Lowest(CLOSE)*1.04,
+1,
If(CLOSE<Highest(CLOSE)*.96,
-1,
PREV)),PREV)))​

I know, I know, it looks like it was written by a programmer! If anyone can devise a more elegant approach, send it to metastock@debry.com.​
Source / From:
 

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