Four AMA lines EA with automatic Trailing stop and Take profit lines.

MQL5 Experts

Job finished

Execution time 17 days
Feedback from customer
Quite simply the best Developer i have ever worked with and i strongly recommend his services. Truly stars.
Feedback from employee
Golden attitude and very detailed customer, its rare to meet someone like him

Specification

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 both account types.  Live and demo.

(So, I can forward test as well as back test).

It places Trailing stop loss and Take profit lines simultaneously as a trade is made.

The EA has a visual Green 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 at both entry and exit points.

The EA has different lot sizes available to choose from.

The EA has a trading clock that sets the open and closing of trading times.

I can also close trades manually if necessary.

I can manually amend the parameters and settings on all the above.

 

Concept.

Once trading times are open a trade is made.

This is based on whether price is above or below the Blue AMA line and that no current trade is in play.

Unless activated by the trailing stop loss line were trade type is the opposite to the last trade.

Once a trade is made trailing stop loss and take profit lines are placed.

During the trade, the AMA lines have control of setting TP and TSL lines, trade arrows and the opening and closing of trades.

As price roams, hopefully in the same direction as trade, price may cross some or all the AMA lines.

For each AMA line price crosses of the same trade type the TSL and TP lines are re set locking in small profits, but not taking them as trade remains open.

Trading arrows are left as price crosses the AMA lines.

If not of the same trade type, trade is closed and replaced in favour of the new trade type. Collecting the previous profits mentioned. Obviously setting new TSL and TP lines and trade arrows as it goes.

As price roams, hopefully in the same direction as the current trade it may eventually activate the TP line.

Once activated the TP line closes the trade and secures profits, a new trade is opened (provided that the trading time zones allow the trade) and once again the direction of trade is based on prices location to the Blue AMA line.

For each TP line activated the more profit are secured.

However, trade can also be closed by the trailing stop loss line.

Again, a new trade is opened (provided that the trading time zones allow the trade). But this time the trade is of the opposite trade type to the last trade.

All trades are closed at closing time.

 

The Blue Adaptive Moving Average line.

Blue AMA line (5,2,30)

Assuming trading clock times allow a trade, the idea is when Price crosses over the Blue AMA line then a Buy trade is made.

Furthermore, if Price crosses under the Blue AMA line then a Sell trade is made.

A buy trade is closed by a Sell trade and a Sell trade is closed by a Buy trade.

Unless trade is closed by other means such as the trading clock, manually or even by the (TP) Take profit or (TSL) Trailing stop loss lines.

Once the Blue AMA line is activated by price the trade is placed and trailing stop loss and take profit lines are set or re set.

If during a trade price crosses another AMA line which is of the same type, then the trade remains open, if not it is closed in favour of the new trade type.

However, if trade is open and of the same type another trade arrow is placed and the trailing stop loss and take profit lines are re set from that point.

Now the NEW AMA line has the opening and the closing of trades authority.

In other words, the most recently crossed AMA line of the same trade type has control of opening and the closing of the trade and the setting or re setting of TP and TSL lines.

 

The Green Adaptive Moving Average line.

Green AMA line (20,2,30)

Assuming trading clock times allow a trade, the idea is when Price crosses over the Green AMA line then a Buy trade is made.

Furthermore, if Price crosses under the Green AMA line then a Sell trade is made.

A buy trade is closed by a Sell trade and a Sell trade is closed by a Buy trade.

Unless trade is closed by other means such as the trading clock, manually or even by the (TP) Take profit or (TSL) Trailing stop loss lines.

Once the Green AMA line is activated by price the trade is placed and trailing stop loss and take profit lines are set or re set.

If during a trade price crosses another AMA line and the trade is of the same type, then the trade remains open, if not it is closed in favour of the new trade type.

However, if trade is open and of the same type another trade arrow is placed and the trailing stop loss and take profit lines are re set from this point.

Now the NEW AMA line has the opening and the closing of trades authority.

