コード例 #1
0
		protected SystemPerformanceSlice() {
			ReasonToExist = "NO_REASON_TO_EXIST";
			EquityCurve = new DataSeriesTimeBased("Equity");
			CashCurve = new DataSeriesTimeBased("Cash");
			PositionsImTracking = new List<Position>();
			PositionLongShortImTracking = PositionLongShort.Unknown;	// direction not specified => it means "both short and long" here
		}
コード例 #2
0
		public int DotsExistsForCurrentSlidingWindow;		// just because the object itself is the most convenient place to incapsulate it
		
		public Indicator() {
			this.Name = "INDICATOR_NAME_NOT_SET_IN_DERIVED_CONSTRUCTOR";
			this.DataSeriesProxyFor = DataSeriesProxyableFromBars.Close;
			this.ParametersByName = new Dictionary<string, IndicatorParameter>();
			this.ChartPanelType = ChartPanelType.PanelIndicatorSingle;
			this.OwnValuesCalculated = new DataSeriesTimeBased(this.Name);
			this.LineColor = Color.Indigo;
			this.LineWidth = 1;
		}