Issues with MQL5 Compiling - Undeclared Identifier

Hey team, 


At the end of a production run, I went to export and then test strategies on an MT5 terminal and this error came up (seeing mqlcompilingerror pic). The three strategies attached have this error but it's only visible when you're not in pseudo-code. Attached is a screenshot of one (mql error). 

SQX will generate strategies with missing MQL5 code causing compiling errors. Signal blocks with rising/falling/changing direction (both stock and extensions) are mostly affected. 

I found hundreds, if not potential thousands of strategies with this error. At first, I thought it was because of running them through the sequential optimizer (changing their parameters) but this was happening during the build phase!


Attachments
Strategy 11005071 - Sequential optimized.sqx
(18.91 KiB)
mql error.png
(96.55 KiB)
Strategy 1100699 - Sequential optimized.sqx
(17.83 KiB)
Strategy 1100692 - Sequential optimized.sqx
(18.64 KiB)
mqlcompilingerror.png
(9.16 KiB)
  • Votes +4
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

JJ
#1

jjsb41

17.10.2022 14:42

Task created

JJ
#2

jjsb41

17.10.2022 14:43
Voted for this task.
JJ
#3

jjsb41

17.10.2022 14:45

Description changed:

Hey team, 


At the end of a production run, I went to export and then test strategies on an MT5 terminal and this error came up (seeing mqlcompilingerror pic). The three strategies attached have this error but it's only visible when you're not in pseudo-code. Attached is a screenshot of one (mql error). 


I found hundreds, if not potential thousands of this error. At first, I thought it was because of running them through the sequential optimizer but this was happening during the build phase!

Generally, I noticed this with strats that were using Raising/Falling/Changing direction signals. This affected both stock and extension indicators/signals. 



JJ
#4

jjsb41

17.10.2022 14:50

Description changed:

Hey team, 


At the end of a production run, I went to export and then test strategies on an MT5 terminal and this error came up (seeing mqlcompilingerror pic). The three strategies attached have this error but it's only visible when you're not in pseudo-code. Attached is a screenshot of one (mql error). 

SQX will generate strategies with missing MQL5 code causing compiling errors. Signal blocks with rising/falling/changing direction (both stock and extensions) are mostly affected. 

I found hundreds, if not potential thousands of strategies with this error. At first, I thought it was because of running them through the sequential optimizer (changing their parameters) but this was happening during the build phase!


?
#5

anonymous

17.10.2022 15:55

Attachment Workflow_Buildconfig.cfx added

Workflow_Buildconfig.cfx
(44.62 KiB)
Attaching build config
JJ
#6

jjsb41

17.10.2022 15:56

Attachment Workflow_Buildconfig.cfx added

Workflow_Buildconfig.cfx
(44.62 KiB)
This occurred with the latest 135 build. Attaching build config
E
#7

Emmanuel

24.10.2022 17:57
Voted for this task.
g
#8

Lee Guan Chuan

27.10.2022 11:30

Status changed from New to Fixed

Hi jjsb41,


I have tested the strategies in the latest development. 

  1. I copy the code manually from the source code tab into MQL5 and compile
  2. I save it as code using the save function from the databank
  3. I use the task in the custom project to save the source code.

All these steps allow me to export the code and compile it in MQL5.


Please load the strategies to the latest SQX Dev version and export the MQL5 file.


You can download the latest development version here 

  1. Go to https://strategyquant.com/download/
  2. Scroll down the page and click on "Development version"
  3. Select the installer for your OS and download

Thank you.

k
#9

Karish

06.11.2022 21:52
Voted for this task.
Bt
#10

beetrader

09.11.2022 10:51
Voted for this task.

Votes: +4

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please