When creating a strategy with AlgoWizard, if you define an external boolean variable but do not select its initial value in the variables list, the resulting MT4 source code has "0" assigned as the initial value instead of "False". This causes MT4 to ignore changes to the boolean variable in the Inputs section of the strategy tester, meaning that setting/ changing the boolean variable Input to "True" or "False" does not get passed in to the mq4 strategy running in the tester. To avoid this situation, you must first select/ toggle the boolean variable's initial value when you create it in AlgoWizard. This causes the MQ4 code to assign "False" (or "True") to boolean variable in the MT4 source code, in which case, changes to the tester Inputs are correctly passed through to the mq4 strategy running in the tester.
Attachments
No attachments