My Breakout Strategy doesn`t buy at specific moment
-
I need help with something. I’ve created two ranges within a specific time. The condition for a buy activation is that Range B (let’s call it that) is the one that either breaks out or not of Range A, which is a previously defined reference range. If the high of Range B is higher than the high of Range A, I want a buy to be triggered — but not at the exact moment the high is broken. Instead, the buy should be executed at a specific time, at the end of Range B. How can I make the buy happen at that moment?
-
-
Once per bar wants to be under the time filter, so it's not activated before the time is active. What defines range A and B?
-

-
I defined the ranges, in the condition block I set specific times to define the time range, and used the maximum created in both time blocks to set up the breakout. However, I don't want the buy to occur as soon as the high of time range B exceeds the high of time range A. Instead, I want the decision to be made at (Hora_fin_RANGO_B), and if the high hasn't been exceeded by that time, I don't want the bot to take any action.
-

-
@jstap I put once per bar under Time filtrer,maybe I have to put another time filtrer for take a action at the end of time range B,IDN.
-
That should work, let me know if it doesn't
-

-
What are you showing with that... it bought, then 5 hours later it sold, I've not looked inside blocks, but if this is not what you expected ask why something specific isn't working.
-

-
@jstap thats what I talking about,u get it?
-
Lets set this a little more detonate, your range A is a time which means no trade can be placed until the end of that time, then range 2 is defined by another time,?
-
Yes,Range A is a reference range, and if Range B, with its candles, breaks the high of Range A, a buy would be triggered. However, the decision should only be made at a specific time — at the end of Range B, at 8:45.
-
"If by the end of Range B the high of the previous range, Range A, is not broken, then no action is taken. However, the decision must be made at the end of Range B, at 8:45
-


-
@jstap another example
-
Set up a couple of trees, 1 that turns a flag on or off if the first range time is completed, then a second that checks the first flag, then checks the second range time, then your condition before buying.
-
could you do an example ,i dont get it ,I don know how work with flags,Sorry for the inconvenience
-
You will have to check block internals and set to how you want: https://fxdreema.com/shared/VsuCDzSI