
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
What's there to think about? This one involves a ROTURN and a RETURN. As for the ROTURN, it is simpler; according to the netting logic in MT5 it is closing a position at profit or stop, followed by opening the opposite position at the difference in volumes.
As for MT4, the rollover is usually implemented through a lock.
No, you misunderstand. I meant copying of opposite trades. In other words, on MT5 the EA is buying and on MT4 it is copying the sale.
And the strategy is not meant for reversal but for simple TP taking. It just seems to me that if we hold until the position opens in the other direction we are better off... It's better to lose.
No, you misunderstand. I meant copying back trades. That is, on MT5 the EA is buying and on MT4 it is copying the sale.
And the strategy is not meant for reversal, but for simple TP taking. It just seems to me that if we hold until the position opens in the other direction we are better off... It is better to lose.
1.
If I tried to copy from MT4 to MT4, it would probably be possible to do it.
But MT4 in this situation should live by MT5 laws (although not obliged, of course).
2.
The reversal in MT5 (because of the peculiarities of netting) is so difficult that you should think about using it all the time.
Sometimes it's better to put in a CU and re-enter lower/higher...
Is there a problem with the website?
1.
In principle, it is probably possible to implement this, since MT4 is copied from MT4 to MT4.
But MT4 should live by the laws of MT5 (although not obliged of course).
2.
The reversal in MT5 (because of the peculiarities of netting) is so complicated, that it is worth thinking about using it permanently.
Sometimes it's better to put in BU and re-enter below/above...
1. Here copying from MT5 to MT4https://www.mql5.com/ru/articles/189. I will try to do it tomorrow, maybe it will work.
2. I should think how to make it better. Maybe re-enter, maybe something else.
Is there a problem with the website?
What kind of problem?
Good afternoon. I have generated an EA using mql5. I do not have any complaints about its work. I don't know how to modify it, I just don't know how to change it so it would sell instead of buy and vice versa. I am not that familiar with mql4 but I'm not that familiar with mql5.
Please, advise me if you don't mind.
Gentlemen, you do not have to "fix" the class. We need to inherit it.
It goes like this:
price=0.0; // at the current price
sl=0.0; // without stop
tp=0.0; // without takei
Gentlemen, you don't have to "fix" the class. We need to inherit.
Something like this:
price=0.0; // at the current price
sl=0.0; // without a stop
tp=0.0; // without take profit
Thank you. It reverses the trades. Only it doesn't make the sale. There is a buy but no sale.
I looked into sl and tp. If you write:
Then the Expert Advisor only sells. And if you write it like this:
Then it only buys.
IfGlobal expert object is inserted into Expert Advisor built on MA, then everything reverses well, trades are opened in both directions.
Is there a problem with the site?
Thank you. The deals are flipping. Only there is no sale. There is a purchase but no sale.
I looked into sl and tp. If you write:
Then the Expert Advisor only sells. And if you write it like this:
Then it only buys.
IfGlobal expert object is inserted into Expert Advisor built on MA, all is well reversed, trades are opened in both directions.
Not the number of points.
sl not the number of points.
Well, I changed it just for the sake of interest.
If you enter it indouble stop_level=100.0; then it opens both to sell and to buy. But if we open a Buy position, it cannot sell. It can only buy, close the previous buy and buy again. He may also sell only when the buy position is closed by SL. The same situation is with buying after selling.
Dimmish:
Ifdouble stop_level=100.0; is entered, it opens both a sell and a buy position. However, if a buy position is opened, it cannot sell. It can only buy, close the previous buy and buy again. And he may sell only when the buy position is closed by SL. The same situation is with buying after selling.