Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Retrieve value of Instrument selected on Chart Trader window

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

    Retrieve value of Instrument selected on Chart Trader window

    Hi, I have a custom indicator that displays the tick offset from a horizonal line drawn by the user to the current market price. The horizontal line will also calculate the number of ticks in difference multiplied by the order qty in the chart trader window to display the total risk in dollar value. The problem that i am facing is my chart has 2 data series, MNQ overlay on NQ. Under the chart trader window, I have the ability to select either NQ or MNQ to enter a trade on. However, the indicator is only able to select the initial instrument selected, for eg. MNQ is by default, and when I select NQ, the indicator does not update on the fly. Not sure if there are any codes to resolve this.

    #2
    Hello marcwkm1,

    Thank you for your post.

    You can monitor the instrument selector to get the current selection when it is updated. I'm attaching a simple indicator that demonstrates how to find the Instrument Selector and subscribe to its SelectionChanged event. This will allow you to get the currently selected instrument.

    Please let us know if we may be of further assistance to you.
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    252 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    161 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    165 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    251 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    203 views
    0 likes
    Last Post CarlTrading  
    Working...
    X