NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 09-15-2011, 06:37 AM   #1
boaza
Senior Member
 
Join Date: Aug 2011
Posts: 120
Thanks: 10
Thanked 0 times in 0 posts
Default Telling live from backtest

Hi,
I'ts probably in the manual, but I just couldn't find it - from within a Ninjascript, how can I tell if I'm running a backtest or a live session?

Thanks,

Boaz
boaza is offline  
Reply With Quote
Old 09-15-2011, 06:40 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Boaz, you could use Historical to distinguish between Live and Historical Data - http://www.ninjatrader.com/support/h...historical.htm
NinjaTrader_Bertrand is online now  
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
Different between backtest and live olingerc Strategy Analyzer 2 04-30-2011 09:21 PM
Backtest vs Live lookOutBelow Strategy Analyzer 1 01-28-2011 08:45 AM
another live vs backtest question greg814 Automated Trading 8 09-17-2010 03:48 PM
backtest vs live / replay issue tradejockey Version 7 Beta General Questions & Bug Reports 5 12-13-2009 02:19 PM
live (sim) versus backtest ceesvh Strategy Analyzer 4 07-04-2007 12:18 PM


All times are GMT -6. The time now is 04:25 AM.