Make the RMultiple a numeric value in the Telerik grid.
This commit is contained in:
@@ -71,8 +71,10 @@ namespace TradeBlotter.Model
|
||||
base.OnPropertyChanged("ActiveMarketValue");
|
||||
base.OnPropertyChanged("GainLoss");
|
||||
base.OnPropertyChanged("GainLossPcnt");
|
||||
base.OnPropertyChanged("RMultipleAsString");
|
||||
// base.OnPropertyChanged("RMultipleAsString");
|
||||
base.OnPropertyChanged("RMultiple");
|
||||
base.OnPropertyChanged("EdgeRatioAsString");
|
||||
|
||||
base.OnPropertyChanged("CurrentPriceColor");
|
||||
base.OnPropertyChanged("TrailingStopLimitColor");
|
||||
base.OnPropertyChanged("InitialStopLimitColor");
|
||||
@@ -81,6 +83,7 @@ namespace TradeBlotter.Model
|
||||
base.OnPropertyChanged("GainLossColor");
|
||||
base.OnPropertyChanged("GainLossPcntColor");
|
||||
base.OnPropertyChanged("EdgeRatioAsStringColor");
|
||||
base.OnPropertyChanged("RMultipleColor");
|
||||
}
|
||||
public Position Position
|
||||
{
|
||||
@@ -229,7 +232,13 @@ namespace TradeBlotter.Model
|
||||
{
|
||||
get{return Utility.FormatNumber((position.CurrentPrice-position.PurchasePrice)/(position.PurchasePrice-position.InitialStopLimit),2,false)+"R";} // always based on original position risk
|
||||
}
|
||||
public Brush RMultipleAsStringColor
|
||||
|
||||
public double RMultiple
|
||||
{
|
||||
get{return (position.CurrentPrice-position.PurchasePrice)/(position.PurchasePrice-position.InitialStopLimit);} // always based on original position risk
|
||||
}
|
||||
|
||||
public Brush RMultipleColor
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user