Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1029
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello.
I will be generating signals in the indicator. What functions can I use to send these signals to my Expert Advisor?
1. Interaction through sending messages to MQL programs: EventChartCustom
2. Interaction through global variables
3. Interaction through an object on the chart
4. Rewrite the indicator in the function, handler of integration, i.e. take the time series search cycle out of the indicator code, and then organize the outlined cycle in the Expert Advisor and calculate the indicator values through the created function.
5. iCustom
1. Interaction via sending messages to MQL programs: EventChartCustom
2. Interaction through global variables
3. Interaction through an object on the chart
4. Rewrite the indicator in the function, handler of integration, i.e. take the time series search cycle out of the indicator code, and then organize the outlined cycle in the Expert Advisor and calculate the indicator values through the created function.
5. iCustom
1. Interaction via sending messages to MQL programs: EventChartCustom
2. Interaction through global variables
3. Interaction through an object on the chart
4. Rewrite the indicator in the function, handler of integration, i.e. take the time series search cycle out of the indicator code, and then organize the outlined cycle in the Expert Advisor and calculate the indicator values through the created function.
5. iCustom
int GlobalFlag=10; // global variable
int OnStart()
{
...
}
How can I call such a global variable in an indicator in an Expert Advisor?
I don't really understand how interaction via global variables will work. https://docs.mql4.com/ru/basis/variables/global
int GlobalFlag=10; // global variable
int OnStart()
{
...
}
How can I call such a global variable in an indicator in an Expert Advisor?
GlobalVariableGet...
GlobalVariableSet...
... ...and the rest of them. Start typing in the editor and you'll see for yourself.
I don't really understand how the interaction via global variables will work. https://docs.mql4.com/ru/basis/variables/global
int GlobalFlag=10; // global variable
int OnStart()
{
...
}
How can I call such a global variable in an indicator?
You can't. I meant the global variable of the client terminal: https://docs.mql4.com/ru/globals
GlobalVariableGet...
GlobalVariableSet...
... ...and the rest of them. Start typing in the editor and you'll see for yourself.
You can't do that. I meant theclient terminal global variable: https://docs.mql4.com/ru/globals
Hello.
I'm currently trying to figure out the global variables. Now there is one problem and I can't solve it. If I delete a global variable from the indicator, the Expert Advisor keeps getting that variable. How can I solve this problem?
Can you people tell me what the error is in this line? before compiled without error messages, now - '{' - expression expected
Thanks in advance
Arr_Tickets[MAX_NUM_ORDER][2] = {0,0, ,0,0};
Hello.
I'm currently trying to figure out the global variables. Now there is one problem and I can't solve it. If I delete a global variable from the indicator, the Expert Advisor keeps getting that variable. How do you solve this problem?
a how do you delete it?