Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Once conditions are met, enter once until they are met again.

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

    Once conditions are met, enter once until they are met again.

    Hi!, I have a problem that I thought it was a simple one but I can't manage to find a solution.
    With the strategy builder I made a strategy that basically has to go long when the price goes over the EMA envelope, then comes back, touches the EMA and closes above of the previous candle close.. Those are the conditions. I also add profit target and stop loss.
    The problem I encounter, is that it keeps re entering once the stop or the target has been reached. I don't want that, I want it to re enter a trade once the conditions process repeat.
    In other words, once the conditions happen, I want it to enter only once, until the conditions happen again.

    I read that maybe bool is the answer, but I don't know exactly how I should apply it.

    I'll appreciate any help, thanks!

    #2
    Hello, thanks for writing in.

    Our colleague made this example that might be useful for you:
    Hi, To improve a strategy, I would like the condition to enter a trade to be triggered only after a second crossing happens. Meaning, for instance we have a sthocastics crossing, but the strategy would only trigger when a crossing between 2 emas happen. Would the looking back N bars work? Can it be done within the builder


    This example steps two conditions to make them happen one after the other one. I also have an example attached showing how to perform just one entry per bar in the builder:

    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    553 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    100 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    543 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    546 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X