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:	687
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:	224
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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              43 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