fxDreema

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

    When I use "Once per bar", it is executed in the middle of bar.

    Questions & Answers
    3
    7
    2317
    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.
    • A
      arthitbe last edited by

      When I use "Once per bar", it is executed in the middle of bar.
      Any way I can execute the blocks at the completed bar to get exact value of high low open close candle id 0 ?

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @arthitbe last edited by ambrogio

        @arthitbe you must use candle ID1 because the candle ID0 does not exist because it is not yet completed

        1 Reply Last reply Reply Quote 0
        • A
          arthitbe last edited by

          That means, the execution of blocks start at the beginning of the new bar. Am I correct?

          A 1 Reply Last reply Reply Quote 0
          • M
            mfuetterer last edited by

            I should have said that:
            I tried Candle 1, with no effect.

            But I got another idea, which I thought would solve it.

            I have a "once per bar" block set to current for the whole EA.
            So I tried to set the whole EA to M15 and connect to a "once per bar" block set to current:
            0_1534835012969_2018-08-21 09_00_15-Toptrend.png

            But the the EA doesn't do anything.

            I tried to have seperate "once per bar"
            0_1534835132054_2018-08-21 09_04_37-Toptrend.png

            The EA won't start.

            1 Reply Last reply Reply Quote 0
            • M
              mfuetterer last edited by

              Sorry wrong thread

              1 Reply Last reply Reply Quote 0
              • A
                ambrogio @arthitbe last edited by ambrogio

                @arthitbe yes sure, if in candle 1 your condition has occurred

                A 1 Reply Last reply Reply Quote 0
                • A
                  arthitbe @ambrogio last edited by

                  @ambrogio OK, I will try forward test in demo what will happened.

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

                  Online Users

                  S
                  M
                  2
                  M
                  M
                  N
                  B

                  20
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors