mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
style patterns
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user