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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X