Skip to content

Commit

Permalink
IndicatorBase: Improves _key in iCustom5()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Nov 6, 2021
1 parent 7591da0 commit afeca35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IndicatorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ template <typename A, typename B, typename C, typename D, typename E, typename F
typename J>
double iCustom5(string _symbol, ENUM_TIMEFRAMES _tf, string _name, A _a, B _b, C _c, D _d, E _e, F _f, G _g, H _h, I _i,
J _j, int _mode, int _shift) {
ResetLastError();
static Dict<string, int> _handlers;
string _key = Util::MakeKey(_symbol, (string)_tf, _name, _a, _b, _c, _d);
string _key = Util::MakeKey(_symbol, (string)_tf, _name, _a, _b, _c, _d, _e, _f, _g, _h, _i, _j);
int _handle = _handlers.GetByKey(_key);
ICUSTOM_DEF(_handlers.Set(_key, _handle),
COMMA _a COMMA _b COMMA _c COMMA _d COMMA _e COMMA _f COMMA _g COMMA _h COMMA _i COMMA _j);
Expand Down

0 comments on commit afeca35

Please sign in to comment.