Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X