mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-18 18:48:05 +00:00
style patterns
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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