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 TheWhiteDragon, 01-21-2019, 12:44 PM
        4 responses
        541 views
        0 likes
        Last Post PaulMohn  
        Started by GLFX005, Today, 03:23 AM
        0 responses
        3 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        11 views
        0 likes
        Last Post XXtrader  
        Started by Waxavi, Today, 02:10 AM
        0 responses
        7 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by TradeForge, Today, 02:09 AM
        0 responses
        14 views
        0 likes
        Last Post TradeForge  
        Working...
        X