Lavoro terminato
Specifiche
EA PROJECT BBTOM (It’s the same for sell or buy position, it’s the opposite) ---------- Meta trader 5 ---------- MQL5 ------
2 indicators will be used: 2 bollinger bands (one small and one big) when the closed price exceeds the large bollinger band at least xxx pips and no position is already open, EA starts a first sell position.
If the closed price is higher than the small bollinger band at least xxx pips and higher than the price of the previous position at least xxx pips so EA starts an additional sell position. The position size will always be the same as first position.
EA closes all positions when the closed price exceeds the opposite large bollinger band at least xxx pips and the overall balance is positive or better or even earlier if the outstanding amount is greater than 20% of the balance. (the amount will be configurable)
The number of positions which can be opened is a maximum configurable.But if the overall balance negative outstanding amount is greater than xx% of the balance so EA closes the oldest position to remove in the maximum overall balance negative outstanding amount definied.
Here is the data that must be configurable :
1 - small bollinger bands ( example BB 10 )
2 - big bollinger bands( example BB 50)
3 - Time frame and pairs
4 - position size : % of balance and all positions will have the same size
5 - minimum gap between the closed price and the big bollinger band to start a position
6 - minimum gap between the closed price and the big bollinger band to close all positions opened
6 - minimum gap between the closed price and the small bollinger band to start an additionnal position
7 - minimum gap between two positions : it is necessary to be able to define the first gap then the successive gaps example: 300 pips between sell1 and sell2 then 230pips between sell2 and sell3, then 200pips between sell3 and sell4 …defined with an equation
8 - negative outstanding limit which causes the closure of the oldest position : %balance
9 – the maximum number of positions that can be opened at the same time