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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        179 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        333 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        256 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        356 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        185 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X