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 r68cervera, 04-25-2024, 05:29 AM
    2 responses
    16 views
    0 likes
    Last Post r68cervera  
    Started by SugarDefHealth, Today, 03:30 AM
    0 responses
    2 views
    0 likes
    Last Post SugarDefHealth  
    Started by ETFVoyageur, Today, 02:08 AM
    1 response
    8 views
    0 likes
    Last Post ETFVoyageur  
    Started by kujista, 04-22-2024, 07:46 AM
    3 responses
    13 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by kujista, 04-23-2024, 06:23 AM
    7 responses
    58 views
    0 likes
    Last Post kujista
    by kujista
     
    Working...
    X