oninit function
-
Hi, the oninit function must be reloaded every time the time frame changes, but I tested it several times and it didn't work.
-
To reload, remove EA and add the EA again
-
@sktsec That is, if the EA is on the chart, when the time frame is changed, ONINIT will not be executed again?
-
No. Oninit() will NOT be executed again. Unlike indicator.
BTW, therefore, the value of the variables will not be changed, you can use comment to print them out and see nothing changed
-
