Generated MQL5 strategies have "not found" error messages and do not work

Some strategies I have generated have messages like this in MQL5 code:


     cond[1] = sqGetIndicatorValue(!!! ADX_NULL_0_ADXLowerPeriod2 not found in [MACD_NULL_0_0_MACDMainCrossSgnFst_MACDMainCrossSgnSlw_MACDMainCrossSgnSmt, ATR_NULL_0_ATRRisingPeriod, ATR_NULL_0_ATRRisingPeriod2, ADX_NULL_0_ADXLowerPeriod, BOLLINGERBANDS_NULL_0_BBBarClosesPeriod_2.0_0, RSI_NULL_0_0_RSIPeriod, ATR_NULL_0_ATRFallingPeriod, AVGVOLUME_NULL_0_AvgVolumeRisingPrd, KELTNERCHANNEL_NULL_0_KeltnerChannelPeriod_1.5, HEIKENASHI_NULL_0, ], 1) < 30.0;
     cond[1] = (sqClose("NULL",01) > sqGetIndicatorValue(!!! BOLLINGERBANDS_NULL_0_BBBarClosesPeriod2_2.0_0 not found in [MACD_NULL_0_0_MACDMainCrossSgnFst_MACDMainCrossSgnSlw_MACDMainCrossSgnSmt, ATR_NULL_0_ATRRisingPeriod, ATR_NULL_0_ATRRisingPeriod2, ADX_NULL_0_ADXLowerPeriod, BOLLINGERBANDS_NULL_0_BBBarClosesPeriod_2.0_0, RSI_NULL_0_0_RSIPeriod, ATR_NULL_0_ATRFallingPeriod, AVGVOLUME_NULL_0_AvgVolumeRisingPrd, KELTNERCHANNEL_NULL_0_KeltnerChannelPeriod_1.5, HEIKENASHI_NULL_0, ], 11));
     cond[0] = sqGetIndicatorValue(!!! BEARSPOWER_NULL_0_BPPeriod3_0 not found in [ATR_NULL_0_ATRRisingPeriod, DEMARKER_NULL_0_DEMPeriod, ICHIMOKU_NULL_0_IchimokuSnkSpnCrsBshTnkPrd_IchimokuSnkSpnCrsBshKjnPrd_IchimokuSnkSpnCrsBshSnkPrd_2, DEMARKER_NULL_0_DEMPeriod2, STOCHASTIC_NULL_0_StochSlowDKPeriod_StochSlowDDPeriod_StochSlowDSlowing_0_0, BEARSPOWER_NULL_0_BPPeriod_0, BEARSPOWER_NULL_0_BPPeriod2_0, MOVINGAVERAGE_NULL_0_0_0_MABarClosesPeriod, TRSMA_NULL_0_0, RSI_NULL_0_0_RSIPeriod, SUPERTREND_NULL_0_1_SuperTrendATRPeriod_3.0, SMMA_NULL_0_0_SMMAPeriod, ATR_NULL_0_ATRPeriod, EMA_NULL_0_0_EMAPeriod, ATR_NULL_0_ATRPeriod2, HEIKENASHI_NULL_0, ], 1) < 0.0;

etc.

Naturally, they do not compile in MT5.

There are no such messages in MT4 source code.
Attachments
Strategy 1716180.sqx
(15.60 KiB)
Strategy 1018126.sqx
(16.86 KiB)
Strategy 1612147.sqx
(16.71 KiB)
Strategy 727145.sqx
(17.33 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

YL
#1

YuriLopukhov

11.07.2021 18:41

Task created

JA
#2

johancdb

04.01.2022 08:56
Voted for this task.
TT
#3

Tamas

08.09.2022 14:03

Status changed from New to Fixed

Please download the latest version of SQX and regenerate the source code

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please