Job finished
Specification
Attached is an EA for an MA crossing strategy. I have never used it so not sure how good it is but the code should be a good starting point.
I would like an EA to buy or sell trades created for MT4 which uses a crossing of two Moving Averages (MA) based on a set of rules/strategy I will supply later on. The programming will also include the need to specify whether each individual MA is in a bullish trend or bearish trend after crossing (the determination of a bullish trend or bearish trend is based on rules I'll provide).
Each MA and each period is individually able to be specified in the EA's settings - the "Inputs" tab will allow which EA to choose eg SMA, HMA, TriMAgen etc and whether each MA is over 10 hours, 10 days, 10 weeks for each MA being compared etc).
The features in the attached EA to be included into the EA including those below. Any other recommended features will be left up to the programmer. There will be 5 additional inputs to be specified to the winner once the project is selected.
- StealthMode: Hides SL, TP and Trailing from broker.
- StartHour: Time for EA to start. GMT
- EndHour: Time for EA to stop. GMT
- Lotsize: When using fixed lot, set size here.
- MM Mode: Set true to activate money management.
- LotsPercent: Percentage of balance to be used by MM to place orders
- MaxLot: Maximum lot size allowed.
- MinLot: Minimum lot size allowed.
- Stoploss: Stop loss
- TakeProfit: Take profit
- Breakeven: Amount of profit to take when a profit trade is turning to loss.
- Starttrailing: Profit to start trailing stop
- TrailStop: Value to trail a profit trade.
- TrailStep: Steps for movement of the trail.
- Magic_Number: EA magic number.
- maxtrades = Maximum allowed total number of trades
- tradesperbar = Maximum allowed orders per bar
- slippage = Maximum slippage allowable at the point of entry.
- maxspread = Maximum spread allowable at the point of entry.
- MA chosen = drop down box to chose the relevant MA plus all the parameters in the indicator for each MA.
- expiration = In minutes. Time for pending orders to expire.
The two MA will be chosen from a drop down list in the EA so I can chose which two MAs I want to use for the moving average crossing strategy to trigger a trade. The code for each MA can be found in the attached mq4 file. The MAs are:
- SMA, // Simple Moving Average
- EMA, // Exponential Moving Average
- Wilder, // Wilder Exponential Moving Average
- LWMA, // Linear Weighted Moving Average
- SineWMA, // Sine Weighted Moving Average
- TriMA, // Triangular Moving Average
- LSMA, // Least Square Moving Average (or EPMA, Linear Regression Line)
- SMMA, // Smoothed Moving Average
- HMA, // Hull Moving Average by A.Hull
- ZeroLagEMA, // Zero-Lag Exponential Moving Average
- DEMA, // Double Exponential Moving Average by P.Mulloy
- T3_basic, // T3 by T.Tillson (original version)
- ITrend, // Instantaneous Trendline by J.Ehlers
- Median, // Moving Median
- GeoMean, // Geometric Mean
- REMA, // Regularized EMA by C.Satchwell
- ILRS, // Integral of Linear Regression Slope
- IE_2, // Combination of LSMA and ILRS
- TriMAgen, // Triangular Moving Average generalized by J.Ehlers
- VWMA, // Volume Weighted Moving Average
- JSmooth, // M.Jurik's Smoothing
- SMA_eq, // Simplified SMA
- ALMA, // Arnaud Legoux Moving Average
- TEMA, // Triple Exponential Moving Average by P.Mulloy
- T3, // T3 by T.Tillson (correct version)
- Laguerre, // Laguerre filter by J.Ehlers
- MD, // McGinley Dynamic
- BF2P, // Two-pole modified Butterworth filter by J.Ehlers
- BF3P, // Three-pole modified Butterworth filter by J.Ehlers
- SuperSmu, // SuperSmoother by J.Ehlers
- Decycler, // Simple Decycler by J.Ehlers
- eVWMA // Modified eVWMA
Other requirements:
- - I will own all copyright and other intellectual property in the code.
- - The source code is to be provided and is to have narrative for each component to understand it.
- - to work for a 5 digit broker.
- - for pips Eg. 1.1 is 1.1 pips, where 20.1 is 20.1 pips (example 1.00201 minus 1 = 20.1 pips)
- - English will be the governing language of this contract.
- - any bugs are to be fixed.
- - Each MA must be programmed to the be non-repainting
Please let me know if you need any clarification.
Thank you