Bollinger band trade manager EA (in mql4)

MQL4 Experts

Job finished

Execution time 34 days

Specification

Requirements:

- you have experience with coding a bollinger band trade manager

- good English understanding

- you understand below instructions:

____________________________________

-  --  -  -  --  -  -  --  -  -  --  -  -  --  -  -  --  -  


Rules (strategy, entry, exit)

Main rules:

1. EA opens a trade

a. sell, if price touches upperBB //mean-reversal strategy

b. buy, if price touches lowerBB

2. open at the same time a hedge trade (in opposite direction)

3. if trade goes in loss, TP of hedge trade is triggered

4. if trade goes further in loss, trade hits SL

5. but if trade goes back to entry, then enter a new hedge trade (with same entry, TP, SL).

6. if trade goes further in profit, trade hits TP. 


Misc rules:

⦁ EA is fully automated

⦁ all orders are instant orders

⦁ only 1 order is open at a time

⦁ only open an order, if spread<0.5 pips

⦁ only exit an order, if spread<0.5 pips


___________________________________________




EA parameters

Trade management

⦁ on/off: EAisAlwaysOn =on (default)

⦁ lotsize: 0.02

⦁ TP_SL_method: [fixed, fixed upperband to centerband, fixed upperband to lowerband, dynamic from upperband to centerband, dynamic from upperband to lowerband]

⦁ TP:

⦁ fixed: [20] pips

⦁ fixed: from upperband to centerband/lowerband //use fixed TP at entry. RR: 1:1

⦁ dynamic: from upperband to centerband/lowerband //use dynamic TP as bands widen. RR: 1:1

⦁ last High/Low, that is minimum [20] pips from entry and max [50] pips

⦁ SL: 

⦁ fixed: [20] pips

⦁ fixed: from upperband to centerband/lowerband //use fixed TP at entry. RR: 1:1

⦁ dynamic: from upperband to centerband/lowerband //use dynamic TP as bands widen. RR: 1:1

⦁ last High/Low, that is minimum [20] pips from entry and max [50] pips && SL<=TP


Hedge trade

⦁ useHedge: on/off

⦁ resetHedgeAfterTP: on/off //on means, if hedge_TP is hit, then set a new hedge trade (with exact same entry, SL and TP) //new hedge trade is pending order //delete pending order, if original trade hits SL. 

⦁ lotsize hedge: 0.01

⦁ hedge_TP_method: [fixed, fixed centerband, dynamic centerband] 

⦁ hedge TP_fixed: [10] pips


Trade direction

⦁ on/off: changeBuytoSell. //this means, buy = sell and sell = buy //momentum strategy

⦁ TradeLong=true

⦁ TradeShort=true

⦁ on/off: if sell order hits SL, then only open buy orders

⦁ on/off: if buy order hits SL, then only open sell orders





Martingale

⦁ useMartingale: on/off //on means, every new trade gets more lotsize until TP is hit

⦁ maxOrders: [9] //this means, after 9 losses, the EA starts from 0.01 lotsize for the next trade.

⦁ lotsizeMethod: [fixed, add, multiply] //add= lotsize + lotsize. //multiply= lotsize x lotsize

⦁ lotsizeStep: [0.03] 

⦁ example:

⦁ //add = order 1: 0.03 lot, order 2: 0.06, order 3: 0.09 lot

⦁ //multiply = order 1: 0.03 lot, order 2: 0.09, order 3: 0.27 lot

⦁ resetMethod: [fast, slow] 

⦁ example

⦁ //fast means, if a trade hits TP, then reset lotsize to 0.01 for the next trade.

⦁ //slow means, if a trade hits TP, then decrease lotsize for the next trade. For example, order 1 was 0.03, order 2 was 0.06, order 3 was 0.09. If order 3 hits TP, then the next order decreases lotsize to 0.06 (which is the lotsize of previous trade)


Timezone

⦁ Monday on/off

⦁ Tuesday on/off

⦁ Wednesday on/off

⦁ Thursday on/off

⦁ Friday on/off


⦁ London session

⦁ useLOsession=true

⦁ start [7]AM gmt

⦁ end [13]PM 


⦁ NY session

⦁ useNYsession=true

⦁ start [14]PM

⦁ end [20]PM


⦁ Night session

⦁ useNightsession=true

⦁ start [21]PM

⦁ end [6]AM


Misc

⦁ skip: [2] //skip means, EA skips 2 consecutive losses (virtually) and afterwards the EA opens a real trade. So, the EA waits for 2 virtual consecutive losses.

⦁ checkPriceEveryTick=false //false means, check price every new candle

⦁ Magicnumber: 123456

⦁ TradeComment: bollinger_band_1.00

⦁ Slippage: 5


_____________________________

Filters (indicators, price action)

