Liquidity sweep (I am going crazy)
-
Please can someone help with this?
I am trying to build a sequence where I want the EA to open BUY trades ONLY after the previous day LOW has been violated (crossed or even only touched) and open SELL trades after the previous day HIGH has been violated.
It doesn’t matter if the price will remain above or below the level of previous day high/low, but it need to have touched or crossed or closed above/below to trigger all the rest of the EA.
Thanks in advance, I am going crazy since 2 weeks.
-
This is a pretty EA to build, do you have any start? Once per bar->Was the last candle high/low higher/lower than candle 1 (daily) high/low?->if yes, buy/sell
-
Yes I have the full EA built that works super well but I just want to add this condition and I can’t manage to do it because I do not want the trade to open only if the price is on one side of the previous daily low/high. I want the trade to open at wherever other conditions and potitions but FIRST it have to touch that high/low level
-
So you need to set a flag as a condition. Same logic as above, and if price has exceeded the daily high/low you set a flag to true, and then in your other conditions, you check to see if that flag is true and if so, proceed.
-
@algotradr can you share your project please
-
@cmuphyfx How can I do it? Which block to use?
-
@GINGI-bot I do not know how to do this
-
@algotradr You can share a project this way:

-
Thanks! This is the shared link of the FVG creation.
https://fxdreema.com/shared/KrANVSQrdI need it to create the FVG only after the price crossed, closed or even only touched the previous day high/low.
As I wrote before, it isn't relevant where the price is, but it is mandatory that the FVG opens only after the liquidity sweep.
-
I can't edit your project, but you need to create a condition block that checks to see if the high/low today, is higher/lower than yesterday's high/low. If that is true, then you set a flag (call it violation_today) to true. In your logic for actually placing the trade, you need to make sure the flag (violation_today) is true, if so, you can proceed.
-
@cmuphyfx can you share the built version so that I can copy-paste in my project? I’ll really appreciate

-
No more help? T-T
-
You should use a 'once per bar' block on top of both block trees. You don't need them to be checked every tick.