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 betsuni_123, Yesterday, 04:20 PM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by actualfacts.2021, 07-25-2021, 03:11 PM
        9 responses
        1,194 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by NinjaTrader_ChelseaB, 03-14-2017, 10:17 AM
        228 responses
        34,325 views
        7 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Philippe56140, 04-27-2024, 02:35 PM
        8 responses
        67 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by memonic, Yesterday, 01:23 PM
        3 responses
        26 views
        0 likes
        Last Post memonic
        by memonic
         
        Working...
        X