Lipi Reference
Lipi

Constants

strategy.long

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

Example


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

Type

const string