An MT5 Expert Advisor based on EMA cross S&R line needed

MQL5 EA

명시

This MT5 EA will be based on Crossover of a few of Exponential Moving Average to Support and Resistant Line as follow:


TOOLS

1. Exponential Moving Average 5

2. Exponential Moving Average 21

3. Exponential Moving Average 55

How the EMA works?

-        It will be based on crossover. Case study will be provided later


4. S&R Line 

- S&R Line has different VALUE every single day

- Formula calculation for VALUE of the day as per below (a little bit different for each of instruments);

For Forex : 5 decimals

·                     [ (Yesterday High – Yesterday Low) + 3 PIPS ] / 2 = VALUE of the day

·                     For example on EURUSD (High :  1.15867 , Low : 1.15491),

1.15867 - 1.15491 = 37.6 PIPS,

37.6 + 3 = 40.6

40.6 / 2 = 20.3 PIPS, in this case the value of the day will be 21 PIPS.

Here is the explanation. Since the answer is 20.3, we need to round it to next odd number which is 21. If the answer exactly 21, then that will be the value. If the answer is 22.5, then need to round to the next odd number which is 23

 

For GOLD Spot (XAUUSD) : 2 decimals

·                     [ (Yesterday High – Yesterday Low) + 300 PIPS ] / 2 = VALUE of the day

·                     For example, High : 1769.34 , Low : 1750.73

1769.34 - 1750.73 = 1861 PIPS

1861 + 300 PIPS = 2161

2161 / 2 = 1080.5 PIPS, in this case the VALUE of the day will be 1081 PIPS.

Here is the explanation. Since the answer is 1080.5, we need to round it to next odd number which is 1081. If the answer exactly 1081 then that will be the value. If the answer is 1082.4, then need to round to the next odd number which is 1083

 

For WTI Cash, Spot Crude Oil : 3 decimals

·                     [ (Yesterday High – Yesterday Low) + 30 PIPS ] / 2 = VALUE of the day

·                     For example, High : 81.681 , Low : 79.531

81.681 - 79.531 = 215 PIPS

215 + 30 = 245

245 / 2 = 122.5 PIPS, in this case the value of the day will be 123 PIPS.

Here is the explanation. Since the answer is 122.5, we need to round it to next odd number which is 123. If the answer exactly 123 then that will be the value. If the answer is 124.7, then need to round to the next odd number which is 125


For Index or Indices, for example S&P500 : 1 decimals

·                     [ (Yesterday High – Yesterday Low) + 30 pips ] / 2 = VALUE of the day

·                     For example, High : 4416.1 , Low : 4353.6

4416.1 - 4353.6 = 625 PIPS

625 + 30 = 655

655 / 2 = 327.5 PIPS, in this case the value of the day will be 329 PIPS.

Here is the explanation. Since the answer is 327.5, we need to round it to next odd number which is 329. If the answer exactly 329 then that will be the value. If the answer is 328, then need to round to the next odd number which is 329

 

How the S&R Line works?

-          Actually currently I use Fibonacci but I change the levels to suit my needs so it is for the purpose of Line only. Here are example;

Please refer Picture 1.0

On the Levels section, there sequence will be from 0, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10



Here are the example during Uptrend;

Please refer Picture 1.1

Please refer Picture 1.2

- When in an Uptrend, Base Line is at Low of that particular day and the range of each line to line will be based on VALUE of the day. Only from Base Line 0 to Resistant Line 1, there is a half (0.5).



Here are example during Downtrend;

Please refer Picture 1.3

Please refer Picture 1.4

- During Uptrend if the price making new low of the day, the Base Line and the Resistant Line will be keep changing as well. And same during Downtrend if price making new high of the day, the Base Line and the next Support Line will be keep changing as well

- So basically for confirmation of entry, EMA 5 need to cross the S&R line at least 2 pips.

- EMA 5 is the only one act as confirmation. The other 2 of the EMA just for purpose of telling the trend




TREND

Uptrend

- EMA 21 above EMA 55


