Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Strategy Builder

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

    Help with Strategy Builder


    Hi,

    I need help in strategy builder. I'm creating a strategy with 2 buy entry conditions (sell condition is just the reverse) as follows:

    1. EMA line is below Price
    2. Stochastic crosses below 40

    The above conditions are simple, however, I wanted the 1st condition to be true first, then the 2nd condition. It should always be 1st condition first that will be triggered or true, then the 2nd condition will be the final trigger.

    Thanks

    #2
    Hello mrrdiamante,

    The order you have it in now would be what you are asking for. If the first condition is true, the second condition is checked and if that is also true it will make the overall set true. Do you mean instead only to start checking the second condition on bars following when the first condition was true? If so, you need to use a variable for that. A bool variable can be used to turn on a later condition if a set is true.





    Comment


      #3
      Yes correct. The second condition will only start when the first condition is true. So it will start checking 2nd condition on the next bar after 1st condition is met. How do I do that in strategy builder? Can you tell me the steps to follow or probably screenshot of how the conditions will look like? Thanks

      Comment


        #4
        Hello mrrdiamante,

        In that case you would have to make 2 sets.

        In set 1 you would put the second condition stochastic. In set 2 you would put the first condition with the EMA

        That is so once the ema condition is true the other condition is checked on the following bar.

        To enable the first set, you'll need a bool variable, in the inputs and variables page create a bool variable with a default of `false`. When the second set's condition is met, set the bool to `true`. In the first set's condition, check if the Boolean is `true`. This will activate the first set one bar after the second set's condition is met.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        30 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X