Need help with coding a custom block
-
Hello. I need help about coding a custom block.
https://fxdreema.com/shared/KDp7hioTd
This is one part of the project where I need help.
I did a lot of search and there are some posts about that but with no solution...This custom indicator use buffer 9 to get highest value of a indicator candle and buffer 10 for lowest value. Using highest indicator value from candleID1 to zigzagH1 I want to get the corresponding candleID. The candleID based on highest or lowest value of the indicator.
I know in this image it is the same candle as the Zigzag high but it's not everytime the same..
Sometimes the indicator highest/lowest candle is different from the zigzag high/low

I need help about finding the candleID based on highest or lowest value of a indicator...
There is no such function and it have to be custom code that I can't do.
I appreciate any help. Thanks in advance! -
You will need a custom loop searching for that information. No fxdReema block will do it directly. Is the custom indicator a continuous line, a number on the chart or a hidden value on the buffer?
-
I know that there is no such fxdreema function. Thats why I am asking for help for some custom block code.
The indicator is this red/green candles below the price chart (images above). Buffers gives OHLC values like a regular candle. When the candle closes we have four indicator values. Open value, highest value, lowest value and close value. It is candle by candle. No continuous line or number on the chart.
The goal is to find the candleID between candleID-1 and the L1 or L2 on the zigzag. -
you need a reason why, is it the last low on the indicator... is there a buffer in the buffer window saying this candle?
-
I don't quite understand what you mean. There is no buffer that saying any candle. Only shows OHLC values for each candle in real time tick by tick.
I have candleIDs of the price Lows and Highs from the ZigZag advanced topic. I think there is a function to find highest/lowest value of the indicator between candleID-A and candleID-B but how to get the corresponding price candleID of this highest/lowest value.
How is this so complicated that nobody still figure it out? I searched the forum and didn't find anything... -
The ZZ values are relatively easy to get, but are obtained via ZZ buffers, so another indicator will not be known. This contains lots from the ZZ indicator:
A lot is from mirros work
https://fxdreema.com/shared/tZtS4KoWd -
Well.. please tell me what to do? I am not talking about the ZigZag. It is doing its job perfectly. I need to find price candleID based on my custom indicator highest/lowest value between A and B. Do I need to change something in my custom indicator?
Maybe this function will still remain unsolvable... -
I don't think you can, if you have the .mq code for the indicator you could ask AI to add a buffer with the candle ID, without this reference there is not a lot you can do.