Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Need an experianced programmer to make a EA.
The EA will use ZigZag indicator to draw trendline for buy/sell stop orders.
Conditions: (look at attached file)
Buy Stop
- Trendline drawn from last 2 tops on zigzag indicator.
- LH – LH or HH - LH
- Only draw the trendline when it is downwards trend (trendline is less then 0 degress, frist top is higher then second top)
- Enter trade when price crosses trendline.
Sell stop
- Trendline drawn from last 2 bottoms on zigzag indicator.
- LL – HL or HL - HL
- Only draw the trendline when it is upwards trend (trendline is more then 0 degress, first bottom is lower then second bottom)
- Enter trade when price crosses trendline.
The EA will also have a recovery mode , trailing stop, money management etc.
Input parameters:
Magic nr
Comment
------- ZigZag-------
Depth
Deviation
Backstep
Buy shift (points) (moves the buy stop line from the pending order)
Sell shift (points) (moves the sell stop line from the pending order)
Delete trendline after hours
Maximum open trades
------- Money Management --------
Lot calculation (Risk % per trade/Fixed lot) (drop menu)
Risk %
Fixed lot
Take profit (points)
Stop loss (points) (when SL is hit, start recovery mode)
Trailingstop (true/false) (drop menu)
Trailing Start (points)
Trailing Stop value (points)
Trailing Step (points)
Recovery Mode (true/false) (drop menu)
Multiplie Trailing Start
Lot mulitplier for recovery
Number of recovery trades
Recovery rule:
When the SL is triggered the EA starts recovery mode.
Eksample input settings:
Multiplie Trailing Start 2
Lot multiplier for recovery 2
Number of recovery trades 3
· Multiply Trailing Start: This input will multiply the Trailing Start, by 2.
(eks: normal mode: Trailing Start 20points. Recovery mode 40points)
· Lot multiplier: eksample: normal mode 0.2 lots Recovery mode: 0.4 (this will be the same for all the recovery trades)
· Number of recovery trades: the number of recovery trades before it goes back to normal mode.