run is executed on every bar.
The first too times and the last time you can detect with the flags INITRUN, FIRSTRUN and EXITRUN.
e.g. if (!is(INITRUN)) will spare the initrun.
After the function run you still have an extra function thats called evaluate (and before main) these 2 are not repeated.

Last edited by Chiller; 10/09/21 18:19.