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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X