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
Develop an Expert Advisor (EA) trading tool in MQL5/MT5 that will use both the 8 EMA and 50 MA to detect Bullish and Bearish trends. The detected trend alerts and order entries will be sent to Telegram. The EA will also open order entries based on specific conditions and parameters:
The Bullish Indicator configuration has two conditions (A and B) as shown below: The 8 EMA must be above 50 MA for both A and B conditions:
CONDITION A:
A)
1. 8 EMA must be above 50 MA
2. If the distance range of a candlestick’s HIGH of any currencies is Xpip(s) to Xpip(s) (e.g., 5pips to 12pips) away from the 8 EMA.
3. Then post the currency to telegram (Telegram link info will be provided).
See the “Bull Trend - Shorting opportunity_A” screenshot for additional information.
CONDITION B:
B)
1. 8 EMA must be above 50 MA
2. If the distance range of the 8 EMA for any currency is Xpip(s) to Xpip(s) (e.g., 5pips to 12pips) away from the 50 MA.
3. Then post the currency to telegram (Telegram link info will be provided).
See the “Bull Trend - Shorting opportunity_B” screenshot for additional information.
See below an example of how an A and B signal should be post to telegram for a Bullish trend:
Bullish Trend A
GBP/USD
7pips
Bullish Trend B
GBP/USD
7pips
The Bearish Indicator has two conditions (A or B) ash shown below: The 8 EMA must be below MA 50 for both A and B conditions:
CONDITION A:
A)
1. 8 EMA must be below MA 50
2. If the distance range of a candlestick’s LOW of any currencies is -Xpip(s) to -Xpip(s) (e.g., -5pips to -12pips) away from the 8 EMA.
3. Then post the currency to telegram (Telegram link info will be provided).
CONDITION B:
B)
1. 8 EMA must be below MA 50.
2. If the distance range of the 8 EMA for any currency is -Xpip(s) to -Xpip(s) (e.g., -5pips to -12pips) away from the 50 MA.
3. Then post the currency to telegram (Telegram link info will be provided).
See below an example of how an A and B signal should be post to telegram for a Bearish trend:
Bearish Trend A
GBP/USD
-7pips
Bearish Trend B
GBP/USD
-7pips
This section below contains the conditions and configuration for triggering automated orders:
Bullish Trending Order Entries: 8 EMA must be above MA 50
1. IF 8 EMA is above 50 MA
2. AND, the distance range of the 8 EMA for any currency is Xpip(s) to Xpip(s) (e.g., 5pips to 12pips) away from the 50 MA.
3. AND, the first candlestick that close below 8 EMA
4. THEN, open a SELL order
See the Scenarios I sent to you for clarification:
Bearish Trending Order Entries: 8 EMA must be below MA 50
1. IF 8 EMA is below 50 MA
2. AND, If the distance range of the 8 EMA for any currency is -Xpip(s) to -Xpip(s) (e.g., -5pips to -12pips) away from the 50 MA.
3. AND, the first candlestick must close above 8 EMA
4. THEN, open a BUY order
Create The Parameter Settings below on the EA dashboard:
1. Set EMA: (8)
2. Set MA: (50)
3. Select Indicators: A and/or B
4. Bullish Distance: pip to pip (e.g., 5pips to 12pips)
5. Bearish Distance: -pip to -pip (e.g., -5pips to -12pips)
6. Buy and Sell: pip and -pip
7. Take Profit: pip
8. Stop Loss: pip
All Alerts will be sent to Telegram - The Telegram link information will be provided: