Trabajo finalizado
Tarea técnica
I want a trading robot that will enter a trade at a user defined number of points away from an EMA. It will enter the trade when the gap between two EMA's is above a certain number and there are 4 different EMA's that are all stacked. i.e. - EMA1 > EMA2 > EMA3 > EMA4 for a long position or EMA1 < EMA2 < EMA3 < EMA 4 for a short position. EMA1 will always be based upon a smaller period than EMA2. For example EMA1 would be a 3 period EMA and EMA2 would be a 10 period EMA.
The robot will require no-trade days that can be defined by the user.
I want to have a user defined stop loss that is either a fixed number of points (or ticks will work as well) or that is a set number of points above or below any of the four EMA's. I have an indicator on TradingView that shows entry and exit signals, but it's no where near what a trading bot would need to be. I can share it with you as a source of what I want the trading robot to do.
So the program will need the following inputs:
- EMA source (open, close, or hl2)
- EMA1 length (4 for example)
- EMA2 length
- EMA3 length
- EMA4 length
- Stop loss (fixed number or EMA# +/- point amount)
- Entry (EMA# =/- a point amount)
- First level to change stop loss (a fixed point amount)
- Order size
- No trade days
- Time Frame 1
- Time Frame 1 trading time (8:40AM CST - 3PM CST)
- Time Frame 2
- Time Frame 2 trading time
The trading robot will be programmed to run on two different time frames between two different trading periods. i.e. - The 2 minute time frame between 8:40AM CST and 3PM CST and the 10 min time frame between 5PM CST and 8AM CST (overnight). The time frames and trading times will be based upon user input so they can be adjusted in the future.
I want MT5 to have a graph that shows the 4 EMA's with different colors and order entry/exit as well as open orders and stop losses (if possible).
I have a few exit rules that will need automated as well that I can share after we have an agreement on price. I want this done in MQL5 and will eventually have this run on a rented virtual server through MT5's service. The brokerage will be through AMP Global. I'll set up a demo account for testing and a live account when everything looks good. Thanks for your time!