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

    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

    #2
    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.

    Comment


      #3
      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

      Comment


        #4
        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.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by junkone, Today, 11:37 AM
        2 responses
        12 views
        0 likes
        Last Post junkone
        by junkone
         
        Started by frankthearm, Yesterday, 09:08 AM
        12 responses
        43 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by quantismo, 04-17-2024, 05:13 PM
        5 responses
        35 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        35 views
        0 likes
        Last Post love2code2trade  
        Working...
        X