void OnDeinit(const int reason)
Hello,My problem is when I use the classic "deinit" with a button in it to delete it, if i dleete the indicator, each time I change the time frame my button change it's state.What Event function can make my button keep it's state even if i change the time frame ?
Classic or new are identical. It is you that are deleting and recreating your button, thus loosing state.
Ok, thank you very much.