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

Customize price marker color to an indicator

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

    Customize price marker color to an indicator

    Hi, I was searching in all forum about this but I found nothing.
    So, I'm asking if someone can help me with some code to customize the price marker color to any indicator, please.

    For example I found this code to change the background color in this forum:
    Code:
    ChartBars.Properties.PriceMarker.Background = Brushes.Black;
    //Or
    ChartControl.PrimaryBars.Properties.PriceMarker.Background = Brushes.Black;
    but this affect the price marker color for the instrument price panel, the indicator price marker haven't changes.
    I need this result but for the price marker of the indicator.

    Thank you in advance!

    Click image for larger version

Name:	Color PriceMarker.png
Views:	139
Size:	10.8 KB
ID:	1207306

    #2
    Hi Jose, thanks for posting. The color of the price market for an indicator is the same value as the PlotBrushes collection. You can vary the plot color but this would also change the color of the histogram. There is nothing documented for an indicator's price marker, so the value might be available, but you would need to look through the IntelliSense in "this."

    Kind regards, -
    ChrisL
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rtwave, 04-12-2024, 09:30 AM
    4 responses
    31 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    29 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by bmartz, 03-12-2024, 06:12 AM
    2 responses
    22 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by funk10101, Today, 12:02 AM
    0 responses
    7 views
    0 likes
    Last Post funk10101  
    Started by gravdigaz6, Yesterday, 11:40 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X