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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        66 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X