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

Disabling Start behavior for a Strategy

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

    Disabling Start behavior for a Strategy

    Hi,

    As some people in the past have suggested, there seems to be a gap in the Start behavior options -- there isn't one where it's up to the user/developer to program a custom synchronization/reconcilliation sequence.

    I would like to know if there's a way to disable the start behavior for the strategy I am currently writing, so that I can write my own reconciliation algorithm. What's most important for me is that no orders are canceled.

    Any information will be appreciated! Thanks!

    #2
    Hello dvance,

    It is not possible to prevent NinjaTrader from cancelling orders that do not match previously made orders. This checking is done for all start up options and is not possible to disable for NinjaScript Strategies.

    Below is a link to a thread about resuming strategies.


    I am happy to submit a feature request for the NinjaTrader Development to consider an option to prevent previously placed orders that do not match from being cancelled in a future version if you would like.


    You could instead, write the entire script as an Addon script so that the strategy rules are not applied.

    Below is a public link to the help guide on Addons.


    And a link to a script you may find helpful.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Thanks for the reply. I'll look into the links you have provided.

      Is there a good source of information on writing trading strategies as add-ons? I am especially interested in data stream subscription concepts, bar update events, and trade submission.

      Thanks again!

      Comment


        #4
        Hello dvance,

        The example script I have provided a link to shows all of that. It shows getting data, and placing orders, and adding logic for trailing and chasing exit orders.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jclose, Today, 09:37 PM
        0 responses
        4 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,413 views
        0 likes
        Last Post Traderontheroad  
        Started by firefoxforum12, Today, 08:53 PM
        0 responses
        10 views
        0 likes
        Last Post firefoxforum12  
        Started by stafe, Today, 08:34 PM
        0 responses
        10 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by sastrades, 01-31-2024, 10:19 PM
        11 responses
        169 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X