Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
I require an Ea that has the options to trade two different strategies
1. To trade all time frames
2. To trade all forex pairs minor and major Indicies and metals
3.To Incorporate a PSAR and the ability to change the Psar Setting ( set and maximum)
4. To Incorporate the ichimoku cloud
5. To incorporate a simple moving average whose value can be changed either with set values ( 20/50/100/200) or the ability to choose any setting
6. The ability to add a manual stoploss ( in pips)
7. the ability to set a manual take profit in terms of number of psar dots after the psar has flipped. i.e. the option to close the trade after the close of the candle after 4 psar dots.
8. The ability to set a take profit based on the number of pips
Strategy one is where the pair is traded from Psar flip to psar flip and uses a moving average The trade is to execute at the close of candle on the Psar flip.
Only buy trades are executed above the moving average that is set and only sell trades are executed below the set moving average. So each time the psar flips to signal a buy trade above the ma, then the trade is executed and will close upon the next psar flip which signifies a sell. This next sell would not be taken unless the candles were below the moving average. If the psar has already flipped whilst the candle is under/ the moving average for a buy, then the trade would execute on a close of candle above the moving average as long as the psar is under that candle. The opposite would be true for a sell trade. The candle closes under the moving acverage and the trade executes if the psar is above that candle upon close of candle or it waits for the next psar flip
A sell trade would execute when the psar has flipped and the candle is below the moving average. The trade would close at the next Psar flip.
Strategy two involves the use of the ichimoku cloud.
A buy trade is executed where a candle closes above the ichimoku cloud and the the Psar is below the candle i.e. an upward trend. The trade is closed upon the psar flip( close of candle)
A sell trade is executed where a candle closes below the ichimoku cloud and is executed only if the Psar is above the candle ie. a downward trend. The trade is closed upon a Psar flip ( close of candle).
Only buy trades are taken above the ichimoku cloud and only sell trades are taken below the ichimoku cloud
strategy 3 involves trading the pair from Psar flip to psar flip with no other indicator