Multi Time Frame ve Koklatılan İndiktorler
Dostlar,yolun sonu görünüyor...
Sizleri teşvik için grafigini gösterip, formulunu vermedigim...
Gosteriyor ama vermiyor dediginiz tipden formullerimi metedolojiyi ifşa edip..:wave: demek istiyorum....
Bu uzun bir zaman alabilir,sabırla koruk üzüm olurmuş...
Peyderpey paylaşacagım...
Üst Framanin başlangıcını tespit..
http://i.hizliresim.com/P0O2Ed.png
Üst Framanin başlangıcını tespit..
Günlük üzerinden anlatalım,günün ilk barını tespit etmek ilk adım olacak..
Bu bardan bir önceki bar kapanış fiyatı,otomatikmen önceki günün kapanışı olur...
Resim 1_5_10_15_20_30 dk. ve saatlık grafda ilk barı veren formul uygulanmışdır...
Formul basit ve daha önceleri defalarca başka amaçlar için kullanılmış,paylaşılmışdır...
Kod:
Nday:=DAYOFMONTH()<>ref(DAYOFMONTH(),-1) ;
Nday
Diger üst framelerin başlangıcını tespit için diger formuller...
Haftalık
Kod:
Nweek:=(ROC(DAYOFWEEK(),1,$)<0 AND Ref(DayOfWeek(),-1)<>5) OR ROC(DAYOFWEEK(),1,$)<0 ;
Nweek
Günlük
Kod:
Nday:=DAYOFMONTH()<>ref(DAYOFMONTH(),-1) ;
Nday
Saatlık
Kod:
Nhour:=HOUR()<>ref(HOUR(),-1) ;
Nhour
30 dakikalık
Kod:
N30mun:=MINUTE()/30=int(MINUTE()/30) or HOUR()<>ref(HOUR(),-1);
N30mun
20 dakikalık
Kod:
N20mun:=MINUTE()/20=int(MINUTE()/20) or HOUR()<>ref(HOUR(),-1);
N20mun
MTF Chande's Momentum Oscillator
Alıntı:
Originally Posted by
kafkaf
uufuk hocam,
vallahi pes :-) 40 fırın ekmek yemek bile kurtaramaz beni...
Eline sağlık...
Saatlık Chande's Momentum Oscillator için yorulma..
Al sana kopya...
http://trader-online.tk/MSZ/e-w-Chan...scillator.html
http://i.hizliresim.com/z3pylg.png
Kod:
n:=Input("CmoH periods",1,252,14); Nw:=HOUR()<>ref(HOUR(),-1);
c1:=valuewhen(1,nw,ref(c,-1)); c2:=valuewhen(2,nw,ref(c,-1));
po:=if(nw and (c1-c2)>0,c1-c2,0); neg:=if(nw and (c1-c2)<0,c2-c1,0);
np:=cum(po)-valuewhen(n+1,nw,cum(po)); nn:=cum(neg)-valuewhen(n+1,nw,cum(neg));
100*(np-nn)/(np+nn):-50:50
MTF Basit ortalama..Sma..
http://i.hizliresim.com/gqYJVO.png
Basit ortalama için iki ayrı (kardeş) formulumuz var....
Günlük ortalamanın alt framelere cizilmesi örnegi....
MovDayBasit..MoDB
Kod:
Nw:=DAYOFMONTH()<>ref(DAYOFMONTH(),-1);
n1:=5; p1:=1/(n1);
nc1:=valuewhen(n1+1,nw,Ref(C,-1));
If(nw,(p1*Ref(C,-1))+(PREV-nc1*p1),PREV)
F214
Kod:
Nw:=DAYOFMONTH()<>ref(DAYOFMONTH(),-1);
n1:=5; p1:=1/(n1);
nc1:=valuewhen(n1+1,nw,Ref(C,-1));
If(nw,PREV+(ref(c,-1)-nc1)*p1,prev)