Good evening everyone, it's the first time I write for help for programming an EA. I state that I do not speak English and I have had to
translate with google translator, so i will apologize for some spelling mistakes.
The system practically enters long on supports and short on resistance with a stop order: the level of support and resistance I have to
update it every day: that's enough for me one level for support and one level for resistance. You must have a false level breakout: for
example, if I identified a resistance on the nasdaq at 8840, I would need the price to exceed some points (example 2) 8840 but not 10 points
and then will open a short position 1 point below 8840 will then open the position at 8839.
1) I have resistance at 8840, the price reaches 8841 and it goes down: not yes does nothing.
2) I have resistance at 8840, the price reaches 8843 (at least 2 points more than the level but less than 10): I open a 1 point short position
below 8840, in this case at 8839.
3) I have resistance at 8840, the price reaches 8852 (10 points higher the level of 8840): nothing is done.
1) I have support at 8750, the price reaches 8749 and it goes above: not yes does nothing.
2) I have support at 8750, the price reaches 8747 (at least 2 points more than the level but less than 10): I open a 1 point long position
above 8750, in this case at 8751.
3) I have resistance at 8750, the price reaches 8738 (10 points higher the level of 8750): nothing is done.
The stop must be placed 3 points above the last maximum in the case of the short and 3 points below the last minimum in the case of the long, so the
maximum stop is 13 points.
Trailing stop: when the price makes me earn 8 points, you will have to equalize the stop, i.e. with 1 gain point for pay commissions.
And then it goes from 8 points to 8 points.
Target 100 points.
In case of need I will have to be able to manually intervene to close the position.
I use the 30 minutes time frame.
Having a broker who deals Futures with MT5, the EA must work as well as with CFDs also with regulated Futures.
It is very important that I can change from time to time:
1) level of support and resistance
2) the stop (I'll have to change it based on volatility)
3) the traling stop
4) the 2 points and the 10 points that filter the entrance, always because I will have to see based on volatility
5) number of contracts
Thanks to those who want to be interested.