You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?