NinjaTrader Support Forum  

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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-24-2009, 08:26 AM   #1
duck_CA
Senior Member
 
Join Date: Jan 2008
Location: sacramento CA
Posts: 181
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Yahoo to duck_CA Send a message via Skype™ to duck_CA
Default Auto Scale Option

i'm trying to add "Auto Scale" to the following indicator

Code:
protectedoverridevoid Initialize()
 
 
Add(Swing(bigswing));
Swing(bigswing).Plots[0].Pen.Color = Color.Green;
Swing(bigswing).Plots[0].Pen.DashStyle = DashStyle.Dash; 
Swing(bigswing).Plots[0].PlotStyle = PlotStyle.Square;
Swing(bigswing).Plots[0].Pen.Width = 2;
Swing(bigswing).Plots[1].Pen.Color = Color.Red;
Swing(bigswing).Plots[1].Pen.DashStyle = DashStyle.Dash; 
Swing(bigswing).Plots[1].PlotStyle = PlotStyle.Square;
Swing(bigswing).Plots[1].Pen.Width = 2;
 
duck_CA is offline  
Reply With Quote
Old 02-24-2009, 08:31 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Try:
Swing(bigswing).AutoScale = true;
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-24-2009, 08:46 AM   #3
duck_CA
Senior Member
 
Join Date: Jan 2008
Location: sacramento CA
Posts: 181
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Yahoo to duck_CA Send a message via Skype™ to duck_CA
Default

Thank You
i assume that this code works for all of the items in the "General" box of the indicators window screen
duck_CA is offline  
Reply With Quote
Old 02-24-2009, 09:11 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

It should work.
NinjaTrader_Josh 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
Chart - fixed price scale option MJT Suggestions And Feedback 5 04-26-2009 08:44 AM
Lease Option rtj4201 Installation and Licensing 5 03-13-2009 06:55 AM
Request: Auto Connect on Startup and auto restart when connection down skynetman Suggestions And Feedback 24 03-07-2009 11:25 AM
auto-fib or auto-trendline? suedeuno Indicator Development 2 01-11-2009 08:41 PM
Need 2nd Axis / Auto-scale group in price plot aslane Suggestions And Feedback 1 05-26-2006 01:42 AM


All times are GMT -6. The time now is 01:21 AM.