Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Line Values as Parameters vs Lines in UI

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

    Line Values as Parameters vs Lines in UI

    Hello,
    Please see the attached snapshot of the Upper and Lower Parameters in the User Interface:

    http://screencast.com/t/2lxFIB1B1

    Now see the attached for the Lines section in the User Interface (purposely made different values than Upper/Lower):

    http://screencast.com/t/MtdAsZNr0wO

    My code is using Upper and Lower values for various tests. IE, If the line crosses the upper line at 80, draw an arrow. The value for Upper in the parameters is 80, and the Lines[0].Value is "Upper".

    I want to know if changing the line plot value using Upper or Lower must be changed in both of these sections of the user interface.
    Or, per another version, here is the user interface screenshot where they are listed together:
    http://screencast.com/t/Db3PEkgh

    When I make a change to the appearance on the chart, must I change both values for Upper 80 and for the Line plotted at 80?
    Last edited by zeller4; 04-10-2012, 04:46 PM.

    #2
    Hi zeller4,

    It depends how your lines are coded. Lines added with the new line in Initialize() are not meant to be dynamic, and changing the input will have no effect.

    If you want lines to change with an input, they need to be setup as horizontal lines with DrawHorizontalLine(), or by setting a plot value to the input, like is done with the built-in ConstantLines indicator.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan,

      I'm testing the constant lines indicator with my code. What does this piece of code do? (couldn't find it in the help guide)

      Code:
      ChartOnly			= true;

      Comment


        #4
        Zeller,

        This is an unsupported property. What it does is make the indicator for visualization only meaning you cannot programmatically access its values in other scripts (indicator or strategy).
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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