Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1322
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
I guess that's what you had in mind - it seems to have worked.
Thanks !
Everything is correct, butnot exactly what I had in mind!!! The order is placed along the trend (according to the indicator) and closed at take and as soon as it closes - a new order is opened in the same direction (along the trend), but this is only one part of my idea.
The second part is that an order which was not closed by Takei when the trend reverses (when the indicator gives a signal of a change in the price direction) should not be closed (which you have done).
In short, the two parts should work as a pair.
Yesterday I downloaded this miracle to watch... Suddenly I had no internet. After a thunderstorm I had technical works for the rest of the day. So I decided to rewrite it in MQL5 out of idleness and published it here.
So every cloud has a silver lining.........
Thank you very much!
It may come in handy, if my idea comes true!
Tried it through the page and it seemed to work fine
Isn't that how it works?
Sprut 185:
and now you have to apply Martingale to it, i.e. open non-trend orders with a certain step, multiplier and take averaging.
In short, the two parts should work in a pair.
You mean the next position should be opened with double lot 2-4-8-16 on BUY and opposite 2-4-8-16 on SELL?
I have such a function - built it myself somehow.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
You need to replace in the position opening - here instead of InpLots with OptimizedBuy() and OptimizedSell()
You mean the next position will be opened with double lot 2-4-8-16 in BUY and opposite 2-4-8-16 in SELL?
I have such a function - built it myself somehow.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
You need to replace it in the position opening with OptimizedBuy() and OptimizedSell() instead of InpLots()
but for this function, it would be better to have this function - it would close at profit (in currency)
But for this function it would be desirable to have this function, which would close on profit (in currency)
Let me try to explain the meaning of my idea and operation of the EA I am creating more clearly.
You need a simple Martin - for example AutoProfit 3, in which you only need to add that the opening of orders was based on indicator signals (according to the trend), but not as in AutoProfit - as the cards fall on ......... and that's all.
With roughly the same output parameters as in the attached file.Let me try to explain more clearly the meaning of my idea and the work of the EA being created.
You need a simple Martin - for example AutoProfit 3, in which you only need to add that the opening of orders was on the signal of the indicator (the trend), rather than as in AutoProfit - as the card lies ......... and that's all.
So, it opens on a signal from the indicator - but if a signal appears opposite, it will open in the other direction. And if that position is not closed on profit, it will hang until it closes on profit. If the signal flips to the other side and closes that open position, it does not work for you.
If the signal turns the other way, it will open in the other direction, and if that position has not closed on profit, it will hang there until it closes on profit. If a signal to the other side turned over and closed that open position, it will not suit you.
Right .......... and if that position has not closed on profit, it will stay there until it closes on profit.
But the position that was not closed on profit(for example, in buy) should remain and go down to a certain step where another order (in buy) is opened with the multiplied volume and the average time loss, etc., until the trend reverses, but the opening of positions in the track will not stop.
That's why I wrote that 2 blocks should work simultaneously - Martin and by indicator.
If I didn't explain something well - I'm ready to demonstrate on Skype and show you how it should look like.
Everything is correct .......... and if that position has not closed on profit, it will stay there until it closes on profit.
But the position that did not close on profit(for example, in buy) should remain and go down to a certain step, where another order would open (in buy) with the multiplied volume and the average timing would go down, etc., until the trend reverses, but the opening of positions in the trade would not stop.
That's why I wrote that 2 blocks should work simultaneously - Martin and by indicator.
If something is not well explained - I'm ready to demonstrate on Skype and show you how it should look like.
Martin must be activated only when the indicator signal is opposite or not dependent on it?
Example: I opened a Buy position according to the indicator. The price has moved down by the set distance, and the indicator already shows Sell. Should the Buy position be opened?