39 private readonly
int _shadowShortAveragePeriod;
40 private readonly
int _shadowLongAveragePeriod;
41 private readonly
int _nearAveragePeriod;
42 private readonly
int _farAveragePeriod;
43 private readonly
int _bodyLongAveragePeriod;
45 private decimal[] _shadowShortPeriodTotal =
new decimal[3];
46 private decimal[] _shadowLongPeriodTotal =
new decimal[2];
47 private decimal[] _nearPeriodTotal =
new decimal[3];
48 private decimal[] _farPeriodTotal =
new decimal[3];
49 private decimal _bodyLongPeriodTotal;
71 : this(
"ADVANCEBLOCK")
80 get {
return Samples >=
Period; }
93 if (Samples >=
Period - _shadowShortAveragePeriod)
100 if (Samples >=
Period - _shadowLongAveragePeriod)
106 if (Samples >=
Period - _bodyLongAveragePeriod)
111 if (Samples >=
Period - _nearAveragePeriod)
117 if (Samples >=
Period - _farAveragePeriod)
135 input.
Close > window[1].Close && window[1].Close > window[2].Close &&
137 window[1].Open > window[2].Open &&
140 input.
Open > window[1].Open &&
183 for (var i = 2; i >= 0; i--)
189 for (var i = 1; i >= 0; i--)
195 for (var i = 2; i >= 1; i--)
214 _shadowShortPeriodTotal =
new decimal[3];
215 _shadowLongPeriodTotal =
new decimal[2];
216 _nearPeriodTotal =
new decimal[3];
217 _farPeriodTotal =
new decimal[3];
218 _bodyLongPeriodTotal = 0;