Downtrend

- EMA 21 below EMA 55


Entry

- Entry only made on the new open candlestick

- Once the EMA 5 cross the S&R Line, entry on next candlestick if all other rules are tick


Buy Entry Rules ;

1. Uptrend

2. EMA 5 cross at least (2 pips for fx, 20 pips for gold/indices/commodity) above Resistant Line

3. Price already touch or nearest EMA 21 (max 5 pips for fx, 50 pips for gold/indices/commodity) on that day

4. During the activation, candlestick is not closed in the black zone(between EMA21 & EMA55)

5. During the activation, EMA5 is not in the black zone(between EMA21 & EMA55)

6. During the activation, the range between high of the candlestick to next S&R line is above 7 pips

7. During the execution, the range between open candlestick to next S&R Line is above 20 pips

8. Not the last candlestick of the day (during monday-thursday)

9. Not the two last candlestick of the day (during friday)


Sell Entry Rules ;

1. Downtrend

2. EMA 5 cross at least (2 pips for fx, 20 pips for gold/indices/commodity) below Support Line

3. Price already touch or nearest EMA 21 (max 5 pips for fx, 50 pips for gold/indices/commodity) on that day

4. During the activation, candlestick is not closed in the black zone(between EMA21 & EMA55)

5. During the activation, EMA5 is not in the black zone(between EMA21 & EMA55)

6. During the activation, the range between high of the candlestick to next S&R line is above (7 pips for fx, 70 pips for gold/indices/commodity)

7. During the execution, the range between open candlestick to next S&R Line is above (20 pips for fx, 200 pips for gold/indices/commodity)

8. Not the last candlestick of the day (during monday-thursday)

9. Not the two last candlestick of the day (during friday)


Exit Rules

1. Take Profit

- Take Profit will be set to (5 pips for fx, 50 pips for gold/indices/commodity) before the S&R Line

* When ENTRY is based on crossover 0.5 s&r line, TP at 1.0 s&r line and SL at 0/base line

* When ENTRY is based on crossover 1.0 s&r line, TP at 2.0 s&r line and SL at 0/base line

* When ENTRY is based on crossover 2.0 s&r line, TP at 3.0 s&r line and SL at 1.0 s&r line

* When ENTRY is based on crossover 3.0 s&r line, TP at 4.0 s&r line and SL at 2.0 s&r line

* When ENTRY is based on crossover 4.0 s&r line, TP at 5.0 s&r line and SL at 3.0 s&r line


2. Stop Loss

- Stop Loss will be set (5 pips for fx, 50 pips for gold/indices/commodity) more than the S&R Line


3. Manual Cut Loss

- When in Buy position during uptrend, the s&r line for downtrend(from high of the day) will be keep observe if there is a crossover which means potential changing of direction

- Same as when in Sell position, the s&r line for uptrend(from low of the day) will be keep observe if there is a crossover which means potential changing of direction

- Example will be show in case study


Candlestick Activation = Is when EMA 5 complete cross the S&R Line

Candlestick Execution = Is new candlestick after the candlestick activation (To enter the trade)


Case Study rules

Buy Entry at 0.5 Line – All other rules are tick and correct

Please refer Picture 1.5

Rules;

1. Uptrend – MA21 above MA55

2. EMA5 cross 0.5 s&r line(more than 2 pips)

3. Price already touch MA21 on that day

4. During the activation, candlestick is not closed in the black zone(between EMA21 & EMA55)

5. During the activation, EMA5 is not in the black zone(between EMA21 & EMA55)

6. During the activation, the range between high of the candlestick to next S&R line is above 7 pips

7. During the execution, the range between open candlestick to next S&R Line is above 20 pips

8. Not the last candlestick of the day (during monday-thursday)

9. Not the two last candlestick of the day (during friday)



Case Study rules 2.0

Buy Entry at 1.0 Line – All other rules are tick and correct

Please refer Picture 1.6

Rules;

1. Uptrend – MA21 above MA55

2. EMA5 cross 1.0 s&r line(more than 2 pips)

