strategy.close

Closes the contracts held from entry id (all, qty, or qty_percent of them) with a market order at the next bar open.

strategy.close(id: string, comment: string = na, qty: float = na, qty_percent: float = na)

Parameters

Example

if ta.crossunder(fast, slow)
    strategy.close("Long")