Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem to interlace Sets

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

    Problem to interlace Sets

    Good afternoon
    I am starting in the world of Strategy builder and I am creating a strategy that basically consists of 2 actions o conditions:
    1) the breaking of a resistance
    2) the rebound of the price on that same resistance

    each one has its "set" in the "conditions and actions" table but my problem is how can I make set 1 happen first and then the actions triggered in set 1 trigger set 2 happen, how do I interlace those 2 sets? if set 1 doesn't happen I don't want it to look for the set 2 conditions.

    From already thank you very much.

    #2
    Hello eidog2020,

    Thanks for your post and welcome to the NinjaTrader forum!

    To sequence one set to another you can use a bool variable that you create in the "Variables" section of the "inputs and variables" window. You can create the bool with a default setting of false. Then when your conditions of set 1 are true, you can then set the bool to true in the actions of set 1. In set 2 conditions, you would check to see that the bool is true and that will prevent set 2 from running actions until that bool has been set true by set 1. In the actions of set 2 you can then set the bool back to false.

    If you have not attended our free training on the strategy builder, here are links to provide access to that:

    Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
    Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
    Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    93 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    152 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    80 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    53 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    65 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X