Download MetaTrader 5

Init Failed/De Init : How to invalidate a set of parameters during EA execution

To add comments, please log in or register
Icham Aidibe
9974
Icham Aidibe 2015.01.28 11:17 

Hi,

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 ?

To add comments, please log in or register