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:	34
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 MatthewLesko, Today, 08:42 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by dallasstarsfan, Today, 08:22 AM
    1 response
    26 views
    0 likes
    Last Post dallasstarsfan  
    Started by 309338, Yesterday, 12:06 PM
    0 responses
    28 views
    0 likes
    Last Post 309338
    by 309338
     
    Started by GamarIsmayilova, Yesterday, 01:14 PM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by OChem, Yesterday, 06:47 PM
    2 responses
    38 views
    0 likes
    Last Post aligator  
    Working...
    X