Trabalho concluído
Termos de Referência
I'm looking for someone to create an Expert Advisor that will open/close a trade based on the custom MT4 Indicator "Trend Tracker" (https://www.mql5.com/en/market/product/13718). That custom indicator has an output based on two tracker lines: Swing (for long trends) and Tracker (for early breakout trends). So the EA should be able to handle mainly these 2 strategies (more information on the "desired parameters" section):
1) Main Strategy (Watch Video: https://youtu.be/kuJSbmcFCqY)
- Entry Point
- Enter Buy when Swing color changes to Green
- Enter Sell when Swing Color changes to Red
- Exit Strategy
- Exit Buy when TrackerUp turned to TrackerDn “Red”
- Exit Sell when TrackerDn turned to TrackerUp “Green”
- Exit Buy SwingUp turned to SwingDn “Red”
- Exit Sell SwingDn turned to SwingUp “Green”
2) Secondary Strategy:
- Entry Point
- Enter Buy when TrackerDn Changes to TrackerUp “Green”
- Enter Sell when TrackerUp Changes to TrackerDn “Red”
- Use Swing Direction or Color to avoid/filter unwanted signal
- Exit Strategy
- Exit Buy when TrackerUp turned to TrackerDn “Red”
- Exit Sell when TrackerDn turned to TrackerUp “Green”
- Exit Buy SwingUp turned to SwingDn “Red”
- Exit Sell SwingDn turned to SwingUp “Green”
Basically it's about having a BUY order when the signal is showing buy. As soon as the signal shows SELL, we close the BUY order and open a new SELL, and viceversa.
Desired parameters:
- Magic: 8-digit unique Magic Number of the EA
- Entry Strategy: Choose between entry on "Swing color" or "TrackerDn -> TrackerUp Green/TrackerUp -> TrackerDn Red" or "both" (by default "Swing color").
- Exit Strategy: Choose between exit on "SwingUp -> SwingDn Red/SwingDn -> SwingUp Green" or "TrackerUp -> TrackerDn Red/TrackerDn -> TrackerUp Green) or "both" (by default "both").
- Take Profit: (by default "0").
- Stop Loss: (by default "0").
-
Trailing Stop Active: activates the Trailing Stop feature (by default "false").
-
Trailing Stop Trigger: distance in pips from the order opening price to the Trailing Stop, i.e. "30" will trigger the Trailing Stop when the current bid (for buy) or ask (for sell) is 30 pips (equals 300 points) above the opening price of a buy order, and below the opening price of a sell order. Zero sets no Trailing Stop trigger distance (by default "0").
-
Trailing Stop Distance: distance in pips from the current bid (for buy) or ask (for sell) to the new Stop Loss placed by the triggered Trailing Stop, i.e. once the Trailing Stop is triggered, "5" will place a new Stop Loss 5 pips (equals 50 points) below the bid price of a buy order, and above the ask price of a sell order. If the price moves further in the direction of the trend a new Stop Loss is placed behind the current price always keeping the distance (in pips) indicated in the parameter. If the price pulls back the Stop Loss is not modified, locking the profit. Zero sets no Trailing Stop distance (by default "0").
- Size: lot size of the trades to be opened (by default "0.1").
- Comment: custom comment of the trade (by default "TT EA").
Additional notes:
The EA should be compatible with the MT4 strategy tester. The indicator is also compatible with the strategy tester, but I need to set it to "Open Price Data", otherwise the strategy tester will take forever to do the backtest. I don't know if it is possible to make the EA also compatible with only "Open Price Data" and not just "every Tick".
Depending on the success of the EA, I would like to extend the EA with a "Scale-out/-in" strategy (for example: reinvest some of the equity/profit and buy more after 100pips profit when the trend still continues). It would be nice if the same developer would implement that too, after the "base" EA was tested and will be working good.
After the job is finished, I need the source code!
Thanks in advance!
Andreas