RSquared
<< Click to Display Table of Contents >>
Navigation: NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >
Returns the trade performance R-Squared value.
A double value that represents the R-Squared (R2)
protected override void OnBarUpdate() { // Print out the R2 value of all trades Print("R-Squared is: " + SystemPerformance.AllTrades.TradesPerformance.RSquared); }