NinjaScript > Educational Resources > Reference Samples > Strategy >

Using multiple entry/exit signals simultaneously

Print this Topic Previous pageReturn to chapter overviewNext 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.

 

Key concepts in this example

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:

Add()
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()
EnterLongStop()
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 File > Utilities > Import NinjaScript
3.Select the downloaded file and click Import.

 

SampleMultipleEntryExitSignals_NT7.zip