CQG API 4.0 - Revised
Value Property
See Also  Send Feedback
ts_statistic
The statistic of interest
CQGTradingSystemStatistics Interface : Value Property

Glossary Item Box

Description

Returns the value of a specified statistic.

This is the default property.

Property type

Read-only property

Syntax

Visual Basic
Public Property Value( _
   ByVal ts_statistic As eTradingSystemStatistic _
) As Double

Parameters

ts_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

The statistic of interest

Return Type

Value of specified statistic, represented as Double

See Also