strategy.grossprofit
Sum of the winning trades, in dollars.
strategy.grossprofit() -> float
Example
profitFactor = strategy.grossloss > 0 ? strategy.grossprofit / strategy.grossloss : na
Sum of the winning trades, in dollars.
strategy.grossprofit() -> float
profitFactor = strategy.grossloss > 0 ? strategy.grossprofit / strategy.grossloss : na