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 jaybedreamin, Today, 05:56 PM
    0 responses
    3 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Working...
    X