Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1904
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
here's the script
When I drag and drop it on the chart and enter the template name in the input parameters, the terminal stops responding and nothing happens. The templates are not applied to all charts :-( Did I copy the code incorrectly or there is a problem with something else? I double-checked the name of the template - I enter only the name without the dot tpl
Hello. I put the code in the script like this.
When I drag and drop it on the chart and enter the template name in the input parameters, the terminal stops responding and nothing happens. The templates are not applied to all charts :-( Did I copy the code incorrectly or there is a problem with something else? I double-checked the name of the template - I enter only the name without the dot tpl
enter the name and this template will open on all open charts.
for example - save the template with the name template and write the template in the script settings
Good afternoon. I have transferred the code to the script like this.
When I drag and drop it on the chart and enter the template name in the input parameters, the terminal stops responding and nothing happens. The templates are not applied to all charts :-( Did I copy the code incorrectly or there is a problem with something else? I double-checked the name of the template - I enter only the name without the dot tpl
All you had to do was add one line to your code. Or even replace two lines with one
Good afternoon! The situation is as follows: I have two identical charts open in the terminal. One robot is installed on one and the other one on the other one. How can I register in the code (if it is possible), so that the position opened by robot 1 is also opened in the chart where robot 2 is placed? Or better yet, how to make robot-1 open a position only on the chart with Robot-2? My "knowledge" is not enough.
My "knowledge" is not enough. Thank you.
Good afternoon! The situation is as follows: I have two identical charts open in the terminal. One robot is installed on one and the other one on the other one. How can I register in the code (if it is possible), so that the position opened by robot 1 is also opened in the chart where robot 2 is placed? Or better yet, how to make robot-1 open a position only on the chart with Robot-2? My "knowledge" is not enough.
My "knowledge" is not enough. Thank you.
All you had to do was add one line to your code. Or even replace two lines with one
If the charts are the same, the orders are visible on both of them. Orders are opened on the symbol, not on the chart.
This is understandable, but I need the order not just to be visible on the second chart, but to open on it. It is not necessary that it opens on the first chart. It would seem why, because I could simply combine two codes into one and then there would be no need to open the second chart, but the thing is that the second robot is someone else's and I don't have access to its code.
Hi all!
How can I make all the charts in MT4 (and I have 9 of them open at the same time) switch quickly from light to dark background and back?
Aleksey, thanks a lot for the tip - added lines and everything worked, only problem - now even when manually selecting the default template the terminal hangsXD))))))))) looks like it's time to clean computer, but there are signs of trouble(
Not sure when it hangs, from what actions... but I noticed a small error in the code. No flag to force script shutdown.
We need to fix the loop line
This is understandable, but I need the order not just to be visible on the second chart, but to open on it. It is not necessary that it opens on the first chart. You would think that I don't really need it because I could just merge the two codes into one and then the second chart would not have to be opened.
The orders are not opened on the chart!!!
You explain the essence of the problem. Is it necessary for one EA to open orders and the other to accompany?