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
Hello, i'm looking for a developer who can make an EA for MT5 based on 2 indicators from tradingview. Instrument: XAU/USD 1M timeframe Entry: Based on 2 indicators on tradingview Tp: i want to choose Sl: i want to choose Lotsize: i want to choose Days: i want to choose what day active
Hello, I need someone who can covert SuperTrend Strategy indicators on TradingView to an expert advisor with the Stop Loss and Take Profit . The trade shall close on opposite direction based on reversal . And have some features just like below . ART Length and Factor : We can customize the ART Length and Factor just like on TradingView for adaptable trade . Buy Entry: Open long trade right after the bar close (
i Would like to Make 1 New MT5 EA 1 with martingale ..can adjustable ( can input any number ) ( on/off ) 2 Support manuual Buy and Sell ( on/off ) 3 can manuual input Lot Size ( on/off ) 4 if manuual Buy or Sell it will auto input to Auto EA ( with all the item as auto EA ) 5 Max Order ( include manual and Auto Lots count ) 6 Buy Only ( on/off ) 7 Sell Only ( on/off ) 8 Take Profit Points ( 0 not in Use ) 10 Stop
hi 10 20 ema cross to 50 ema upside cross to buy 10 20 ema cross to 50 ema downside cross to sell confation to rsi buy sell stoploss 10 points target 10 points traling stop loss after profit trad with stoploss price to price max 2 trad open limit
¡Hola! Estoy buscando un programador que hable español y tenga experiencia trabajando con MQL5. Necesito apoyo en varios proyectos relacionados con trading algorítmico, a ser posible alguien responsable, comunicativo y con tiempo para realizar tareas de forma continua. Si te interesa colaborar y tienes las habilidades necesarias, contáctame. Tengo varios trabajos listos para empezar de inmediato. ¡Gracias
I need assistance with ensuring that my Expert Advisor (EA) settings from MT4 are correctly replicated in MT5. Despite creating the same settings in MT5, the bot fails to close positions automatically and produces a "bell" error. If you are capable in the field, apply now and let's talk
SHA & Ema Pullback EA 30 - 100 USD
Current MT5 Seup ------------- Instrument:BTCUSD Indicators: Smoothed Heiken Ashi & Ema Entry Type: Pullback to Ema No. of Trades in A Trend: 1 Issues:- 1. Pullback entries taken even when EMA is non- trending. Need to add Ema Angle filter for Pullback such that trade will executed only if the EMA Angle is more than the specified input & rising incase of Buy position & declining incase of Sell position 2. Multiple
Meta trade 5 50+ USD
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service
Task: Modify "Moving Averages" EA – Add 3 professional features Current EA: Classic Moving Averages crossover (EMA 21 based), longs/shorts on XAUUSD/stocks Add these 3 features: 1. SELECTABLE TIMEFRAME (independent of chart) • input ENUM_TIMEFRAMES WorkTimeframe = PERIOD_H1, H2, H3, H4..... // M1, M5, M10,.... • All iMA(), Close[], Open[], High[], Low[] must use WorkTimeframe instead of current chart timeframe 2
HI , I NEED SOMEONE WHO ALREADY CREATED A EXCELLENT GOLD EA , ALSO THAT CAN WORK FOR VOLATITY 75 , AND HAVE BETTER RESULT THAT THE ONE I SHOWED IN THE SCREENSHOT . IF YOU ALREADY HAVE ONE .. PLEASE APPLY FOR THIS JOB , LET ME KNOW HOW THE EA WORKS , ITS IT GRID SYTEM AND SEND ME THE TEST OBTION AND SET FILES , IF IT WORKS AS I LIKE THEN YOU CAN MAKE THE TWICK AND CALL IT MINE

Project information

Budget
30 - 50 USD
Deadline
to 14 day(s)