Lipi Reference
Lipi

Constants

strategy.fixed

A position-size type for the `default_qty_type` argument of `strategy()`: `default_qty_value` is a fixed number of contracts, shares or units per order.

Example


          //@lipi=2
strategy("strategy.fixed Example", overlay=true, initial_capital=10000, default_qty_type=strategy.fixed, default_qty_value=10)
if talib.crossover(close, talib.sma(close, 20)) {
    strategy.entry("Long", strategy.long)
}
        

Type

const string