What is the diference between an "Indicator" and a "Script"?
There is two major differences:
1) A custom indicator remains attached to a chart till its removed or the chart is closed; a script will detach from a chart as soon as its finished executing (of course, you could keep it executing in a loop).
2) An indicator's start() function gets called on every tick event for the chart; a script's start() function gets executed right after its init() function gets executed (not waiting for any tick event). (I hope I got this one correct.)
1) A custom indicator remains attached to a chart till its removed or the chart is closed; a script will detach from a chart as soon as its finished executing (of course, you could keep it executing in a loop).
2) An indicator's start() function gets called on every tick event for the chart; a script's start() function gets executed right after its init() function gets executed (not waiting for any tick event). (I hope I got this one correct.)
There is two major differences:
1) A custom indicator remains attached to a chart till its removed or the chart is closed; a script will detach from a chart as soon as its finished executing (of course, you could keep it executing in a loop).
2) An indicator's start() function gets called on every tick event for the chart; a script's start() function gets executed right after its init() function gets executed (not waiting for any tick event). (I hope I got this one correct.)
1) A custom indicator remains attached to a chart till its removed or the chart is closed; a script will detach from a chart as soon as its finished executing (of course, you could keep it executing in a loop).
2) An indicator's start() function gets called on every tick event for the chart; a script's start() function gets executed right after its init() function gets executed (not waiting for any tick event). (I hope I got this one correct.)
great, thanks

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