What is Terminal Variables?
-
What is Terminal Variables?
-
Global variables in MT4/MT5. These variables are shared across every chart on terminal. Hit F3 while in MT to see the global variables.
You probably don't need them, fxdreema uses different kind of variables
-
How to use Terminal Variables? I want to connect variables between 2 EA ...
-
Write the global variables with block "Terminal variables"
Read the global variables with block "Modify variables" - you should set a "normal" fxdreema variable for each global variable -
Thank you very much Roar.
Is it possible to connect variables between 2 running MT4(different broker)?
-
That is much harder, you will need some custom coding.
-
Hi,
I am interested in using Terminal Variables - a Variable that can be used/changed by the EA on any/all charts it is running.
I noticed that the example on "working with" tutorials has been removed for this topic. Is there any example I can see to understand how this works?
Thanks.
-
In MetaTrader you can access those with F3. They are called "Global Variables" there, but this is in the scope of MetaTrader, not the EA itself. In the EA you also have global variables, but they are soemthing different. So I use the name "Terminal Variables" to describe those F3 kind of variables.
If you know what cookies are for the browser, I imagine that those F3 variables are pretty much the same. They are stored somewhere in a file and can be accessed from all EAs. So they are just values that MetaTrader shares between all EAs, and they are also persistent... for some time.
-
Thanks for the explanation.
I know we can read "Terminal Variables". But can our EA modify them?
-
Let's supose there is a GlobalVariable (MT4 Terminal Variable) that is called MT4_Variable.
If I want to use it's value on a formula (or condition), I would do this, correct?

If I want to change the value of MT4_Variable, do I need to use custom code, like this?

Or there is another way, using a block, the same way we change local/EA Variables?
Thanks.