Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Avoiding real trades

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Avoiding real trades

    Hello,

    During the test phase of my Strategy, I want to avoid placing real trades. What’s the recommended script, to test if I’m using a Live Data Stream and an active account, so I can write a loop around my Strategy’s order methods?

    Thanks,

    jhill

    #2
    jhill,

    The recommended way to prevent orders from being submitted to a live account is by checking Global Simulation Mode under the File menu.

    This will give you live data stream from your live connection, but the only active account will be the Sim101 account.

    If you would rather find a programming solution in NT V7 you can use Account.Name to check to see if you're using the Sim101 account.
    Last edited by NinjaTrader_Matthew; 08-29-2011, 11:26 AM.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks very much for your prompt reply and info.

      jhill

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by haas88, 03-21-2024, 02:22 AM
      18 responses
      208 views
      0 likes
      Last Post haas88
      by haas88
       
      Started by Board game geek, Today, 02:20 AM
      0 responses
      4 views
      0 likes
      Last Post Board game geek  
      Started by knighty6508, Today, 01:20 AM
      2 responses
      15 views
      0 likes
      Last Post knighty6508  
      Started by franatas, Today, 01:53 AM
      0 responses
      5 views
      0 likes
      Last Post franatas  
      Started by knighty6508, Today, 01:17 AM
      0 responses
      9 views
      0 likes
      Last Post knighty6508  
      Working...
      X