Black Sea Bands
- エキスパート
- バージョン: 1.0
Black Sea Bands is an Expert Advisor for MetaTrader 4. It enters on a Bollinger Bands bounce and manages open positions with a martingale grid.
Demo version
This is the demo version of the Expert Advisor. It opens trades only on demo accounts and in the Strategy Tester. It does not open trades on a real account. If you would like the version for real accounts, please send me a message.
How it works
A Buy series starts when the previous candle opens below the lower band and closes back above it, while the band width is greater than BB_Distance. A Sell series uses the mirrored rule at the upper band. Signals are taken from the last closed candle on the symbol and timeframe of the chart. Buy and Sell series are managed separately and can be open at the same time.
When price moves against a series by more than Martingale_distance from the latest position and the entry signal is present, the Expert Advisor opens an additional position. Its volume equals the previous volume multiplied by Lot_Martingale. A series is closed when the sum of pips of its positions exceeds Close_Profit_pips.
Positions are opened without Stop Loss and Take Profit, and the number of positions in a series is unlimited.
Minimum balance requirement
The figures below are calculated for a start lot of 0.01 on EURUSD with default settings and leverage 1:500.
Minimum balance: 600 USD. It covers a move of about 180 pips against the first entry: up to 6 positions in the series and a floating loss of up to about 360 USD.
Recommended balance: 2500 USD. It covers a move of about 240 pips against the first entry: up to 8 positions in the series and a floating loss of up to about 1500 USD.
With leverage 1:100 the minimum balance is 1200 USD and the recommended balance is 5000 USD. The required balance grows in proportion to the start lot, so a start lot of 0.02 needs twice these amounts. A larger adverse move needs a larger balance. Spread, swap and commission are not included in these figures.
These figures are for EURUSD only. On XAUUSD the required balance is much higher.
Input parameters
Lot: volume of the first position (default 0.01)
Lot_Martingale: volume multiplier for each additional position (default 2.0)
Martingale_distance: minimum distance between positions in pips (default 30)
BB_Period: Bollinger Bands period (default 20)
BB_Deviations: Bollinger Bands deviation (default 2)
BB_Distance: minimum band width for the first position of a series in pips (default 30)
Close_Profit_pips: closing target of a series as a sum of pips (default 60)
MagicStart: magic number (default 3547)
EA_Name: order comment
Symbol settings
Distances are measured in pips. On EURUSD, 30 pips equals 0.0030. On XAUUSD, one pip equals 0.01 in price, so 30 pips equals 0.30.
Backtesting
Please do proper backtesting in the MetaTrader 4 Strategy Tester before using the Expert Advisor on a real account.
Risk information
Martingale sizing increases volume quickly. With default settings the 8th position is 1.28 lots and the series total is 2.55 lots. A long one-directional move can cause a large drawdown, including loss of the whole deposit. Test on a demo account first and choose the start lot according to your balance.
