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

Determine background color

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

    Determine background color

    Ninja 7 .0.0.20

    Is there a way to determine the current background color from inside an indicator?

    I would like to add code that changes a few colors in the indicator, based on what color background is currently selected for the chart.

    I know that I can change a background color on the primary panel from within an indicator, but can I check to see what color the chart already is?

    Thanks..........

    #2
    Hi photog53,

    This is technically outside of the scope of support we generally offer, however, as a hint you could do something like...

    Code:
    if (ChartControl.BackColor ==Color.Black)
    Do something;
    TimNinjaTrader Customer Service

    Comment


      #3


      Thanks!!! (I will try that)

      Comment


        #4
        Works great....(thanks again!!!!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,266 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X