Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
The EA has two main indicators:
1) moving average
The EA will buy/sell when the price is distant X points from the
average. The EA will buy/sell 3 times maximum for the same position. Example:
Place order considering the distance from the average, on the first entry, place order when current price distance is 20 points or more
from the average of 2 periods, enter with 1 contract. If the price goes against, enter with 2 contracts if move 50 points or more away from the
average of 5 periods, and if goes against again, enter with 4 contracts if move 100 points or more away from the average of 6 periods.
2) depth of market
The EA will check the sell and buy offers in the depth of market X points distant from the current price. If
the depth of market has offers beyond the specified distance, the EA will ignore them. Therefore, if there's more contracts for buy in the
depth of market in the specified range, the EA will sell or vice-versa.
Entry point example: the price is 20 points away from the moving average M1 (sell signal). The depth of market has more buy offers in the
specified range (sell signal). The EA is set to BUY/SELL. So the EA will sell and define take profit and stop loss.
Parameters:
---GENERAL---
Order type: ONLY SELL, ONLY BUY, SELL/BUY (allow only sell/buy or both operations)
Begin
hour: hh:mm
Last entry: hh:mm
Close all at: hh:mm
---MOVING AVERAGES---:
MA1 period: integer
MA1 distance from:
integer (entry point at minimum distance)
MA1 N.contracts: integer
MA1 timeframe: integer
MA2 period: integer
MA2 distance from: integer
MA2
N.contracts: integer
MA2 timeframe: integer
MA3 period: integer
MA3 distance from: integer
MA3 N.contracts: integer
MA3
timeframe: integer
---DEPTH OF MARKET---
N points: float (range in points from the current price. E.g., 50 means current price +- 50 points
---RISK MANAGEMENT---
Take profit in $ / in points: float
Stop loss in $ / in points: float
Daily take
profit: float (global gain of the day in $)
Daily stop loss: float (global loss of the day in $)
PS: the EA can be created without the depth of market. So, an entry point example would be: the price is 20 points away from the moving average M1 (sell signal). The EA is set to BUY/SELL. So the EA will sell and define take profit and stop loss.