Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
334 B
5
Indexable
Never
if (long)
    strategy.entry("Long", strategy.long, limit=entry_long_price)
    strategy.exit("ExitLong", "Long", limit=target_long_price, stop=stop_long_price)
if (short)
    strategy.entry("Short", strategy.short, limit=entry_short_price)
    strategy.exit("ExitShort", "Short", limit=target_short_price, stop=stop_short_price)