36 private readonly
int _bodyLongAveragePeriod;
37 private readonly
int _bodyShortAveragePeriod;
39 private decimal _bodyLongPeriodTotal;
40 private decimal _bodyShortPeriodTotal;
66 get {
return Samples >=
Period; }
79 if (Samples >=
Period - _bodyLongAveragePeriod - 2 && Samples <
Period - 2)
84 if (Samples >=
Period - _bodyShortAveragePeriod - 1 && Samples <
Period - 1)
99 Math.Max(window[1].Close, window[1].Open) < Math.Max(window[2].Close, window[2].Open) &&
100 Math.Min(window[1].Close, window[1].Open) > Math.Min(window[2].Close, window[2].Open) &&
128 _bodyLongPeriodTotal = 0;
129 _bodyShortPeriodTotal = 0;