diff --git a/Monitor/Pages/MarketAnalyzer.cshtml b/Monitor/Pages/MarketAnalyzer.cshtml
index 37a7ff2..15bd1d1 100644
--- a/Monitor/Pages/MarketAnalyzer.cshtml
+++ b/Monitor/Pages/MarketAnalyzer.cshtml
@@ -183,14 +183,15 @@ else
@Core.Helper.SystemHelper.SplitCamelCase(marketTrend.Name) |
@marketCountString |
- @Core.Helper.SystemHelper.GetProperDurationTime(marketTrend.TrendMinutes * 60, false) | @if (marketTrend.TrendThreshold == 0)
- {
- -- |
- }
- else
- {
- @marketTrend.TrendThreshold |
- }
+ @Core.Helper.SystemHelper.GetProperDurationTime(marketTrend.TrendMinutes * 60, false) |
+ @if (marketTrend.TrendThreshold == 0)
+ {
+ -- |
+ }
+ else
+ {
+ @marketTrend.TrendThreshold |
+ }
@trendChangeOutput% |
}
@@ -275,18 +276,18 @@ else
@mps.LatestPrice.ToString("#,#0.00000000", new System.Globalization.CultureInfo("en-US")) @Model.Summary.MainMarket |
@Math.Round(mps.Latest24hVolume, 0).ToString("#,#0", new System.Globalization.CultureInfo("en-US")) @Model.Summary.MainMarket |
@foreach (Core.Main.DataObjects.PTMagicData.MarketTrend marketTrend in marketTrends) {
- if (mps.MarketTrendChanges.ContainsKey(marketTrend.Name)) {
+ if (mps.MarketTrendChanges.ContainsKey(marketTrend.Name))
+ {
marketTrendsDisplayed++;
string trendChangeOutput = mps.MarketTrendChanges[marketTrend.Name].ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"));
- if ((mps.MarketTrendChanges[marketTrend.Name] > marketTrend.TrendThreshold) || (mps.MarketTrendChanges[marketTrend.Name] > marketTrend.TrendThreshold) )
- {
- @trendChangeOutput% |
- }
- else
- {
- @trendChangeOutput% |
- }
-
+ if (marketTrend.TrendThreshold != 0 && Math.Abs(mps.MarketTrendChanges[marketTrend.Name]) > marketTrend.TrendThreshold)
+ {
+ @trendChangeOutput% |
+ }
+ else
+ {
+ @trendChangeOutput% |
+ }
}
}
@for (int i = 0; i < marketTrends.Count - marketTrendsDisplayed; i++) {