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
  • Votes +1
  • Project AlgoWizard
  • Type Bug
  • Status Fixed
  • Priority Low

History

h
#1

HEJ

31.08.2022 13:42

Task created

Cc
#2

Cyber

31.08.2022 13:42
Voted for this task.
Cc
#3

Cyber

31.08.2022 13:42
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

31.08.2022 13:42
Voted for this task.
Dw
#5

Diwi

22.12.2022 18:38
Voted for this task.
g
#6

Lee Guan Chuan

27.04.2023 09:45

Status changed from New to Fixed

Attachment Capture.jpg added

Capture.jpg
(37.23 KiB)
Hi there, 


If I am not mistaken, you do not want certain variables defined within the rules to be displayed as inputs. However, after investigating the matter, I was unable to replicate the issue. In case you encounter this problem in the future and wish to hide the variable, you can add it here and disable its configurability. 


Thank you.


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