3. Price already touch MA21 on that day

4. During the activation, candlestick is not closed in the black zone(between EMA21 & EMA55)

5. During the activation, EMA5 is not in the black zone(between EMA21 & EMA55)

6. During the activation, the range between high of the candlestick to next S&R line is above 7 pips

7. During the execution, the range between open candlestick to next S&R Line is above 20 pips

8. Not the last candlestick of the day (during monday-thursday)

9. Not the two last candlestick of the day (during friday)



Case study 1.0

Buy
Entry during crossover 0.5 s&r line

TP at 1.0 s&r line

SL at 0/base line

RESULT = HIT TIP

Please refer Picture 1.7



Case study 2.0

Buy
Entry during crossover 1.0 s&r line

TP at 2.0 s&r line

SL at 0/base line

RESULT = HIT TP

Please refer Picture 1.8




Case study 3.0

SELL
Entry during crossover 2.0 s&r line

TP at 3.0 s&r line

SL at 1.0 s&r line

RESULT = HIT TP

Please refer Picture 1.9



Case study 4.0

SELL
Entry during crossover 1.0 s&r line

TP at 2.0 s&r line

SL at 0/Base line

RESULT = HIT SL

Please refer Picture 2.0





Case study 5.0

SELL
Entry during crossover 1.0 s&r line

TP at 2.0 s&r line

SL at 0/Base line

RESULT = Manual Cut Loss

Please refer Picture 2.1



NOTES FOR MANUAL CLOSE

In Uptrend Situation,

- If candle activation happened at 0.5 s&r line, then it will be cut loss when EMA 5 cross any of s&r downtrend line

- If candle activation happened at 1.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 downtrend line

- If candle activation happened at 2.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 downtrend line

- If candle activation happened at 3.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 downtrend line

- If candle activation happened at 4.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 downtrend line

And continuously


In Downtrend situation,

- If candle activation happened at 0.5 s&r line, then it will be cut loss when EMA 5 cross any of s&r uptrend line

- If candle activation happened at 1.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 uptrend line

- If candle activation happened at 2.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 uptrend line

- If candle activation happened at 3.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 uptrend line

- If candle activation happened at 4.0 s&r line, then it will be cut loss when EMA 5 cross 1.0 uptrend line

And continuously




Please note that;

UPTREND means the 0/Base line is at the LOW price of the day

DOWNTREND means the 0/Base line is at the HIGH price of the day


- IF the position carry forward to next day or the day after, the HIGH or LOW for the 0/Base line is determine on HIGH and LOW price since the day of ENTRY position.


파일:

PNG
1.0.png
9.4 Kb
PNG
1.1.png
84.3 Kb
PNG
1.2.png
42.8 Kb
PNG
1.3.png
77.8 Kb
PNG
1.4.png
42.5 Kb
PNG
1.5.png
480.6 Kb

응답함

