Hi,
Just downloaded SQ4 RC1, and generated strategies with ATR based SL and PT. If I tried to compile the generated MT5 MQL code, it shows that getATR function undefined.
======================== Generated Codes =========================
// StopLoss & ProfitTarget
sqSetSLPT(_ticket,
sqGetSLLevel("Current", ORDER_TYPE_SELL, 0, false, 2.8 * getATR(NULL,0,20,1)), // SL
sqGetPTLevel("Current", ORDER_TYPE_SELL, 0, false, 3.3 * getATR(NULL,0,25,1))); // PT
// ExitAfterBars initialization
sqSetExitAfterXBars(_ticket, 6);
========================Compilation Error Message ========================
'getATR' - function not defined Strategy 0.5849.mq5 315 80
Please help fix this.
Thanks!
can you please attach some SQ4 strategy that outputs this faulty MQL code? The function getATR() has been removed some time ago, it should not be used in generated MQL code anymore.
Locally, I cannot reproduce the issue.
Thank you
Tomas