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

Number of executions in one candle

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

    Number of executions in one candle

    Is there any way to know what the number of executions was in a bar?

    #2
    Hi 7robert, thanks for your post.

    The script would need to use the OnExecutionUpdate() event and count up with a class level int variable every time an execution occurs in the event. Reset the counter on every OnBarUpdate call. We have a use case example of OnExecutionUpdate here:

    https://ninjatrader.com/support/help...and_onexec.htm

    Best regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chris, I have another question. Is there any limitation for the number of data series that I can consult at the same time? Number of processors or threads?

      Comment


        #4
        Hi 7robert,

        The limit would be the number of threads your PC is able to run at one time and your data provider. There is no hard-set number as a limit.

        Best regards.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by f.saeidi, Yesterday, 12:14 PM
        9 responses
        23 views
        0 likes
        Last Post f.saeidi  
        Started by Tim-c, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        3 views
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,772 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        31 views
        0 likes
        Last Post Max238
        by Max238
         
        Working...
        X