fxDreema

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

    How to run blocks in order

    Questions & Answers
    2
    3
    1482
    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
      migen last edited by

      Hi there,

      I have some problem because EA should work :

      • Using variables to calculate strength of currency
      • Open or Close orders

      But when the EA is calculating the strength of each currency, there is some delays , and it sometimes open before finished completed (results).

      I can use time filter to put these blocks run one after one.
      However, is there any other suggestion to run these blocks in order ?

        1. Run and finish calculation of strength of each currency.
        1. Open order if condition is valid.
        1. Close order if other condition is valid.

      0_1561643859530_1.jpg
      0_1561645100772_2.jpg
      0_1561645109254_3.jpg

      I use Run Blocks, however, it seems while Ea is calculating, the EA also open&close in same time.
      0_1561645174577_4.jpg

      Any suggestions ?

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

        Maybe you get wrong information in that Comment block that is on the top. its number is 7190 and it will run before some of the blocks where the calculation happens - 7193, 7197 and so on. Block numbers matter when they are connected like that. There are 9 blocks connected after the Calculate block and the one with the biggest number is 7229. The Comment block (7190) should have a number that is at least 7230 in this situation.

        M 1 Reply Last reply Reply Quote 0
        • M
          migen @fxDreema last edited by

          Thanks @fxdreema
          I have just done some changes, it seems works well, it takes some times to check.

          Here are my changes : blocks numbers and and Run Blocks.
          0_1561648901074_5.jpg
          0_1561648910804_6.jpg

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

          Online Users

          A
          A
          X
          K
          F

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors