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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X