To take the minus part of the loc in the plus, not the stop.
The minus side of the loc, for example 3 figures. To take from this side e.g. 4500 pips to the plus (with a bigger lot) and withdraw, leaving the equity on top.
Use the free margin to add new positions.
Take a positive result of closed positions off the balance.
Until the stopout, it is difficult to control the margin level in %, not to overload the indicator.
Stopout = first round.
The point is to withdraw your + profit and use free margin for as long as possible.
This can all be done without lock. But I need exactly the lock and its minus side with a plus in balance and profit.
A simple stop can solve the issue. Open on the trend and add to the position on the trend.
But there will not be that minus part of the lock in profit that I need, apart from the profit on the trend.
Let's write an EA and make sure. MQL-4 or MQL-5 ?
We launch the Expert Advisor, it immediately opens two opposite positions (if it is MQL-5) or two opposite orders for MQL-4
After a while, in one direction it opens +$100 in the other -$100
Why would you open a lock and wait for the price to go somewhere? Look at the chart, it's gone somewhere at any point in time relative to some past point in time. Why wait? It is better to act right away. Thus, we have: if the price is now at the bottom relative to the recent past - you must buy, if it is upwards - you must sell. In other words, they suggest to open against the trend. So, this is a super strategy.
Dmitry Fedoseev: And why would you open a lot and wait for the price to go somewhere? Look at the chart, it has gone somewhere at any time in relation to some past point in time. Why wait? It is better to act right away. Thus, we have: if the price is now at the bottom relative to the recent past - you must buy, if it is upwards - you must sell. In other words, they suggest to open against the trend. So, this is a super strategy.
and it's lower and lower
with a lock we have at least a profit on half of the risk
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I will have to close with my hands.
Is there anything we can do to help?
Let's write an EA and make sure. MQL-4 or MQL-5 ?
We launch the Expert Advisor, it immediately opens two opposite positions (if it is MQL-5) or two opposite orders for MQL-4
After a while, in one direction it opens +$100 in the other -$100
What next?
Is there anything we can do to help?
Let's write an EA and make sure. MQL-4 or MQL-5 ?
Run the Expert Advisor, it immediately opens two opposite positions (if MQL-5) or two opposite orders for MQL-4
After a while, in one direction it opens +$100 in the other -$100
What next?
Let's write an EA and make sure. MQL-4 or MQL-5 ?
Run the Expert Advisor, it immediately opens two opposite positions (if MQL-5) or two opposite orders for MQL-4
After a while, in one direction it opens +$100 in the other -$100
What next?
And why would you open a lot and wait for the price to go somewhere? Look at the chart, it has gone somewhere at any time in relation to some past point in time. Why wait? It is better to act right away. Thus, we have: if the price is now at the bottom relative to the recent past - you must buy, if it is upwards - you must sell. In other words, they suggest to open against the trend. So, this is a super strategy.
and it's lower and lower
with a lock we have at least a profit on half of the risk
We have another half, let's average.and it's lower and lower
By lock we have at least a profit on half of the risk.
We have another half, so we average out.Lok: you bought 1 kg of potatoes for 50 rubles and sold 1 kg for 49 rubles (spread).
Bottom line: no fries and no ruble.
PS. And that's only if you close by OrderCloseBy(), and if each trade separately, there are no two rubles.Lok: you bought 1 kg of potatoes for 50 rubles and sold 1 kg for 49 (spread).
Bottom line: no fries and no rouble.
PS. And it's only if you close by OrderCloseBy(), and if every trade separately, there are no two rubles.average without closing and see what happens to the spread ;)
average without closing and see what happens to the spread ;)
Once you have "averaged", you no longer have a full loc.
That is, you have a lost ruble and a sold 1kg of potatoes to buy.