仕事が完了した
指定
Hello,
I'm looking for someone to write the following EA.
Short Explanation: Every new high or low open a new sell/buy stop order within a configurable amount of pips and remove old sell/buy stop orders.
Long Explanation: Every tick, the high and low are updated if there is a new high or low, a sell/buy stop order is being created and previous sell/buy order is removed. Every time the amount of pips has passed (which means the order just become a position) the high and low are reset.
Example:
Given the symbol XAUUSD and the configurable pips amount is 10
Symbol | Tick Price | High | Low | New Order | Position |
XAUUSD | 1950.00 | 1950.00 | 1950.00 | Sell stop for 1949 and buy stop for 1951 | None |
XAUUSD | 1950.11 | 1950.11 | 1950.00 | Sell stop for 1949.11 | None |
XAUUSD | 1950.16 | 1950.16 | 1950.00 | Sell stop for 1949.16 | None |
XAUUSD | 1950.33 | 1950.33 | 1950.00 | Sell stop for 1949.33 | None |
XAUUSD | 1950.12 | 1950.33 | 1950.00 | None | None |
XAUUSD | 1950.10 | 1950.33 | 1950.00 | None | None |
XAUUSD | 1949.90 | 1950.33 | 1949.90 | Buy stop for 1950.9 | None |
XAUUSD | 1949.80 | 1950.33 | 1949.80 | Buy stop for 1950.8 | None |
XAUUSD | 1949.50 | 1950.33 | 1949.50 | Buy stop for 1950.5 | None |
XAUUSD | 1949.30 | 1949.30 | 1949.30 | Buy stop for 1950.3 (No new sell stop order) | Sell starting at 1949.33 |
XAUUSD | 1948.60 | 1949.30 | 1948.60 | Buy stop for 1949.6 | None |
XAUUSD | 1948.300 | 1949.30 | 1948.30 | Buy stop for 1949.3 | None |
XAUUSD | 1948.900 | 1949.30 | 1948.30 | None | None |
XAUUSD | 1949.500 | 1949.50 | 1949.50 | Sell stop for 1948.5 (No new buy stop order) | Buy starting at 1949.3 |
XAUUSD | 1949.900 | 1949.90 | 1949.50 | Sell stop for 1948.9 | None |
XAUUSD | 1950.100 | 1950.100 | 1949.50 | Sell stop for 1949.1 | None |
Inputs (configurations):
1. Amount of pips to open the sell/buy orders
2. Stop loss / take profit for each order
3. Max spread - if the spread is higher than this number there will not be a new order (but previous order will be removed)
4. Break even pips - when position gains this amount of pips the SL will be moved to break even
5. Trailing stop pips - when position gains this amount of pips, a trailing stop will be opened with the amount configured in distance trailing pips
6. Distance trailing pips - how many pips to set the SL from the trailing stop (SL should be updated every tick)
Requirements:
1. Well written code - I'm a developer and I would need to be able to read the code
2. EA should be working for multiple symbols (I should be able to attach multiple EAs to multiple charts)
3. The timeframe should be every tick (ignore timeframe of the chart)
4. Easily ported to MT5 (not need to be right now)
5. Can be back tested
Price is flexible.
Must speak English.