Lavoro terminato
Specifiche
Hello Developers!
I would like an EA that opens Buy and Sell orders. I have attached the indicators that are going to be used for the guidelines already. You can just use the codes from there and implement them into the EA program.
Guidelines:
1) An EMA cross over. The signal is generated at the crossing of two exponential moving averages. Fast EMA is 4, slow EMA is 8.
2) Slope
3) MACD (5,35,5) Histogram.
4) CCI- Period: 14, Typical Price
BUY Order: If EMA crosses upwards, the slope is positive, MACD histogram is >= 0, and CCI is Above 0. EMA signals are produced when a candle closes and places an arrow on that candle. The other Guidelines will begin checking on next candle open.
Sell Order: If EMA crosses downwards, the slope is negative, MACD histogram is <=0, and CCI is Below 0.
Here's an Example:
A green arrow was produced from EMA cross over when that candle closed. On the next candle open, the slope is positive MACD is positive, CCI is +. A buy order is then placed. Our stop loss occurs when CCI closes below 0. So in this trade we would have closed out at 18:00. There is no stop loss or take profit, the order will only close out if it crosses 0. Orders will be executed once MACD becomes positive, slope becomes positive, and CCI is above 0. These will not wait for the candle close.
Example of Sell Order:
A sell signal was generated by EMA, CCI is below 0, however slope didn't change until 3 candles after and finally histogram changed on the 6th candle. A sell order would still be placed. If all guidelines are met despite time an order will still go through. Here we closed out at 22:00 when CCI crossed above 0.
If there was an arrow produced and none of the guidelines are met and an opposite arrow is produced, then it resets and now guidelines are checked for the new arrow. However, if there is an order opened on that chart, then the program will no longer check for the guidelines until that order is closed due to CCI and a new arrow is produced.
There is no TP or SL, only order closed out due to CCI crossing above or below zero.
I've included the EMA cross over signal and Slop direction file that I use.
The CCI is standard: Period 14 and Typical Price
MACD is set to (5,35,5).
Let me know if you have any questions! Thank you!