Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

modify UI elements on Chart Trader

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

    modify UI elements on Chart Trader

    Hi,

    I want to "plant" / modify functionality's & UI elements on Chart Trader window (below yellow & red circled). Is this possible? Where can I find relevant reference materials?

    Thank you in advance for your input.


    Regards,
    Steven



    Click image for larger version

Name:	image.png
Views:	644
Size:	332.0 KB
ID:	1282198

    #2
    Hello Steven,

    Thanks for your post.

    WPF modifications could be used to modify the Chart Toolbar or Chart Trader window.

    Note that moving/removing the existing Chart Toolbar and Chart Trader items would go beyond the support we would be able to provide you with as this would be considered changing the way NinjaTrader is intended to function. That said, it would be possitble to do at your own discretion if you decide to move/remove these items.

    This forum thread will be open for other community members to share their insights on unsupported code.

    See this reference sample for an example of using WPF modifications: https://ninjatrader.com/support/help...ui)-modifi.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Got it. Thank you, Brandon. /Steven

      Comment


        #4
        Hi,

        While I understand that WPF developemnet goes beyond your suppport, could you let me know how I can get the attached add-on running?

        It is a snippet of codes presented in the section "Other Uses for an Addon" of "Educational Resources" in the NinjaScript website - adding Sample Button to Chart Trader. It gets compiled. But since it's not a strategy, it does not appear in the list of Strategy in Chart window. So how do I get to see a sample button appearing on Chart Trader on all my Charts?

        Hope I'm not going out of line. Looking forward to hearing from you soon. Thanks.

        Steven
        Attached Files

        Comment


          #5
          Thank you for the prompt response, Brandon. /Steven

          Comment


            #6
            To my surprises, ... it shows up. Not an indicator; not a strategy; not added to the CC menu. I did nothing but compiled the code. Do you know what happened? /Steven


            Click image for larger version

Name:	image.png
Views:	222
Size:	278.7 KB
ID:	1299724

            Comment


              #7
              Hello i019945nj,

              In the OnWindowCreated() override, the code will be run for all open windows, attempting to cast the window as a chart and finding the chartTrader object, and then injecting code into the wpf of the chartTrader object.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              50 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              69 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X