Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    BertrandNinjaTrader Customer Service

    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.
          BertrandNinjaTrader Customer Service

          Comment


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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by briansaul, Today, 05:31 AM
            0 responses
            2 views
            0 likes
            Last Post briansaul  
            Started by fwendolynlpxz, Today, 05:19 AM
            0 responses
            4 views
            0 likes
            Last Post fwendolynlpxz  
            Started by traderqz, Yesterday, 12:06 AM
            11 responses
            28 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by PaulMohn, Today, 03:49 AM
            0 responses
            8 views
            0 likes
            Last Post PaulMohn  
            Started by inanazsocial, Today, 01:15 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Jason  
            Working...
            X