fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Custom Indicator parameter value error

    Questions & Answers
    2
    11
    1981
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eklonsousa last edited by

      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:

      alt text

      The indicator setup is correct:

      alt text

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

      alt text

      What can cause this?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • E
        eklonsousa last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by

          Try ENUM_TIMEFRAMES as a data type instead of int for Period. Also count the number of parameters, in case you missed one.

          E 2 Replies Last reply Reply Quote 0
          • E
            eklonsousa last edited by eklonsousa

            @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

            1 Reply Last reply Reply Quote 0
            • E
              eklonsousa @fxDreema last edited by

              @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

              E 1 Reply Last reply Reply Quote 0
              • E
                eklonsousa @fxDreema last edited by

                @fxdreema

                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.

                alt text

                1 Reply Last reply Reply Quote 0
                • E
                  eklonsousa @eklonsousa last edited by

                  hi, @fxDreema !

                  Any ideia about this error?

                  1 Reply Last reply Reply Quote 0
                  • E
                    eklonsousa last edited by

                    Please, guys

                    Could any one help me, please?

                    1 Reply Last reply Reply Quote 0
                    • fxDreema
                      fxDreema last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • fxDreema
                        fxDreema last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • E
                          eklonsousa last edited by

                          Great, buddy!
                          I'll do that and keep you notified.

                          Thanks for your help!

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post

                          Online Users

                          D
                          F
                          K
                          C
                          E
                          M
                          F
                          T

                          20
                          Online

                          146.6k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors