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

Bars and Lines not Plotting

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

    Bars and Lines not Plotting

    I have looked at example after example and cannot figure out why this code will not plot the bars or lines of the histogram. I can draw other lines, but cannot get that data to print. I've confirmed that I have data and that it is getting to the .Set command, but nothing appears on the screen. I appreciate any help...
    Attached Files

    #2
    Hello,

    I took a quick look at your indicator and didn't see any glaring mistakes.


    Do you get any errors in your log tab?

    Try using a try-catch block as described in this link:
    DenNinjaTrader Customer Service

    Comment


      #3
      No errors are getting logged. The data that SHOULD be plotted shows up in the Data box. It shows up in the Print() statement right before the *.Set command that should plot the data. I did a lot of work last night to seperate some of the things I was doing to have a seperate indicator that writes to the Price Panel, etc. to hopefully make this simpler to debug... Has me totally stumped. I will have a look at Try/Catch, but since I am not throwing errors, does not seem like that will help. I may be wrong.

      Comment


        #4
        Hello,


        Please try removing this:
        Plots[0].Min = 0;
        Plots[1].Min = 0;
        Plots[2].Min = 0;
        Plots[3].Min = 0;
        Plots[4].Min = 0;

        Plots[0].Max = 0;
        Plots[1].Max = 0;
        Plots[2].Max = 0;
        Plots[3].Max = 0;
        Plots[4].Max = 0;

        Then remove the indicator and reattach it rather than reloading NinjaScript.
        Last edited by NinjaTrader_Ben; 10-09-2008, 09:18 AM.
        DenNinjaTrader Customer Service

        Comment


          #5
          That seems to have helped... I think the key lesson here is unloading and reloading the indicator. I know I tried this change in the past, but probably only reloaded the Ninjascript. Thanks again Ben

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          11 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          1 view
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          3 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          2 views
          0 likes
          Last Post 00nevest  
          Started by Jonafare, 12-06-2012, 03:48 PM
          5 responses
          3,988 views
          0 likes
          Last Post rene69851  
          Working...
          X