Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
MOVING AVERAGE CROSSOVER EXPERT ADVISOR FRAMEWORK
Description
This robot shall work on the strategy of moving average crossing either to the upside or downside.
Robot settings (inputs) Session
Entry and Exit Condition or instruction
Buy Condition
The robot shall place a buy condition or open a buy position at CMP when a bearish candle OPEN AND CLOSES BELOW the moving average. (It must close before opening a position). (See attached image).
The robot shall immediately close the buy position if the bullish candle closes above the moving average at any point whether it reaches the take profit or not. This shall trigger the opening of the sell position immediately and close the buy position whether in profit or not.
Sell Condition
The robot shall place a sell condition or open a sell position at CMP when a bullish candle OPENS AND CLOSES ABOVEB the moving average. (It must close before opening a position). (See attached image).
The robot shall immediately close the sell position if the bearish candle closes below the moving average at any point whether it reaches the take profit or not. This shall trigger the opening of the buy position immediately and close the sell position whether in profit or not.
Further Robot Properties and Input section
· Positions are closed at opposite signals: Buy positions are closed at Sell signals, and Sell positions are closed at Buy signals.
· Positions are opened at the market price when a new bar emerges. The Expert Advisor is to be tested using Open prices, so there is no need to add functions for disabling operations inside the bar.
· Lot size allocation – A parameter for lot size inputs should be included. Fixed volume regardless of profit or loss; also, lot allocation based on equity and percentage risk should as well be included.
· Close by Take Profit and Stop loss - during position opening, a Take Profit or Stop loss level is set at a fixed distance from the open price, specified in points. The value is set in the Take Profit and Stop Loss input parameter.
· Position management - Trailing Stop is used to protect profit. Stop Loss is set if profit in points exceeds the value specified in the InpTrailingStop parameter. If the price continues to move in the profit direction, Stop Loss should be trailed at the given distance. Stop Loss cannot be moved towards the loss direction, i.e. the Stop Loss value cannot be increased. If none of the protective orders (Take Profit or Stop Loss) triggers, the position should be closed by an opposite signal. In addition, breakeven input should be made available..
· Risk Management - It needs to have features like risk management e.g. risk by balance, max order by pair, max order by pair, and magic number, open only 1 order across all symbols/charts the EA is attached to. News filter for low, medium, and high impact. Time start and time end as well as session start and end timing parameters.
· Indicator Selection - The indicator selection (Moving average) should be available in the EA's input parameters. The setting of the selected indicator for example – period, shift, apply to, MA methods selection among others.
· Password Control Panel – The robot should have a password authorization panel and should not work without the correct password entry. PASSWORD -@52637Victoria
· About section – This should have the below details
Name – Gifase Capital
Contact - +2348161585048
Email – ogunwalealabi@gmail.com
PLEASE NOTE THAT THE FINAL EXPORT WILL BE IN .ex4 and ex5