Added PrevClose to Price which should not be persisted in the database.
This commit is contained in:
@@ -325,6 +325,7 @@ namespace MarketData.MarketDataModel
|
|||||||
private double close;
|
private double close;
|
||||||
private long volume;
|
private long volume;
|
||||||
private double adjClose;
|
private double adjClose;
|
||||||
|
private double prevClose; // !!IMPORTANT we don't store this nor do we consider this when evaluating a valid price.
|
||||||
private PriceSource source;
|
private PriceSource source;
|
||||||
public Price()
|
public Price()
|
||||||
{
|
{
|
||||||
@@ -339,6 +340,7 @@ namespace MarketData.MarketDataModel
|
|||||||
this.Close=price.Close;
|
this.Close=price.Close;
|
||||||
this.Volume=price.Volume;
|
this.Volume=price.Volume;
|
||||||
this.AdjClose=price.AdjClose;
|
this.AdjClose=price.AdjClose;
|
||||||
|
this.PrevClose=price.PrevClose;
|
||||||
this.Source=price.Source;
|
this.Source=price.Source;
|
||||||
}
|
}
|
||||||
public Price Clone()
|
public Price Clone()
|
||||||
@@ -352,6 +354,7 @@ namespace MarketData.MarketDataModel
|
|||||||
clonePrice.Close=Close;
|
clonePrice.Close=Close;
|
||||||
clonePrice.Volume=Volume;
|
clonePrice.Volume=Volume;
|
||||||
clonePrice.AdjClose=AdjClose;
|
clonePrice.AdjClose=AdjClose;
|
||||||
|
clonePrice.PrevClose=PrevClose;
|
||||||
clonePrice.Source=Source;
|
clonePrice.Source=Source;
|
||||||
return clonePrice;
|
return clonePrice;
|
||||||
}
|
}
|
||||||
@@ -418,6 +421,11 @@ namespace MarketData.MarketDataModel
|
|||||||
get { return adjClose; }
|
get { return adjClose; }
|
||||||
set { adjClose = value; }
|
set { adjClose = value; }
|
||||||
}
|
}
|
||||||
|
public double PrevClose
|
||||||
|
{
|
||||||
|
get { return prevClose; }
|
||||||
|
set { prevClose = value; }
|
||||||
|
}
|
||||||
public bool IsValid
|
public bool IsValid
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
Reference in New Issue
Block a user