• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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

    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by nikolaalx, Today, 07:31 AM
    6 responses
    19 views
    0 likes
    Last Post bltdavid  
    Started by HiddenPhilosopher, Today, 09:28 AM
    0 responses
    8 views
    0 likes
    Last Post HiddenPhilosopher  
    Started by tipslark, Today, 07:23 AM
    0 responses
    18 views
    0 likes
    Last Post tipslark  
    Started by Grantx, Today, 06:49 AM
    0 responses
    11 views
    0 likes
    Last Post Grantx
    by Grantx
     
    Started by muhuzekob, Today, 05:59 AM
    0 responses
    7 views
    0 likes
    Last Post muhuzekob  
    Working...
    X