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 FrancisMorro, Today, 03:24 AM
      0 responses
      1 view
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,769 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      30 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      943 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      10 views
      0 likes
      Last Post Max238
      by Max238
       
      Working...
      X