Prompt block
-
Hi, is it possible to have an expiration period for prompt block? that it will cancel if not confirm after a few minutes or an hour. Thanks!
-
Cancel is in the buy/sell block, do you need something else?
-
Thank you @jstap!, i put the prompt above of buy/sell. The buy/sell will activate only upon manually confirm the prompt.
I just want to know if we can make an automatic cancel of prompt by setting an expiration period of Block prompt? is it possible? -
What do you mean by prompt?
-
Hi, like the pop up message of prompt to cancel automatically if not confirm manually, in an hour/s depending on how long you set.

-
I have never used this, it is a message box and this is what chat GPT says:
The MessageBox function in MQL4 is a blocking call, meaning the execution of your script or Expert Advisor will halt at the MessageBox call until the user interacts with it. This behaviour is built into the function and cannot be altered from within MQL4 directly.
That said, there are a few alternative approaches you could consider:
Avoid using MessageBox: Instead of using MessageBox, consider using other means to display messages that don't require user interaction to dismiss, such as Print for logging messages in the Experts tab, or graphical objects (like TextLabel) on the chart to display messages.
Create a custom dialog: Instead of MessageBox, you can create a custom dialog box using MQL4 graphical objects. You can then manage the dialog box programmatically, allowing it to be closed or hidden without user interaction.
-
Thank you so much @jstap! i really appreciate your response!
yeah, it is a block requiring manual confirmation. hopefully fxdreema will add an option to have an expiration on this block prompt.
In my EA, i have set of rules (indicators above the prompt), once all requirements met. The prompt will advice me of possible entry either i will confirm the buy/sell or cancel. But we cannot stay in front of our computer all the time, so sometimes the prompt (entry suggestion) will be no good, and the prompt message will stay on the screen until i cancel it. And the following prompt (other possible entry) will not pop up until i cancel the first one.
-
Even FX can't stop or automatically delete this, you will have to find another way.