Optimization process. Many settings are tested. Some of these settings can be exclude during the OnInit (return(INIT_PARAMETERS_INCORRECT);). One of my function calculates some value from these parameter set, it correlates it with the price. Since it's using the symbol price I can't check from the OnInit if the parameter used is good or no.
I tried to call OnDeinit as a function but it doesn't work.
How to deinit from inside the OnTick ? Or how to get symbol price from inside the OnInit ?