SIMPLE MARTINGALE EA

MQL5 エキスパート

指定

I would like to create a very simple martingale EA.

The timeframe of reference will be the 1h.

I want it to be semi automatic, my contribution is just at the start. So I start the martingale with a buy or sell order and then the algorithm starts doing his thing.

Here is how the martingale needs to work : 

- When I open a trade, let's say a buy, if the trade is in loss at the end of the next hourly candle, we will open another trade and so on at the end of every hourly candle. Very simple

- the lot sizes need to be definable by me in advance.

- If the last hourly candle closed and the last trade is in loss of less than 3 pips (or a definable parameter) we don't open the next trade of the martingale

- only for the first trade of the martingale, if we do not hit TP, we open another order of the same size as the first one, no matter what. So even if we're in profit or in a loss of less than 3 pips, the second operation of the martingale needs to be opened (from there we have the classic algorithm that I described).

- I should be able to stop the EA from operating whenever I want without closing all the positions, this is in case I want to continue the martingale manually. I also want to be able to stop only one side. So let's say I'm in a buy and a sell martingale, I want to be able to tell the EA to stop working on the buy side and continue to work on the sell side.

- Buys and sells are managed separately, no link between the two. I need to be able to have both sell and buy martingales running at the same time if I want to.

- The TP should be at 4 pips from the mean price of the martingale and I want to be able to modify the TP.

- No sl needed


I think this is it and you have all you need. If you're interested and don't understand something, don't hesitate to ask.

PS : Image as example.



ファイル:

PNG
IMG_6758.PNG
218.7 Kb

応答済み

1
開発者 1
評価
(113)
プロジェクト
175
33%
仲裁
13
31% / 31%
期限切れ
0
仕事中
2
開発者 2
評価
(261)
プロジェクト
428
38%
仲裁
87
44% / 18%
期限切れ
71
17%
多忙
3
開発者 3
評価
(1)
プロジェクト
2
0%
仲裁
0
期限切れ
0

プロジェクト情報

予算
30 - 50 USD
VAT(付加価値税) (22%): 6.6 - 11 USD
合計: 36.6 - 61 USD
開発者用
27 - 45 USD
締め切り
最低 1 最高 3 日