void propagatePerformanceReport(SystemPerformance performance) { DataSeriesTimeBased equityCurve = performance.SlicesShortAndLong.EquityCurve; this.fontsByStyle.Clear(); this.fontsByStyle.Add(this.Font.Style, this.Font); try { this.olvReport.BeginUpdate(); this.olvReport.Items.Clear(); this.currentColumn = 0; this.currentRow = 0; this.GenerateReportForOneColumn(performance.SlicesShortAndLong); this.currentColumn++; this.currentRow = 0; this.GenerateReportForOneColumn(performance.SliceLong); this.currentColumn++; this.currentRow = 0; this.GenerateReportForOneColumn(performance.SliceShort); this.currentColumn++; this.currentRow = 0; this.GenerateReportForOneColumn(performance.SliceBuyHold); if (performance.BenchmarkSymbolBars != null) { this.colBuyHold.Text = performance.BenchmarkSymbolBars.Symbol; this.colBuyHold.Width = 50; } else { this.colBuyHold.Text = "Buy & Hold"; this.colBuyHold.Width = 50; } //AdjustColumnSize(); } finally { this.olvReport.EndUpdate(); } }
public virtual void BuildOnceAfterFullBlindBacktestFinished(SystemPerformance performance) { string msg = "DERIVED_REPORTERS_MUST_IMPLEMENT BuildOnceAfterFullBlindBacktestFinished(SystemPerformance)" + this.TabText + "/" + this.GetType(); throw new NotImplementedException(msg); }
public PerformanceEventArg(SystemPerformance systemPerformance) { this.Performance = systemPerformance; }
public override void BuildOnceAfterFullBlindBacktestFinished(SystemPerformance performance) { this.systemPerformance = performance; this.propagatePerformanceReport(performance); }
public virtual void BuildOnceAfterFullBlindBacktestFinished(SystemPerformance performance) { string msg = "DERIVED_REPORTERS_MUST_IMPLEMENT BuildOnceAfterFullBlindBacktestFinished(SystemPerformance)" + this.TabText + "/" + this.GetType(); throw new NotImplementedException(msg); }
public SystemPerformanceSlice(SystemPerformance performance, PositionLongShort positionLongShortImTracking, string reasonToExist) : this() { parentPerformance = performance; PositionLongShortImTracking = positionLongShortImTracking; ReasonToExist = reasonToExist; }
public SystemPerformanceSlice(SystemPerformance performance, PositionLongShort positionLongShortImTracking, string reasonToExist) : this() { parentPerformance = performance; PositionLongShortImTracking = positionLongShortImTracking; ReasonToExist = reasonToExist; }
public override void BuildOnceAfterFullBlindBacktestFinished(SystemPerformance performance) { this.systemPerformance = performance; if (this.systemPerformance.Bars.IsIntraday) { this.olvcEntryDate.Width = 120; this.olvcExitDate.Width = 120; } else { this.olvcEntryDate.Width = 80; this.olvcExitDate.Width = 80; } this.reversePositionsCalcCumulativesDumpToTitleAndOLV(); }
public PerformanceEventArg(SystemPerformance systemPerformance) { this.Performance = systemPerformance; }