Using multiple entry/exit signals simultaneously

<< Click to Display Table of Contents >>

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

Using multiple entry/exit signals simultaneously

Previous page Return to chapter overview Next page

Sometimes you want to trade an instrument with several different possible entry conditions. To keep track of which trade used which conditions can become cumbersome if done on paper.

 

The attached reference sample demonstrates the following key concepts:

Adding user definable indicators to the strategy for display on the chart
Setting the manner in which NinjaTrader handles entry orders
Using unique identifiers for entry and exit orders

 

Important methods and properties used include:

AddChartIndicator()
EntriesPerDirection*
EntryHandling*

* Entry handling properties can be either programmatically set or set through the Strategy dialog window

 

Other methods and properties of interest include:

EnterLongLimit()
EnterLongStopMarket()
EnterLongStopLimit()

 

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

 

SampleMultipleEntryExitSignals_NT8.zip