Specification
- 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.