Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modifications to chart WPF elements and tab considerations

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

  • Entwaze
    replied
    You can delete this thread, i found a way to get the automation id of everything

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello Entwaze,

    This would fall under undocumented. Modifying the NinjaTrader windows was not intentioned by the development team, but as it is WPF, our Engineering Support team has provided some examples of how this is possible.

    Instead of providing a documented list of all automation ids, I can recommend using MSInspect to get any automation id you would like (for the most part).

    Below is a link to a forum post that discusses.

    Leave a comment:


  • Entwaze
    replied
    Love these names "ChartTraderControlQuickSellMarketButton" lol NinjaTrader_ChelseaB can i get a pamphlet with the names of all these ?

    Leave a comment:


  • TradeSaber
    replied
    Finally got it working! Ended up outsourcing this part to someone more familiar with this.

    I made this basic template with the fix, incase anyone in the future finds themselves looking for a similar Chart Trader Multi Grid example.

    This is found under 'Strategies' because that is what I'm working with. Just copy and paste the code to an indicator if that is what you need.

    Attached Files
    Last edited by TradeSaber; 05-18-2023, 08:31 AM.

    Leave a comment:


  • Entwaze
    replied
    O such a pain in the booty to get this stuff setup

    Leave a comment:


  • TradeSaber
    replied
    Thank you so much for this example Chelsea!

    I will have to sit down tonight and dissect this a bit.
    The reason I added lowerButtonsGrid2 was so the 2nd row would be just 1 column rather than the 2.
    (I can make it work when all the rows have the same number of columns. But I want some rows with different amount of columns)

    It is very likely I'm just going about this the wrong way. WPF is not my strong suit at all.
    I will play with this example you provided and see if I can make it work before asking any follow up questions!

    Thank you again. Appreciate your help!

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello TradeSaber,

    I would recommend that you remove the lowerButtonsGrid2 and add 1 additional row to lowerButtonsGrid, and set the columnspan on the objects to 2.

    The SampleWPFModifications reference sample has a working example that does not reproduce this behavior.
    https://ninjatrader.com/support/help...ui)-modifi.htm

    Leave a comment:


  • TradeSaber
    replied
    For sure! Let me try uploading it this way.

    The image is just of the chart trader template buttons (Same as in the video)
    Just shows the 2 smaller buttons on top (Grid 1 with 2 columns)
    Then 1 big button at the bottom (Grid 2 with 1 column)
    Attached Files

    Leave a comment:


  • bltdavid
    replied
    I've used Chrome on both Win7 and Win11 but I can't see your image.

    Can you try to attach it again?

    Leave a comment:


  • TradeSaber
    replied
    Hello Everyone!

    Looks like I'm reviving an old thread but figured it is better asked here.


    I've modified the Chart Trader Template​ in order to fit multiple buttons in the lower part of the Chart Trader panel in a strategy.
    The goal was to make different sized buttons in different rows(different amount of columns). So for this example I made 2 different grids. This allows me to modify the 'Close' button to be 1 big button instead of having a bunch of small buttons. (See Pic Below)



    Everything seems to work as intended, unless I have the strategy enabled on multiple charts stored in TABS.
    It will move the top buttons(Buy/Sell) to the same row as the 'Close Position' Button.
    This only happens depending on which tab it's switched from. (See Video Below)
    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    It seems like when I switch to the older Tab (With the strat loaded) It Inserts everything to the lower grid. (Puts all buttons where the Close Position button is)
    I've gone through the example more times than I can count but I seem to come up short with a solution.

    I know it's not in your policy to find problems in the code. But if there is a way I could get a suggestion on where or how to handle this tab change.
    I'd be very grateful!

    I included the Zip file with the bare stripped down template.

    Thank you in advance!
    Attached Files

    Leave a comment:


  • LoganJKTrader
    replied
    Originally posted by RubenCazorla View Post
    ok solved, now i need more help, need ad a toolbox to select orderqty for a strategy, cand sow a example like a same toolbox of chart trader order qty? TY
    Check this thread it should be helpful.
    QuantityUpDown Control - NinjaTrader Support Forum

    Leave a comment:


  • RubenCazorla
    replied
    ok solved, now i need more help, need ad a toolbox to select orderqty for a strategy, cand sow a example like a same toolbox of chart trader order qty? TY
    Last edited by RubenCazorla; 07-08-2022, 08:50 AM.

    Leave a comment:


  • RubenCazorla
    replied
    SampleWPFModifications.zip not avaliable, page not found

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello RubenCazorla,

    For a bool you will want to add a CheckBox. Consider the .IsChecked property as the bool for true or false.
    https://docs.microsoft.com/en-us/dot...owsdesktop-6.0

    Below is a link to an example addon that uses a CheckBox element.
    https://ninjatrader.com/support/foru...egy#post759830

    See lines 242 through 265 in the SampleWPFModifications reference sample for sample code on adding an image.
    https://ninjatrader.com/support/help...ui)-modifi.htm

    Leave a comment:


  • RubenCazorla
    replied

    Hello, would you be so kind to help me, I need to add a selectable Boolean box and an image to the chart trader, and it is very difficult for me, seeing the experience you have, I wonder if it would be possible

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
51 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
31 views
0 likes
Last Post PaulMohn  
Started by CarlTrading, 03-31-2026, 09:41 PM
1 response
165 views
1 like
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 04-01-2026, 02:41 AM
0 responses
100 views
1 like
Last Post CarlTrading  
Started by CaptainJack, 03-31-2026, 11:44 PM
0 responses
160 views
2 likes
Last Post CaptainJack  
Working...
X