PDA

View Full Version : Live or Memorex


zoltran
12-05-2007, 09:22 PM
Is there a way to determine if a strategy is being run on simulation or a live account?

For example.. I want to send a sample strategy to people. But it's just a sample, and I want my code to ensure it doesn't run against a real account.

NinjaTrader_Dierk
12-05-2007, 10:13 PM
Although it's not supported officially: Please try Account.Simulation property

zoltran
12-05-2007, 10:51 PM
Great
Works like a charm