Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove all trades from Chart except last trade

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

    Remove all trades from Chart except last trade

    I have a scalping strategy that places multiple entries and makes it hard to visualize the trades. Is there a way I can programmatically hide all the previous trade history and only display the most recent trade on the chart.

    #2
    Hello cutzpr,

    Thank you for your post.

    You may toggle the plotting of executions from the Data Series window with the following steps:
    • Right-click your chart and select Data Series
    • Scroll down to the bottom and expand the Plot executions dropdown menu
      • Choose between Do not plot, Markers only, or Text and marker
    • Click OK to save your changes
    What I suggest based on your description is to set the "Plot executions" dropdown to "Do not plot." Then, you may add logic to your strategy that adds drawing/text as desired. If you want to see only the most recent trade, you could use the same "tag" property for your drawing objects as this will update the object each time the Draw method is called rather than drawing a new object each time. For example, you could use Draw.ArrowUp() or Draw.ArrowDown() to mark the most recent trade, and you could also Draw.Text() if you'd like to include info about the trade.

    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    83 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    256 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X