Tâche terminée
Spécifications
Hi, I need an EA in MQL4 language with the source code, it should be well commented and clean code.
The strategy is based on Resistance and Support zones. The user can input four prices, two to create a resistance zone and two to create a support zone. Crossing or touching those zones will give the signals to open/close sell/buy orders as follow.
There are four types of signals
A- Buy signals:
a. if the price touch the support zone: we initiate buy order with the initial lot initial stop loss and the initial target.
b. Complete close 1: if a new bar open and close above a resistance level this create a buy signal.
c. Complete close 2: if a new bar opened below the resistance zone and closed above the resistance zone this create a buy signal.
d. Partially closed: if a new bar open in the resistance zone and the closes above the resistance zone that gives the buy signal.
B- Sell signals:
a. if a price touches the resistance zone this is a sell signal.
b. Complete close one if a new bar often and they closed below the support zone this give a cell signal
c. Completely close to if a new bar opened above the support zone and the closes below the support zone this give a sell signal
d. Basically closed if a new bar opened in the support zone and they closed below the support zone this will give a Celsius
the user can decide which signals to be used, using the drop-down menu in the user input.
the user may use one or more of the signals and he may use all the signals together.
We need a counter to limit how many times to take the first signal, the counter should be a user input. i.e. if we initiate a sell from resistance and achieved the TP for two times and the counter_Limit set to “2” then we don’t initiate a new sell order on the third time the prices touches the resistance zone.
A Time_frame user input to determine weather a support or a resistance zone became the opposite: when a zone got a Complete “Close signal” i.e. a resistance zone broken with a new bar from the user input TF. This resistance zone became and act as a Support zone. And vice versa
This is the EA specifications
- 1. time filter to specify when in hours and minutes to start the EA and when to finish During the day, with a bool user input to activate or disable.
- 2. Training stop option, (when to start and pip Step) , with a bool user input to activate or disable.
- 3. Break even option. (when to activate and how many pips in profit) , with a bool user input to activate or disable.
- 4. Stop loss three options: either normal points or opposite signal or use both.
- 5. Take profits in normal points.
- 6. Martingale the next slot if the last order was in loss. A bool to activate in the user input with multiplier to choose (last lot * [1.7] ) the 1.7 is a user input.
- 7. Only one order at a time. So if we have an order in the market we don't open a new order on the same symbol.
- 8. any run time error should be catched and print.
General conditions:
1- MT4 EA with the source code, well commented and organized
2- Do the full job in 3 Days.
Thanks