Indicator average value & Ichimoku
-
Hi there!
I've just began my adventure with fxdreema and i'm trying to build my first EA. I saw there's a lot of youtube videos and examples and it seems easy to do it but there are a pair of things that i can't figure out.I'm planning to analyze the range of the last closed candle and tell the EA to do something if High-Low is <= a specific value. This value comes from the average value of the ATR over a certain period x. So... i need to extract the value [ATR(x) Max + ATR(x) Min]/2. How can i do this?
Another thing that is not clear is about the Ichimoku indicator and the position of the shifted lines. I mean... if i want to tell the EA to evaluate if the forwarded Kumo is bullish or bearish i can simply check if Senkou Span A > Senkou Span B but what candle ID i have to use? Can i use negative values to look forward?
Thanks for the help!
Daniele -
values save into variables you can do like this:

but you need something specific which I can do only using custom code, like this for your atr:
https://fxdreema.com/shared/RZ0wzsNne

there is other way how to look back and you gave me idea for new tutorial
maybe I do it in few days ...and for this ichimoku yes, you need negative ID for some values, its ID depends on period, but not sure how
test it ... -
here fast tutorial how to do it with blocks (only how to find min max atr):
-
Thanks so much Miro!
I'm going to study your answers deeply.I suppose that this lookback function can also be usefull to find price maximum and minimum to identify a trend or support and resistence levels.
It's interesting because there's a profitable strategy that we are discussing in an italian forex group, that is based on a breakout after a sequence of Higher High and Higher Lows and viceversa.About the Ichimoku, usually kumo lines are shifted forward 26 periods, so if 1 is the last closed candle and 0 is the current, probably the correct value to check the kumo created by the last closed candle is -24. I will test it

-
test it with ichimoku, sure there is minus in ID but you need test it to find which value ...
...
and if you need find highest or lowest value from candle price, there is function in block for it (but only for candles, not indicator, indicator try with my tip using loop) ...this is integrated in fxdreema blocks (for candle prices):
