+1 888 340 6572

TotalBarsLosTrades

From MultiCharts
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Returns a numerical value, indicating the total number of bars a position was held during all completed losing trades.

Usage

TotalBarsLosTrades

Notes

  • This function can only be used in signals.
  • Use TotalBarsEvenTrades and TotalBarsWinTrades to get the total number of bars a position was held during respectively even and winning trades.

Example

TotalBarsLosTrades
  • Will return a value of 14 if four losing trades held positions for 2, 5, 3, and 4 bars.
  • Will return a value of 0 if no losing trades were completed during the entire trading period.