Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No Plots

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

    No Plots

    I am using the following code to add a plot. The plot is set numerous times while the code is running, but I don't see anything on the chart. Am I missing something?

    Initilize....

    Code:
    Add(new Plot(Color.Red,PlotStyle.Line,"Support"));
    Add(new Plot(Color.Red,PlotStyle.Line,"Resistance"));
    OnBarUpdate()....

    Code:
    Support.Set(myvalue);
    Resistance.Set(myvalue);
    Properties...

    Code:
    #region Properties
     
    [Browsable(false)]
    [XmlIgnore]
    public DataSeries Support
    {
     get {return Values[0]; }
    }
     
    [Browsable(false)]
    [XmlIgnore]
    public DataSeries Resistance
    {
     get {return Values[1]; }
    }
     
    #endregion

    #2
    Hi SystemTrading, have you checked for any errors in the Log tab, mostly likely you ran into this - http://www.ninjatrader-support2.com/...ead.php?t=3170

    If not, is AutoScale set to false and you can't see the Support / Resistance levels displayed?

    Did you use Print() inside your code to make sure the levels are calculated correctly and deliver values?

    Comment


      #3
      I did run into that issue as well, so I have added similar code to the link you posted. I have not looked at autoscaling so hopefully that's where my problem is, but shouldn't I still see the data in the data window if the plot is there?

      Comment


        #4
        AutoScaling is set to true and there is nothing in my error log. I am definately setting the values as using the print statements clearly returns properly formatted prices.

        Comment


          #5
          Yes, you should see the values of your Plots in the Data window...so this would point to some miscalculation then inside the code.

          Comment


            #6
            Of course you can always post the code if you wish, then we can take a look to help spotting the issue.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            591 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 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
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            553 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X