Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Middle Mouse Click

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

    Chart Middle Mouse Click

    Can you add the bar number to the data shown in the info box popup for chart middle mouse click?

    #2
    Hello dtl-saw,

    Thank you for writing in.

    I have submitted your feedback as a feature request. We value customer feedback in improving our platform!

    Meanwhile, what you could do is create an indicator that simply will plot the value of CurrentBar.

    Here's an example:
    Code:
    protected override void OnStateChange()
    {
    	if (State == State.SetDefaults)
    	{
    		IsOverlay									= true;
    		IsAutoScale								= false;
    		AddPlot(Brushes.Yellow, "Current Bar");
    	}
    }
    
    protected override void OnBarUpdate()
    {
    	Value[0] = CurrentBar;
    }
    
    public override string FormatPriceMarker(double price)
    {
        // we want to remove the trailing decimals from the plot
        return price.ToString("N0");
    }


    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      perfect, exactly what I was looking for.
      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, Yesterday, 10:06 AM
      0 responses
      21 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      18 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      9 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      40 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X