1
개발자 1
등급
(43)
프로젝트
66
12%
중재
12
58% / 42%
기한 초과
1
2%
무료
2
개발자 2
등급
(71)
프로젝트
103
20%
중재
6
0% / 83%
기한 초과
3
3%
무료
3
개발자 3
등급
(93)
프로젝트
133
35%
중재
13
38% / 31%
기한 초과
32
24%
무료
4
개발자 4
등급
(15)
프로젝트
16
19%
중재
2
0% / 50%
기한 초과
1
6%
무료
5
개발자 5
등급
(568)
프로젝트
641
41%
중재
25
48% / 36%
기한 초과
46
7%
작업중
6
개발자 6
등급
(319)
프로젝트
574
35%
중재
83
31% / 45%
기한 초과
207
36%
무료
7
개발자 7
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
8
개발자 8
등급
(214)
프로젝트
316
34%
중재
63
37% / 40%
기한 초과
102
32%
작업중
9
개발자 9
등급
(162)
프로젝트
289
35%
중재
18
22% / 61%
기한 초과
43
15%
무료
10
개발자 10
등급
(298)
프로젝트
478
40%
중재
105
40% / 24%
기한 초과
82
17%
로드됨
게재됨: 2 코드
11
개발자 11
등급
(69)
프로젝트
146
34%
중재
13
8% / 62%
기한 초과
26
18%
무료
게재됨: 6 코드
12
개발자 12
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
비슷한 주문
Allow me to set the daily trading bias manually to BUY or SELL. Check my defined 4H and 1H trend-alignment conditions. Execute entries based on my 15-minute pullback and continuation rules. Trade only between 06:00 and 16:00 Nigeria time, Monday to Friday. Calculate lot size based on my chosen risk percentage and stop-loss distance. Automatically place stop-loss and take-profit orders. Enforce my daily trade limits
hi, I need a quantower script I need a trailing stop at the 20 ema, And a more complicated version would be a breakout of the Asian session and a retest of the 9ema for an entry and a training stop at the 20 ema
Hi, I’m looking for a **ready-made MT5 scalping EA specifically for Gold (XAUUSD)**. My main requirement is an **HTF scalping strategy**, so I’m looking for an existing robot that is already developed and can be tested before I make the purchase. I’m not looking to build one from scratch at this stage. I would like to first test the EA on a **demo account** to see how it performs under live market conditions and
Title Project Description I am looking for an experienced developer specialized in Python, MetaTrader 5, algorithmic trading systems, market structure and XAUUSD , to work on an existing professional Gold/Forex AI signal platform. The project is already developed and operational. I am NOT looking for a developer to build a new trading system from scratch. The main objective is to improve the existing
Rebate robot 30 - 100 USD
Need rebate robot,for pairs like gbpusd,eurusd,usdjpy,usdchf,Spreads are like around 2.5 pip,MAy be better hedge ea both buy and sell,i will get benifit just from rebate,so try ur best to do what i want,and if u r not expert plz go away plz its not simple job,if u already have the robot so i can test it will be surely selected,also u can get some benifit from this screen shoots that i attached,its from another job in
We are looking for an experienced MQL5 developer or algorithmic trader who already owns a fully developed, functional, and profitable Expert Advisor (EA) specifically designed or successfully tested for Prop Firm trading. We are not looking for someone to develop a new trading robot from scratch. Our priority is to collaborate with someone who already has an operational trading system with a proven track record
I am looking for an experienced MQL5 developer or development team to build a scalable Telegram-to-MT5 copy trading system. The main purpose of the system is to monitor trading signals from my Telegram channel and automatically execute those signals on connected client MT5 accounts. Core Requirements Receive and parse trading signals from Telegram Automatically execute trades on connected MT5 accounts Support more
Hi, I’m looking to develop a custom XAUUSD (Gold) trading EA for MT5. I initially wanted to get an EA, but I don’t currently have a specific trading strategy. I would like help developing a suitable strategy from scratch and then converting it into a fully automated MT5 EA. My account size will be around $1,000. I’m interested in a scalping strategy that can trade during both the London and New York sessions. My main
Sami 30+ USD
I've built the bot as a single-page app that runs the three-step workflow you described. Since the page can't pull live broker data, it runs on simulated 5-minute candles or on a CSV you paste in.I've published the trading bot page. I haven't opened or run it, so I can't confirm the logic behaves as intended. It runs on simulated 5-minute candles (or a CSV you paste in) and builds the 4H and 30M charts from them. How
Thana ram 30 - 200 USD
Hello, I want to develop a custom MT5 Expert Advisor (EA) for XAUUSD Gold. IMPORTANT: I want a proper rule-based automated trading EA, NOT a martingale, grid or guaranteed-profit bot. 1. MARKET & TIMEFRAME - Platform: MT5 - Symbol: XAUUSD only - Main trend timeframe: M15 - Entry timeframe: M5 - Must support broker suffixes such as XAUUSDm, XAUUSD., etc. 2. TREND RULE BUY trend: - M15 price above EMA 50 - EMA 50 above

프로젝트 정보

예산
50+ USD