Problem to compare Daily Candle high with H1 candle close!
-
At first step I created an EA to compare to candle with different specification in Daily time frame. (candle ID = 2 , candle ID = 1)
I couldn't solve the second part :
I want to check if price in H1 time frame closes above the high of Candle ID =1.
Note that we don't know in how many candle in H1 it takes to cross above High of Candle ID 1.
Here is the problem: I cant figure out how to compare two different time frame candle id! -
-
dear @miki let me show what I mean by an example:
We have 2 candle in Daily time frame with specific properties.
I want to find a candle in H1 time frame that closes above the candle 1.

-
@prometheus Looking the candle ID in the past after the conditions are met is for programmers, I don't think there is a function on fxdreema that can do this. Just out of curiosity, what do you need to know that past id?
-
@miki I wanna create EA that function in multi time frame (D-H1).
let say we have a candle in daily that closed (candle id = 1).
I wanna know when price in H1 time frame will cross above the High of Daily candle (ID = 1).
Actually The problem is not about candle id, instead I want to buy or sell when price crosses above high of Daily candle in H1 time frame. -
@prometheus As in the picture i posted above change candle close with candle high on the candle daily.
-
@miki unfortunately it doesn't work that way. I should probably use other methods. Thank for helping
-
@prometheus You can store the value of yesterday's close proce into a variable and the compare tick by tick when that price is crossed today.
-
@prometheus Hello @prometheus, if I have understood correctly, you want to obtain the exact moment of the closing of an H1 candle with that of a D1 candle, I do not know if you know that the closing of the candles is always done at the same time, there is no delay between M5, M30 ; H1, H4, D1 or whatever time frame it is, that is, when the D1 candle closes the H1 as well, which will never cross the H1 with the D1, another thing is the closing of the H1 in a period not of 24 hours (22, 15, 3, etc) and obtain that crossing in the one of D1, if so, confirm it, because everything changes radically.
