Coding Entry mql4

Hello Everyone,

I am trying to code entry open order when the price reaches a certain price level but the issue that I have is that I want the code to check first if the price was below that level and then moved upwards to this level so that when I install the EA and the price is at or higher than this price level already it won’t open order, so I want it to skip it and wait until the condition of being below that level and then move to it / above occur so it would open an order,

and I want to be on intrabar so I do not want to wait for the candle close or open

Any ideas!

Appreciate your usual support

Hi, do you know, how exactly EA works?

I know that the EA code is being executed on every tick and here I find a difficulty to code it the way I want it, if there is a way

EA is a code that checks the market conditions 24/5, if the trading conditions written in the code are met, the requested action occurs. What you want to write is a script that will do a one-time action.

check the MQL5 or MQL4 for templates