NinjaTrader_Josh
09-06-2007, 01:56 PM
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:
Add() (http://www.ninjatrader.com/support/helpGuides/nt7/add2.htm)
EntriesPerDirection (http://www.ninjatrader.com/support/helpGuides/nt7/entriesperdirection.htm)*
EntryHandling (http://www.ninjatrader.com/support/helpGuides/nt7/entryhandling.htm)*
* Entry handling properties can be either programmatically set or set through the Strategy dialog window
Other methods and properties of interest include:
EnterLongLimit() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlonglimit.htm)
EnterLongStop() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlongstop.htm)
EnterLongStopLimit() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlongstoplimit.htm)
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file
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:
Add() (http://www.ninjatrader.com/support/helpGuides/nt7/add2.htm)
EntriesPerDirection (http://www.ninjatrader.com/support/helpGuides/nt7/entriesperdirection.htm)*
EntryHandling (http://www.ninjatrader.com/support/helpGuides/nt7/entryhandling.htm)*
* Entry handling properties can be either programmatically set or set through the Strategy dialog window
Other methods and properties of interest include:
EnterLongLimit() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlonglimit.htm)
EnterLongStop() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlongstop.htm)
EnterLongStopLimit() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlongstoplimit.htm)
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file