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 03-25-2010, 10:50 AM   #1
Sleeping Troll
Senior Member
 
Join Date: Mar 2010
Location: Tampa, FL
Posts: 186
Thanks: 0
Thanked 3 times in 1 post
Send a message via Yahoo to Sleeping Troll
Default How about an OnLoaded class

It would save lots of time and eliminate some bugs for strategies and indicators that do not need historical bars.
Sleeping Troll is offline  
Reply With Quote
Old 03-25-2010, 11:02 AM   #2
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi Sleeping Troll,

You can have the OnBarUpdate() start on live data only with...

if (Historical)
return;

http://www.ninjatrader-support.com/H...tml?Historical
NinjaTrader_Tim is offline  
Reply With Quote
Old 03-25-2010, 11:24 AM   #3
Sleeping Troll
Senior Member
 
Join Date: Mar 2010
Location: Tampa, FL
Posts: 186
Thanks: 0
Thanked 3 times in 1 post
Send a message via Yahoo to Sleeping Troll
Default

Yup, cool thanks!!!
Sleeping Troll 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
Trade Class annettes Strategy Development 1 03-04-2010 04:14 AM
TradeCollection Class astrolobe Strategy Development 1 09-21-2009 05:39 AM
Helper class blarouche Strategy Development 9 08-11-2009 12:35 PM
Chart Class? cassb General Programming 2 06-12-2009 10:14 PM
NinjaScript class? Speedie6 General Programming 1 11-03-2008 10:04 AM


All times are GMT -6. The time now is 07:20 PM.