Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 elirion, Today, 01:36 AM
          0 responses
          2 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by gentlebenthebear, Today, 01:30 AM
          0 responses
          2 views
          0 likes
          Last Post gentlebenthebear  
          Started by samish18, Yesterday, 08:31 AM
          2 responses
          9 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by Mestor, 03-10-2023, 01:50 AM
          16 responses
          389 views
          0 likes
          Last Post z.franck  
          Started by rtwave, 04-12-2024, 09:30 AM
          4 responses
          31 views
          0 likes
          Last Post rtwave
          by rtwave
           
          Working...
          X