Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateOnBarClose=true vs FirstTickOfBar

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

    CalculateOnBarClose=true vs FirstTickOfBar

    Hi Ninjatrader


    I would like to compare two situations
    As far as I understand NinjaTrader is eventdriven and not timedriven. I suppose that barclose is true when a tick arrives and the time since the close of the previous bar exceeds the timelength of the bar. The bar is closed and that specific tick is the open of the next bar.

    1) CalculationOnBarClose=true
    When an entry is triggered at the close of the bar and assuming that the above is correct the entry can be executed at the most at the second tick of that bar or at a later tick.

    2) CalculateOnBarClose=false
    Suppose I have the the same entry rules as above and the additional condition FirstTickOfBar.

    It looks like that the results should be the same. I have not tested it.
    Am I correct or is there something that I do not see.?

    #2
    Yes, should be same. We have not tested it yet though.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    75 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by Stanfillirenfro, Today, 07:23 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FitSpressoHonest, Today, 09:14 AM
    0 responses
    4 views
    0 likes
    Last Post FitSpressoHonest  
    Started by Davide999, 05-18-2023, 03:55 AM
    4 responses
    557 views
    1 like
    Last Post kcwasher  
    Started by rexsole, Today, 08:39 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X