• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change price marker color?

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

    Change price marker color?

    On a chart, is there a way to programatically change the color of the "current price" marker. If certain conditions exist, as determined by an indicator, can I change the color of the marker which indicates the current price.

    Also, on a chart, can I change the color from the default current price marker? Mine is currently black on a chart with a white background.

    #2
    Hello,

    Unfortunately you would not be able to change the price marker programatically

    However you can change the color by right clicking on the chart--> select "Data Series"--> set the "Price Marker color" to the desired color.
    MatthewNinjaTrader Product Management

    Comment


      #3
      The correct answer is:

      BarsArray[0].BarsData.PriceMarkerColor = Color.<ColorName>;

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by brunoviveiros, Today, 09:36 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by GARZONJ, Today, 11:22 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by KonalGondal, Today, 10:18 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by Jorge.andres.o, Today, 09:24 AM
      2 responses
      9 views
      0 likes
      Last Post Gland1
      by Gland1
       
      Started by Oracletrades, Today, 09:02 AM
      5 responses
      10 views
      0 likes
      Last Post Oracletrades  
      Working...
      X