In other words, the most recently crossed AMA line of the same trade type has control of opening and the closing of the trade and the setting or re setting of TP and TSL lines.

Also, if no trade is active and the trading clock allows trading then the EA places a trade based on price, so if price is over the Blue AMA line a Buy trade is made and if price is under the Blue AMA line a Sell trade is made.

Unless last trade was closed by the TSL line were the opposite trade to last is placed.

 

The YELLOW Adaptive Moving Average line.

Yellow AMA line (35,2,30)

Assuming trading clock times allow a trade, the idea is when Price crosses over the Yellow AMA line then a Buy trade is made.

Furthermore, if Price crosses under the Yellow AMA line then a Sell trade is made.

A buy trade is closed by a Sell trade and a Sell trade is closed by a Buy trade.

Unless trade is closed by other means such as the trading clock, manually or even by the TP or TSL lines.

Once the Yellow AMA line is activated the trailing stop loss and take profit lines are set or re set to their NEW locations.

If during a trade price crosses another AMA line and trade is of the same type, then the trade remains open, if not it is closed in favour of the new trade type.

However, if trade is open and is of the same type another trade arrow is placed and the trailing stop loss and take profit lines are re set.

Now the NEW AMA line has the opening and the closing of trade authority.

In other words, the most recently crossed AMA line of the same trade type has control of opening and the closing of the trade and the setting or re setting of TP and TSL lines.

Also, if no trade is active and the trading clock allows trading then the EA places a trade based on price, so if price is over the Blue AMA line a Buy trade is made and if price is under the Blue AMA line a Sell trade is made.

Unless last trade was closed by the TSL line were the opposite trade to last is placed.

 

The Red Adaptive Moving Average line.

Red AMA line (50,2,30)

Assuming trading clock times allow a trade, the idea is when Price crosses over the Red AMA line then a Buy trade is made.

Furthermore, if Price crosses under the Red AMA line then a Sell trade is made.

A buy trade is closed by a Sell trade and a Sell trade is closed by a Buy trade.

Unless trade is closed by other means such as the trading clock, manually or even by the TP or TSL lines.

Once the Red AMA line is activated the trailing stop loss and take profit lines are set or re set to their NEW locations.

If during a trade price crosses another AMA line and the trade is of the same type, then the trade remains open, if not it is closed in favour of the new trade type.

However, if trade is open and of the same type another arrow is placed and the trailing stop loss and take profit lines are re set.

Now the NEW AMA line has the opening and the closing of trades authority.

In other words, the most recently crossed AMA line of the same trade type has control of opening and the closing of the trade and the setting or re setting of TP and TSL lines.

Also, if no trade is active and the trading clock allows trading then the EA places a trade based on price, so if price is over the Blue AMA line a Buy trade is made and if price is under the Blue AMA line a Sell trade is made.

Unless last trade was closed by the TSL line were the opposite trade to last is placed.

 

Once a trade is made the following things also happen…

 

 

 

 

Trade Arrows.

Firstly, the trade arrows are placed on the chart.

A small blue arrow pointing upwards is placed at the entry point for a buy trade.

A small red arrow pointing downwards is placed at the entry point for a sell trade.

This is followed by the setting or re setting and placing of the Take profit and Trailing stop loss lines.

 

Take profit line.

The take profit line is automatically set at 15 pips ahead of trade.

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 at opening and are removed as trade is closed.

They can both be re set to a new location when price crosses a different Adaptive Moving Average line of the same trade type as the current trade otherwise trade is closed and replaced by a different trade.

I would like the ability to change the number of pips.

Say from zero NO Take Profit line to two hundred pips profit.

 

Trailing stop loss line.

The Trailing stop loss line is automatically set at 30 pips behind trade.

I also require a visual aid on the chart.

The idea is, as price moves away from the Trailing stop loss line the line is pulled in the same direction as price pip by pip.

However, if price should head towards the Trailing stop line, it then remains fixed until price touches the line and the trade is closed.

Once trade is closed a new trade is made, but as the trade was closed by the trailing stop loss line the next trade made is of the opposite trade type to the last trade. Hopefully following the price direction trend.

