FastQuant.Statistics.ProfitFactor.OnInit C# (CSharp) Method

OnInit() protected method

protected OnInit ( ) : void
return void
        protected internal override void OnInit()
        {
            this.shortValue = 1;
            this.longValue = 1;
            this.totalValue = 1;
            LongValues.Add(Clock.DateTime, this.longValue);
            ShortValues.Add(Clock.DateTime, this.shortValue);
            TotalValues.Add(Clock.DateTime, this.totalValue);
            base.Subscribe(PortfolioStatisticsType.GrossProfit);
            base.Subscribe(PortfolioStatisticsType.GrossLoss);
        }