Техническое задание
The idea of the EA
The Expert Advisor receives signals for opening new orders or recovery orders from the indicator
system defined by the user in the input parameters. It is possible to select indicators, their timeframes and the number of signals required
to open an order (indicators can act in AND or OR with others).
If the trades goes against trend an averaging function can be added.
Other functionalities include a swap filter and a news filter.
A total of 24 trading indicators should be included:
Signals of the following indicators can be added to the slots:
- Trend
- Average Directional Movement Index (ADX),
- Bollinger Bands,
- Envelopes,
- Ichimoku Kinko Hyo,
- two Moving Average,
- Parabolic SAR,
- Oscillators
- Average True Range,
- Bears Power,
- Bulls Power,
- Commodity Channel Index (CCI),
- DeMarker,
- Force Index,
- MACD,
- Momentum,
- Moving Average Oscillator
- Relative Strength Index (RSI),
- Relative Vigor Index
- Stochastic Oscillator,
- Williams' Percent Range
- Volumes
- Accumulation Distribution
- Money Flow Index,
- Bill Williams
- Accelerator
- Alligator,
- Awesome Oscillator
- Fractals
You can use available default signals on MT5
Input parameters of the EA and functioning
General Settings
- Magic Number: ID number of the orders.
- Max Spread: maximum spread to trade.
- Max numbers of trades opened per day: (number)
- Order_Comment - comments to orders.
- SpreadLimit - Maximum allowed spread in pips to allow trading.
- Slippage - Maximum allowed price deviation in points when opening positions.
Money Management Settings
- Open Lot: number of lots if the money management option is disabled.
- Money Management: if true enables the money management option.
- Risk Percent: if the money management option is enabled, it indicates the risk percentage (open lot = 0,01*Risk%*1000 of the base currency of the account) – also decimal values possible
Indicators Settings (per each indicator)
- Enable indicator x: (trueorfalse)
- Signal in AND orOR:(possiblevaluesANDorOR):ifchosentheindicatorcanbeputas a filter to all others indicators in case of AND (both must be true) or in OR (whenever this signal is true then open a trade)
Insert as input parameters all the standard parameters for each indicator
Trading Hour
- Enable Time Filter: if true enables the time filter
- Trading Start Hour: operating start Hour
- Trading Start Minute: operating start minutes
- Trading Stop Hours: operating end Hour
- Trading Stop Minute: operating end minutes
- Close everything Out of hours: close all orders at the end of the timetable.
- Close Friday Night: close on Friday evening.
Trading
Days (each true or false)
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
- Allow Buy: if true, Ea can trade with buy orders.
- Allow Sell: if true, Ea can trade with sell orders.
- Apply balancer: (true or false). If true the EA opens new trades only if the number of open lots in one direction is balanced from a similar number of lots in the other direction.
- Balancer difference: The difference between lots in one direction and the other is the that is possible when the balancer is activated
Take profit and Stop Loss
- TakeProfit_Type - type of take profit or trailing.
- TakeProfit_money - take profit value in money.
- TrailingStep_money - step of the trailing in the deposit currency.
- TrailingStart_money - start of the trailing in the deposit currency.
- StopLoss_Type - type of stop loss.
- StopLoss_money - stop loss value in money.
Swap Settings
- Enable swap opening of trades (opens trades only if swap is positive)
- EntryTime - Time for opening positions with positive swap (only if enable swap true).
- MinimumSwap - Minimum swap value for the Expert Advisor to open positions.
Averaging Settings
- Enable averaging: true or false
- Grid Management type: Type of Lots management for the grid (options available: martingale, lot sum, all lot sum, Fibonacci sequence)
- Step - step for the order grid in points.
- Coefficient Grid Management: Multiplier for orders (lots sum, martingale, all lots sum).
- MaximumLotsValue - maximum allowed volume of one order in lots.
- Max Orders: Maximum number of orders, for long and for short.
News Filter
- UseNewsFilter - enable the news filter.
- SourceNews - select the news source.
- LowNews - use pauses during low-impact news.
- LowIndentBefore - pause before the news release in minutes.
- LowIndentAfter - pause after the news release in minutes.
- MidleNews - use pauses during medium-impact news.
- MidleIndentBefore - pause before the news release in minutes.
- MidleIndentAfter - pause after the news release in minutes.
- HighNews - use pauses during high-impact news.
- HighIndentBefore - pause before the news release in minutes.
- HighIndentAfter - pause after the news release in minutes.