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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        58 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        133 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X