Trabalho concluído
Termos de Referência
Hello
I need an Expert Advisor with the next issues.
Optimizable parameters:
- a: short period of the chosen indicator
- b: long period of the chosen indicator
- Delta: Delay or advance regarding to opening price
- SL: stop loss
- TP: take profit
- TF: Time Frame
Other parameters:
- Lotes: number of Lots
- INDIC: The EA must be able to work with 3 indicators: EMA, STOCHASTIC (only %K) and TRIX. For instance, if the variable takes the value "EMA", the a and b parameters are referred to the Exponential Moving Average. On the same way for TRIX and STOCH (only the line %K).
The EA open positions acoording to the next criteria:
1. If short indicator crosses over the long indicator at the close of the last candle, it puts a BUY LIMIT or a BUY STOP according to the value of Delta. If Delta is positive, it puts a BUY LIMIT "Delta" points below the open price. If Delta is negative, it puts a BUY STOP "Delta" points above the open price.
2. If short indicator croses down the long indicator at the close of the last candle, it puts a SELL LIMIT or a SELL STOP according to the value of Delta. If Delta is positive, it puts a SELL LIMIT "Delta" points above the open price. If Delta is negative, it puts a SELL STOP "Delta" points below the open price.
3. If a position short (long) is open, the event 1 (2) results in a double LIMIT or SELL order, one for the (possible) close of the open position and the other for the open of a long (short) position.
4. If there isn't any position, the event 1(2) results in a single LIMIT or SELL order.
The EA must provide in mql5 language, open source.
P.S.: Important!!! The EA must be easiest as possible, no money management or other features that the above.