Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add alert through SuperDOM

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

    Add alert through SuperDOM

    I am trying to add an alert through a superDOM add-on by detecting mousevents at certain prices on the price ladder.
    1. How do I convert from the mouse Y position to price clicked?
    2. How do I get the instrument that the superDOM is currently on?

    Should I be doing this another way? I originally started w/ a superdom column but could not figure out how to get the mouseclicks / window that it was in.
    Attached Files

    #2
    Hello habibalex,

    Getting the instrument would require that you find the instrument selector control in the window and then get its selected instrument.

    From Y to Price I am not aware of a way to do that in the superdom. There is not a specific control to do conversions here like how the Chart has conversion methods from WPF Y to Price. The superdom is essentially a WPF control that has a grid with individual text boxes for each price, if you use Microsoft inspect you can take a look at the visual tree. Those texts get changed depending on the incoming market data and where the superdom is scrolled to. Its not as simple as the chart where Y = some price.

    I don't really have any suggestion on how to move forward with mouse events and prices on the superdom with an addon. You may be able to interact with the clicked text in some way to get its Text value however I don't know of any samples or suggestions on going that route.

    You may want to take a look at the Notes SuperDomColumn. That has some mouse handling and depending on what the overall goal is that may be a more manageable approach. That at least has access to the market data and also the grid row information for the note being edited. You may be able to use that as a starting point to getting the clicked area next to a price row.

    Please let me know if I may be of additional assistance.






    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X