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
186 stars 98 forks source link

Indicator: Create Dict of indicators with different typename #126

Closed kenorb closed 3 years ago

kenorb commented 4 years ago

After adding a template's TEntry for each indicator (e.g. Indicator<ACEntry>, Indicator<ADEntry>), it's difficult to make a single Dict having a collection of all different indicators.

Possible solutions:

Dict<long, Indicator<IndicatorEntry>*> indis;
Dict<long, Collection*> indis;
DictObject<long, Object> indis;

None of them worked so far.

kenorb commented 4 years ago

Workaround to test: Dict<long, IndicatorBase*> dict.