Untitled

mail@pastecode.io avatar
unknown
javascript
a month ago
462 B
45
Indexable
Never
// Strateji oluşturma
if direction_1 < 0 and direction_2 < 0 and rsi_value > 60
    strategy.entry("Long", strategy.long)

if strategy.position_size > 0 and ema13 > close 
    strategy.exit("Long", "Exit Long")

if direction_1 > 0 and direction_2 > 0 and rsi_value < 30   
    strategy.entry("Enter Short", strategy.short)

if strategy.position_size < 0 and ema13 < close 
    strategy.exit("Long", "Exit Long")

// Exitlar çalışmassa close_all komutunu dene
Leave a Comment