Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SuperDOM Indicator

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

    SuperDOM Indicator

    Hello guys,

    I am new here and I am trying to make an indicator but I am in doubt, I would like to know if anyone can help me.

    I want to color a price range in SuperDOM, using S&P as an example I want to color every number with final 00. Has anyone done anything like that?

    Thank you,

    Attached Files

    #2
    Hello vogelr,

    Welcome to the NinjaTrader support forum.

    I am not aware of any item that exists that does this already, or a way to color the whole DOM cell actually.

    You can run an indicator which places plots in the cells but that does not color the entire cell, that is likely the closest possibility to what you are asking. An indicator could have various plots, and if a condition is true it could plot at the target value which would show up in the cell.

    A SuperDomColumn could make fully filled in cells but that would be next to the actual DOM as a new column, so if that is OK a column is also another option.


    I look forward to being fo further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks for the answer!

      So I can create a new column in SuperDOM and then I create my rules with a loop.

      Any suggestions on where to start? MarketDepth is the way?

      Thank you for your consideration/attention.

      Comment


        #4
        Hello vogelr,

        Thank you for the post.

        I would suggest looking at the existing columns as a starting point. The existing columns show a general approach at accessing the data and rendering. The OnRender override is used to draw in the superdom panel so you can draw what you would like.

        In the NinjaScript editor, you can expand the "SuperDomColumns" node to view the existing columns.

        To color prices, I dont believe you would need anything except the OnMarketData and OnRender overrides to gather prices and then render the data as needed. The APQ shows using OnMarketData and Depth in its code and also rendering.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by martin70, 03-24-2023, 04:58 AM
        15 responses
        114 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by The_Sec, Today, 02:29 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by jeronymite, 04-12-2024, 04:26 PM
        2 responses
        31 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by Mindset, 05-06-2023, 09:03 PM
        10 responses
        265 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by michi08, 10-05-2018, 09:31 AM
        5 responses
        743 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X