Indicators: general

⦁ useIndicators: on/off

⦁ Add basic parameters for all indicators (use default parameter settings)

⦁ all parameters have on/off

⦁ Each indicator seperately should have this parameter: lookback: [10] candles


Indicators: indicator settings


Bollinger band
⦁ only open a new trade, if price closed above outerband directly from ‘centerband'
⦁ entryMethod: [if price touched outerband, if price closed outside outerband, if price crossed outerband and the first opposite candle is closed, if price crossed ‘above’ outerband and returns ‘below’ outerband]
⦁ //entryMethod #1: if price touched outerband
⦁ //entryMethod #2: if price closed outside outerband
⦁ entryPipsFromOuterband: [5] //entry is 5 pips above upperband or below lowerband
⦁ entryAfterSomeCandles: [1] //if candle closed above upperBB, then wait for [1] other bullish candle to close and then open a trade. 
⦁ //entryMethod #3: if price crossed outerband and the first opposite candle is closed
⦁ //this entryMethod means, for example: price crossed upperband and is followed by 6 bullish candles. Then, sell, if a bearish candle closed.
⦁ //entryMethod #4: if price crossed ‘above’ outerband and returns ‘below’ outerband
⦁ maxPips: [5] pips //if candle closes (from outside outerband to inside outerband), then only open a trade if entry is maximum [5] pips from outerband.
⦁ only open a trade, if (HIGHBB-LOWBB)<= [20] pips //momentum strategy

⦁ only open a trade, if (HIGHBB-LOWBB)>= [50] pips //mean-reversal strategy


⦁ only open a buy trade, if centerband slopes [upwards, downwards]
⦁ slope degree <=[40] degrees //mean-reversal strategy
⦁ slope degree >=[20] degrees //momentum strategy
⦁ for at least [6] candles
⦁ for at least [3] swings
⦁ only open a sell trade, if centerband slopes [upwards, downwards]
⦁ slope degree <=[40] degrees //mean-reversal strategy
⦁ slope degree >=[20] degrees //momentum strategy
⦁ for at least [6] candles

⦁ for at least [3] swings


⦁ only open a trade, if price came from centerband. 
⦁ only sell, if price came from [upperband, lowerband]
⦁ only buy, if price came from [upperband, lowerband]
⦁ don’t open a trade, if [3] and more candles ago price was [5] pips below the upperband (or [5] pips above the lowerband)

⦁ don’t open a trade, if between [4] and [10] candles ago price touched the outerband


squeeze indicators
⦁ only open a trade, if squeeze<[10]

⦁ only open a trade, if squeeze>[50]


arrow indicators
⦁ only buy, if arrow is up
⦁ only sell, if arrow is down

atr/adr
⦁ open a trade in the direction of candle_open, if ATR>ADR
⦁ open a trade in the opposite direction of candle_open, if ATR<ADR


ATR

⦁ [buy], if previous down swing has a bearish ATR swing
⦁ [sell], if previous up swing has a bearish ATR swing
⦁ only open trade, if ATR breaks above 20EMA //for momentum strategy
⦁ parameter: on/off. If ATR increases, then increase TP/SL (use same ratio as ATR)
⦁ ATRmacd_OsWAD(trueforex.pp.ua).mq4: 
⦁ only open a trade, if color changes from light green to dark green  //momentum strategy
⦁ only open a trade, if color changes from dark red to light red


candle length indicator

⦁ only open a trade, if candle length>[10] pips
⦁ wick indicator
⦁ only open a trade, if candle wick>[5] pips
⦁ sell for [bullish] wick
⦁ buy for [bearish] wick

gap finder
⦁ only open a trade in direction of previous gap
⦁ gap is at least [10] pip. Lookback is [50] pips. 


single moving average

⦁ only open a trade, in direction of MA
⦁ buy, if price is above MA
⦁ sell, if price is below MA


crossover moving average

⦁ only open a trade, in direction of crossover. Lookback is [10] candles


oscillator

⦁ sell if overbought
⦁ buy if oversold
⦁ only sell, if price[1]>overbought, price[0]<overbought //this means, sell, if previous candle was inside overbought zone and now closed below this zone.
⦁ skip [1] //skip the first time that price crosses below overbought, and open a trade if price goes above and then goes below overbought again (for the second time)


pivot point

⦁ only sell, if price goes upwards and touches pivot point
⦁ only buy, if price goes downwards and touches pivot point


volume indicator 

⦁ only open a trade, if volume is above [50] //momentum strategy
⦁ only open a trade, if volume is below [50] //mean-reversal strategy


zigzag indicator

⦁ only sell, if down swing is bigger than previous up swing
⦁ only buy, if up swing is bigger than previous down swing


candlestick indicator

