Writing of an Expert Advisor based on RSI Stock and MACD

MQL5 专家

指定

HI, I am looking for someone to help create an Expert Advisor (EA) for MetaTrader 5 that evaluates financial market data to place buy or sell trades based on predefined technical analysis criteria applied to closed candle data. It is to be used on any forex pair, metal or crypto. 

## Buy Signal Criteria

1. Bullish Momentum: All three conditions must be true - 
   - 9-period EMA > 21-period EMA
   - 21-period EMA > 55-period EMA
2. Stochastic Oscillator:
   - %K main line has crossed above the %D signal line
   - Both %K and %D have crossed above 20 but not crossed 80
3. Relative Strength Index (RSI):
   - RSI > 50
4. MACD Crossover:
   - MACD signal line has crossed above the MACD main line

## Trade Execution for Buy Signal
- Place a buy trade using maximum lots (risking 1% of account balance).
- Generate alerts (on-screen pop-up, audio, printed statement).

## Exit Conditions for Buy Trade
- Take profit achieved at a 1:1.5 risk-to-reward ratio, or
- Stochastic %K and %D crossed above 80 with %K below %D.

## Sell Signal Criteria

1. Bearish Momentum: All three conditions must be true -
   - 9-period EMA < 21-period EMA
   - 21-period EMA < 55-period EMA
2. Stochastic Oscillator:
   - %K main line has crossed below the %D signal line
   - Both %K and %D have crossed below 80 but not crossed 20
3. Relative Strength Index (RSI):
   - RSI < 50
4. MACD Crossover:
   - MACD signal line has crossed below the MACD main line

## Trade Execution for Sell Signal
- Place a sell trade using maximum lots (risking 1% of account balance).
- Generate alerts (on-screen pop-up, audio, printed statement).

## Exit Conditions for Sell Trade
- Take profit achieved at a 1:1.5 risk-to-reward ratio, or
- Stochastic %K and %D crossed below 20 with %K above %D.

## Additional Requirements
- Use data only from completed candles for accuracy.
- Alerts must specify which conditions triggered the signal and confirm the criteria.

# Steps

1. Implement EMA crossover checks for determining bullish/bearish momentum.
2. Evaluate conditions on Stochastic, RSI, and MACD indicators for buy/sell signals.
3. Execute trades following the specified risk management strategy.
4. Implement alerting system for notifications on trade conditions and execution.
5. Ensure trade execution uses only closed candle data for decision-making.

# Output Format

- Provide a comprehensive EA script for MetaTrader 5.
- Include detailed comments within the code for clarity on implementation.
- Ensure flexibility for parameter adjustments in the future.

# Examples

No specific examples are provided, but use dynamic testing to validate EA with historical market data.

# Notes

- The strategy described solely applies to the MetaTrader 5 platform.
- Aim for modular code structure to simplify future modifications.

反馈

