![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Sep 2008
Posts: 75
Thanks: 0
Thanked 0 times in 0 posts
|
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...
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
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
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 2008
Posts: 75
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
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.
Ben
NinjaTrader Customer Service
Last edited by NinjaTrader_Ben; 10-09-2008 at 09:18 AM.
|
|
|
|
|
|
#5 |
|
Member
Join Date: Sep 2008
Posts: 75
Thanks: 0
Thanked 0 times in 0 posts
|
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
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |