Custom Indicator parameter value error
-
Hi guys!
I'm using a custom indicator and into one parameter it's showing "PERIOD_CURRENT" where it should show the number of periods:

The indicator setup is correct:

It was working before. And I do belive that this incorrect value is causing a Initialization error:

What can cause this?
Thank you!
-
If I do change it for some value or Constant and update it, when I do open it again, the "PERIOD_CURRENT" returns to value field.
-
Try ENUM_TIMEFRAMES as a data type instead of int for Period. Also count the number of parameters, in case you missed one.
-
@fxdreema said in Custom Indicator parameter value error:
ENUM_TIMEFRAMES
Thanks for your reply!
unfurtunatelly this didn't work. But just to remember, this period is not related to time frames. It is related to number of candles
-
@fxdreema said in Custom Indicator parameter value error:
Try ENUM_TIMEFRAMES as a data type instead of int for Period. Also count the number of parameters, in case you missed one.
One more note: It was working yesterday. But after some changes it start to show like this. Do we had some changes into fxDreema logical code or something like?
That's why it is really strange for me
-
The same issue with some other field. But in these cases they keep in blank even after changes. Into "My indicator" folder it was filled.

-
hi, @fxDreema !
Any ideia about this error?
-
Please, guys
Could any one help me, please?
-
Aaaa maybe the problem comes from the fact that there is a Period variable already, this is the Period parameter that exists for all indicators. So I guess there is a collision that happens. This is something that I'm aware that it's possible to happen for years, you are just the first one to report that. In the past the Period variable was named TIMEFRAME, but lately I renamed it to Period. I also renamed SYMBOL to Symbol and SHIFT to Shift. I guess that I have to review how custom indicators are used in the system and who knows when will I do that. My suggestion is unfortunately to rename that variable in the indicator itself, this will probably fix the problem.
-
What I am talking... the parameter names in the indicator file does not matter. Try to rename Period to something else, I think it will work.
-
Great, buddy!
I'll do that and keep you notified.Thanks for your help!