Questions from Beginners MQL5 MT5 MetaTrader 5 - page 894
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
The solution is as follows: in the signals module
In the Expert Advisor that was generated by the MQL5 Wizard:
Bottom Line:
Vladimir, is it then necessary to manually insert a part of the code into the EA every time you recompile it?
Vladimir, do you have to manually insert a part of the code into the EA every time you recompile it?
No, after you have inserted the enum listing into the EA code, you can compile it as much as you want. The code stays in place, and the inserted part does not go anywhere.
Could you please tell me where to find an example?
Where in the signal module toinsert the code of the input parameter as an enumeration, so that it can then be specified in the descriptor of that module.
Example: https://www.mql5.com/ru/code/19025
Thanks, I'll have a look now. But it's not a module for standard library and wizard.
Let me clarify my question - is it possible to use my enum in a signal module created in MQL5 Wizard?
Netting account, three trades were made in the same direction, with the same lot, with the same number of pips. willthe position price always be equal to the price of the average (second) trade?
Is the position price always the average price of all trades?
Netting account, three trades are executed, in one direction, with equal lot, with equal number of pips. willthe position price always be equal to the price of the average (second) trade?
On forex, I think so (after all 3 trades, of course), on FORTS, no. There will be position reopening after clearing.
Is the price of a position always the average price of all transactions?
It depends on the volume!
There will be a reopening of the position after clearing.
But its price will not change.
But its price will not change.
It will! It will close the previous position and open a new one. But this is on the FORTS!