Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Instrument Dataseries with Null Value

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

    Multiple Instrument Dataseries with Null Value

    Dear Ninjatrader Support,

    I have a question.
    Suppose you have two dataseries in a strategy, first one as ETH ES and second one as Z (FTZE), the close for Z (Closes[1][0]) should be NULL in non trading hours of Z. But when I try to reference it from a strategy the Closes[1][0] will return the closing price of the prior session.

    Is there any way to avoid this?
    I just want to export synchronized dataseries to csv which would put null value at non trading hours.

    Your advise is highly appreciated.

    Thank you.

    #2
    Hello,

    While you won't be able to do this when using the Closes[][] you could create a custom data series that stored a value such as 0 whenever the market was closed.



    You would likely sync the series with the ES and then update the values according to the current value/time on the Z

    By default your data series will sync to the primary. If you need to sync it to a different series please see this guide: http://www.ninjatrader.com/support/f...ead.php?t=3572
    LanceNinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply.
      I will use GetNextBeginEnd and compare time.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X