Job finished
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
⦁ only open a trade, if (HIGHBB-LOWBB)>= [50] pips //mean-reversal strategy
⦁ for at least [3] swings
⦁ don’t open a trade, if between [4] and [10] candles ago price touched the outerband
⦁ only open a trade, if squeeze>[50]
ATR
candle length indicator
single moving average
crossover moving average
oscillator
pivot point
volume indicator
zigzag indicator
candlestick indicator
___________________________
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