RSquared

View as Markdown

Definition

Returns the trade performance R-Squared value.

Property Value

A double value that represents the R-Squared (R2)

Syntax

\<tradecollection\>.TradesPerformance.RSquared

Examples

1protected override void OnBarUpdate()
2// Print out the R2 value of all trades
3Print("R-Squared is: " + SystemPerformance.AllTrades.TradesPerformance.RSquared);