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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        60 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X