Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

progression of sets. what comes first

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

    progression of sets. what comes first

    is the progression of sets important when it comes to entry condition sets. and, exit position stop order sets. which one should come first, does it matter?

    #2
    Hello SteveReiza,

    Thank you for your post.

    For some strategies, the progression of sets might matter. For others, it might not. It is ultimately up to you to test your strategy and ensure that it is behaving as expected. If you do have any actions that need to be triggered in a specific order, you could use something like a bool or an int variable that is changed once the first condition set is met, then the next sequential condition should check for that specific value of the bool/int so it would only be able to be triggered if that first condition set was met already, etc. Here is a simple example of this idea using a bool:
    Hi, To improve a strategy, I would like the condition to enter a trade to be triggered only after a second crossing happens. Meaning, for instance we have a sthocastics crossing, but the strategy would only trigger when a crossing between 2 emas happen. Would the looking back N bars work? Can it be done within the builder


    For a more complex example that uses an int to ensure that conditions and actions are triggered in a specific order, see the TriggerState int used in the BreakEvenBuilderExample here:


    Your question seems to be somewhat general; if you have a specific example in mind, please elaborate so we may better understand and assist you.

    Thank you for using NinjaTrader.

    Comment


      #3
      thanks for the reply. some things are working in the strategy some things aren't. i have multiple data series in the strategy. i'm getting executions on the added series. but, not the primary series. do i need to select primary in the input series. or, does it do the entry methods by default?

      i attached an example. my exit positions stop order are working. i'm just thinking of tidying up the code and wondered if the placement mattered. i have them in progression with the sets instead of being clumped together.
      Attached Files

      Comment


        #4
        Hello SteveReiza,

        Thank you for your reply.

        "i'm getting executions on the added series. but, not the primary series."
        I do not understand what you mean; executions may only be submitted to the primary series. Entry methods are always submitted to the primary series only when using the Strategy Builder.

        To get a better understanding of what orders are being executed as expected and why some orders are not executed as expected, please enable Trace Orders on the Default Properties screen as well as add prints to your Actions. Check the output for any errors or messages about orders being ignored or rejected, and also review the values in your prints to understand why certain conditions are or are not being triggered. We have more information about these debugging tools here:


        Please let us know if we may be of further assistance.

        Comment


          #5
          thanks for the reply. i'll check out using trace and print to see what's going on.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          39 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          64 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X