Strange problem, OnDeinit not run in indicator
When the value of C is Bars - 1, Low [C + 1] is the same as Low [Bars]. At this time, execution of the program stops due to "array out of range" error.
Naguisa Unada:
When the value of C is Bars - 1, Low [C + 1] is the same as Low [Bars]. At this time, execution of the program stops due to "array out of range" error.
When the value of C is Bars - 1, Low [C + 1] is the same as Low [Bars]. At this time, execution of the program stops due to "array out of range" error.
Many many thanks Naguisa Unada.
Big help for me :)
Hi
I have a strange problem, that is OnDeinit not run when i delete my indicator from chart.
The following code is a example of my indicator :
Strange part is when i remove this line , OnDeinit run Properly:
What's problem?