Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Line and Plot

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

    Line and Plot

    Which difference among object derived from the line class and object derrived from plot class ? One of them can be substitute another one ?

    #2
    Hello hozman,

    Thank you for your post.

    A Line is a single value, where a Plot holds multiple objects as it is a DataSeries. These cannot replace each other.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello hozman,

      Thank you for your post.

      A Line is a single value, where a Plot holds multiple objects as it is a DataSeries. These cannot replace each other.
      Hm. And why in standart indicator DEMA using plot, although in it drawing only one line, and accordingly calculated from one solid value....

      Comment


        #4
        Hello hozman,

        Thank you for your response.

        A Plot will be drawn as a line connecting each point to each. This is not the same thing as the Line Class.

        You can see an example if you go to Tools > Edit NinjaScript > Indicator > RSI. The RSI has two plots and two lines used. You will notice the Lines use a static value.

        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        345 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X