Forum

Define Pause if a specific condition is fulfilled

Hello Guys, I am currently struggling with a function, that has to introduce pause into my trading system. The idea is pretty simple, if the rsx value is above 90, ea has to stop trading for a defined number of bars . Here is a part of my script. What am I doing wrong? Is there is simple solution

Ordering EA to wait until condition is fulfilled

Hello Guys, I am new to MQL, so sorry if my question would seem stupid to you. The question is as follow: I want to program an EA that uses two conditions. Step 1: Check if the first condition is fulfilled Step2: Wait for the second condition is fulfilled Step3: If fulfilled during defined time or