Create an Expert Advisor based on Moving Average and RSI with Trade Management

MQL4 Experts

Job finished

Execution time 7 days
Feedback from customer
Among the many who responded, the way Matt approached attracted me. He is 100% committed to getting what I wanted until its right. It was pleasant working with Matt. I highly recommend him.
Feedback from employee
Excellent Customer! Venkat had great communication and patience whilst I worked on his project. More than happy to work for him again!

Specification

Dear Developer,

I need a EA that will use 2 sets of Moving averages and RSI level to open trades. I need the trade to be managed by moving stoploss and apply some checks before opening the trade. The detailed requirements specification is below: Please get back to me if anything is not clear. 


Input Variable : (i can input values to)

int MAslow (default 50 period)

int MAfast (default 20 period)

int RSIperiod (default 14 period)

int RSIbuyLevel (default is 70)

int RSIsellLevel (default is 30)

double FixedLotSize (default is 0.01)

int SLadjustPips (default is 5 pips)

int MaxOpenTrades (default 10)

int TPTarget : 0 ( no target) , 1 (1x the risk), 2,3,4,5 (default is 0)

int MoneyAtRisk - 0 (no risk management), 1 (1% of balance to risk) ,2,3,4,5 (default is 2)

boolean NewTrades : Yes / No (default No)


Definition:

SMMA - Smootherned moving average

EMA - Exponential moving average


1. Buy trade:

1.1. The program should open a BUY trade based on when SMMA(MAfast) crosses over above EMA(MAslow)AND current RSI(RSIperiod) value >= RSIbuyLevel.

2. Trade mgmt - Stop loss for buy trade:

2.1.When trade is opened, the stop loss must be the LOWER value of a or b:

(a) previous candle Low - SLadjustPips

(b) current value of EMA(MAslow) - SLadjustPips

2.2. For every new candle, the stop loss must move up to value of current EMA(MASlow) - SLadjustPips.

3. Sell trade:

3.1. The program should open a SELL trade based on when SMMA(MAfast) crosses below MA(MASlow) AND current RSI(RSIperiod) <= RSIsellLevel .

4. Trade Mgmt - Stop loss for Sell trade:

4.1. When trade is opened, the stop loss must be the HIGHER value of a or b:

(a) previous candle High + SLadjustPips.

(b) current value of EMA(MAslow) + SLadjustPips

4.2. For every new candle, the stop must move down to value of current EMA (MASlow) + SLadjustPips

5. Buy/Sell Lots Size:

5.1. If MoneyAtRisk is set as 0, take input for FixedLotSize as buy/sell lot size.

5.2. If MoneyAtRisk selection is between 1 to 5, lot size should be calculated by 1% to 5% of the account balance value as risk amount based on previous candle length + SLadjustPips OR 0.01 lot (which ever is bigger).

6. Trade close:

6.1. If TPTarget input value is 1 to 5, then take profit is set as 1 to 5 times the pips at risk. If TPTarget is 0, no target is set and the trade is closed by Stoploss calculation.

6.2. Trade is closed when the price hits the TPTarget OR stoploss level OR closed manually.

6.3. When a trade is closed manually, the variable NewTrades should be set to No.

7. Manual trade:

7.1. If a manual trade is opened, then BOT should be able to take over the stoploss management by applying the same rules for Buy or Sell trade. (see requirements 2, 4, 6).

8. Other rules checked before opening a trade:

8.1. Only 1 trade per currency pair can be open at any given time and time frame.

8.2. If NewTrades is set to No for a currency pair, then no trades can open for that pair. Any open trade must be managed until closure.

8.3. MaxOpenTrades value to be checked against number of all open trades across all currencies before placing a trade and should not allow new trade if its exceeded.

8.4. Values of Lot Size, SLadjustPips, MaxOpenTrades, TPTarget, MoneyAtRisk, NewTrades must be displayed in the chart where EA is running.

8.5. All the above should work on EUR, USD, AUD, GBP, JPY, CHF, NZD, SGD, XAU combination pairs. (especailly lot and SL calculation).


Responded

1
Developer 1
Rating
(166)
Projects
189
10%
Arbitration
37
38% / 35%
Overdue
5
3%
Working
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(127)
Projects
178
31%
Arbitration
16
31% / 63%
Overdue
27
15%
Working
4
Developer 4
Rating
(95)
Projects
141
75%
Arbitration
0
Overdue
2
1%
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(34)
Projects
49
43%
Arbitration
3
0% / 33%
Overdue
14
29%
Free
7
Developer 7
Rating
(362)
Projects
501
41%
Arbitration
145
17% / 73%
Overdue
98
20%
Busy
8
Developer 8
Rating
(555)
Projects
922
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Free
9
Developer 9
Rating
(26)
Projects
34
26%
Arbitration
7
14% / 43%
Overdue
7
21%
Free
10
Developer 10
Rating
(400)
Projects
528
74%
Arbitration
9
44% / 0%
Overdue
24
5%
Free
11
Developer 11
Rating
(538)
Projects
1315
59%
Arbitration
28
82% / 0%
Overdue
10
1%
Free
12
Developer 12
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
13
Developer 13
Rating
(6)
Projects
6
0%
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 - 60 USD
For the developer
27 - 54 USD
Deadline
from 2 to 5 day(s)