I am working with a specific FVG model.Can someone help me code this logic first as an indicator, and later convert it into an Expert Advisor?
-
I am working with a specific FVG model.
In my model, the third candle must not break the high of the middle candle, both in bullish and bearish setups.
In other words, I want to define an FVG where the third candle does not pass above the middle candle’s high, regardless of whether the pattern is bullish or bearish.
Can someone help me code this logic first as an indicator, and later convert it into an Expert Advisor?

-
Also, later I want to build an automated trading bot that, when price reaches this FVG, opens a trade for me on the first pullback, with the stop loss behind the middle candle, TP3 as the take profit target, and a risk of 1% of the account balance per trade.
-
I am working with a specific FVG model.
In my model, the third candle must not break the high of the middle candle, both in bullish and bearish setups.
In other words, I want to define an FVG where the third candle does not pass above the middle candle’s high, regardless of whether the pattern is bullish or bearish.
Also, later I want to build an automated trading bot that, when price reaches this FVG, opens a trade for me on the first pullback, with the stop loss behind the middle candle, TP3 as the take profit target, and a risk of 1% of the account balance per trade.
Can someone help me code this logic first as an indicator, and later convert it into an Expert Advisor?
-
What you want can be done at the open of candle 4, ie the open price of the first candle AFTER this configuration is confirmed in the previous 3 candles. Would that fit your requirements?