Spécifications
I am looking for an indicator and an expert advisor to be developed providing me with both the MQL4 and ex4 files. The expert advisor will be sold on the Library, so I will need it to meet the basic criteria for that as well.
The software I am asking for will open a trade when three conditions are met within a candle lookup period. (The lookup period would be an input, for example ‘15’ candles back. So if all three conditions are met within the 15 candles, then the trade opens).
I want to use a Moving Average to decide whether a market is in an uptrend or downtrend. If price is trading below the MA, it’s bearish. If the price is trading above the MA, it’s bullish.
The MA needs to be customisable for periods and MA types (drop down box for all MA types; simple, exponential, weighted etc).
Once a trend has been identified I want to use a MA cross for the next condition.
The moving average cross is based on two customisable moving averages; MA1 (big) and MA2 (small).
If price is trading under the trend qualifiying MA (so the market is therefore bearish) I am looking for the small MA2 to cross below the MA1.
If price is trading above the trend qualifying MA (so the market is bullish) I am looking for the small MA2 to cross above the MA1.
Once one of these MA crosses hits the criteria, I want to see the final condition met - all within the “lookup period”.
I want to use a moving average band to determine when price is breaking out.
The moving average band is based on two moving averages (definable, but default will be 5 period EMA).
A 5 period MA calculated on the High of a candle and a 5 period MA calculated on the Low of a candle.
When a candle closes outside of the moving average bands we have a signal.
If it closes above the upper band, it’s a buy signal. If we close below the lower band, it’s a sell signal.
Expert Advisor rules
If condition 1 is a buy,
AND condition 2 has seen a cross of the small moving average above the big moving average (within the lookup period)
AND price closes outside the band to the upside (within the lookup period), we have a BUY trade.
Open a Buy Trade based on the trading inputs from the user.
AND condition 2 has seen a cross of the small moving average below the big moving average (within the lookup period)
AND price closes outside the band
to the downside (within the lookup period), we have a SELL trade.
Open a Sell Trade based on the trading inputs from the user.
Once a trade has been triggered, the take profit target will be a choice of two options;
1. ATR or 2. Manual target in pips.
If ATR is selected, I want to choose a multiplier of the ATR.
So for example if ATR is 50 pips and the multiplier I use is 0.5 that means the profit target will be 25 pips.
If the multiplier I use is 2.5, that means the target will be 125 pips.
If trailing stop is used, this trailing stop will over ride the donchian line.