0 beğenilme 0 beğenilmeme
118 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
Diğer kategorisinde (262 puan) tarafından | 118 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.
(7,820 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,866 soru
9,836 cevap
5,307 yorum
58,279 kullanıcı