Make the RMultiple a numeric value in the Telerik grid.

This commit is contained in:
2025-02-11 19:22:01 -05:00
parent 230d84904a
commit 16a65341e2
2 changed files with 139 additions and 3 deletions

View File

@@ -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
{