Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Mix data series Complex Problem

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

    Mix data series Complex Problem

    Hi,

    I'm building a strategy that use 5 minute data and EOD data.
    Base on a calculation of the EOD data I decide if to use the 5 minute data.
    5 minute is BIP==1 and EOD is BIP==2.
    I'm running my strategy as a backtest for now and if I'm trying to get the last data out of the EOD(The current night) I need to wait for the open of the day after so I get a new 5 minute bar.
    I want to be able to get triggered also in the end of the day.
    I know that NT is event driven so the CalculateOnBarClose() will only be triggered when a new tick arrive, but is there a way to solve it?
    My strategy is for US stocks and I'm using latest NT version with Kinetick real time data.

    I hope I made my question clear :-)

    TX in advance!!!

    #2
    Hello freewind,
    OnBarUpdate is the event which gets updated with every tick. CalculateOnBarClose determines whether the same be updated on every tick or only once at the close of the bar, to save pc resource. Please do see this help guide for reference http://www.ninjatrader.com/support/h...onbarclose.htm

    Since you have an intraday dataseries you can use that during backtest, with a bit of ingenuity, say a time check before the session close, to calculate what you need.

    Regards,
    Joydeep.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      My mistake of course I meant OnBarUpdate() :-)

      Comment


        #4
        Hello freewind,
        Yes I could assume.

        As I mentioned earlier, since you have a dataseries of intrabar granularity you can achive what you can. Also do check up with this reference sample code, it can give you some ideas http://www.ninjatrader.com/support/f...ead.php?t=6652

        Let me know if I can be of any more help.

        Regards,
        Joydeep.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        668 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        377 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X