fxDreema

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

    Operation to the opening of the candle not to the tick

    Questions & Answers
    2
    4
    889
    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
      edwinlb10 last edited by

      Greetings. I have a doubt, I want to create an EA that opens the operations to the opening or closing of each candle but not on each tick. I appreciate if someone can guide me on this to know what block to use. Thanks in advance.

      timmyhanke 1 Reply Last reply Reply Quote 0
      • timmyhanke
        timmyhanke @edwinlb10 last edited by

        @edwinlb10

        Once/ bar block is used for that .

        If the block is used at the start of your following rows of blocks then it will take action at the beginning of each candle.

        If used in the middle somewhere it will take action somewhere in the spand of a candle time if your other conditions are true .

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

          In which event I put it On Init, On Timer or on Tick because I still understand if it goes on tick it runs on the first tick of the new candle but not the opening of the candle.

          timmyhanke 1 Reply Last reply Reply Quote 0
          • timmyhanke
            timmyhanke @edwinlb10 last edited by

            @edwinlb10

            It goes under on tick , if used on top it will only activate once when a new candle opens , and only once . Then it wont check contiions at all until the next candle is opended, so it blocks everything else.

            And if used below your main conditions and above buy/sell blocks it will check the conditions on every tick and when its true it will only pass once , and that can be anywere in the spand of the candle time, at the beggining middle or end of it .

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

            Online Users

            N
            M
            E
            M
            A
            H
            E
            E
            M
            S
            N

            17
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors