Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Two 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 automatically as trades are made.
The EA has a visual Blue Take profit line.
The EA has a visual Red Trailing Stop Loss line.
The EA has Two Adaptive moving average line settings. (which are changeable)
The EA places directional Trade arrows onto the chart at execution.
The EA has different lot sizes available to choose from.
The EA has a trading clock which allows trades during the set trading times only.
I can manually amend the parameters and settings on all the above.
Properties and inputs for EA
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 only.
It will automatically close all trades at 16.59 regardless of whether the trade is IN or OUT of profit.
This is based on the position of the two AMA lines, prices location and candlestick colour.
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.
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.
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.
The Two changeable Adaptive Moving Average Lines settings.
The Green (Short) AMA line default settings are (1,2,30) and the Red (Long) AMA line default settings are (3,2,30).
Opening a buy trade.
A buy trade is made on the close of a Green Candlestick and is where the short AMA line (1,2,30) is above the long AMA line (3,2,30). The candlestick must also close above the Short AMA line (1,2,30).
Opening a sell trade.
A sell trade is made on close of a Red Candlestick and is where the long AMA line (3,2,30) is above the short AMA line (1,2,30). The candlestick must also close below the Long AMA line (3,2,30).
A buy trade is closed by a sell trade and a sell trade is closed by a buy trade.
However, trades can also be closed when on a Buy trade a Red candlestick or price closes below the short (1,2,30) AMA line and trade can also be closed when on a Sell trade a green candlestick or price closes above the long (3,2,30) AMA line.
I can manually amend the parameters and settings on all the above.
Take profit line.
The take profit line is automatically set at 30 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.
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 distance by the number of points.
Say from zero NO Take Profit line (0) to two thousand points profit (2000) for example.
Stop loss line.
The Trailing stop loss line is automatically set at 15 points behind trade as default.
I also require a visual aid line on the chart.
If price should head towards the stop line, the line remains fixed until price touches the line and the trade is closed.
I would like the ability to change the distance by the number of points.
Say from zero NO Take Profit line (0) to two thousand points profit (2000) for example.