N candles from open?
-
I want to do this:
If current candle is 5 candles away from opening candle, do some action -
@yoloyacht I join this thread!! I have no idea how to do that. I tried with several combos but to no avail. Can someone give us a hand, please?
miro?

roar?
-
@l-andorrà Is there a way to store the opening candle’s id? Is there a unique number for it? That would help if it was possible!
-
@yoloyacht Thechnically you can. The problem is that it will be a static number while what we need is a dynamic one. AFAIK, that if not possible to do in fxDReema, which is sad!

Can someone please confirm I'm wrong?
-
Couldn't we store that static number into a variable? Then modify the variable that variable everytime a new order happens?
-
@yoloyacht I tried to do that, but to no avail so far. What you store is a number (for exmaple 3), whereas you candle ID will be moving far away as time passes by.
-
I include myself in this thread. If I understood correctly, after opening a trade 5 candles later I made another trade, is this the question?All this naturally in the same EA
-
@xyon126 Exactly. How can we identify the open candle of several trades at the same time. Can someone offer some hints?
-
............
-
@uriel-0 This can be done by counting the candles after the buy/sell happens, groups would need used with different variables if more than 1 trade of the same type is placed:
-
@jstap great, there are any way to get: "if a bull candle appears after condition ->> make something" ? I meaning about E.G. If bull candle is closed>>wait until next bear candle to enable longs trades again (without count the candle where the last trade was closed)

-
@uriel-0 You could set a flag or bool condition to false on a bull/bear candle, then set to true on the opposite and place in your buy/sell tree, join your conditions to this principle, you could also use the yellow outputs to set to false until conditions are true.
-
@jstap I think that the problem here is got the candle ID, could you show to me your propose visually? I have never worked with flags, I tried using a bool variable but looks that didn't work. Thank you
-
@uriel-0 This is the basic idea:
https://fxdreema.com/shared/PGKMvZuNd
The bool is the same but you have to set variable and use modify block to change.