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
See mode clauses.
item 5 = 3 trades
item 3 = 18 tr.
p.5 + p.3 = 21 tr. p.5 + p.3 <= p.2
but p.2 = 200 tr and not <= 21 tr.
The Expert Advisor is for hedge accounts. It is impossible to reverse one position. You have to close one position and open another.
It is optimised.
Always one position (swing) - always only one position in the market = 200 orders
Any position - any positions = 185 orders
Under the "any position" condition, there should be more orders than under the "always only one position in the market" condition
Optimisation is in progress.
Always one position (swing) - always only one position in the market = 200 orders
Any position - any positions = 185 orders
There should be more orders in the "Any position" condition than in the "Always only one position in the market" condition
In case of Any position - any positions, the restriction on the maximum allowed total volume on the account is triggered - because it opens all positions indiscriminately. And at some point there comes a moment of overflow of the total allowed volume on the account, and positions stop being opened.
And in case of Always one position (swing) - "only one position" - the restriction can work only if the initially set volume of the opened position is larger than the maximum allowed one. And the EA, as the author promises, will simply adjust this lot to the possible one.
Maybe it's easier for you to look in visual mode, rather than trying to make premature conclusions based on the number of orders in reports? ;)
That's where the code comes from:
The function itself. The mode that could cause what you're implying is disabled.
Or did I misunderstand your hint?
That's where the code comes from:
The function itself. The mode that can cause what you are suggesting is disabled.
Or did I misunderstand your hint?
This situation concerns synchronous mode.
This mode does not work in this EA: InpModeOpened==OPENED_MODE_SWING
Why?
I look at the code and see:
- If it's swing mode.
- if it is necessary to open a purchase and there are sales, then close sales
- if it is necessary to open a sale and there are purchases, then close purchases.
- If all checks are passed, open the desired position.
Or am I misunderstanding something here? Explain.Why?
I'm looking at the code and I see it:
- If it's swing mode.
- if it is necessary to open a purchase and there are sales, then close sales.
- if it is necessary to open a sale and there are purchases, then close purchases.
- If all checks are passed, open the desired position.
Or am I misunderstanding something here? Explain.Artem, as I understand it, we are talking about "disappearing" positions. In mt4 these are SL and TP. I can't judge about mt5...
Artem, as I understand it, we are talking about "disappearing" positions. In mt4 these are SL and TP. I can't judge about mt5....
So it will be the same in MT5. If there is a buy 0.1, the stop is a stop order to sell 0.1
You know better, but sometimes someone prefers to check.