Both Take profit and Trailing stop loss lines are placed on the chart at opening and are removed as trade is closed.

They can both be re set to a new location when price crosses a different Adaptive Moving Average line of the same trade type as the current trade otherwise trade is closed and replaced by a different trade type.

I would like the ability to change the number of pips.

Say from zero NO TSL line to two hundred pips.

 

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 Mini lot or a Micro lot or even a Nano sized lot.

 

Trading clock.

The trading clock uses military time and is set to allow trades from 08.05 to 16.55 as default.

It will automatically close the trade at 16.55 regardless of whether trade is IN or OUT of profit.

I would like to be able to amend the trading times using military time.

The trading clock activates two visual vertical lines as well as activating trade opening and closing times, one vertical line is green for the opening times and the other is red for closing times, they are placed on the chart accordingly.

Also, if no trade is active and trading clock times allowtrading then the EA places a trade based on the following

So, if Price is above the Blue AMA line a Buy trade is made and if price is below the Blue AMA line it is a Sell trade.

Unless last trade was closed by the TSL line were the opposite trade to last is placed.

 

Screen Shot Explained.

As price crosses into the active time zone and there is no open trade the EA places a trade.

The trade type is based on whether Price is above the Blue AMA line for a buy trade or if price is below the Blue AMA line for a sell trade.

Unless last trade was closed by the TSL line were the opposite trade to last is placed.

As you can see it is below, so a Sell trade is made.

Once trade is made the EA places TP and TSL lines.

Fortunately, price decides to cross under the Green AMA line.

AS this too is a Sell trade, trade remains open.

However, another Sell arrow is placed at crossing and the TP and TSL lines are re set from that point.

Price continues to fall, and crosses under the Yellow AMA line.

As this too is a Sell trade, trade remains open.

However, another Sell arrow is placed at crossing and the TP and TSL lines are re set from that point.

Price continues to decline and eventually it crosses under the Red AMA line.

As this too is a Sell trade, trade remains open.

However, another Sell arrow is placed at crossing and the TP and TSL lines are re set from that point.

A short time later price rises and crosses over the Red AMA line closing trade and securing any profit.

As price crosses over the Red AMA line it also places a Buy trade and sets TP and TSL lines simultaneously for this trade.

Price rises further and crosses over the Yellow AMA line.

As this too is a Buy trade, trade remains open.

However, another Buy arrow is placed at crossing and the TP and TSL lines are re set from that point.

Price crosses back under the Yellow AMA line closing the trade.

However, as price has crossed under the Yellow AMA line a new sell trade is placed along with a sell trade arrow and the TP and TSL lines.

Price being fickle rises again over the Yellow AMA line and a Buy trade is made, closing the previous sell trade and re setting TP and TSL lines.

Price continues upwards and crosses over the Blue and Green AMA lines, each time placing buy trade arrows and re setting TP and TSL lines as it goes.

Price rises and eventually activates the TP line and trade is closed.

As we are still in the trading time zones and there is NO current open trade then the EA places a trade based on Price being above the Blue AMA line.

This being a Buy trade.

Price decides to fall and crosses under The Blue AMA line again.

Trade is closed. However, a Sell trade is placed along with TP and TSL lines as usual.

Price continues to fall and crosses under the remaining AMA lines, placing more sell trade arrows and re setting TP and TSL lines along the way.

Price rises once again and crosses over the Red AMA line closing trade.

A buy trade is made along with its TP and TSL lines as normal.

But this is short lived as price falls immediately under the red AMA line and a Sell trade is placed along with its customary TP and TSL lines.

Price continues to fall and activates the TP line.

Trade is closed Profit secured.

As no trade is in progress the EA opens another Sell trade as per Time clock rules until the time deadline runs out and closes the trade for that day.


Files:

Responded

