Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1029

 
abeiks:

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

 
SunnYtheDreamer:

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

Thank you!
 
SunnYtheDreamer:

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

I do not 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 in an Expert Advisor?
 
abeiks:
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.

 
abeiks:
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

 
artmedia70:

GlobalVariableGet...

GlobalVariableSet...

... ...and the rest of them. Start typing in the editor and you'll see for yourself.

Thank you!
 
SunnYtheDreamer:

You can't do that. I meant theclient terminal global variable: https://docs.mql4.com/ru/globals

Thank you!
 

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?

//+------------------------------------------------------------------+
//|                                Indicator                         |
//+------------------------------------------------------------------+
int start()
{  
   GlobalVariableSet("Test_1", 4);
return(0);
}  
//+------------------------------------------------------------------+
//|                       Expert                                     |
//+------------------------------------------------------------------+
void OnTick()
{
if (GlobalVariableGet("Test_1")==4) 
Print("::::::::::::::::::::::::: GlobalVariableGet(Test_1)= ", GlobalVariableGet("Test_1"));
}
 

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};

 
abeiks:

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?

Reason: