仕事が完了した
指定
doubleinadayforex.com has an EA that takes an existing position, adds 3 top up positions in a risk free manner and once the target is reached it will double the account (or x% gain in account)
Need to code such an EA to piggyback on a running EA positions (in this case we can use a simple EA like Hamster as an example)
Scenario: Hamster enters 0.1 EURUSD buy at 1.1360 SL 1.1260 TP 1.1366
Doubler EA will detect this trade and wait for a draw down of X pips (say 15 pips)
Doubler EA will enter the trade with 0.1 lot at -15 pips (or minus X pips) 1.1345 and maintain SL 1.1260 TP 1.1366
Option to average the trade (martingale if price goes down) at every X pips (say add 0.1 lot at every 10 pips fall), with x pip step and x.x Martingale ratio with SL remaining fixed at 1.1260, option for max equity risk in this scenario and auto lot size, exit at original TP or exit at X % gain
Option to top-up the trade at every X pips (add lots if price goes up) (say add 0.1 lot at every 5 pips gain), and move SL upward to maintain the same equity risk [entry at -15 pip, add 0.1 lot for every 5 pip gain, 0.1 @1.1350 0.1@1.1355 0.1@1.1360 and TP 1.1366; move SL upward at each step to compensate for the added risk, TP hits at 1.1366]
Option to specify target account gain at the TP level (say 30% gain of equity when TP reached) and lot sizes made automated to achieve this goal
Any other bright ideas.
This should be fully backtestable and optimizable.