NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-06-2009, 10:59 AM   #1
noevictorian
Member
 
Join Date: Aug 2009
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default Autoscale for oscilators, not just drawings...

Is there a way to turn autoscale off for oscillators that draw 0-100 values?

I don't mean the autoscale property for drawings on panels. I mean that if I have an oscillator that could range from 0-100 but it's currently always above 60, for example, then 60 becomes the bottom edge of the graph and you have no sense of context. I'd like to see all that blank space from 0 to 60 with the plot over the halfway point in the visual space.

Make sense? How do I do that?
noevictorian is offline  
Reply With Quote
Old 10-06-2009, 11:07 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

noevictorian, unfortunately changing the scale is not supported in NinjaTrader 6.5, however our upcoming version 7 would offer more options in this regard.

NinjaTrader 6.5 would scale this dynamically depending on the visible portion on your current osc / chart view...
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-06-2009, 11:11 AM   #3
noevictorian
Member
 
Join Date: Aug 2009
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the reply. Boy am I excited for NT7.
noevictorian is offline  
Reply With Quote
Old 10-06-2009, 11:18 AM   #4
noevictorian
Member
 
Join Date: Aug 2009
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

Can I ask you another question without starting a new thread for it. I've searched the forum and must be using the wrong search terms because I can't imagine it hasn't been asked and answered:

Can I reference the level of a specific line in a statement? For example I have overbought/oversold lines at 30 and 70... if a user changes these to 90 and 10 in the line configuration settings of the indicator, can I then reference their custom values in logic like this:

if plot[0] > theirCustomLineValue
Print("over the line");

right now I'm hardcoding my if logic but when they change it my logic doesn't match their chart. If they change the line to 90 and my logic is hardcoded:

if plot[0] > 70
Print("over the line");

It's wrong.

Suggestions? Or should I start a new thread to help others searching for this topic?
noevictorian is offline  
Reply With Quote
Old 10-06-2009, 11:22 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

You would just need to define a user defined input level for this custom line, then it would work and be 'picked up' - http://www.ninjatrader-support2.com/...ead.php?t=5782
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-06-2009, 11:23 AM   #6
noevictorian
Member
 
Join Date: Aug 2009
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, Josh. I've basically done that. Maybe I should post my code. When I'm back at my desk I'll do just that. Because, yeah I thought it would be that easy but it's not working so I'm clearly screwing something obvious up.

Thanks
noevictorian is offline  
Reply With Quote
Old 10-06-2009, 11:26 AM   #7
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Ok, please do and we have a look later, thanks
NinjaTrader_Bertrand 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
Saving charts drawings yuvalw Suggestions And Feedback 7 07-19-2010 03:50 AM
Back Testing Strategy - Drawings Don't Show Ranger Strategy Analyzer 6 03-12-2009 10:08 AM
Line drawings get cut off trader_rick1234 Charting 5 02-05-2009 07:46 AM
Saving Drawings On Charts? cbratton Charting 4 02-01-2009 11:35 AM
Ability to lock drawings on chart VagyokC4 Suggestions And Feedback 1 09-22-2007 03:53 AM


All times are GMT -6. The time now is 02:12 PM.