Announcement

Collapse
No announcement yet.

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X