Lipi Reference
Lipi

Constants

strategy.short

The short direction, for the `direction` argument of `strategy.entry` and `strategy.order`: sell to open or add to a short position.

Example


          //@lipi=2
strategy("strategy.short Example", overlay=true, initial_capital=10000)
if talib.crossunder(close, talib.sma(close, 20)) {
    strategy.entry("Short", strategy.short)
}
        

Type

const string