Sitelet https://github.com/dgfctr/PineScript/commit/0f7afe63c343d57b12366910a545795bb025a38d
Skip to content

Commit 0f7afe6

Browse files
authored
Update [24.08.2025]
1 parent be0a4e3 commit 0f7afe6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎Yön - Senaryo 3‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ plotshape(not tarih_araligi ? bool(na) : short_entry, "Short Entry", shape.trian
3535

3636
// Yön Değişkeni
3737
yon = 0
38-
yon := not tarih_araligi ? 0 : long_entry ? 1 : short_entry ? -1 : long_exit or short_exit ? 0 : nz(yon[1])
38+
yon := not tarih_araligi ? 0 :
39+
long_entry ? 1 :
40+
short_entry ? -1 :
41+
(long_exit and nz(yon[1]) == 1) or (short_exit and nz(yon[1]) == -1) ? 0 :
42+
nz(yon[1])
3943

4044
// Yön Çıktısı
4145
plot(yon, "Yön", display=display.data_window, precision=0)

0 commit comments

Comments
 (0)