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