Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
I'm looking to automate a futures strategy with a multitude of variables.
I have a simple indicator that I can share the TOS code for, but it's simple. The strategy, with additional qualifiers, is to short when a candle crosses and closes below this "line" and to close that short when a candle closes above. This works in reverse for longs, or course.
Now the additional qualifiers for entering a trade:
1. RSI < > a specified number(on the entry candle close or prior candle, this must be selectable long or short) . I envision a menu Long Candle [0,-1] and [<,>] and [X] , Short Candle [0,-1] and [<,>] and [X])
2. Time. I must be able to restrict the time the bot can open a new position (closing an already open position cannot be affected) I'd envision a slide with multiple options to select. For example I may want to trade from 930AM-1015AM and 1PM-230PM and 300PM -4PM.
3. higher level time frame momentum confirmation. For example if I'm trading on 5 minute. I want to be able to confirm the 15 minute is moving in the same direction as my trade, using selectable momentum oscillator. I would see this menu as: Time frame [1m, 3m, 5m, 10m, 15m, 30m, 1h, 4h, 1d] and aggregation period(x).
4. Delta on the candle close. I need the bot to have the option to require the closed candle be +/- delta for long or short.
5. A maximum number of failures. If the bot goes "$x" in the red, or X of the first Y trades fail, it should alert and stop until restarted.
6. A server side stop loss (I use CQG and their stops are server side) that can move per preset targets. For example. At entry a stop at -10 points, at +10 points move stop to +3 and so on. At least 6 of these presets. Ideally that top one would be a trailing stoploss if all other preset profit levels are breached.
7. number of contracts
I can show images entry and exit on this trade for more clarity after further discussion.