Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
Hello, I am looking for a bot to follow a strategy for me. It's pretty simple, all the indicators already pre-exist, I just need someone to code it for me.
Basically, it starts with the Hull Moving Average, 200 period. I need it so that when the HMA is sloping up (ie. the HMA is greater than its previous value), the bot only takes long entries, and when the HMA is sloping down (ie. the HMA is less than its previous value), it only takes sell entries.
Next, I want the MACD (Exponential- not simple, using the default period of 12, 26 and 9). This is the first entry condition, the MACD must be above the signal for a long entry and below the signal for a short entry. Please set the entry at the close of the candle, because sometimes the MACD can cross while price is moving and then un-cross at candle close. So the entry should be at the open of the next candle.
Lastly, I want the Parabolic SAR (default parameters). This is the second entry condition and also the stop loss placement. Again, entry should be at the open of the next candle.
If the HMA is sloping up, the PSAR is below price, and the MACD crosses up, then it should place a buy entry. Same but opposite for sells. The stop loss should be placed at the PSAR of the entry candle, and take profit should be 1.5 times the stop.
I plan to use this on the 5 minute chart. I want it designed so that if the stop loss is greater than 12 pips, that it only does a 1 to 1 reward to risk instead of a 1.5 to 1.
Also, if the stop loss is greater than 20 pips I want it to ignore the trade, because I don't want to risk that much capital.
Lastly, I don't want it to trade during the low volume period between the New York Session and the Asian/London session, from 2pm to 5pm.
I've attached photos of example trades below. Pic 1 shows an example of a long trade. The PSAR was already below price, so when the MACD crossed up, entry was on the close of that candle/open of the next candle. 1.5 to 1 reward to risk. I didn't really do a good job of showing it, but I do want entry to be on the next candle, so though it shows on the close of the candle, the entry would really be at the open of the next candle, for confirmation.
Pic 2 shows an example of a short trade. As you can see, the MACD was already crossed down, so the entry was on the PSAR's signal. Again, entry should only be executed on the next candle to confirm that the PSAR actually did flip. 1.5 to 1 reward to risk.
Pic 3 shows an example of a long trade that had a stop greater than 12 pips, so it only did a 1:1 reward to risk.
Pic 4 shows an example of a long entry that I would like to be ignored, as the stop loss was greater than 20 pips.