Untitled
unknown
javascript
2 years ago
462 B
71
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 deneEditor is loading...
Leave a Comment