Trabajo finalizado
Tarea técnica
Idea: Place pending orders and drag EA to the chart of the currency. Forget about the trades, Trailing stop loss is managed by the EA meanwhile and later on check the results.
This EA should have the following features:
Trailing stop using maximum (when short) or minimum (when long) values of previous candles.
In addition, the EA has to take into account inside bars. In case of an inside bar the stop gets set to the previous candle's minimum or maximum and stays there until the next outside bar occurs.
Optional parameter: When the outside bar is left against the trade direction (close price!), the order has to be closed.
(This is the trailing stop described in „Das große Buch der Markttechnik“ by Michael Voigt. I will provide detailed examples to the programmer if needed.)
I manually enter positions or place stop/limit orders.
The initial SL should immediately be placed by the EA's trailing stop when manually buying
and in case of a pending order when the order get's active because the entry level is reached.
The EA should just function as an automated trailing stop.
I am trading multiple currencies with multiple orders.
I want to drag the EA on every single chart of the traded currencies.
The EA should then manage all orders placed on the chart (I will only have one chart per currency but sometimes multiple orders of one currency).
Parameters:
- Timeframe: 0 = current, or manually enter the timeframe (e.g. 15)
- Filter Trades by Magic, Ticket, Comment or set this to false, so that every order on the current chart is trailed (default: all trades in the currencies's chart i dragged the EA on).
- Noise parameter that defines a tolerance for the stop loss values in pips (i.e. the stop should be set to candle minimum – noise when long)
e.g. Reserve pips: 5.0
- Parameter for minimum candle range in the form x * ATR(n) (x and n should be entered into the EA). If the actual range is lower than the minimum range, the SL should be set to the previous candle and not to the current (too small) candle
- Parameter for ATR period (default: 14)
- Acoustic signal if a SL is moved (true/false)
- When the outside bar is left against the trade direction (close price!), the order has to be closed (default = true)
- Optional: Mark the currently relevant outside bar (with an arrow for example)
The EA runs on the current time frame and does not need a magic number as far as I can see (I don't intend to use multiple instances of this EA on the same currency pair).
EA has to be "shipped" as mql4 file.
Info window in the upper right side of the current chart (to see that the EA is working fine):
- Spread (note: of the current pair)
- Account Number
- Account Leverage
- Open Order Profit
- Open Order Profit Points
- Total Open Orders
Looking forward to receiving your quote.