Bollinger band trade manager EA (in mql4)

MQL4 专家

工作已完成

执行时间34 天

指定

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

附加的文件:

反馈

1
开发者 1
等级
(620)
项目
680
57%
仲裁
25
16% / 60%
逾期
228
34%
空闲
2
开发者 2
等级
(516)
项目
784
63%
仲裁
33
27% / 45%
逾期
23
3%
空闲
发布者: 1 代码
3
开发者 3
等级
(130)
项目
184
32%
仲裁
18
28% / 67%
逾期
27
15%
空闲
发布者: 1 代码
相似订单
My expert already has the rest of the required features implemented . Bring in your support and resistance expert to save time . My expert already has money management , session filter etc . Trailing is threshold based . Please send a picture as well to show your expert on a live chart . Most specific is the 5m tf , to 1m execution
Ai bot 100 - 300 USD
I’m looking for one person who is both a Forex trader and a programmer . I don’t want a coder who only writes code without understanding the market, and I don’t want a trader who can’t program. I want someone who actively trades and understands market behavior, liquidity, volatility, and risk management. Most importantly, the bot must be built using real artificial intelligence that learns and adapts , not just
Platform: - MetaTrader 4 (MT4) Type: - Expert Advisor (EA) Strategy rules: - Buy when fast EMA crosses above slow EMA - Sell when fast EMA crosses below slow EMA - EMA periods must be input parameters Trade settings: - Lot size: fixed (input parameter) - Stop Loss: fixed pips (input parameter) - Take Profit: fixed pips (input parameter) - One trade at a time only Risk & filters: - No trading during high spread -
can anyone help me with building a complete automated pine code strategy and indicator that work for both FXs & CFDs and have a high winning rate proved through back testing. I have a very complex current code that developed mostly using AI but lots of gaps are there although it translate exactly what I have in my mind. So, you are free to decide whether wo build a complete new code or fix my current working code ( i
Hello, I’m looking for an experienced MT4 (MQL4) developer to convert the Lucky Reversal indicator from indicatorspot.com into a fully functional Expert Advisor (EA). Project Scope Code an MT4 EA that replicates the exact logic and signals of the Lucky Reversal indicator Trades should open and close automatically based on the indicator’s rules Must match indicator behavior 1:1 (no approximations) EA Requirements MT4
This is a request for a formal price quote only. No work should begin until the quote is accepted. I am requesting a quantitative audit of an existing trading strategy. Scope (strict): 10-year historical backtest Full performance metrics (expectancy, win rate, profit factor, max drawdown, trade distribution) Identification of logical flaws, bias, and overfitting Rule-based corrections only if justified by data
I am looking for a senior MQL5 developer to build a custom MT5 Expert Advisor using a dual-engine grid structure (BUY + SELL operating independently). The EA will be used in a real operating business with live clients, so the implementation must be clean, deterministic and reliable. I already have a complete specification describing all the required logic (entry rules, grid logic, basket TP, break-even behavior
I would like to request the development of an Expert Advisor (EA) for MetaTrader 5 with the following specifications: 1. Instruments: NASDAQ (US100) Dow Jones (US30) DAX (DE40) 2. Opening Range Selection: The EA should allow me to manually select a specific time range on the chart. Example: US100 opening range from 14:30 UTC to 14:45 UTC (15-minute opening range for the US market). The EA should automatically
Hello, I have the code for an indicator file that works with binary options. I want to make a simple modification to it that won't take much effort for professionals. In short, the modification I want is that if the strategy's conditions are met, a buy or sell signal should appear at 17:55. The strategy works exclusively on the 5-minute timeframe, and I want to delay the signal by 7 minutes so that it appears and
描述(项目概述): 我需要为 MetaTrader 5 平台开发一个功能完整的智能交易系统( 专家顾问 ),用于交易 XAUUSD (伦敦金)。该 艺电 的核心是基于一份详细的技术规格书,实现一个多指标共振、多层条件过滤的短线反转策略。 1. 核心策略逻辑简述: 交易品种与周期:主交易周期为 M30 ,需在代码内部动态读取 H4 周期进行趋势过滤,并监控 M5 周期以执行复杂的出场逻辑。 入场机制:采用 “ 价格触发 -> 成交量确认 -> 多指标渐进式达标 ” 的严格流程。入场信号需在特定时间窗口内,同时满足布林带突破及 5 个动量指标( CCI、RSI、MFI, 威廉指标, 随机指标)的超买 / 超卖条件,并受 H4 级别趋势过滤器约束。 出场机制:采用三层递进逻辑,包括动态保本移动、 M5 周期指标集体反转信号以及基于 K 线形态的趋势反转终极止损。

项目信息

预算
30 - 50 USD
截止日期
 14 天