HOW TO CREATE LOOP FOR FRACTAL INDICATOR EXPERT
-
@fxDreema Can you help with custom code for this ?
"Otherwise if you want to investigate for example the last 20 candles in order to find the last candle ID where there was an arrow, or the price value at that moment, or something else... well, there is no block for this, but this can be made as a custom code in a custom block."
-
HOW to create a loop that checks last 10 bars for fractals indicator

......
Fractals.mq4 -
What value do you want to get from this loop?
-
once it finds a value.......for taking signal on every fractal shown on chart
OR
do something in indicator so that it can get signal from each fractal formed
it should give signal on fractals
i have tested in indicator tester it gives 000000 it,s buffer does not work as shown on chart and shown in indicator
if fractals are forming at right time then it can buffer properly with the ea
i have fractal with alert which alerts as fractals formed it means it can gives signals directly to ea but i am not finding the way to do so
kindly make this indicator compatible for ea programming
please guide me...
regards
Manoj meena -
attached indicator is alert fractals it gives alert on each fractal formed kindly tell me if it can give alert at every fractal formed then it can give signal to ea on evry fractal formed
kindly guide me ...
......
sFractals.mq4 -
Fractals work, but Candle ID should be... I think it 3 for the default indicator settings. If you watch how it's arrows are formed (use Visual mode), you will see that a new arrow appears above/below older candle, not the current one. This is also true for most arrow-based indicators and it is expected, because they need to wait and see where the price is going before they say that there was a top/bottom few candles in the past. And they put their arrows on that candle in the past, so that's why you must use some positive Candle ID

Otherwise if you want to investigate for example the last 20 candles in order to find the last candle ID where there was an arrow, or the price value at that moment, or something else... well, there is no block for this, but this can be made as a custom code in a custom block.
-
@baxpar https://fxdreema.com/shared/4elCKUrvc
Have a look this actually provides the data of the last 2 up and down fractals with the candle id
You must wait for the first fractals to print in order to get the data
Also the number of the blocks matter -
thanks @Eaal199211