EA31337 / EA31337-classes

📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
https://ea31337.github.io/EA31337-classes
GNU General Public License v3.0
175 stars 97 forks source link

Indicator: Implement method utilizing BandsOnArray on the idata #155

Closed kenorb closed 4 years ago

kenorb commented 4 years ago

The method should accept mode for which to calculate the value (by default 0, some indicators could have multiple modes/indexes), and results can be stored in another variable, e.g. ibands/ibands[mode] (of Buffer or BufferStruct type). The storing values can be either doubles or even better is to use struct, e.g. BufferStruct<IndicatorDataEntry> ibands (to support storing of 3 values per indicator data entry: BAND_LOWER/BAND_BASE/BAND_UPPER).

Input values can be similar to #156 (start_bar ot start_pos and count).

Refs:

kenorb commented 4 years ago

Can we add iBandsOnArray method to Indi_Bands class, similar as in #166 and #175?