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
Well, it's easy to add a closed volume to the code.
You don't understand the essence of the script! The name of the script is"Close position"! And there are ten positions! The original logic of the script assumes only one position. And your code is completely useless. A line is quite enough:
You don't understand the essence of the script! The name of the script is"Close position"! And there are ten positions! The original logic of the script assumes only one position.
Even on MT5-Hedge and MT4 there is always one net position. The algorithm is as follows
And your code is completely useless. A line is enough:
The net position even on MT5-Hedge and MT4 is always the same. The algorithm is as follows
This is a conversation about nothing in the style: "If grandma were a grandfather and had a penis....". The script closes only one position in the terminal and that's all!
Speaking of worthlessness, here it is
Unfortunately, this applies to ALL your Expert Advisors - TradeAlgorithms.mqh
You drew a bunch of code demonstrating your erudition but absolutely inappropriate in this particular situation, I drew only one line of code, but in place to solve the problem and in passing pointed out the original meaning of this script. That's it!
Unfortunately, you don't see the problem - your trading codes only work on symbols that support ORDER_FILLING_FOK. On others (for example, stock symbols) - will not work.
Here is an example
Forum on trading, automated trading systems and testing trading strategies
Scripts: ClosePosition
fxsaber, 2017.02.21 09:42 pm.
Metaquotes-Demo, Si-3.17, Netting - try it!Unfortunately, you don't see the problem - your trade codes only work on symbols that support ORDER_FILLING_FOK. On others (e.g. stock symbols) - will not work.
Here is an example
Nikolay Kositsin:
Разговор ни об чём. В контексте данной ситуации разговор шёл о совсем другой проблеме.
You react strangely when you are clearly shown that the script does not work.