Is it possible to use an event to trigger the start() function of an indicator?
I am trying to set up an indicator that only paints on the bars shown in the window
i.e. A MA offset by -7. A normal indicator shows the future value and it is only
at bar 0 that the trading appearance of the indicator is shown. I'm looking to
use the following script but I need to somehow trigger it when the bars in the
window are moved. The other option is to run a loop consistently checking if the
window has moved but as this is an indicator I can't use the Sleep() function.
Any suggestions on a loop that may work?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Is it possible to use an event to trigger the start() function of an indicator? I am trying to set up an indicator that only paints on the bars shown in the window
i.e. A MA offset by -7. A normal indicator shows the future value and it is only at bar 0 that the trading appearance of the indicator is shown. I'm looking to use the following script but I need to somehow trigger it when the bars in the window are moved. The other option is to run a loop consistently checking if the window has moved but as this is an indicator I can't use the Sleep() function. Any suggestions on a loop that may work?