1
开发者 1
等级
(99)
项目
102
59%
仲裁
0
逾期
0
空闲
2
开发者 2
等级
(227)
项目
323
24%
仲裁
19
63% / 16%
逾期
1
0%
繁忙
3
开发者 3
等级
(45)
项目
62
23%
仲裁
10
20% / 30%
逾期
6
10%
工作中
4
开发者 4
等级
(10)
项目
9
11%
仲裁
5
0% / 80%
逾期
2
22%
工作中
5
开发者 5
等级
(4)
项目
3
0%
仲裁
1
0% / 0%
逾期
0
空闲
6
开发者 6
等级
(2)
项目
3
33%
仲裁
3
33% / 33%
逾期
0
空闲
7
开发者 7
等级
(1208)
项目
1606
47%
仲裁
52
71% / 12%
逾期
37
2%
工作中
8
开发者 8
等级
(9)
项目
9
0%
仲裁
0
逾期
0
空闲
9
开发者 9
等级
(382)
项目
540
53%
仲裁
26
54% / 23%
逾期
6
1%
已载入
10
开发者 10
等级
(2191)
项目
2768
62%
仲裁
117
45% / 25%
逾期
425
15%
已载入
11
开发者 11
等级
(516)
项目
784
63%
仲裁
33
27% / 45%
逾期
23
3%
空闲
12
开发者 12
等级
(8)
项目
10
30%
仲裁
1
100% / 0%
逾期
0
空闲
13
开发者 13
等级
(1892)
项目
3501
88%
仲裁
73
40% / 15%
逾期
267
8%
空闲
14
开发者 14
等级
(310)
项目
518
47%
仲裁
29
10% / 45%
逾期
139
27%
空闲
15
开发者 15
等级
(29)
项目
32
22%
仲裁
3
67% / 0%
逾期
0
工作中
16
开发者 16
等级
(7)
项目
5
0%
仲裁
4
25% / 25%
逾期
0
已载入
17
开发者 17
等级
(149)
项目
268
35%
仲裁
12
25% / 58%
逾期
42
16%
工作中
18
开发者 18
等级
(5)
项目
5
0%
仲裁
1
100% / 0%
逾期
1
20%
工作中
19
开发者 19
等级
(528)
项目
603
33%
仲裁
33
39% / 45%
逾期
9
1%
繁忙
20
开发者 20
等级
(42)
项目
88
14%
仲裁
34
26% / 56%
逾期
36
41%
已载入
21
开发者 21
等级
(69)
项目
214
71%
仲裁
6
83% / 0%
逾期
1
0%
工作中
22
开发者 22
等级
项目
0
0%
仲裁
0
逾期
0
空闲
23
开发者 23
等级
项目
1
0%
仲裁
3
0% / 33%
逾期
0
工作中
24
开发者 24
等级
(4)
项目
4
0%
仲裁
0
逾期
0
空闲
25
开发者 25
等级
(5)
项目
7
14%
仲裁
2
0% / 0%
逾期
1
14%
工作中
26
开发者 26
等级
(2525)
项目
3190
66%
仲裁
77
48% / 14%
逾期
341
11%
空闲
27
开发者 27
等级
项目
0
0%
仲裁
0
逾期
0
空闲
28
开发者 28
等级
(592)
项目
1395
59%
仲裁
31
77% / 0%
逾期
10
1%
工作中
29
开发者 29
等级
项目
0
0%
仲裁
0
逾期
0
空闲
30
开发者 30
等级
(241)
项目
245
71%
仲裁
2
100% / 0%
逾期
0
空闲
31
开发者 31
等级
(69)
项目
146
34%
仲裁
11
9% / 55%
逾期
26
18%
空闲
相似订单
I have a few more projects to delegate, but I need to complete this one first. Once it’s done, I’ll be ready to shift my focus to the next ones and ensure everything runs smoothly
FisherMan EA 30 - 200 USD
Forex robot which will trader behalf of myself and kill market which will be trader USDJPY, Us30,EURUSD and many more.The market must be killed by the robot which I will create
I have a few more projects I want to hand out, but I need to finish this one first. Once this is wrapped up, I’ll be ready to focus on the next ones and make sure everything is handled smoothly
I need to purchase a Bot with it's source code that is based on combined SMC+wyckoff theory+ price actions+ macroeconomics+market sessions strategies the bot must be plug and play it must have powerful news filters and equity protection work on all kind of assets with it's parameters and which is favourable for propfirm trading accounts Provide a proof a backetesting video at least for past few months
Ea converter 30 - 80 USD
I want an EA that could work on a mobile an laptop at the same time... So i need a programmer who already has one to sell me an i need a demo before pachase
I previously requested this EA, but it was not delivered. I had to file for arbitration, and I do not want to waste time again. I need a serious and experienced developer who can provide a working demo within 1 day before full delivery. EA Logic: Range Definition: The EA creates a range based on the highest high and lowest low within a set time (e.g., 00:00 - 02:00). Once the range is set, the EA waits for a
Hi, I am looking to purchase an existing EA that is working profitably on live account.Please comment with the basic information of the ea and the past real account history ( at least 1 year) .Please only respond if you have an existing working EA that is working, im not developing a new ea. The EA have to be in scalping mode. Im looking to buy the EA together with the source code
Hi, im looking to purchase an existing EA that is working profitably on live account. Please only respond if you have an existing working EA that is working, im not developing a new ea. The EA have to be in scalping mode and best if it trade on Gold, if not currency pairs is fine too. Im looking to buy the EA together with the source code
Guys this EA suppose to trade base on retirement or pullback but and take trade after the price crosses fast moving average and wait for bullish or bearish confirmation to take a trade please help me.fix this and and this who is selected must be able I need to change two or three things like news filter and time filter also the EA must display time frame or the pair I'm trading horizontal from 5M to 4 hours at the
Pivot Points E. A. 30 - 100 USD
I need one small E. A with these few numbers of inputs. 1. Starting Date ( Working days for EA ) 2. Working Till Date 3. Daily Starting Time Of EA 4. Daily End Time Of EA. 5. Pivot Point Auto Detection. True / False ( If we set it true, EA will put current candle opening price automatically, if we set it false, we will put value manually). This pivot point will be only for reference. Not for trade. 6. Pivot Point

项目信息

预算
50 - 150 USD
开发人员
45 - 135 USD