Tâche terminée
Spécifications
hi,
I require a simple bollinger band breakout EA.
This EA is to enter a buy when the price bar closes above the bollinger band and it is to sell when the price bar closes below the bollinger band in M15.
Additional conditions are as follows:
- Bollinger Band Width (distance between the top BBand and bottom BBand) < XX pips, then a trade can be activated.
- When price is above MA H1 and H4, then only a Buy trade can be enter. When price is below MA H1 and H4, then only a Sell trade can be enter.
- In addition the last N candles (N to be defined by me in the code) in M15 should be bullish in order to launch a buy order and conversely the last N candles should be bearish in order to launch a sell order
All these conditions can be switched on or off.
After trade is entered, there is to be a Take Profit value. There is also to be a Trailing Stop and this starts when the trade hits CC pips.
TP = AA pips
SL = BB pips
Trailing Stop Starts = CC pips
Trailing Stop Step Size = DD pips (determines how many pips before the EA modify the trade's Stop-Loss)
Trailing Stop = EE pips
Please define TP and SL limits equal to XX pips in a way i could easily modify the number of pips for each limit
When the trade loses, the EA is to use a simple hedging grid as follows:
Example:
EA enters a Buy Trade #1.
- Buy Trade #1 loses XX pips, EA will enter a #2 Buy Trade (lot size is same as #1)
- Buy Trade #2 loses XX pips, EA will enter a #3 Buy Trade (lots size is YY x Lot size of #2)
- Buy Trade #3 loses XX pips, EA will enter a #4 Buy Trade (lots size is YY x Lot size of #3)
- Buy Trade #4 loses XX pips, EA will enter a #5 Buy Trade (lots size is YY x Lot size of #3)
When sum of total pips of all trades = AA pips, close all trades together. (i.e. #1 pips + #2 pips + #3 pips etc = AA)
The number # of trades should be limited as MM, MM to be defined by me later in the code also.