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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    557 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X