Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
2. EA parameters
The java code is not guaranteed to work (as I am not a programmer). It is provided to you in case it may provide you with assistance. The white paper provided should be used as the basis of the EA as it explains the strategy.
The EA Input Tab will have the following parameters:
Magic_Number: EA magic number.
[other parameters referred in the white paper]
timeframe = the time bar (OHLC) timeframe/candle (from Min1 to Mth1)
Buy trade option
Sell trade option
Close Buy trade
Close Sell trade
StealthMode: Hides SL, TP and Trailing from broker.
Lotsize: When using fixed lot, set size here.
UseMM: 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 settings: =====
StopLoss Mode:0-off,1-in pips,2-in % of Price
StopLoss (in pips or %)
===== TakeProfit settings: =====
TakeProfit Mode:0-off,1-in pips,2-in % of Price
TakeProfit (in pips or %)
===== Trailing Stop & Breakeven settings
Starttrailing: Profit to start trailing stop
Trailing Stop in pips
Trailing Stop Step in pips
Breakeven in pips
Profit Lock in pips if Breakeven is achieved
===== Partial Close settings:
Partial Close Target in pips
Partial Close Position Percent
==
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.
usetimefilter = To enable time filter.
Monday Start Hour of Trade Session
Monday Start minute of Trade Session
Time of trading : Trading_24h = TRUE/false;
StartHour: Time for EA to start (server time). (0 = false)
Startminute:
EndHour: Time for EA to stop (server time). (0 = false)
Endminute:
Trading days: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday (each can be chosen individually)
fridayfilter = Set last new orders on Friday before market close. No more trading after this time until the next week market open, except existing trades can be closed if the trading rules are triggered (ie SL/TP/Trailing etc).
fridayhour = In hours (server time).
fridayminute = In minutes (server time).
Etc etc as required
4. Other requirements
- I will own all copyright and other intellectual property in the code.
- The EA will also work for Gold (XAU) and silver (XAG) and oil in addition to FX
- The source code is to be provided and is to have commenting & narrative for each component to understand it and be consistent with generally accepted MQL4 coding best practices.
- 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 signal must be programmed to the be non-repainting