Auftrag beendet
Spezifikation
Create a trading robot mql5, mainly for trading stocks based on RSI 21.
Buy trade when RSI 21 enters an oversold region, below 30 and goes above 30.
Sell trade when RSI 21 enters into overbought region, 70, and comes back below 70.
The RSI period and the overbought and oversold parameters should be configurable on inputs
To re-enter a buy or sell, first the price should complete 4 candles before going below 30 for sale or above 70 for a buy trade, for example, if price goes below 30 and the goes above 30 open a sell trade, if it goes below 30 on the next candle ( before completing 4 candles), that oversold condition its not valid. The number of candlesticks should be configurable on inputs.
If however the pair or stock continues to hunt around over bought or oversold position, and not completing 4 candlesticks, if it does that for 3 times, on the 4th time , they system can open a trade, as a counter trade. This number of hunting times should be configurable on the inputs.
Take profit equivalent of 5usd at 0.01 lot size forex and 1 lot size for Stocks. Take profit money should be an algebraic summation of all open trades related to the robot for the same Pais. TakeProfit money should be configurable on inputs.
Stop-loss should be configurable value on inputs.
EA should trade on current time frame, for optimisation use D1 chart.
I would need an ex4 and the mql5 program to edit if there is need to