Here is what I did. First, I used this custom indicator - https://www.mql5.com/en/code/7982 It works like the one in MetaTrader, but it is a custom indicator. Why? Because only for custom indicators in "More settings" there are extra settings.
https://fxdreema.com/shared/EqWKTmPod
Small problem is that in all Condition blocks my "My settings" are closed, which is because I use the current Symbol and Period settings... and "My settings" stays open if one of these is something different.
In block 1 I'm detecting that the newest fractal is Up (red dot above the chart):
0_1550736122626_70260d85-b751-4eb0-82d0-c45b3ad77ab1-image.png
Block 2 is to limit the signal to 1 per bar.
In block 3 I want to know if the newest Up fractal is < than the previous Up fractal. See that I'm looking for "Value by Visible ID", where Visible ID is the relative number of the fractal on the chart - 0 is the latest one, 1 is the previous:
0_1550736315674_2054a9c2-9449-4dd8-be33-657da5ddecd2-image.png
In block 4 I check whether the position relative to the current candle of the previous Up (red) fractal is bigger than the position of the latest Down (blue) fractal. Or in other words, whether the previous red dot is left of the latest blue dot:
0_1550736333635_4f368f7b-c086-4564-abeb-45b4337017a6-image.png
In block 5 I check whether the previous blue dot is more left than the previous red dot. Because it looks that the indicator can place two consecutive Up arrows, or Down arrows.
0_1550736503960_590a5b7f-ae6c-4adc-b914-8978b58d0e3f-image.png