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 03-04-2008, 11:40 AM   #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: Using custom events to output the current Level II data book

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

Custom events allow you the flexibility to access indicator/price information whenever you deem it necessary. You do not need to wait for the next incoming tick or next bar update before you can process some code logic.


This reference sample demonstrates the following concept:
  • Creating a custom event from a Timer object
  • Printing Level II books whenever you receive a Timer event
A reference sample demonstrating how to build your own Level II book can be found here: http://www.ninjatrader-support.com/v...ead.php?t=3478

Important methods and properties used include: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 SampleCustomEvents.zip (2.8 KB, 246 views)
File Type: zip SampleCustomEvents_NT7.zip (3.2 KB, 527 views)
NinjaTrader_Josh is offline  
Reply With Quote
The following 3 users say thank you to NinjaTrader_Josh for this post:
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
OpenTick Globex Level 1 Data Feed davidfw1866 Connecting 5 02-25-2008 07:17 AM
Level 2 indicator DrDeath Indicator Development 2 02-10-2008 06:00 AM
Indicator: Removing and Custom Formatting an Indicator’s Chart Label NinjaTrader_Josh Reference Samples 0 12-30-2007 06:49 PM
level 2 data not showing on market replay jorel SuperDOM and other Order Entry Windows 2 10-08-2007 06:32 AM
Indicator: Creating your own Level II data book NinjaTrader_Josh Reference Samples 0 09-30-2007 10:52 PM


All times are GMT -6. The time now is 03:51 PM.