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.
  • “Hiç zengin olan bir teknik analist görmedim” diyenlere hep gülmüşümdür. Bu kadar saçma ve küstahça bir şey daha duymadım. Dokuz yıl boyunca temel analiz kullandıktan sonra, teknik analizci olarak zengin oldum. “ (Marty Schwartz)

Al Sat Sistemi MetaStock System Test 01 - R2, S/C, MFI (Vol. Required)

Bir ticaret sistemi, finansal piyasalarda alım satımla ilgili belirli kurallara sahip belirli ayarlara dayanır. Bir dizi işlemin istatistiksel bir analizini alır ve ondan kar sağlayan geçmiş performansları içerir. Bu stratejiyi bir ticaret sistemi olarak adlandırmadan önce, başarısını ve bir süre başarılı kalma yeteneğini garanti altına almak için bir dizi teste tabi tutulur. Bir ticaret stratejisi asla sabit bir karı garanti etmez. Kısa sürede kar etmek için "al" ve "sat" sinyalleri sağlayacak belirli algoritmalardan veya ayarlamalardan oluşur. Pazar her zaman değiştiği ve algoritmalarda veya ticaret sisteminde yapılan yeni ayarlamaların da değişmesi gerektiğinden, asla sabit bir kar oranını garanti etmez. Alım satım sistemleri genellikle zaman içinde görülür, hisse senetleri ve forex piyasaları sürekli alım veya satım sinyalleri verir.

algoritma

eiπ + 1 = 0
Algorithmist
Algoritma
Katılım
23 Eki 2020
Mesajlar
1,797
The RSquared, S/C,MFI test is based on linearregression. RSquared is a linear regression function that measures how stronga data array of given length is trending. It's really based on correlation.A return of one correlates to a very strong trend in either direction thatrises or falls one point per day. A return of zero correlates to no trend.

I'm using RSquared to tell me when there is no trend over the last 21 days, or that RSquared(C,21) is less than 0.15. Now that we have no trend, wewould expect one to start in the next 5 to 13 days. If one does start wewant to determine the direction and get in early. Therefore I use RSquaredas mytrigger, combining it with the ALERT function. With the ALERT givenby RSquaredbeing less then 0.15, then we will get a buy signal if all myother conditionsare met within a 13-day period that I also set with theALERT function. Forthe other conditions, I'm using S/C, MFI, and the 55-dayVariable Moving Average (vma) to determine trend start and direction.

S/C is nothing more than the normalized 34 day LinRegSlope of the close. I normalize it by dividing it by the close so charts are more directly comparable. I also multiply by 10000 just to get numbers between 0 and a few hundred. Finally I apply Tema smoothing to get a smoother plot.
Therefore my formula for Tema S/C becomes:​

Tema S/C
Periods := Input("Enter Periods",1,233,34);
Tema(10000*LinRegSlope(C,Periods)/C,Periods)
The theory is that if Tema S/C is rising then a up trend is in progress. If Tema S/C is falling a downtrend is in progress. I check this by making sure that tema(S/C) is larger than an optimized value (opt1) and is rising. I use the function HHV(X,5) = HHV(X,13) to check that it is really rising. This is just a quick way to determine if the most reason values of X have been rising. If the condition is met, then S/C is rising. Similarly if it met the condition LLV(X,5) = LLV(C,13) it would be falling.

I double-check the result by also making sure that both the MFI and the 55-day vma are also rising. I use a Tema MFI formula which is just the tema smoothed MFI - 50 so it can be plotted as a histogram. The formula is:​

Tema MFI
Periods := Input("Enter Tema Smoothing Periods",13,55,55);
Tema(MFI(Periods),Periods) - 50
When all conditions are met within 13 days of the alert, we get a buy signal. The converse is true for a sell signal. Since the market is biased upwards, I use an additional check for the short - Tema MFI less then 0. I closethe positions when the trend has stopped. For the long position I checkthatthe Tema(MFI) is below 0, the Tema(S/C) is below opt 1 and that bothare falling. Short positions tend to move faster, so I only look for theTema MFI to be greater than zero and the 55 day vma to begin rising to closethat position. The complete test follows:​

MetaStock System Test 01 R2,S/C,MFI (VolRequired)
Enter Long :
Alert(RSquared(C,21) < 0.15,13) AND
Tema(10000*LinRegSlope(C,34)/C,34) > opt1 AND
HHV(Tema(10000*LinRegSlope(C,34)/C,34),5) =
HHV(Tema(10000*LinRegSlope(C,34)/C,34),13) AND
HHV(Tema(MFI(55),55),5) = HHV(Tema(MFI(55),55),13)

Close Long :
Tema(MFI(55),55) - 50 < 0 AND
Tema(10000*LinRegSlope(C,34)/C,34) < opt1 AND
LLV(Tema(10000*LinRegSlope(C,34)/C,34),5) =
LLV(Tema(10000*LinRegSlope(C,34)/C,34),13) AND
LLV(Tema(MFI(55),55),5) = LLV(Tema(MFI(55),55),1)

Enter Short :
Alert(RSquared(C,21) < 0.15,13) AND
Tema(10000*LinRegSlope(C,34)/C,34) < opt2 AND
LLV(Tema(10000*LinRegSlope(C,34)/C,34),5) =
LLV(Tema(10000*LinRegSlope(C,34)/C,34),13) AND
LLV(Tema(MFI(55),55),5) = LLV(Tema(MFI(55),55),13) AND
Tema(MFI(55),55) - 50 < 0 AND
LLV(Mov(C,55,VAR),5) = LLV(Mov(C,55,VAR),13)
Close Short :
HHV(Mov(C,55,VAR),5) = HHV(Mov(C,55,VAR),13) AND
Tema(MFI(55),55) - 50 > 0

OPTIMIZATION:
OPT1: Min=-34 Max=-8 Step=13
OPT2: Min=-55 Max=-21 Step=34​

Although I have Tema S/C and Tema MFI defined as custom formulas so I can plot them as indicators on my charts, I don't call the custom formulas in the tests. Instead I use the actual formulas. The reason I do this, is that the test will run faster when the formulas are used direct instead of calling for the custom formulas.

from Jim Greening http://www.geocities.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
Başlatan Benzer Konular Forum Cevap Tarih
N Metastock Matriks 1
algoritma Metastock 6
algoritma K 0
algoritma W 0
algoritma M 0
algoritma F 0
algoritma Metastock 5
algoritma E 0
algoritma Metastock Matriks 2
algoritma D 0
algoritma E 0
S Metastock Matriks 3
algoritma Matriks 0
algoritma Matriks mi iDeal mi Metastock mu Amibroker mu❓ 0
algoritma Metastock 0
algoritma M 1
algoritma M 0
algoritma M 0
algoritma M 0
algoritma A 0