price
-
hi everyone
I want to determine the highest and lowest price in the time period 00:00 to 04:30 and from 04:30 onwards if the close candle is higher than the highest price in the above period, buy and if the close candle is smaller than the lowest The price was in the high range, sell it.
https://fxdreema.com/shared/aw8W4v02 -
It looks like this is what your EA will do, what is it not doing?
-
thank you
But this EA did not open any trades in the backtest from 2020 to now. -
Don't even know how you downloaded it?

You probabily need to start this project from scratch, even with all blocks deleted it throws errors:

-
whats your idea about this. i think about it again
-
My idea is to start it from scratch, there is nothing wrong with your set-up
-
Thank you for your guidance
The problem is the detection of the first variable, i.e. the highest and lowest price in the time period from 00:00 to 04:30. Can you suggest me another way to find these two variables? -
I corrected the code and it recognizes the highest and lowest price correctly and I told it to open only one position per day, but the positions it takes are wrong.
I don't know what the problem is?
https://fxdreema.com/shared/FIILCfvWb -
If you want the previous 9 candles value from midnight? Then set your timer from 00:00 to 00:01, because how it is it will update the values every 30 minutes.

-
Hello
I did what you said, but there is still a problem. In fact, it only opens positions in two specific hours, 05:00 and 22:00, if in some places it has a position before 22:00, but has not opened a position before 22 -
What I said will get the value between 9 candles before 00:00 till 00:00, your next part won't open a trade unless these values are broken, if it is doing something else take a picture to show, and draw a line on these values so it can be visually checked.
-
Hello
The two vertical lines are the time interval from 00:00 to 04:30. The highest price in this interval is marked with a red line and the lowest price is marked with a green line. According to my strategy and the conditions I defined for it, it should be at the point of the red arrow that the hour He entered the sell position at 08:00, which he did not do, and opened the position at 22:00. Trade number 773 -
Unfortunately, I cannot send photos. I do not know
-
You can add photos here
-

-
Your time filter is stopping a trade being placed until 05:00