Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

need some guidance on how to achieve this

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    need some guidance on how to achieve this

    Let's say I have count A which consist of 9 consecutive counts and upon the completion of count A, count B commences and consists of 13 not necessarily consecutive counts.

    While count B is counting, count A can initiate a new count if the conditions are right. In such a situation, it is also possible for the new count A to complete before the count B which was counting before the new count A started.

    As a result of this situation where the new count A has completed and count B is still counting, a new count B needs to be initiated and hence there would be two sets of count B counting but on different nunmber counts.

    Any ideas on how I can get the second set of count B to count?

    #2
    Then you would just need to create two separate B counters (B1, B2 for example) so the could count on different conditions triggered for you, you could perhaps also work with flags to switch counts as needed for your setup.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand!

      If I were to go with option A, I would be limited to 2 sets of counts when in reality there could be more.

      I'm not sure what you mean by option B. Would you mind elaborating?

      Comment


        #4
        From your first post I had the impression you were looking for 2 separate B counts that could return different individual readings in the process. The bool flag would just allow you to return out of your count at any time an external condition of yours would dictate.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Aviram Y, Today, 05:29 AM
        0 responses
        2 views
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        25 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        7 responses
        34 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cls71, Today, 04:45 AM
        0 responses
        6 views
        0 likes
        Last Post cls71
        by cls71
         
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        217 views
        1 like
        Last Post PaulMohn  
        Working...
        X