Sorry I didn't explain it clearly enough, actually I was wanting to launch a script from within the EA like you would a function. Is there anyway to do that?
Thank you again,
TJ
Sorry I didn't explain it clearly enough, actually I was wanting to launch a script from within the EA like you would a function. Is there anyway to do that?
Thank you again,
TJ
(what i did) i assigned an hot key for the script & ran from the EA
(what i did) i assigned an hot key for the script & ran from the EA
Hi qjol, thank you for the idea.
Do you happen to have a snippit you would share to help me understand how to do this, I'm still real new and could use a small example - either way, thank you man.
TJ
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, I'm new at programming and trying to learn.
One thing I am trying to do is run a script from within an EA. I have searched in every way I can think of and can find no information or examples of this so before I assume it's not possible I wanted to ask here where the pro's are. For instance, if I wanted to use a CloseALL script from within any EA, how would that be accomplished? This is what I know so far:
copy the script into the include folder and rename it .mql from mq4
add #include <scriptname> at the top of the EA
This is where I don't know what to do next.
If I place something like this (simplistically stated):
-------------------------------------
#include <RunThisScript.mqh>
start() {
RunScript()
}
void RunScript() {
int RunThisScript;
}
------------------------------------
Should this work correctly?
Thanks for any help at all,
Trader