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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        83 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        45 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        65 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
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X