CQG API 4.0 - Revised
IncludeStatistic Method
See Also  Send Feedback
trading_system_statistic

Trading system statistics to include.

CQGTradingSystemRequest Interface : IncludeStatistic Method

Glossary Item Box

Description

Includes the specified statistic to be present in the requested trading system.

Syntax

Visual Basic
Public Sub IncludeStatistic( _
   ByVal trading_system_statistic As eTradingSystemStatistic _
) 

Parameters

trading_system_statistic
ValueDescription
tssAverageDuration

Average duration

tssAverageLoss

Average loss

tssAverageProfit

Average profit

tssAverageWin

Average win

tssClosedNetProfit

Closed net profit

tssCurConsecLosses

Current consecutive losses

tssCurConsecWins

Current consecutive wins

tssCurDrawDown

Current draw down

tssLinearRegression

Linear regression

tssMaxClosedDraw

Maximum closed draw

tssMaxConsecLosses

Maximum consecutive losses

tssMaxConsecWins

Maximum consecutive wins

tssMaxDrawAmount

Maximum draw amount

tssMaxDrawDuration

Maximum draw duration

tssMaximumLoss

Maximum loss

tssMaximumWin

Maximum win

tssOpenPosition

Open position

tssPercentLong

Percent long

tssPercentWinners

Percent winners

tssProfitLossRatio

Profit/loss ration

tssProfitToMaxDraw

Profit to maximum draw

tssRemoveToNeutral

Remove to neutral

tssReturnRetracement

Return retracement

tssTimePercentage

Time percentage

tssTotalNetProfit

Total net profit

tssTotalTradeCount

Total trade count

Trading system statistics to include.

Remarks

Upon the creation of the CQGTradingSystemRequest instance, all statistics are included by default.

If the IncludeStatistic method is called on an instance, where all statistics are already included, all statistics become excluded except the one specified by the trading_system_statistic parameter.

Otherwise, trading_system_statistic is included in addition to the already included other statistics.

See Also