fxDreema

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

    Set "Current Market" for next blocks

    Questions & Answers
    2
    4
    921
    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.
    • M
      monsterfly last edited by

      Is it possible to use the "Set "Current Market" for next blocks" block to scan all symbols in the market watch window if they are listed in the Market List by attaching it to a single chart? I tried this but it only seemed to look at 2 or 3 different symbols instead of all the ones listed in the Market List. For example, I entered five different currency symbols in the Market List input, but it only responded to two of them, and it wasn't the first two in the list. All symbols were available in the Market Watch window. Can it be attached to multi condition blocks or does each condition block need its own "Set "Current Market" for next blocks" block? Thanks.

      https://fxdreema.com/shared/y7m6WlmTb

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

        "Once per bar" is the limit here. This block is not aware of the dynamics that "Set..." creates.

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

          ok, thanks. Didn't think it was going to be that easy. If I pulled out the once per bar block, is there a straight forward way to limit the alert message to once per selected time frame, instead of each tick, that would not impact the "Set..." block?

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

            No. Such thing would require arrays for remembering the state for each frame, but in "Once per bar" there is only 1 memory value that works in general. It's not impossible for "Once per bar" to be modified, but as a result it will start to work slower and this is something I don't like. Unfortunately in MQL4/MQL5 there are no associative arrays to make things simpler and I don't know how to easily work in scenarios where associative arrays would work fine.

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

            Online Users

            P
            B
            N
            E
            M
            J
            S
            C

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors