Техническое задание
I need a simple EA that can add to trend and open opposite position if the price move to opposite side x pips from the most recent opened position.
Parameters Included:
a. Martingle
b. Moving from the most recent position: pips/dollar amount
1. Pips:
2. $ amount:
c. Stop Loss: pips/dollar amount/% equity
1. Pips:
2. $ amount
3. % Equity
d. Trailing Stop: pips/dollar amount
1. Pips:
2. $ amount
e. Trailing Step: pips/dollar amount
1. Pips:
2. $ amount
f. Take Profit: pips/dollar amount/% equity
1. Pips:
2. $ amount
3. % Equity
g. Initial Lot:
The EA needs trading panel that has the following buttons:
1. Initial lot: I can adjust the lot I want to open directly when running the EA
2. Sell: To initiate Sell or manually add sell position
3. Buy: To initiate Buy or manually add buy position
4. Close All
5. Stats Display:
i. Total opened Sell lots
ii. Total opened Buy lots
iii. Profit/Loss: Day/Week/Month
Example: XAUUSD currently at $2000.000 (3 digits)
Set:
a. Martingle: 2
b. Moving from the most recent position: 1000 pips
c. Stop Loss: 1000$
d. Trailing Stop: 200$
e. Trailing Step: 100$
f. Take Profit: 0
g. Initial lot: 0.1
Scenario: I start Sell position at $2000.000, XAUUSD drops to $1998, then back to $2002, then back down to $2000. The EA will start adding the position as follows:
Position 1: I manually Sell 0.1 at $2000.000
Position 2: EA opens Sell 0.2 lot at $1999.000
Position 3: EA opens Sell 0.4 lot at $1998.000
Position 4: EA opens Buy 0.4 lot at $1999.000
Position 5: EA opens Buy 0.8 lot at $2000.000
Position 6: EA opens Buy 1.6 lot at $2001.00
Position 7: EA opens Buy 3.2 lot at $2002.00
Position 8: EA opens Sell 3.2 lot at $2001.00
Position 9: EA opens Sell 6.4 lot at $2000.00
If TP, SL,TSL hit or I click on button "Close All", the EA will stop and wait for the next manual open from me.
*Note: As you can see Position 3=>4 or 7=>8 in the scenario, when price move to the opposite, the EA will need to open the opposite side with the same lot as the last position.