Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
Need an EA based on "PZ Trend Trading MT5" indicator. It is a market indicator.
The EA should buy when the indicator signs to buy(blue circle numbered 1) and should sell when the indicator signs to sell(red circle numbered 1). When the trend is changed the EA should reverse position.
Here is the link to indicator: https://www.mql5.com/pt/market/product/1423.
The EA shoud be based on ticks for values, so it can trade price values (changing 0.01 at variation) or index price values (changing 1, 5 or 0.500 at variation)
The EA should have the following parameters:
- Magic Number
- Lots
- Hour Start. Hour to start trading
- Hour End. Hour to stop trading, should close all open positions.
- Take Profit
- Stop Loss
- Use trailling Stop? Bit parameter yes or no (do not control trailling with zero/0, usually this mess up with trailling).
- Trailling Stop Start. Use only if trailling is set to yes.
- Trailling Stop Step. Use only if trailling is set to yes.
- Ignore First Sign? Bit parameter, yes or no. If set to YES the EA should ignore the first sign of the day or if the market is already open, should ignore the first signs it receives.
- Max trades. Int parameter, if set to 2 for example, the EA should only make 2 trades and stop for the day
- Trade only in new trend? Bit parameter, yes or no. IF set to YES the EA should only buy or sell when the current trend is changed, so if the EA is started and a short trend is hapenning, the EA will wait until it changes to a long trend. If it is set to NO and the short trend is hapenning, when the indicator signs 2 or 3 following the trend, the EA should sell.
- Should EA Piramid? bit parameter, yes or no. If set to YES, and the EA opens a buy position, when the indicator signs 2 or 3, the EA should buy another lot, same hapens with short position, if yes and signs 2 or 3 should sell another lot. Limited to the max signs parameter.
- Max Signs Piramid. Int parameter, if piramid is enabled, each time the indicator signs 2 or 3 following the inicial trend the EA should buy or sell another lot limited to this variable, so if it is set to 3 and the EA is in a short position, the indicator places a 3 sign, the EA sells another lot, it continues for more two times, in the fourth sing the EA only cotinues the short position.