Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Four Adaptive moving Average line Expert Adviser
EA Requirements.
The EA opens and closes trades.
It determines trade types, Buy or Sell.
It should work on all time frames and currency pairs.
It should work on all chart types. Line, Bar or Candlestick.
It should work on both account types. Live and demo.
It places Trailing stop loss and Take profit lines as a trade is made.
The EA has a visual Blue Take profit line.
The EA has a visual Red Trailing Stop Loss line.
The EA has Four Adaptive moving average lines.
The EA places Trade arrows on the chart.
The EA has different lot sizes available to choose from.
The EA has a trading clock that allows trades during these trading times only.
I can manually amend the parameters and settings on all the above.
Trading clock.
The trading clock uses military time (24-hour clock) and is set to allow trades from 08.01 to 16.59 GMT London England time, as default.
It will automatically close all trades at 16.59 regardless of whether the trade is IN or OUT of profit.
If no current trade is open the EA makes a trade.
The trade’s direction is given to the shortest two periods out of the Green and Red AMA lines.
Namely (1,2,30) Green AMA and the (5,2,30) Red AMA lines.
If the (1,2,30) Green AMA line crosses over the (5,2,30) Red AMA line a Buy trade is made, and the Sell trade is closed if open.
If the (1,2,30) Green AMA line crosses under the (5,2,30) Red AMA line a Sell trade is made, and the Buy trade is closed.
I would like to be able to amend the trading time zones using military time (24-hour clock) method.
The Trading clock should be displayed at the bottom right hand corner of the chart.
The Green and Red Adaptive Moving Average Line.
The Green AMA line (1,2,30) and the Red AMA line (5,2,30).
The idea behind these two lines is when they cross one another trades are opened and closed.
If the Green AMA line crosses over the Red AMA line a Buy trade is made, and the Sell trade is closed.
If the Red AMA line crosses Over the Green AMA line a Sell trade is made, and the Buy trade is closed.
This is followed by the setting and placing of the trailing stop loss and take profit lines on the chart.
I can manually amend the parameters and settings on all the above.
The Yellow Adaptive Moving Average line.
The Yellow AMA line (100,2,30) Default setting.
This line is for visual purposes only.
The Orange Adaptive Moving Average Line.
The Orange AMA line (500,2,30) Default settings.
This line is for visual purposes only.
Trade Arrows.
Firstly, the trade arrows are placed on the chart when a trade is made.
A small blue arrow pointing upwards is placed at the Top of the green candlestick for a buy trade.
A small red arrow pointing downwards is placed at the Bottom of the red candlestick for a sell trade.
This is followed by the setting and the placing of the Take profit and Trailing stop loss lines.
Lot sizes.
The lot size is automatically set to a standard lot size.
However, I would like to have the ability to change this to other lot sizes, such as a Micro lot or to a mini lot size.
Take profit line.
The take profit line is automatically set at 300 points ahead of trade as default.
I also require a visual aid line on the chart.
The idea is as price moves towards this stationary line and eventually touches it, trade is closed, and profit is secured.
When trade has been closed by the TP line a new trade is made by the EA, this is based upon the (1,2,30) Green and (5,2,30) Red AMA lines as previously mentioned.
Both Take profit and Trailing stop loss lines are placed on the chart on opening of a trade and are removed when the trade is closed.
I would like the ability to change the number of points.
Say from zero NO Take Profit line (0) to two thousand points profit (2000) for example.
Trailing stop loss line.
The Trailing stop loss line is automatically set at 600 points behind trade as default.
I also require a visual aid line on the chart.
The idea is, as price moves away from the Trailing stop loss line the line is dragged in the same direction as price, point by point.
However, if price should head towards the Trailing stop line, the line remains fixed until price touches the line and the trade is closed.
I would like the ability to change the number of points.
Say from zero NO Take Profit line (0) to two thousand points profit (2000) for example.