Untitled

 avatar
unknown
plain_text
3 years ago
334 B
8
Indexable
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)
Editor is loading...