Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1503

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
Do Expert Advisors leave traces of their activity in Global Variables
I am not sure.
Start here - In the terminal, in the ribbon, in the Tools folder, there is a GlobalVariables item. Let's find it.
This is where you should start - In the terminal, in the ribbon, in the Tools folder, there is a GlobalVariables item. Let's find it.
It's empty.
This is where you should start - In the terminal, in the ribbon, in the Tools folder, there is a GlobalVariables item. Let's find it.
As I understand you, I am also an ignoramus myself. Sometimes I can't catch a phrase or logic, the simplest ones. And I am constantly asking and reading too. That's why I'm calling you back. You helped me here recently, just above - very much, thank you.
It's empty.
So we're not interrupting anything.
Open the code of the EA whose readings you are interested in. You wrote that the other advisor should perform some actions depending on the readings of the first one. That's where you should start.
In any convenient place for you, prepare an empty line and type GlobalVariableCheck(), then highlight and press F1. The page with information will open, it's not difficult there.
And the essence of the embodied idea - Create a Global variable in the translating Expert Advisor, and let the receiving one read from it, at certain readings the condition will be triggered, and further on according to the scenario.
prepare an empty line and type GlobalVariableCheck(),
Don't forget to delete it afterwards, it was just a quick way to the necessary help. Burn it after reading it.
Hello, if there is a formula (code) for the weighted average price of opening a position on a hedge account. Thank you.
I don't understand, what is the formula to close cases of opposite trades?
This one doesn't seem to work?
I don't understand, what is the formula to close cases of opposite trades?
This one doesn't seem to work?
I don't remember where I copied it, but it works well.
It's the same as what you have written, only separated by position directions.
Ithink that's what you need .
I can't remember where I copied it, but it works well.
It's the same as what you wrote, only separated by position directions.
Ithink that's what you need .
I don't understand if it is the same if you just take shorts with negative volume and sum the absolute values in the denominator?
You might want to add a division by 0 check at the end.
I don't understand if it's the same if you just take the shorts with negative volume and sum the absolute values in the denominator?
The function calculates the average price separately for buy and separately for sell.
I don't quite understand what your task is. I don't understand this phrase: " to close cases of opposite trades".
It would be good to add a check of division by 0 at the end.
There is a check.
Can you tell me how to round ask and bid prices in CSymbolInfo class to price step?