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 Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-08-2012, 06:59 PM   #1
neoikon
Senior Member
 
Join Date: Oct 2008
Location: Austin, TX
Posts: 119
Thanks: 44
Thanked 5 times in 4 posts
Default Determine when script is done loading

I am having trouble finding a solution to determine when a script is completely done initializing and loading.

Is there a function that is called? Is there a flag I can check?

Thanks!
Daniel
neoikon is offline  
Reply With Quote
Old 05-09-2012, 02:00 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
Default

Daniel, perhaps OnStartUp() would help you here?

http://www.ninjatrader.com/support/h.../onstartup.htm

This is ideal for custom resource allocation as it's called after Initialize() but before the first OnBarUpdate() processing.
NinjaTrader_Bertrand 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
How to determine if SMA is moving up or down krakken Automated Trading 4 08-09-2011 06:59 PM
Determine if using 64bit bobcat70 Miscellaneous Support 1 09-14-2010 11:33 PM
How to determine our place in the queue drachma Strategy Development 1 08-09-2010 01:20 PM
Loading script files from subdirectories? RandyT General Programming 2 10-26-2008 04:07 AM
Easy way to determine last bar? terenyi General Programming 2 09-08-2008 03:44 PM


All times are GMT -6. The time now is 10:27 PM.