• 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 Nat11, Today, 04:30 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Option Whisperer, Yesterday, 11:50 AM
      2 responses
      10 views
      0 likes
      Last Post Option Whisperer  
      Started by TraderJim618, Yesterday, 01:20 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by drpapp, 01-24-2019, 06:57 AM
      6 responses
      73 views
      1 like
      Last Post brucerobinson  
      Started by ttodua, 12-06-2019, 11:40 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X