Matriks Destek ve Yardım Platformu

Matriks Ürünleri ile ilgili tüm sorularınız için bizlere buradan ulaşabilirsiniz. Daha önce sorulan soruları ve verilen cevapları ilgili sekmelerden ve arama üzerinden inceleyebilirsiniz. Sağ taraftaki kategoriler üzerinden İlgilendiğiniz özelliklerle ilgili soruları filtreleyebilirsiniz. Soru ve cevapları sosyal medyada paylaşabilirsiniz. Sorduğunuz ve cevapladığınız soruların ve yorumlarınızın aldığı oylar üzerinden puan kazanırsınız. Puan sistemine bağlı kampanyamızla ücretsiz kullanım avantajlarından faydalanabilirsiniz.

0

Formulu duzletırmısınzı.

Soruldu
Kategori
Grafik
Görüntülenme
458 görüntülenme
Durum
Cevaplandı
MERHABA .IYI CALISMALAR. ASAGIDAKI FORMULU DUZELTEBILIRMISINIZ. TAM OLARAK MATRIKSE CEVIREMEDIM.

 

 

buffer:=Input("buffer % trailing stop",0,100,8);
plot:=Input("plot: trailing stop=1, Long+Short=2, signals=3",1,3,1);
adv:=Input("plot: today's trailing stop=0, tomorrow's stop=1",0,1,0);
delay:=Input("Entry and Exit signal delay",0,5,0);

StLong:=C-C*buffer/100;
StShort:=C+C*buffer/100;
stopLong:=If(C<PREV,StLong,Max(StLong,PREV));
stopShort:=If(C>PREV,StShort,Min(StShort,PREV));

In:=Cross(C,Ref(stopShort,-1));
Out:=Cross(Ref(stopLong,-1),C);
Init:=Cum(In+Out>-1)=1;
InInit:=Cum(In)=1;
flag:=BarsSince(Init OR In) < BarsSince(Init OR Out)+InInit;
signals:=Ref((InInit AND Alert(InInit=0,2) OR flag AND Alert(flag=0,2)) -(flag=0 AND Alert(flag,2)),-delay);
stop:=Ref(If(flag=1,stopLong,stopShort),-1+adv);

If(plot=1,stop,
If(plot=2,Ref(stopLong,-1+adv),0));
If(plot=1,stop,
If(plot=2,Ref(stopShort,-1+adv),signals))
Paylaş

1 Cevap

0
Merhaba

buffer:=8;
plot:=1;
adv:=0;
delay:=0;

StLong:=C-C*buffer/100;
StShort:=C+C*buffer/100;
stopLong:=if(C<ref(c,-1),StLong,Max(StLong,PREV));
stopShort:=if(C>ref(c,-1),StShort,Min(StShort,PREV));

In:=Cross(C,Ref(stopShort,-1));
Out:=Cross(Ref(stopLong,-1),C);
Init:=Cum(In+Out>-1)=1;
InInit:=Cum(In)=1;
flag:=BarsSince(Init OR In) < BarsSince(Init OR Out)+InInit;
signals:=Ref((InInit AND Alert(InInit=0,2) OR flag AND Alert(flag=0,2)) -(flag=0 AND Alert(flag,2)),-delay);
stop:=Ref(If(flag=1,stopLong,stopShort),-1+adv);

If(plot=1,stop,
If(plot=2,Ref(stopLong,-1+adv),0)) or  If(plot=1,stop,
If(plot=2,Ref(stopShort,-1+adv),signals))

 

Formül de bizim taraf için çevirilecek  bir tarafı tam olarak yoktur bu şekilde kullanabilirsiniz, fakat formül çok hesaplama içerdiğinden ağır çalışabilir.

Bilgilerinize.
BağlantıBayraklaemrahyilmazMatriks Destek9.790

Cevabınız

Cevap yazmak için giriş yapın.Giriş yapKayıt ol