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

Strategy deployment

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

  • NinjaTrader_ChelseaB
    replied
    Hello pel11,

    There is no switch built in NinjaTrader to prevent a strategy from trading when it is enabled.

    If the strategy is enabled, then its going to run the code programmed in it, and its going place orders when receiving data and there is a call to an order submission method.

    You can select the Sim101 in the Account drop-down in the strategy parameters when adding a new instance of the strategy if you want this to trade to the built in practice account instead of a live account.

    You can disable the strategy if you don't want it to run.

    If you want to prevent trades while enabled and receiving data, you must program this into the code of your strategy.

    As an example, below is a public link to the help guide that demonstrates a time filter.

    Leave a comment:


  • pel11
    replied
    Yes, thanks, exactly. Intraday for equities I only want to autoexecute (the open strategy will send orders) trades after 0835 (EST) and then exit any open positions at 1555 and not execute new positions after 1555. So the script is needed.

    What about fix a sandwich, walk the dog, go to store, a manual switch can be set in NT8 to not send orders but leave the live chart with live trading strategy visible on the screen? Essentially, manually switching from send orders, dont send orders.

    Thx

    Leave a comment:


  • NinjaTrader_PatrickG
    replied
    If I understand you correctly, you'd like to have an automated strategy running, but you do not want it to execute orders if the conditions are true unless it's between time x and y? If I have misunderstood, could you elaborate further?

    The Strategy Analyzer tests your strategy on historical data. It places trades to an internal simulation account which cannot be changed. Any test ran in the Strategy Analyzer will never affect your live account.

    With that said, you may run into some performance limitations depending on the complexity of your workspace, the complexity of your strategy, the type of backtest, and the market volatility at the time, so you may want to reserve backtesting to a time when you will not be live trading.

    Leave a comment:


  • pel11
    started a topic Strategy deployment

    Strategy deployment

    Indeed, talked with TDA and they said everything is Live only for NT. Given, that, what is the switch to turn off intra-day trades being sent, so that when a strategy is loaded on a live chart, nothing happens until the minute you want to go live and execute trades? What is the toggle for that?

    Also, for the strategy analyzer, do we need to make sure the "live" switch is off during analyzing/optimizing whenever a live chart is open?

    Thx

Latest Posts

Collapse

Topics Statistics Last Post
Started by bmartz, 03-12-2024, 06:12 AM
5 responses
32 views
0 likes
Last Post NinjaTrader_Zachary  
Started by Aviram Y, Today, 05:29 AM
4 responses
13 views
0 likes
Last Post Aviram Y  
Started by algospoke, 04-17-2024, 06:40 PM
3 responses
28 views
0 likes
Last Post NinjaTrader_Jesse  
Started by gentlebenthebear, Today, 01:30 AM
1 response
8 views
0 likes
Last Post NinjaTrader_Jesse  
Started by cls71, Today, 04:45 AM
1 response
7 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X