Creating Chart WPF (UI) Modifications from an Indicator
Creating Chart WPF (UI) Modifications from an Indicator
NinjaTrader’s extensive C# backend allows for powerful expandability that is unmatched in other trading platforms. Within the context of C# and NinjaScript, it is possible to manipulate the window in which the NinjaScript is added. This example demonstrates how chart window modifications can be performed to add your own WPF controls to your chart for custom functionality. These window modifications could be, but are not limited to: adding custom buttons, menus or toolbars.
Key concepts in this example
- Adding your own toolbar with WPF Controls to the left/right side of a chart
- Adding your own toolbar with WPF Controls to the top of a chart
- Adding WPF Controls to the MainMenu title bar of a chart window
- Adding custom WPF Controls to Chart Trader
- Modifying existing Chart Trader buttons
Important related documentation
C#
NinjaTrader
Import instructions
- Download the file contained in this Help Guide topic to your PC desktop
- From the Control Center window, select the menu Tools > Import > NinjaScript
- Select the downloaded file

