NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 10-09-2008, 01:08 AM   #1
RandyT
Member
 
Join Date: Sep 2008
Posts: 75
Thanks: 0
Thanked 0 times in 0 posts
Default 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
File Type: zip RMOIndicator_broken.zip (6.1 KB, 7 views)
RandyT is offline  
Reply With Quote
Old 10-09-2008, 08:44 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

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:
http://www.ninjatrader-support.com/v...ead.php?t=9825
NinjaTrader_Ben is offline  
Reply With Quote
Old 10-09-2008, 08:50 AM   #3
RandyT
Member
 
Join Date: Sep 2008
Posts: 75
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
RandyT is offline  
Reply With Quote
Old 10-09-2008, 09:15 AM   #4
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

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 at 09:18 AM.
NinjaTrader_Ben is offline  
Reply With Quote
Old 10-09-2008, 09:25 AM   #5
RandyT
Member
 
Join Date: Sep 2008
Posts: 75
Thanks: 0
Thanked 0 times in 0 posts
Default

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
RandyT is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price Bars Over Indicator Lines gpq Charting 2 05-04-2008 11:13 PM
How can I draw lines behide the candlestick bars? clearpicks General Programming 4 04-22-2008 06:26 PM
Saving Drawn Lines and Fib Lines jfalbert19 Charting 6 04-01-2008 07:45 PM
Sma To Plot Color Bars Not Lines avlasov Indicator Development 4 12-08-2007 03:37 PM
Plotting 3 lines beside Wizard generated code grd974 General Programming 2 08-26-2007 02:07 AM


All times are GMT -6. The time now is 01:41 PM.