fxDreema

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

    oninit function

    Bug Reports
    2
    5
    238
    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.
    • O
      omid222 last edited by

      Hi, the oninit function must be reloaded every time the time frame changes, but I tested it several times and it didn't work.

      1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by

        To reload, remove EA and add the EA again

        O 1 Reply Last reply Reply Quote 0
        • O
          omid222 @sktsec last edited by

          @sktsec That is, if the EA is on the chart, when the time frame is changed, ONINIT will not be executed again?

          1 Reply Last reply Reply Quote 0
          • S
            sktsec last edited by sktsec

            No. Oninit() will NOT be executed again. Unlike indicator.

            BTW, therefore, the value of the variables will not be changed, you can use comment to print them out and see nothing changed

            O 1 Reply Last reply Reply Quote 0
            • O
              omid222 @sktsec last edited by

              @sktsec 👍

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

              Online Users

              K
              A
              S
              B
              A

              17
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors