tpg_k156: Good afternoon. I am interested in one question: is it possible to install two Metatraders in parallel, but without screwing up the first one. Are there likely to be conflicts between them. What are the peculiarities of their setting? I need such a thing for simultaneous monitoring of a pair of accounts without any reconnecting manipulations.
Need to put the terminals in different folders - so you can put as many as you like. There will be no conflicts or glitches.
for (int i=0; i<2; i++)
{
signal[i] = SIGNAL_NO;
// if (UseFiltrMa == false && A > B) continue;if (1-ое условие)
if (2-ое условие)
{
signal[i] = SIGNAL_BUY;
}
There was a function with condition 1 and condition 2. Everything works. Now I need to somehow add a condition to the code, which I commented out. Here's the gist:
There is an external boolean variableUseFiltrMa. IfUseFiltrMa is in True, this filter is taken into account, i.e. conditionA > B, and ifUseFiltrMa is in False, it is not taken into account. How can this be done?
The difficulty is that the condition must be exactly in this position. Not somewhere else.
There was a function with condition 1 and condition 2. Everything works. Now I need to somehow add a condition to the code, which I commented out. Here's the gist:
There is an external boolean variableUseFiltrMa. IfUseFiltrMa is in True, this filter is taken into account, i.e. conditionA > B, and ifUseFiltrMa is in False, it is not taken into account. How can this be done?
The difficulty is that the condition must be exactly in this position. Not somewhere else.
Why put the signal in the array at all? - For training purposes??? The signal can be BUY and SELL at the same time??? :)))
TarasBY: Why put the signal in the array at all? - For training purposes??? The signal can be BUY and SELL at the same time??? :)))
No. Just signals with different magik. So a bunch of wipes... the signal under different conditions has different magic. It's simple there. Everything works actually. But I decided to add another filter. Now I'm logically stuck... That's why I'm asking.
No. Just signals with different magics. So a pack of mash-ups... the signal under different conditions has a different magik. It's simple there. Everything works really well. But I decided to add another filter. Now I'm logically stuck... That's why I'm asking.
TarasBY: Why do we need to include the signal into the array? - For training purposes? Can a signal be BUY and SELL at the same time? :)))
No. Just signals with different magik. So a bunch of wipes... the signal under different conditions has different magic. It's simple there. Everything works really well. But I decided to add another filter. Now I'm logically stuck... That's why I'm asking.
TarasBY: Can a signal be BUY and SELL at the same time? :)))
Actually, yes, somehow as soon as there is a signal, it opens immediately. There can be many orders at the same time. Each one has a stop and TP. But there can be no limit on the number of orders. Again, this is set by the external variable.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Chiripaha:
... When I switch from one timeframe to another, all settings are reset to basic.
Is it possible to avoid this moment? How do I do it? I have searched the forum, I have not found anything.
Judging by the lack of answers - the question is either too stupid or there is no answer. Or, alternatively, it is wrongly asked.
Correct me if anything.
Good afternoon. I am interested in one question: is it possible to install two Metatraders in parallel, but without screwing up the first one. Are there likely to be conflicts between them. What are the peculiarities of their setting? I need such a thing for simultaneous monitoring of a pair of accounts without any reconnecting manipulations.
Int start() or int init() ?
Where would it be more correct to insert a function to check for trade
Int start() or int init() ?
Here is the function:
There was a function with condition 1 and condition 2. Everything works. Now I need to somehow add a condition to the code, which I commented out. Here's the gist:
There is an external boolean variableUseFiltrMa. IfUseFiltrMa is in True, this filter is taken into account, i.e. conditionA > B, and ifUseFiltrMa is in False, it is not taken into account. How can this be done?
The difficulty is that the condition must be exactly in this position. Not somewhere else.
Judging by the lack of answers - the question is either too stupid or there is no answer. Or, alternatively, wrongly asked.
Correct me if that's the case.
Here is the function:
There was a function with condition 1 and condition 2. Everything works. Now I need to somehow add a condition to the code, which I commented out. Here's the gist:
There is an external boolean variableUseFiltrMa. IfUseFiltrMa is in True, this filter is taken into account, i.e. conditionA > B, and ifUseFiltrMa is in False, it is not taken into account. How can this be done?
The difficulty is that the condition must be exactly in this position. Not somewhere else.
Why put the signal in the array at all? - For training purposes??? The signal can be BUY and SELL at the same time??? :)))
No. Just signals with different magik. So a bunch of wipes... the signal under different conditions has different magic. It's simple there. Everything works actually. But I decided to add another filter. Now I'm logically stuck... That's why I'm asking.
No. Just signals with different magics. So a pack of mash-ups... the signal under different conditions has a different magik. It's simple there. Everything works really well. But I decided to add another filter. Now I'm logically stuck... That's why I'm asking.
This condition somehow changes in the loop:
// if (UseFiltrMa == false && A > B) continue;...If not, why put it inside the loop?Why do we need to include the signal into the array? - For training purposes? Can a signal be BUY and SELL at the same time? :)))
No. Just signals with different magik. So a bunch of wipes... the signal under different conditions has different magic. It's simple there. Everything works really well. But I decided to add another filter. Now I'm logically stuck... That's why I'm asking.
Can a signal be BUY and SELL at the same time? :)))
Actually, yes, somehow as soon as there is a signal, it opens immediately. There can be many orders at the same time. Each one has a stop and TP. But there can be no limit on the number of orders. Again, this is set by the external variable.