How to recognize a candle
-
Hi everyone!
I have already setup my EA with the first block of trades working perfectly (timeframe 1H). Now, my problem is that I would like to make him understand, with a second block of instructions, that if - after the opening of the trade - the first candle on the 1 minute timeframe is a bull candle, he must close the current trade and open a new one. other. This obviously has to happen at the end of the candle.
Thanks everyone for the help! -
-
im relatively still a learner, but this question seemed simple. if an experienced user finds an incoherency in my approach please comment
-
Thanks ZakTrading,
I already tried your solution in the past and it doesn't work..... i thought it was simple too, but it's not. -
@FPorelli like this: https://fxdreema.com/shared/oMA9J5TZb
@ZakTrading before using pink blocks, you should always select your trade with the purple loop block. Sometimes a trade might be already selected and the pink block works alone, but it will cause bugs if the last selected trade is not what you wanted
-
@roar thanks for trying to help me. I tried what you sent me, but I think I have a problem with "id" between variables.
What should I do? What value should I give to "id" among the variables? -
@FPorelli the id variable gets its value here, no need for anything else

-
@roar ok, but where it says "select variable (right-click), it means that I have to assign a value to "id" because when I did the ex4 it tells me that the value assigned to "id" is missing. I hope that I was able to explain.
-
So you need to add this "id" variable to your variables list?
https://fxdreema.com/tutorial/builder/constants-and-variables
-
I tried, but it doesn't work. Any other ideas?
