Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a way to ignore the start up behavior?

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

    Is there a way to ignore the start up behavior?

    Hello Ninjatrader staff,

    The title says it all. Is there a way to ignore start up behavior in a strategy, which would allow me to manage everything completely on my own?

    I look forward to your answer.

    Edit: to clarify my request, here's a list of things I don't want my strategy to do when starting up.

    1. I do not want to cancel any previously submitted orders by the strategy, like "WaitUntilFlat" does.
    2. I do not want the strategy to assume anything in regard to my Account and Strategy position, both should be flat as far as my strategy is aware of.
    3. I do not want the strategy to attempt matching any active orders to strategy orders, I want to do this myself within the script.
    Last edited by GLFX005; 06-06-2022, 05:54 AM.

    #2
    Hello GLFX005,

    Not from a strategy, you would need to use the addon framework from an indicator to manage everything without the strategy framework handing various aspects of running.

    Comment


      #3
      Good evening Ninjatrader staff,

      I'm running into a bit of a problem here.

      Let's say I have a strategy that ignores all historical data and only submits orders when live data is being processed, thanks to (if State == State.Historical) return;.

      Now, let's say that this strategy has been submitting orders throughout the week, but was forcibly disabled over the weekend due to a server maintenance.

      When I want to enable the strategy once more, it can not re-establish a connection with the previously submitted orders, because the strategy doesn't have any in its own history. So the orders are cancelled upon enable.

      How can I manually make my strategy connect to these previously submitted orders, and not have them cancelled when enabling the strategy?

      Comment


        #4
        Hello GLFX005,

        There is not a way for the strategy to resume those orders without knowing about them before hand to resubmit them. An addon would be best suited to have no cancellation options and be able to see the open orders. Strategies are best suited for a combination of historical processing plus realtime processing when the start behavior action is being considered.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        53 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X