Constants
strategy.commission_cash_per_contract
A commission type for the `commission_type` argument of `strategy()`: `commission_value` is an amount, in the account currency, charged per contract traded.
Example
//@lipi=2
strategy("strategy.commission_cash_per_contract Example", overlay=true, initial_capital=10000, commission_type=strategy.commission_cash_per_contract, commission_value=0.5)
if talib.crossover(close, talib.sma(close, 20)) {
strategy.entry("Long", strategy.long)
}
Type
const string