fxDreema

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

    which is the most optimal to place the block: once per bar?

    Questions & Answers
    2
    3
    501
    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.
    • L
      luisjunior1224 last edited by

      0_1576010350078_37833dff-5740-4c10-b19d-b355138c30bc-image.png

      Luis Martinez

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @luisjunior1224 last edited by

        @luisjunior1224 From programmatically view the aim is to let conditions check be done only if it's required as they consume CPU power and maybe other resources.

        Hence placing the filter in the logic of how to reduce the cycles you put in the reight order in the screenshot.

        1. Hours filter filters out 1 to 23 hours a day depending on what you speciefied in it. Perfect! That will reduce the cycles to the allowed times.
        2. No trade - Filters only for times that there is no trade happening
        3. Once per bar. Absolutely right place here.

        Hence 1 in your screenshot is the right place from my opinion. However, there might be times where your business logic will require more cycle runs than you'd like from the programmatically view. But in the given exampke everything appears to be right.

        I like to share my knowledge, but expect the others to contribute as well.

        L 1 Reply Last reply Reply Quote 0
        • L
          luisjunior1224 @trader.philipps last edited by

          @trader-philipps thanks

          Luis Martinez

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

          Online Users

          D
          E
          M
          H
          C
          I
          I
          E

          18
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors