Example #1
0
 private void FXUR2afwm()
 {
   this.U8g72RfTo = new TesterItemList();
   this.SZctPlnKv = new TesterItemList();
   foreach (TesterItem testerItem in this.fNyFvVvOo.Components)
   {
     SeriesTesterItem seriesTesterItem = testerItem as SeriesTesterItem;
     if (seriesTesterItem != null)
     {
       if (seriesTesterItem.Enabled)
         this.U8g72RfTo.f9Ww98OVG((TesterItem) seriesTesterItem);
       if (seriesTesterItem.FillSeries)
         this.SZctPlnKv.f9Ww98OVG((TesterItem) seriesTesterItem);
     }
   }
 }
Example #2
0
		private void Init()
		{
			this.tempPortfolio = new Portfolio();
			this.tempPortfolio.Performance.Enabled = false;
			this.timeInterval = TimeIntervalSize.day1;
			this.wealthSeries = new DoubleSeries();
			this.drawdownSeries = new DoubleSeries();
			this.percentDrawdownSeries = new DoubleSeries();
			this.costSeries = new DoubleSeries();
			this.pnLSeries = new DoubleSeries();
			this.returnSeries = new DoubleSeries();
			this.allocationSeries = new DoubleSeries();
			this.allocationLongSeries = new DoubleSeries();
			this.allocationShortSeries = new DoubleSeries();
			this.roundTripList = new RoundTripList(this);
			this.longRoundTripList = new RoundTripList(this);
			this.shortRoundTripList = new RoundTripList(this);
			this.isRoundTripsOnly = this.allowRoundTrips;
			this.pnLSeries.Title = "Test PnL Series";
			this.wealthSeries.Title = "Test Wealth Series";
			this.drawdownSeries.Title = "Test Drawdown Series";
			this.percentDrawdownSeries.Title = "Test Percent Drawdown Series";
			this.costSeries.Title = "Test Cost Series";
			this.returnSeries.Title = "Test Return Series";
			this.pnLSeries.Name = "Test PnL Series";
			this.wealthSeries.Name = "Test Wealth Series";
			this.drawdownSeries.Name =  "Test Drawdown Series";
			this.percentDrawdownSeries.Name = "Test Percent Drawdown Series";
			this.costSeries.Name = "Test Cost Series";
			this.returnSeries.Name = "Test Return Series";
			this.components = new TesterItemList();
			this.components.ComponentListChanged += new EventHandler(this.GvwyC63XLV);
			this.InitialWealth = -1.0;
			this.riskFreeRate = 0.0;
			this.businessDaysOnly = true;
			this.totalCost = 0.0;
			SimpleSeriesItem simpleSeriesItem1 = new SimpleSeriesItem("", this.wealthSeries);
			SimpleSeriesItem simpleSeriesItem2 = new SimpleSeriesItem("", this.drawdownSeries);
			SimpleSeriesItem simpleSeriesItem3 = new SimpleSeriesItem("", this.percentDrawdownSeries);
			SimpleSeriesItem simpleSeriesItem4 = new SimpleSeriesItem("", this.costSeries);
			SimpleSeriesItem simpleSeriesItem5 = new SimpleSeriesItem("", this.pnLSeries);
			SimpleSeriesItem simpleSeriesItem6 = new SimpleSeriesItem("", this.returnSeries);
			this.AddComponent(simpleSeriesItem1);
			this.AddComponent(simpleSeriesItem2);
			this.AddComponent(simpleSeriesItem3);
			this.AddComponent(simpleSeriesItem4);
			this.AddComponent(simpleSeriesItem5);
			this.AddComponent(simpleSeriesItem6);
			this.iLayprxSnG();
		}
Example #3
0
		public void AddList(TesterItemList componentList)
		{
			foreach (TesterItem component in componentList)
				this.AddComponent(component);
		}