AlgoWizard (SQX Pro 135.868) - Constants are defined as External Variables in MT4 source code

Constants are defined as External Variables and appear in the Inputs Tab of the MT4 Terminal. As new variables are added during testing and new iterations of the mq4 file are compiled and tested, MT4 can overwrite and change the constant's value as they shift around in the Input tab page, causing simple calculations to fail with incorrect results. The constants also shift around and are renamed by AlgoWizard as the strategy is modified and recompiled.



I reported this problem over a year ago and was told that this is how MT4 behaves. True, but it is still a HUGE PROBLEM.


The root issue is that CONSTANTS should not be allowed to be changed, ever!  Constants are constant and should not appear in the MT4 Inputs Tab.


To clarify, the constants I'm referring to are real constants like the "2" used in the following expression:  (Ask - Bid) / 2
The '2' should never be allowed to be altered in value. '2' must always be '2'. It is not intended to be a variable, and should not be compiled as a variable.

Attachments
No attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Moved
  • Priority Normal
  • Assignee None

History

h
#1

HEJ

09.06.2022 18:22

Task created

Cc
#2

Cyber

27.06.2022 02:58
Voted for this task.
Cc
#3

Cyber

28.06.2022 06:30
I have this problem with the variables. It is annoying seeing dummy variables that assign a number. I suggest assigning the values directly to the actual variable rather than creating a dummy variable with a default value which will then be assigned to a defined variable..
E
#4

Emmanuel

29.06.2022 11:57
Voted for this task.
TT
#5

Tamas

31.08.2022 13:42
Task moved to project AlgoWizard, new link to task: https://sq.projectpanel.com/tasks/algw_0594

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please