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.
  • “Derdiniz piyasanın ne yapacağı değil piyasanın yapacaklarına karşı sizin ne yapacağınız olsun.” (Michael Carr)

Uzman Danışman Dunnigan Trend

Expert Advisor yani Türkçesi ile Uzman Danışman, terminalin içinde bulunan ve alım-satım işlemlerini otomatik olarak programlamaya izin veren araçtır. Fiyatlar üzerinden teknik analiz geliştiren, yöneltilmiş alım-satım faaliyetleri gerçekleştiren ve bu faaliyetleri yönetebilen bu programlar, otomatik işleme girmenin yanı sıra, bir sinyal sağlayıcı olarak da kullanılabilir. Bir uzman, ilgili grafik o anda aktif olsa da olmasa da çalışabilir. Expert Advisor Ne İşe Yarar? Yani uzman danışmanlar ister AL- SAT sinyali üretirler istenirse de AL-SAT sinyali ürettikleri noktalardan alım-satım yaparlar.

algoritma

eiπ + 1 = 0
Algorithmist
Algoritma
Katılım
23 Eki 2020
Mesajlar
1,797
Market swing is defined as: Up = higher highsand higher lows, Down = lowerhighs and lower lows.​

Dunn-Type1
TD1:=If(BarsSince(H>Ref(H,-1) AND L>Ref(L,-1)) <
BarsSince(L<Ref(L,-1) AND H<Ref(H,-1)),
{then}1,
{else}-1);
TD1

Market swing is defined as: Up = 2 higher highs and 2 higher lows, Down= 2 lower highs and 2 lower lows.​

Dunn-Type2
TD1:=If(BarsSince((H>Ref(H,-1) AND L>Ref(L,-1))
AND (Ref(H,-1)>Ref(H,-2)
AND Ref(L,-1)>Ref(L,-2))) <
BarsSince((L<Ref(L,-1) AND H<Ref(H,-1))
AND (Ref(L,-1)<Ref(L,-2)
AND Ref(H,-1)<Ref(H,-2))),
{then}1,
{else}-1);
TD1

Poniższa formuła wymaga wcześniejszego wprowadzenia formuły znajdujące się powyżej pod niezmodyfikowaną nazwą.​

Dunnigan Trend
{Ask to use 1 day or 2 day Swing type}
St:=Input("Short Term Swing Type, 1 or 2 ?",
1,2,2);
{Call Swing Type Formula}
Sd:=If(Round(St)=1,
{then} FmlVar("Dunn-Type1","TD1"),
{else} FmlVar("Dunn-Type2","TD1"));
{Number Of Periods Since Swing Started Up}
Hc:=BarsSince(SD=-1);
{Number Of Periods Since Swing Started Down}
Lc:=BarsSince(SD=1);
{Find Highest Value Of Up Swing}
Hv:=If(Hc>Lc AND H>Ref(H,-1),
{then}HighestSince(1,Hc=1,H),
{else}0);
{Find Lowest Value Of Down Swing}
Lv:=If(Hc<Lc AND L<Ref(L,-1),
{then}LowestSince(1,Lc=1,L),
{else}0);
{Find The Low Of The Highest High}
Hlv:=ValueWhen(1,H=Hv,L);
{Find The High Of The Lowest Low}
Lhv:=ValueWhen(1,L=Lv,H);
{Calculate And Plot Trend Direction, Note:1= Uptrend, -1= Downtrend}
TD2:=If(Sd=1 AND H>Lhv,
{then}1,
{else}If(Sd=-1 AND L<Hlv,
{then}-1,
{else}0));
TD3:=ValueWhen(1,TD2<>0,TD2);
TD3

Re: Expert "Trend"
ˇ To: metastock@xxxxxxxxxxxxx
ˇ Subject: Re: Expert "Trend"
ˇ From: michael arnoldi <marnoldi@xxxxxxxxxxxxx>
ˇ Date: Sun, 18 Apr 1999 12:30:26 -0400
ˇ References: <020601be89ac$eeb56c80$0f68a8c2@xxxxxxx>
ˇ Reply-To: metastock@xxxxxxxxxxxxx
ˇ Sender: owner-metastock@xxxxxxxxxxxxx

click on "experts" {the man's head logo in metastock}, click on an expert you like or created. the tab next to "name" is the "trend" tab. for my experts i have the following trend formula:​

Dunnigan Trend Expert
Bullish:

Fml("Dunnigan Trend")=1


Bearish:

Fml("Dunnigan Trend")=-1​


while in the "trend" tab area you will see 3 selections with the middle being "corner" select arrows:​

up green for bullish
down red for bearish
zero# neutral in blue
(or any other choices you prefer)​

press ok, ok and then go to your chart & click on the lower right hand corner & then right click, selecting to attach the expert you just modified. in the corner of the chart you will now have an arrow or a zero giving you the current trend of the security its attached to. see attached example of "eggs" down trend.​

mike arnoldi​

[13428]​
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