Detect the nearest green candle
-
Hello
I need help..
As I have marked in the picture, the robot must open the buy after the red candle has formed the pip length of the nearest green candle.
How can I print this command on the robot.
For example, the nearest green candle is 100 pips.
After 100 pips of red candles have been formed, the robot should step in and let it open.
I hope I can explain, help please

-
@ladydolares That depends on the custom indicator you are using to plot those renko bars. Working with renko bars is very tricky. Did you import the indicator on your fxDreema account correctly?
-
No, this synthetic index chart looks exactly like this. It is not added to any indicator. All I need is: the robot will detect the closest green candle, then if the size of the green candle is few pips, after that many candles have been formed, the buy trade will open.
-
@ladydolares
Hello,There is a way around this but my way is a bit of a workaround and there may be simpler way.
First thing to do, is let the EA draw an object with a certain name at bull bars (lets call it BULL_BAR).

After that, create a variable that gets modified with the candle ID number of that object.

Then, as in your case it seems to me that you want the price of the low of that bar. So for that, you place a condition block that when the price reaches =< the candle low with the variable ID ...... and then place your strategy.

Something like that
-
@ladydolares Then I need to know how those bars are calculated. Obviously they are not candlestick on the chart. I cannot offer an answer until those OCHL values are stroed into a value in a way that fxDreema can understand.
-
thank you for your helps @l-andorrà @q8carpenter
-
@l-andorrà These are one minute candlesticks on a synthetic market made by the broker deriv. they are crash and boom where the market moves slowly and steadily in one direction but every set amount of ticks, randomly, the market crashes or booms in the opposite direction.
-
@q8carpenter I didn't know that. And how can you import it into fxDreema?
-
@q8carpenter You don't need to import it. open an account on deriv.com and open the synthetic charts and go to the 1m time frame. the normal candles will look like that and fxdreema will consider than like normal candlesticks.
-
@q8carpenter Interesting. Thank you.
