Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Addng properties & plots to indicator 1st made w/wizard: conflicts

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

    Addng properties & plots to indicator 1st made w/wizard: conflicts

    After making a chart overlay indicator using the wizard, I can usually add additional properties and plots as needed, adjusting the order or value of the existing properties and plots that come after the one I am adding. This usually works, but sometimes it results in a conflict. This can affect the color properties of plots, or it can cause the entire indicator to not overlay on the chart. Is there a way to properly add additional properties and plots that does not result in this happening?

    #2
    Hello c2injacator,

    Thanks for your post.

    To add additional properties to the script, you could copy one of the already existing properties you created with the indicator wizard and then modify the code of the property such as the Values index or name of the property.

    To add plots to the indicator, you would need to use the AddPlot() method in the script.

    If you want to indicator to overlay on the chart, you would set the IsOverlay property to true. Otherwise, it should be set to false.

    IsOverlay: https://ninjatrader.com/support/help.../isoverlay.htm

    Further, you must make sure that the name of the plot property and Values index of the plot property matches the plot being added. For example, if the added plot is the second plot added to the script, you should make sure that plot property has a Values index of 1 (Values[1])

    [Browsable(false)]
    [XmlIgnore]
    public Series<double> Plot2
    {
    get { return Values[1]; }
    }


    See this help guide page for more information about adding plots and sample code:

    Last edited by NinjaTrader_BrandonH; 08-13-2023, 07:33 PM.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you Brandon,

      I do add properties and plots as you describe, all indexes adjusted and in the correct order. But at some point, after adding and/or removing a few, the color of a plot tends to adopt the color of the next plot. Otherwise the properties are not changed. So I carefully check, and all the code is as it should be.

      The only fix for me is to re-create the indicator with the wizard. It can be a bit time consuming, but if there is no special trick to making it work, I'll just have to do it that way. I was mostly wondering if others who write their own indicators experience the same and if anyone has discovered which hoop to jump through to make it work.

      The second link you provided is Page Not Found.

      Comment


        #4
        Hello c2injacator,

        Thanks for your notes.

        As long as the plot properties are modified and in the same order that the plots are added in the script, I would not expect the behavior you are reporting to occur.

        For example, the first plot in the script should have Values defined as Values[0]. The second plot in the script should have Values defined at Values[1], and so on.

        See this demonstration video: https://brandonh-ninjatrader.tinytak...NF8yMTkwNjg1Nw

        Thanks for reporting the link. I have modified it to direct to the proper help guide page and the link is working.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

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