Bollinger Band trading EA required in MT4

MQL4 Experts

Job finished

Execution time 11 days
Feedback from customer
Good programmer, just a few difficulties and miscommunications on both our ends.

Specification

I require a Bollinger Band trading EA that places trades based off of the Open and Close of the bars. This is very important, it should not be based off of the high or low. I am using a custom chart that's why some of the requirements may not make much sense. It should take trades based off a Bollinger Band squeeze, which I will define. The squeeze will also require parameters that should have an option to turn or off that will 'validate' the squeeze. In certain parts I have put an asterisk where I want an option to turn or off. This will be about having values being greater than, or having them be greater than or equal to. I will require the EA's parameter settings to be able to modify whether it should be strict in the sense where the values must be greater than. Or they can be more flexible and include values that are equal to them. The EA should then enter trades based off hidden stops, based on the candles open or close that is equal to or greater/lower than this hidden stop. Again, it should not be when price hits it, it needs to be a candle that opens/closes above/below this hidden stop. 

Squeeze Definition:
1) The open of the candle must be above the upper band and the close of the candle must be below the lower band.
2) The current upper bands value must be lower than *or equal to* its previous value and the current lower bands value must be greater than *or equal to* its previous value.



Validate a squeeze:
1) Look back at the earliest time of contraction where the upper band was getting lower and the lower band was getting higher for an 'x' number of bars (default set to 10 bars). It doesn't have to be the earliest when the bands contracted, it has to be earliest where it contracted for 10 consecutive bars.
1a. In this search of contraction, the open of any candle must be below the upper band OR the close of any candle must be above the lower band in these 10 consecutive bars. 
2) The highest point of the upper band before the contraction (that occurred before the squeeze with the 10 consecutive bars) must be equal to or greater than the current upper bands value during the squeeze. Subsequently, The lowest point of the lower band before the contraction (that occurred before the squeeze with the 10 consecutive bars) must be equal to or lower than the current lower bands value during the squeeze.
2a. It should not be the previous 10 bars, I'm only using 10 bars as a reference. The highest point the upper band reached and the lowest point the lower band reached is what's important. So the point at which the upper bands value was greater than its previous value, the next bar is considered a peak. If the upper bands value is lower than or equal to its previous value, this is not a peak. And vice versa when looking at the lower band. 
3) If the upper bands current value is lower than *or equal to* its previous value AND the lower bands current value is higher than *or equal* to its previous value AND the open of the candle is not greater than the upper band AND the close of the candle is not lower than the lower band, this should turn off any hidden stops. The EA should reset its search for a trade by searching for another valid squeeze. 
3a. If the bands are moving away from each other or in the same direction, this should not turn off the hidden stops. Its only when the bands contract and the candles open/close are not in the correct position.
4) The EA should measure the distance of the upper band to the middle band and the lower band to middle band. Then when the EA looks at the peak of the contraction that a minimum of 10 consecutive bars without bars having their close/open outside the bands, the peak of the upper band and peak of the lower band must be an 'x' amount times larger than the ones from the squeeze. For example, if the distance from middle band to upper band is 5 points. If that 'x' amount is set to 2.0, then the peak of the contraction should be at least 10 points (2.0 x 5) from the height of the upper band to middle band. 



Entering a trade:
1) As the bands squeeze, the highest open of the candles in that squeeze will be the price at which we enter a buy trade (hidden stop).
2) The EA should only enter a buy trade when price closes at or above our buy stop (hidden stop)
3) As the bands squeeze, the lowest close of the candles in that squeeze will be the price at which we enter a sell trade (hidden stop).
4) The EA should only enter a sell trade when price opens at or below our sell stop (hidden stop)
5) When a trade has been entered, the other hidden stop must be removed. For example, a buy trade has been entered, therefore the sell stop which was at the lowest close of the candles in the squeeze should be removed. 

Exiting the trade:
1) When the opposite trade is entered, we exit the current trade(s). For example, the EA has 3 buy positions open. After some time it enters a sell trade. At the point of entry for the sell trade, it should simultaneously close all 3 buy trades. Option to turn this off if using TP/SL.

Extra:

1) Limit the number of trades allowed at one time (option to turn off this feature)
2) Use a fixed TP (option to turn off this feature)
3) Use a fixed SL (option to turn off this feature)
4) Points 1-2 from 'Validate a Squeeze' criteria must be an option to turn on or off in parameter settings.
5) Point 4 from 'Validate a Squeeze' must also be an option to turn on or off in parameter settings.
6) Add a spread filter in points. For example, if the spread is greater than 20 points, then the EA should not allow entries. But it should allow exits of any open trades. Also option to turn off this feature.


Responded

1
Developer 1
Rating
(39)
Projects
50
18%
Arbitration
5
40% / 40%
Overdue
0
Free
2
Developer 2
Rating
(52)
Projects
97
24%
Arbitration
10
20% / 20%
Overdue
12
12%
Working
3
Developer 3
Rating
(400)
Projects
704
49%
Arbitration
57
16% / 49%
Overdue
129
18%
Free
4
Developer 4
Rating
(68)
Projects
77
8%
Arbitration
33
9% / 55%
Overdue
6
8%
Working
Similar orders
Hello, send robot models with a solid strategy (to trade forex), I want to use it to make money for the week. It is important that you present me with your profitability graph and a test. I also want to hire him for future jobs
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
Seeking an experienced MQL5 developer to create a sophisticated Expert Advisor focused on harmonic pattern trading . The EA will be designed to identify and trade based on popular harmonic patterns in the forex market. Entry and Exit Logic: Develop smart entry and exit rules based on pattern completions and price action confirmations. Risk Management: Incorporate adjustable risk-per-trade settings and position sizing
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Description - An expert advisor(s), placing sell trades in EUR/USD, based on the close price of the previous two candles, as shown in the figure below. The trades would be made in the 5 minute, 1 hour, and 1 day timeframes. In the 5 minute and 1 hour timeframes the market orders would be placed at the start of a new candle, at specific times EST. The order would be cancelled at the close of that candle, i.e after 5
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Develop a simple trading robot from rainbow oscillator Additional features Include timeframe specification in rainbow oscillator trailing features moving average filter TP (true/false) SL (true/false) Fixed lot Risk percentage Percentage profit lock
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
I need a dashboard that shows my various accounts that shows balance, equity, number of trades open, drawdown and some more information. I want to use it to monitor my accounts in one screen or chart. If there is anyone who can do it please show me the screenshot of your sample
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the

Project information

Budget
80+ USD
For the developer
72 USD