NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 09-30-2007, 10:52 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default Indicator: Creating your own Level II data book (Accessing market depth)

Reference sample for NinjaTrader 6.5.XXXX.X or greater.

Level II data is important for the momentum trader. It allows them to determine which way the market makers are trading and can be useful in helping the trader decide which way the momentum is going.

This reference sample demonstrates the following concept:
  • Storing Level II data in a custom object list
  • Printing Level II books for discretionary trading
Important methods and properties used include:
  • MarketDataType
  • Operation
  • Position
  • Price
  • Volume
Other methods and properties of interest include:Import instructions for NinjaTrader 6.5.XXXX.X or greater:
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file
Attached Files
File Type: zip SampleMarketDepth.zip (4.0 KB, 477 views)
File Type: zip SampleMarketDepth_NT7.zip (4.6 KB, 848 views)
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit orders - book position kept when new orders are generated Fabrice Automated Trading 6 10-13-2007 03:16 PM
Indicator: Creating a user-defined parameter type (enum) NinjaTrader_Josh Reference Samples 0 09-24-2007 09:12 PM
Ensuring Level 2 Data Capture for Market Replay whitmark Miscellaneous Support 1 07-28-2007 11:05 PM
Creating NinjaTrader compatible functions from TS ShowMe and indicator email alerts robinso Miscellaneous Support 1 04-11-2007 05:33 PM
Problem creating Indicator nicko9 Indicator Development 2 02-22-2007 01:52 AM


All times are GMT -6. The time now is 11:27 AM.