NexusFi: Find Your Edge


Home Menu

 





NT-7 Context Menu Items


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Prtester with 4 posts (0 thanks)
    2. looks_two Mindset with 3 posts (0 thanks)
    3. looks_3 sam028 with 2 posts (1 thanks)
    4. looks_4 roonius with 1 posts (12 thanks)
    1. trending_up 8,948 views
    2. thumb_up 13 thanks given
    3. group 6 followers
    1. forum 11 posts
    2. attach_file 2 attachments




 
Search this Thread

NT-7 Context Menu Items

  #11 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

in contextmenu you can do this

 
Code
MenuItem i3 = new MenuItem(Trader, new EventHandler(this.OpenOrder),Shortcut.F11);

Using ContextMenuStrip and ToolStripItems I haven't found a way to get this shortcut key to work in NT7 - and it is highly useful.
Anyone know the answer?

I have looked at hotkeys but again I can't get it to work just yet.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
 
  #12 (permalink)
trading7vue
Portland, Oregon
 
Posts: 1 since Nov 2023
Thanks Given: 0
Thanks Received: 0


roonius View Post
NT 7 upgraded ContextMenu to ContextMenuStrip.
You can see quick sample how to implement Context Menu Items in the attached file.
To PrTester and others: Please DO NOT bypass TriggerCustomEvent or you can end up messing up internal NinjaTrader Events and get unpredictable results and/or behavior.

P.S. Attached file is for NT7 only. NT 6.5 users do not bother trying it.

Does anyone how this for NT8? Looks like ContextMenuStrip is not part of ChartControl

Reply With Quote




Last Updated on November 17, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts