Creating Chart WPF (UI) Modifications from an Indicator

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Indicator >

Creating Chart WPF (UI) Modifications from an Indicator

Previous page Return to chapter overview Next page

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#

Button

Grid

GridSplitter

Menu

MenuItem

StackPanel

NinjaTrader

NTMenuItem

TabControlManager

 

Import instructions

1.Download the file contained in this Help Guide topic to your PC desktop

2.From the Control Center window, select the menu Tools > Import > NinjaScript

3.Select the downloaded file

 

SampleWPFModifications.zip