Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set BackColor with a user parameter?

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

    How to set BackColor with a user parameter?

    Nevermind... found some sample code

    How do I set the color of BackColor as a user choice in the Indicator Parameters UI?

    I tried setting backcolor_L (string) to "Color.Green" which didn't work... is there a way to do this?
    Last edited by saroj; 08-28-2009, 05:57 AM. Reason: Finding other code as example

    #2
    For other people viewing the thread, http://www.ninjatrader-support2.com/...ead.php?t=4977
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      It works!!

      Originally posted by NinjaTrader_Josh View Post
      For other people viewing the thread, http://www.ninjatrader-support2.com/...ead.php?t=4977
      See attached image and indicator file... colors the Stochastics panel background based on where %K is (above or below overbought / oversold levels) or in between rising/falling... there is also a OB/OS cross sound alert coded by someone else... I just added an On/Off toggle.
      Attached Files

      Comment


        #4
        Thanks for sharing saroj! It would be great if you could also post it in the File Sharing section of the forums. That is where we have a collection of indicators and strategies available for people to download. Thanks!
        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
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X