High and Low in Time period of previous day
-
How can I start with this EA,
I want it to get the Highest and lowest price of the new york session and enter trades during Asian session based on the new york session highest and lowest price -
If you know your broker times, time filter to stop opening trades at wrong time - market properties high/low in the required time
-
@jstap can you please help me here https://fxdreema.com/shared/WUzLEJeob
-
What is or isn't happening with this EA?
-
Use of local time/GMT seems tricky. Better use comment to print out and check first.
-
@jstap Did I start the project correctly?
-
Looks like it, but as sktsec has said check the correct time is returning, backtest will always be server time
Put this in a comment as text code input and check the returned time is the same as your computer and the FX time:
TimeToString(TimeLocal(),TIME_DATE|TIME_MINUTES)
-
@jstap Its Not Working as wanted it still open trades where it should not, it open trades between highest and lowest price. I want the EA to open buy trade in Asia session when candle close above Highest price of the new york session and the opposite for sell. https://fxdreema.com/shared/se6qUSLbc
-
Any Help? Anyone
-
Have you checked the time?
-
@jstap yes I did during backtest when there is a trade I pause the EA when there is a trade and check for the high and low during the new york session. but some trades is just random
-
-
@Lorenzo97 said in High and Low in Time period of previous day:
@jstap Its Not Working as wanted it still open trades where it should not, it open trades between highest and lowest price. I want the EA to open buy trade in Asia session when candle close above Highest price of the new york session and the opposite for sell. https://fxdreema.com/shared/se6qUSLbc
before looking for the error in the high and low, adjust the condition: the close of the candle ID 1 is a price level, it will never be able to cross another price level. You can put bid x> or x< , or candle ID0 close x> or x<. If you are focusing at the candle close ID1 you can put < or >
Blocks #2 and #6 -
@ambrogio Hi, thanks but I tried both with bid and candle ID 0 it doesn.t open trades
-
@Lorenzo97 and with > or < it does the same as x> or x<
-
Put dayoffset 1 since you are searching the previous day high and low
-
@ambrogio this is what I get with dayoffset set to 1

-
so......
-
@ambrogio look where it entered the sell positions between the high and low and not below it how can I fix it, it should be like a breakout.
-
@Lorenzo97 share the link
