any one know how to get into the right click menu of the chart?
Do you mean that when you right click on the chart, there’s no context menu that pops up?
Or are you trying to add an item to that context menu in your Ninjatrader Addon?
if you right click a chart the menu i am referring to has eg Sell Limit 1 @ …
I am trying to see if i can get access to that menu ( i am sure you can) like you can access the Tools menu on the Control panel
Yes, it can be accessed and modified. The forum post below is a good place to start. Items can be both added and removed.
Below the forum post is a capture of a context menu on my system. Each of the top three items were written by a different indicator. So there is a lot that can be done. A good working knowledge of WPF and c# threading dynamics is going to be very helpful.
Additionally, what I use now even more than context menus is repurposing keystrokes by overriding the OnKeyDown and replacing the instrument search functionality. It is operationally quicker than context menus and much easier to code
ChartControl.KeyDown += OnKeyDown; //Set in state Historical
public void OnKeyDown(object sender, KeyEventArgs e)
{
if (e.Key==Key.T)
{
//Do something
}
e.Handled = true;
}
Thanks Bidder. Weirdly i had come to the same conclusion ie repurposing key strokes and double functioning my buttons ( leftclick/right click)
