Logic to detect hidden gaps
-
Hi,
I'm building an EA that works with grid trading and want to be able to detect and display propulsion candles that are not traded back into.
Like in the image below:

It's 3 candles. The gap is candle 2s body. The measurement starts at the high of candle 1 then the low of candle 3 cannot have traded back to the high of candle 1.
Need to output the top and bottom of that green block so I can use it as a target.
If it gets filled in needs deleting off the chart.
Any ideas if this is possible with fxDreema?
There are indicators out there that draw this (GapIndicator from Mql5 I am using) but none of them have output buffers unfortunately. -
@breakertrader This is a first approach for the 'uptrend' example of your screenshot:

You will need to duplicate it in teh inverse for the 'downtrend'. As you can see I specified a minimum gap of 10 pips, but you can select any other distance.
-
@l-andorrà
Hello
I want to create this indicator but it has an additional condition and the additional condition is that in the case of 3 candles forming a gap, there should not be another gap behind the first candle (the one that started the gap).
Can you also guide me?
Thank you -
@wowali I'm not sure I fully understand. What do you exactly mean by 'behind the first candle? Can you please upload a visual example?