Example #1
0
		public void Add(PnF pnF)
		{
			this.fArray[pnF.DateTime] = pnF;
			this.EmitItemAdded(pnF.DateTime);
		}
Example #2
0
 public PnF(PnF pnF) : this(pnF.BoxSize, pnF.beginTime, pnF.endTime, pnF.open, pnF.high, pnF.low, pnF.close, pnF.volume, pnF.openInt)
 {
 }
Example #3
0
		public double LowY(PnF pnF, int yearsAgo)
		{
			return this.LowY(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day).AddDays((double)-yearsAgo));
		}
Example #4
0
		public double LowY(PnF pnF)
		{
			return this.LowY(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day));
		}
Example #5
0
		public double LowW(PnF pnF, int weeksAgo)
		{
			return this.LowW(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day).AddDays((double)(-weeksAgo * 7)));
		}
Example #6
0
		public double LowM(PnF pnF, int monthsAgo)
		{
			return this.LowM(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day).AddMonths(-monthsAgo));
		}
Example #7
0
		public double HighM(PnF pnF)
		{
			return this.HighM(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day));
		}
Example #8
0
		public bool Contains(PnF pnF)
		{
			return base.Contains(pnF.DateTime);
		}
Example #9
0
		public double HighD(PnF pnF, int daysAgo)
		{
			return this.HighD(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day).AddDays((double)-daysAgo));
		}
Example #10
0
		public double OpenW(PnF pnF)
		{
			return this.OpenW(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day));
		}
Example #11
0
		public double CloseM(PnF pnF)
		{
			return this.CloseM(new DateTime(pnF.DateTime.Year, pnF.DateTime.Month, pnF.DateTime.Day));
		}
Example #12
0
		public void Remove(PnF pnF)
		{
			this.fArray.Remove(pnF.DateTime);
		}
Example #13
0
File: PnF.cs Project: heber/FreeOQ
		public PnF(PnF pnF) : this(pnF.BoxSize, pnF.beginTime, pnF.endTime, pnF.open, pnF.high, pnF.low, pnF.close, pnF.volume, pnF.openInt)
		{
		}