style patterns

This commit is contained in:
Miha Kralj
2026-01-25 16:01:45 -08:00
parent 2836f253c4
commit e59665c8f0
399 changed files with 6892 additions and 1323 deletions
+1 -1
View File
@@ -274,4 +274,4 @@ public class SgmaIndicatorTests
Assert.True(double.IsFinite(indicatorLow.LinesSeries[0].GetValue(0)));
Assert.True(double.IsFinite(indicatorHigh.LinesSeries[0].GetValue(0)));
}
}
}
+5 -2
View File
@@ -49,7 +49,10 @@ public sealed class SgmaIndicator : Indicator, IWatchlistIndicator
protected override void OnUpdate(UpdateArgs args)
{
if (_sgma == null || _selector == null) return;
if (_sgma == null || _selector == null)
{
return;
}
var item = HistoricalData[0, SeekOriginHistory.End];
double value = _selector(item);
@@ -61,4 +64,4 @@ public sealed class SgmaIndicator : Indicator, IWatchlistIndicator
bool isHot = _sgma.IsHot;
LinesSeries[0].SetValue(result.Value, isHot, ShowColdValues);
}
}
}