Another liquidity sweep question
-
Hi everybody, I saw the recent post by algotradr where he discusses the issue he had figuring out how to make a proper liquidity sweep work.
I am in a simillar condition : I want to manage two "Sides of Liquidity" : Buyside with blue horizontal lines and Sellside with red horizontal lines.
I want my EA to only run the Buy or Sell program if one of these levels is taken (I only worked on the Buy program for now) but I have an issue : it looks like the EA does not take in consideration either the crossing below the Sellside level using a reference to the object chart or other tries I did.
I'm kidda stucked... Ideally this condition should be beteween block 21 and 23.
Is the dynamic level (Sellside / Buyside) the problem ? I mean : the fact that they are updated every 96 hours ?
https://fxdreema.com/shared/goGRlzSne
Thank you for your help !!

-
It is updated every hour (or candle), looks back for 96 candles.
-
Thank you for your answer.
I don't understand : as I set the condition, the EA should react, one way or another, and validate the condition, no ? How can I solve this issue ?
Even if I use flags I can't get it to work the way I expected :
-
do you mean the condition candle low id2 < range of 2-96? If you draw lines on the range you can visually check what's happening.

-
Thank you jstap.
I still don't understand... The "Buyside and Sellside" tab draws the lines of both Buyside and Sellside levels in real time : the highest and the lowest levels of the market for the last 72 / 96 hours, depending the value I choose.
In the condition highlighted in your screenshot, it's an attempt I did to get the EA to work while directly setting the level initially calculated in the "Buyside and Sellside" tab. Normally, I should use the Level 1 of the Draw Line (Sellside Liquidity) as the Right Operand, but it didn't work.
What I want my EA to do :
- Draw the Buyside and Sellside levels and keep them up to date on the chart (ok) ;
- When the market runs below the Sellside level or above the Buyside level, initiate either the Buy Program when Sellside is taken, and the Sell Program when the Buyside is taken (not ok) ;
- Use FVGs as entry points (ok) ;
- Manage positions (will be ok).
In this configuration, the EA doesn't seem to go after block 25. It doesn't validate the crossing below the Sellside level. Even the flags don't do the trick. Where does it comes from ?
And btw, the market can go even lower after the Sellside is taken before going up and showing up bullish FVG / BISI, or go up directly, and it should not interfere with my strategy.
Hope I gave more valuable informations here.
-
Not entially sure what you are struggling with, the picture shows how to place a buy. Reverse for sells.

-
Yes, because I simplified the loop to locate where my EA was not working.
I think I figured out the solution, working on it... I'll post the result after.
Thank you jstap. -
Here is the answer : it's a dynamic detection of the Sellside level (you cane do the same for Buyside level), so be careful about the time the EA comes back in time to generate the level, but it's working.
You can see a "security loop" one time a day, that prevents the EA to stay stucked in the case a Sellside is taken but the other confirmations are not met, and all the process using flags to freeze the level of the side once taken by the market.
This EA is not profitable in the actual state, but it's a good basis to find something interesting.

-
@cosmo I thank you for fixing my problem too. Was struggling with my own EA and your example fixed it.
-
@Mitchp I only see your answer now. I'm glad it was helpful for you !!