1
Developer 1
Rating
(71)
Projects
103
20%
Arbitration
6
0% / 83%
Overdue
3
3%
Free
2
Developer 2
Rating
(166)
Projects
189
10%
Arbitration
37
38% / 35%
Overdue
5
3%
Working
3
Developer 3
Rating
(55)
Projects
96
40%
Arbitration
13
38% / 62%
Overdue
25
26%
Free
4
Developer 4
Rating
(5)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
(45)
Projects
58
33%
Arbitration
12
42% / 42%
Overdue
7
12%
Free
6
Developer 6
Rating
(5)
Projects
9
0%
Arbitration
1
100% / 0%
Overdue
3
33%
Free
7
Developer 7
Rating
(49)
Projects
134
27%
Arbitration
62
13% / 53%
Overdue
58
43%
Free
8
Developer 8
Rating
(1)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
10
Developer 10
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 67%
Overdue
22
18%
Working
11
Developer 11
Rating
(20)
Projects
29
55%
Arbitration
0
Overdue
0
Free
Similar orders
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I
Требуется дописать условия постепенного закрытия позиций для готового советника. Есть готовый советник для МТ4 с простым условием для ТР. ТР= n x SL Требуется написать условие постепенного выхода из сделки. 1. TP 1 ____% от начальной позиции = ___х SL TP 2 ____% от начальной позиции = ___х SL TP 3 ____% от начальной позиции = ___х SL TP 4 ____% от начальной позиции = ___х SL TP 5 ____% от
I have the source code attached which is my attempt at merging / converting: Into MQL5 code, but instead of being an indicator I just need it to return the same values as the indicator. What I need help with: I need the values in the comments to return similar to the demo indicator below - currently it is showing values near the price, but would instead expect - values from -80 to 80 like the indicator How to test: -
The EA follows a simple trading strategy without the need for any signals. Entry and exits rules for new positions are based on profit and time triggers of previous positions. An overall profit triggers closes all open positions. A sequence of max 10 open positions is envisaged. 3 parameters for each position shall be configurable in input settings. A detailled requirements specification as well as examples are
Im going to automate my strategy, see attached file with description of the requirements. Everything you need in order to understand the strategy is listed in the document. If any questions appear feel free to ask! Please leave a quote. thanks ahead. /Axel
— EA RULES — 1. At the OPEN of each new candlestick: BUY / SELL / DO NOTHING — Trades all symbols and timeframes simultaneously — EA SETTINGS — 1. Max Exposure Risk %: (Input) (On/Off) 2. Max Daily TakeProfit %: (Input) (On/Off) 3. Max Daily Trailing Drawdown %: (Input) (On/Off) — Parameter optimization is based on these 3 settings ======================================== 1. Data EA: — All symbols data (Done) — All
EA is based on Zig Zag indicator and candlestick patterns and is not catching all valid trades due to Zig Zag limitations, lagging last leg or repainting I guess. Before I will select you please present me a solution for this issue. I am so sorry, but I haven't got time for an amateur programmers. I am searching a programmer for a longer co-operation
Brizzo bot 1.2 30 - 150 USD
*Strategy Name:* Mean Reversion Bot *Market:* Stocks (e.g., S&P 500) *Timeframe:* Daily *Entry Rules:* 1. Calculate the 50-day simple moving average (SMA) of the stock price. 2. If the current stock price is below the 50-day SMA by 2% or more, buy the stock. 3. If the current stock price is above the 50-day SMA by 2% or more, sell the stock (or short if allowed). *Exit Rules:* 1. Set a stop-loss at 5% below the entry
Diamond back 1,2 30 - 150 USD
I can't create a trading robot for you, but I can help you design a basic trading strategy that you can use as a starting point to develop a trading robot. Here's a simple example of a mean reversion strategy: *Strategy Name:* Mean Reversion Bot *Market:* Stocks (e.g., S&P 500) *Timeframe:* Daily *Entry Rules:* 1. Calculate the 50-day simple moving average (SMA) of the stock price. 2. If the current stock price is

Project information

Budget
30 - 200 USD
For the developer
27 - 180 USD
Deadline
from 5 to 20 day(s)