Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

to set DataSeries but don't plot it

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

    to set DataSeries but don't plot it

    i want this

    See pics 1...and Pics2..

    I want as Pics2....i set dataseries every candle but i don't want plot it every candle
    Attached Files

    #2
    Hello,

    Thank you for the post.

    You can accomplish this type of plot by using the Reset() method. This essentially invalidates the index for plotting and marks it as invalid so it can be used with IsValidDataPoint(). There is a sample in the help guide that demonstrates this concept.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Excuse me...

      what is the different of :

      Num.Reset(0)
      or
      Num[0]=0;

      is the same ? (num is series<double>)

      and the different of :

      Num.IsvalidPoint()

      and

      (Num[0]!=0 )

      is the same?

      thank you for explanation
      Last edited by esignal; 03-08-2017, 12:12 PM.

      Comment


        #4
        Hello,

        These would not necessarily be the same.

        The Reset method also triggers the internal marker IsValidDataPoint and affects plotting whereas setting a 0 value to the plot will just place the plot at a 0 value.

        Checking the if condition is similar but in one case you are checking if the point is valid, the second you are checking if its value is not zero.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by RubenCazorla, Today, 09:07 AM
        2 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by i019945nj, 12-14-2023, 06:41 AM
        7 responses
        81 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by timmbbo, 07-05-2023, 10:21 PM
        4 responses
        158 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by tkaboris, Today, 08:01 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Lumbeezl, 01-11-2022, 06:50 PM
        31 responses
        818 views
        1 like
        Last Post NinjaTrader_Adrian  
        Working...
        X