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

Missing bars?

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

    Missing bars?

    I have a code which I developed for curiosity:

    Code:
    if(ToTime(Time[0]) >= 0 && ToTime(Time[0]) <= 93000 && BarsInProgress == 0)
                        {
                            timeList.Add(1);
                        }
    Then after, the list gets SUM, PRINTED and then CLEARED again for the next session

    I did a look back 30 days. Heres my output:

    567
    210
    571
    571
    568
    570
    569
    570
    569
    571
    571
    567
    568
    547
    566
    570
    568
    566
    562
    571
    Why is it not 570 exactly? Why are some bars missing. I replayed the code over and over and its the same numbers. This means that some bars are missing.

    Im just curious why this is.

    #2
    Hello Maciek,
    To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

    Also please let me know the exact steps to replicate the scenario at my end.

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frankthearm, Yesterday, 09:08 AM
    12 responses
    43 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by junkone, Today, 11:37 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by quantismo, 04-17-2024, 05:13 PM
    5 responses
    35 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by proptrade13, Today, 11:06 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    35 views
    0 likes
    Last Post love2code2trade  
    Working...
    X