A better question i guess would be how can an expert and script share functions or even more same global variables.
Thanks for Help
I don't think it is possible to call an expert internal function, from a script.
Expert and scripts have different purposes, and runs differently on the ambient.
Global variables can be shared between them, considering they a running on the same window.
I would like to correct some semantics with your statement to prevent misunderstanding by readers.
Globally scoped variables cannot be shared between Scripts, EAs or Indicators.
However, Global Terminal Variables can be accessed by any EA, Script or Indicator running on the same terminal.
- www.mql5.com
I would like to correct some semantics with your statement to prevent misunderstanding by readers.
Globally scoped variables cannot be shared between Scripts, EAs or Indicators.
However, Global Terminal Variables can be accessed by any EA, Script or Indicator running on the same terminal.
Thank you Fernando. I was thinking about Global Terminal when I replied.
I don't think it is possible to call an expert internal function, from a script.
Expert and scripts have different purposes, and runs differently on the ambient.
Global variables can be shared between them, considering they a running on the same window.
Yes I know global variables can be shared but not the way I want, imagine for example I have declared : int var = 10 in some program as a global variable, how can I get access to it itself without using global functions of course
Since the program is compiled, and the variable is compiled inside it, I don't think it is possible to access the variable from the outside.
As far as I know..
But if there is such a way, it is beyond my knowledge.
You cannot get access to any function or variable declared within a MQL program (EA, Script or Indicator) from "outside" its scope.
MQL programs do not have any way of dynamically exporting variables or functions from within its programs.
You cannot get access to any function or variable declared within a MQL program (EA, Script or Indicator) from "outside" its scope.
MQL programs do not have any way of dynamically exporting variables or functions from within its programs.
What about export functions? I think the reference library says that is possible to access from outside the program that created it.
What about export functions? I think the reference library says that is possible to access from outside the program that created it.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have an expert running , how can i call its functions from a script without the #import.
Expert:
Script: