Untitled

 avatar
unknown
javascript
a year ago
462 B
70
Indexable
// 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
Editor is loading...
Leave a Comment