Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarColor Parameter

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

    BarColor Parameter

    I know I must be overlooking something. I change my barcolors based on conditions. That is working just fine. However, I would like to provide the capability to change the color via a parameter just like I do other things like the period of an indicator. Sounds simple enough so I created parameters for the barcolors the same way as every other parameter. The barcolor parameter works as I expected except when I save it as a template and then reload that template, those parameterized colors come back empty. Can't figure this out.

    Why do they come back empty. I don't have this problem with any other parameter that I define, only the color parameters.

    Thanks,
    Mike

    #2
    Mike,

    Do you initialize the parameter somewhere in your code, or is it undefined until you set it manually in the parameters window?
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      it is initialized in Initialize block.

      Comment


        #4
        just to rule out a potential problem, initialize it where you define it as well and see if that does anything.
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment


          #5
          Mike Winfrey,

          Maybe this article will provide some guidance: http://www.ninjatrader-support.com/v...ead.php?t=4977
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          605 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          351 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X