• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create a New Data Series based on the Close data series?

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

    How to create a New Data Series based on the Close data series?

    Hello,

    I am new to NinjaTrader and I am trying to understand how to create a New Data Series called Close-HOD that is based on the values of the Close Data Series.

    1. I would like like to test the Close-Price for each Day candle:

    IF the candle Close-Price establishes a new high,

    THEN I would like to assign the Close-Price to the New Close-HOD data series,

    ELSE I would like to assign the previous close candle to the Close-HOD data series.

    2. I would like to start this on the Market Open.

    #2
    Hello nedstrader,

    Thanks for your post and welcome to the Ninjatrader forums.

    Here is a link to the help guide section for creating a dataseries: https://ninjatrader.com/support/help...8/?seriest.htm The help guide provides examples of declaring a custom series of the <double> type that you will need for a price based series. It then shows initializing it in State.DataLoaded and then using the series in the OnBarUpdate(0 method. The custom data series will be aligned with the charts data series.

    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rafaelabe1977, Today, 03:51 AM
    1 response
    8 views
    0 likes
    Last Post sledge
    by sledge
     
    Started by inghkip17, Today, 06:25 AM
    0 responses
    4 views
    0 likes
    Last Post inghkip17  
    Started by inghkip17, Today, 06:23 AM
    0 responses
    4 views
    0 likes
    Last Post inghkip17  
    Started by xbdjvhbfvn, Today, 05:20 AM
    0 responses
    5 views
    0 likes
    Last Post xbdjvhbfvn  
    Started by jenifeery79, Today, 05:03 AM
    0 responses
    4 views
    0 likes
    Last Post jenifeery79  
    Working...
    X