• 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 Simon Investimens, Today, 03:26 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by fx.practic, Today, 05:15 AM
      0 responses
      4 views
      0 likes
      Last Post fx.practic  
      Started by guidoisot, Today, 05:03 AM
      0 responses
      4 views
      0 likes
      Last Post guidoisot  
      Started by EnveousColnago, Yesterday, 06:58 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by lindsayf, Today, 01:13 AM
      0 responses
      14 views
      0 likes
      Last Post lindsayf  
      Working...
      X