RSquared

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

RSquared

Previous page Return to chapter overview Next page

Definition

Returns the trade performance R-Squared value.
 

Property Value

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

 

Syntax
<TradeCollection>.TradesPerformance.RSquared

 

 

Examples

ns

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