Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bollinger color from code

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

    bollinger color from code

    Bollinger(2, Slow) .Plots[0].Pen.Color = Color.DodgerBlue;

    only changes the top line to blue

    is there syntax to change all 3 lines from code

    I tried
    Bollinger(2, Slow).Middle .Plots[0].Pen.Color = Color.DodgerBlue;

    which would not compile

    thanks

    #2
    Plots[1]
    Plots[2]

    instead of [0] should do it.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thanks Josh...works perfectly

      is there an equivalent of

      AutoScale = false;

      for use in strategies?

      this code will not compile

      Comment


        #4
        AutoScale is usable in indicators and not strategies. No, there is no equivalent. All objects where AutoScale would be relevant has their own AutoScale properties that you can adjust as you see fit individually.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          thanks Josh

          so you can not change the autoscale property of an EMA via strategy code...i.e. you must do it in the indicators properties dialog....and then perhaps use SetDefault?

          Comment


            #6
            Believe you can try:

            EMA(10).AutoScale = false;
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              excellent ...thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              601 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              347 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              559 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              558 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X