![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
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; |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Try:
Swing(bigswing).AutoScale = true;
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
|
Thank You
![]() i assume that this code works for all of the items in the "General" box of the indicators window screen |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
It should work.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |