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

Yükselip düşen şartı

Soruldu
Kategori
Diğer
Görüntülenme
220 görüntülenme
Durum
Cevaplandı
Merhaba..

Aşağıdaki taramaya yükselip düşen şartı ilave edebilir misiniz?

Diyelim hisse 10 lirada AL verdi, yükseldi tekrar 10 lira desteğine düştü ya da yakın gibi.

Teşekkürler..

pLeft  := 3;
pRight := 3;

PivotLow := If(
    Ref(L, -pRight) = LLV(L, pLeft + pRight + 1),
    Ref(L, -pRight),
    0
);

LastPivot1 := ValueWhen(1, PivotLow > 0, PivotLow);
LastPivot2 := ValueWhen(2, PivotLow > 0, PivotLow);

Idx1 := ValueWhen(1, PivotLow > 0, Cum(1));
Idx2 := ValueWhen(2, PivotLow > 0, Cum(1));
SupportUp := LastPivot1 > LastPivot2;

BarsDiff := Idx1 - Idx2;
Slope    := (LastPivot1 - LastPivot2) / Max(1, BarsDiff);

SupportLine := If(SupportUp, LastPivot2 + (Cum(1) - Idx2) * Slope, Null);

BuySignal  := SupportUp AND Cross(C, SupportLine);
SellSignal := SupportUp AND Cross(SupportLine, C);
BuySignal
Paylaş

1 Cevap

0
Merhaba

pLeft  := 3;
pRight := 3;
PivotLow := If(
    Ref(L, -pRight) = LLV(L, pLeft + pRight + 1),
    Ref(L, -pRight),
    0
);

LastPivot1 := ValueWhen(1, PivotLow > 0, PivotLow);
LastPivot2 := ValueWhen(2, PivotLow > 0, PivotLow);

Idx1 := ValueWhen(1, PivotLow > 0, Cum(1));
Idx2 := ValueWhen(2, PivotLow > 0, Cum(1));
SupportUp := LastPivot1 > LastPivot2;

BarsDiff := Idx1 - Idx2;
Slope    := (LastPivot1 - LastPivot2) / Max(1, BarsDiff);

SupportLine := If(SupportUp, LastPivot2 + (Cum(1) - Idx2) * Slope, Null);

BuySignal  := SupportUp AND Cross(C, SupportLine);
SellSignal := SupportUp AND Cross(SupportLine, C);
cross(valuewhen(1.,BuySignal,c),c)

Şeklinde deneyebilirsiniz

Bilgileirnize.
BağlantıBayraklaemrahyilmazMatriks Destek9.790

Cevabınız

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