Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Scale Option

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto Scale Option

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

    Code:
    [FONT=Courier New][SIZE=2][COLOR=#0000ff]protected[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]override[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] Initialize()[/SIZE][/FONT]
     
     
    [FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]Add(Swing(bigswing));[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].Pen.Color = Color.Green;[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].Pen.DashStyle = DashStyle.Dash; [/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].PlotStyle = PlotStyle.Square;[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].Pen.Width = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]2[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2];[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].Pen.Color = Color.Red;[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].Pen.DashStyle = DashStyle.Dash; [/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].PlotStyle = PlotStyle.Square;[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]Swing(bigswing).Plots[[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]].Pen.Width = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]2[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2];[/SIZE][/FONT]
     
    [/SIZE][/FONT]

    #2
    Try:
    Swing(bigswing).AutoScale = true;
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thank You
      i assume that this code works for all of the items in the "General" box of the indicators window screen

      Comment


        #4
        It should work.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X