fxDreema

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

    Check if any orders opened in current bar

    Questions & Answers
    2
    3
    897
    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.
    • T
      Trader3487 last edited by

      Is there a way to open 1 order per bar but at the highest point in the bar instead of at the beginning?

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

        "Once per bar" block has independent internal memory that remembers the last bar's time that the block was executed. When it is executed, if the time of the current bar is different than the time into the memory, the block is executed once.

        The current bar is unfinished, that means the H, L, O and C levels are not finished, they can be changed. But if in the middle of the block you want to open some trade - there is no problem. Put "Once per bar" after the condition and before the "Buy now/Sell now" so that when the condition is true in the middle of the block, "Once per bar" will pass once until the current bar is closed.

        1 Reply Last reply Reply Quote 0
        • T
          Trader3487 last edited by

          great, thank you.

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

          Online Users

          G
          K
          M
          M
          S
          E
          N
          A
          C
          M

          18
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors