Announcement

Collapse
No announcement yet.

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        55 views
        0 likes
        Last Post CarlTrading  
        Working...
        X