Constants
strategy.oca_none
A one-cancels-all type, for the `oca_type` argument of `strategy.entry` and `strategy.order`. The order is not part of a one-cancels-all group; it is filled independently of other orders.
Example
//@lipi=2
strategy("strategy.oca_none Example", overlay=true, initial_capital=10000)
// Two breakout entries in one group: the first to fill decides
if strategy.position_size == 0 {
strategy.entry("Up", strategy.long, stop=high + syminfo.mintick, oca_name="Breakout", oca_type=strategy.oca_none)
strategy.entry("Down", strategy.short, stop=low - syminfo.mintick, oca_name="Breakout", oca_type=strategy.oca_none)
}
Type
const string