0 beğenilme 0 beğenilmeme
17 kez görüntülendi
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
önce Diğer kategorisinde (258 puan) tarafından | 17 kez görüntülendi

1 cevap

0 beğenilme 0 beğenilmeme
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.
önce (6,670 puan) tarafından
Hoş geldiniz, Matriks Destek Platformu sizlere sorularınızın hızlıca cevaplanması için bir ortam sağlar. 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.



9,711 soru
9,671 cevap
5,196 yorum
48,743 kullanıcı