TesterStatistics
Syntax
TesterStatistics(statistic_id: ENUM_STATISTICS): numberParameters
Available Statistics
Return Value
Description
Example
Last updated
TesterStatistics(statistic_id: ENUM_STATISTICS): numberLast updated
// Get the net profit
const netProfit = this.api.TesterStatistics(ENUM_STATISTICS.STAT_NET_PROFIT)
// Get the total number of trades
const totalTrades = this.api.TesterStatistics(ENUM_STATISTICS.STAT_TOTAL_TRADES)
// Get the profitability factor
const profitFactor = this.api.TesterStatistics(ENUM_STATISTICS.STAT_PROFITABILITY_FACTOR)