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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X