Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Hello Coder,
i need an EA that opens a order at the closing of a candle stick with
take profit and stop loss to set. (works on all time frames)
entry point will be found with help of a moving average.
if candle closes above moving average open "buy" order if candle
closes below moving average open "sell" order with take profit and stopp
loss
the strategy should be able to set a maximum number of orders that
could be open at same time for every candle closing as a entry point
with moving average
Money Management:
should include a reverse martingale (which
means to increase lot of a winning trade by a multiplikator and attemps
to set and then restart again)
now special thing about MM strategy:
----> if 10 order are
opened currently (for example)and 5 order win and 5 lose till next
candle opens, please preffer the winning trade lot size to open next,
so to speak:
if lot multiplier is set to 2.00 and reverse martingale attemps are 3
and 10 trades are opened,
by settings i chose before ea startet whith is lot size 0.01
order 2, lot size 0.01, won
order 3, lot size 0.01, loss
order 4, lot size 0.01, loss
order 5, lot size 0.01, won
order 6, lot size 0.01, won
order 7, lot size 0.01, won
order 8, lot size 0.01, loss
order 9, lot size 0.01, loss
order 10, lot size 0.01, won
it should continue with preffering the won trades so to speak the next ten order should look like this
order 12, lot size 0.02 (won)
order 13, lot size 0.02 (loss)
order 14, lot size 0.02 (loss)
order 15, lot size 0.02 (won)
order 16, lot size 0.01 (loss)
order 17, lot size 0.01 (loss)
order 18, lot size 0.01 (loss)
order 19, lot size 0.01 (loss)
order 20, lot size 0.01 (won)
that means the ea finds out
which and how much trades has currently won and opens next order with
reverse martingale multiplicator, preffering the standard settings which
are in this example 0.01
so the next ten trades should look like this:
order 22, lot size 0.04
order 23, lot size 0.04
order 24, lot size 0.02
order 25, lot size 0.02
order 26, lot size 0.01
order 27, lot size 0.01
order 28, lot size 0.01
order 29, lot size 0.01
order 30, lot size 0.01
so to speak if orders win, always prefer to open up the next order with the multiplicator (but only the amount of won trades for all orders)
i hope i explained it well, if you have any question or anything seems unclear please let me know before you start coding, we can discuss every question!
kind regards,
and please add a spread filter :)
and please always prefer higher martingale attemps first :)