NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-18-2012, 02:11 PM   #1
coolmoss
Senior Member
 
Join Date: Dec 2007
Posts: 365
Thanks: 36
Thanked 28 times in 24 posts
Default Safe?

I want to print some parameters to the output window, but see that you can't reference BarsPeriod properties in Initialize(). Is it okay to do so from OnStartUp()?

Thanks
coolmoss is offline  
Reply With Quote
Old 06-18-2012, 02:32 PM   #2
NinjaTrader_JC
NinjaTrader Customer Service
 
NinjaTrader_JC's Avatar
 
Join Date: Mar 2012
Location: Denver, CO
Posts: 1,183
Thanks: 130
Thanked 180 times in 179 posts
Default

Hello coolmoss,

Yes, you can access BarsPeriod within the OnStartupUp() to print out parameters in the output window. You may read more about BarsPeriod from our online help guide at the following link.

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

Please let me know if I can be of further assistance.
NinjaTrader_JC is offline  
Reply With Quote
The following user says thank you to NinjaTrader_JC 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
Elders Safe Zone Stopps ali321 Indicator Development 6 04-17-2011 03:48 PM
When is it safe to go live with NT 7? Johnny Version 7 Beta General Questions & Bug Reports 4 11-01-2010 02:40 PM
is it safe to modify the built in indicators ? coffeedan Indicator Development 4 05-15-2010 06:45 PM
Thread-safe programming heech Strategy Development 1 11-28-2008 01:05 AM
Safe ATM ? T4M ATM Strategies (Discretionary Trading) 1 04-09-2007 12:41 AM


All times are GMT -6. The time now is 04:35 PM.