⦁ only open a trade, if doji
⦁ only open a trade, if bullish/bearish engulfing pattern 



___________________________

Price action:

⦁ usePriceAction: on/off

⦁ wick

⦁ don't open a trade, if candle wick (of previous candle) outside of outerband, is longer than [10] pips

⦁ trading conditions: only open trade, if candle wick (of previous candle) outside of outerband, is less than [5] pips

⦁ re-test

⦁ only buy if sell failed the re-test

⦁ big swing

⦁ skip [200] pips //this means, wait for a 200 pip swing, and then start trading

⦁ only open a trade, if previous [200] pips did not have a 50% retracement

⦁ lookback: [20] candles

⦁ method: [only for candle close, only from high of swing until low of swing] //the last option means: all candles between ‘swing high and swing low’.

⦁ swings

⦁ only open a trade, if previous two swings were [HH][LL][HL][LH]

⦁ only open a buy trade, if price previously touched [lowerband, upperband]

⦁ only open a sell trade, if price previously touched [lowerband, upperband]

⦁ candles

⦁ only open a trade, if [6] consecutive bullish/bearish candles

⦁ exit trade in profit, if trade goes immediately [5] pips in profit without going [2] pips in loss

⦁ breakeven, if trade goes immediately [5] pips in profit without going [2] pips in loss

Files:

Responded

1
Developer 1
Rating
(620)
Projects
680
57%
Arbitration
25
16% / 60%
Overdue
228
34%
Free
2
Developer 2
Rating
(516)
Projects
784
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
3
Developer 3
Rating
(130)
Projects
184
32%
Arbitration
16
31% / 63%
Overdue
27
15%
Free
Published: 1 code
Similar orders
Only take trades between 10:05 and 15:45 Max 2 losing trades a day daily max loss 600$ Position Management): Initial SL = 25 ticks If position moves +25 ticks in favor, tighten SL to –15 ticks from entry If position reaches +40 ticks, exit on 20-tick retrace Flat all trades by 15:50 Those are all the things I need in the inputs settings so I can change them accordingly And the study have to work in sim rithmic
I have a new EA that needs to be backtested across eight separate set files. I will provide you with the EA and each of the set files - you will provide me with a full report for each backtest. The EA will be tested on EURUSD and USDJPY (four set files for each). I would like it tested on tick data from June 2023 to June 2025. No optimization is necessary. Please include your flat rate for the job. Thanks
I’m seeking an experienced MQL4/MQL5 developer to build a custom Support and Resistance indicator scanner dashboard for MetaTrader 4/5. The indicator should detect and draw key HH (Higher High) and LL (Lower Low) structures and respond to specific breakout and retest conditions, forming part of a larger trading system. The logic is clearly defined and will be provided in a structured document. This is part of a
I need someone should create a strangle candle chart from 2 different CE and PE chart in mt4, the chart must appear as a total new chart, so i can apply some custom indicators to it
Hello everyone! 😊 As mentioned in the title, I’m currently looking for a proven and consistently profitable EA for MetaTrader 4 or MetaTrader 5 . I’m only interested in serious offers – please no hype or unverified systems. 🔹 Source code is required (for testing, learning and possible improvements). 🔹 Preference goes to EAs with clear strategy logic, proper risk management, and real performance (Myfxbook/FXBlue
Job Description: I need a TradingView (Pine Script v5) indicator that displays up to 5 custom sessions and killzones as boxes on the chart, with a live countdown timer for each (see attached images). Features: 5 grouped sessions —each with a session and a killzone, both fully customizable (label, start/end, color, outline on/off, transparency). Session and killzone countdown timers displayed in a table on the chart
I need an MQL5 expert to develop a simple trading robot (Expert Advisor) for BTCJPY in MetaTrader 5. The EA must handle entries, stop loss, take profit, and basic risk settings. It should be able to open one trade at a time and execute cleanly. The inputs for lot size, SL, TP, and trade hours must be customizable. Code must be clean, efficient, and easy to test. Please only apply if you have experience with crypto or
I have a breakout EA in the works but I need an aggressive and DYNAMIC moving/trailing SL to move with price allowing it to move and catch profit even if its as little as 5-10 pips
I’m looking for a reliable MT4 developer to build a custom EA based on a clean, structured strategy I use manually. It’s a breakout system that uses Support/Resistance, SMA filters, and a 3-candle confirmation pattern for precise entries. EA only activates when price is between two manually set price levels: ZoneHigh = X.XXXX ZoneLow = X.XXXX 2. Trend Filter (15-Min Chart) Wait for a closed 15-minute candle above the
Need a long-term coder long-term. Need experiemce with low arbitrage if it was in your favour its ok. Low overdue rate, high review. Low review will need to proof to me theu experience. Good amount of project. Let me know if interested

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
to 14 day(s)