Merhaba Koray Bey,
Buy signal için
bars := 10;
length := 40;
UpCount := If(C > Ref(C, -4), PREV + 1, PREV);
DnCount := If(C < Ref(C, -4), PREV + 1, PREV);
BuySignal := (UpCount > bars) AND (C < O) AND (H >= HHV(H, length));
SellSignal := (DnCount > bars) AND (C > O) AND (L <= LLV(L, length));
UpBar := If(BuySignal, L, 0);
DownBar := If(SellSignal, H, 0);
resistance := If(SellSignal, H, Ref(resistance, -1));
support := If(BuySignal, L, Ref(support, -1));
Plot1 := resistance;
Plot2 := support;
BuySignal
Sell signal için
bars := 10;
length := 40;
UpCount := If(C > Ref(C, -4), PREV + 1, PREV);
DnCount := If(C < Ref(C, -4), PREV + 1, PREV);
BuySignal := (UpCount > bars) AND (C < O) AND (H >= HHV(H, length));
SellSignal := (DnCount > bars) AND (C > O) AND (L <= LLV(L, length));
UpBar := If(BuySignal, L, 0);
DownBar := If(SellSignal, H, 0);
resistance := If(SellSignal, H, Ref(resistance, -1));
support := If(BuySignal, L, Ref(support, -1));
Plot1 := resistance;
Plot2 := support;
SellSignal
Şeklinde matriks prime tarafı için deneyebilirsiniz.
Bilgilerinize.