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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-01-2012, 08:23 AM   #1
hamburglergt
Junior Member
 
Join Date: Sep 2011
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default Historical boolean

I have an AMP/CQG demo account that is giving me live data for a while, however it seems that the "Historical" boolean still returns true even when the strategy is running real time. I would greatly appreciate any insight on how I can determine that I am running real time

Thanks,

Mark
hamburglergt is offline  
Reply With Quote
Old 03-01-2012, 08:36 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the note.

The if(Historical) check should never return true when strategy has switched to live. If you found this is the case I would want to look into that.

-Brett
NinjaTrader_Brett 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
OnbarBarUpdate() boolean resetting to true ntjoe Strategy Development 2 08-31-2010 04:26 AM
Boolean Usage reference Faspomy Strategy Development 0 09-03-2009 09:33 PM
Are boolean variables reset every bar? maxpi General Programming 1 05-23-2009 12:43 PM
Why doesn't this boolean parameter work? cassb General Programming 2 09-22-2008 06:58 AM
Boolean log with integers jeremymgp Indicator Development 5 01-04-2008 07:36 AM


All times are GMT -6. The time now is 07:30 AM.