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 George21, Today, 10:07 AM
    0 responses
    1 view
    0 likes
    Last Post George21  
    Started by Stanfillirenfro, Today, 07:23 AM
    8 responses
    23 views
    0 likes
    Last Post Stanfillirenfro  
    Started by DayTradingDEMON, Today, 09:28 AM
    2 responses
    15 views
    0 likes
    Last Post DayTradingDEMON  
    Started by navyguy06, Today, 09:28 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    8 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X