Indicator that shows support & resistance with dot

MQL4 지표 스크립트

명시

Write an indicator/script that output the following variable:

1. PriceHighBox = #Price_level

2. PriceLowBox = #Price_level

3. PriceBoxDirection = up or down

4. Draw red and blue dots to indicate support and resistance

I'll need the script for this indicator. 

User input:

1. Y pips to define peaks and support,

2. X pips for clearance rule 

Valid scenario A:

A peak has to rise up and down in price by Y amount of pips (user input). Vice versa for support.

[A: The highest price of 3 peaks (for uptrend; 3 peaks cannot be consecutively higher) with [B: one identified support or resistance] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

S_A 

 Valid scenario B:

[A: The Lowest price of 3 supports (for downtrend; 3 supports cannot be consecutively lower) with [B: one identified peak] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

 SB

 Valid scenario C:

[A: The highest price of 3 peaks (for downtrend; 3 peaks cannot be consecutively lower) with [B: one identified support] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

SC

 Valid scenario D:

[A: The Lowest price of 3 supports (for uptrend; 3 supports cannot be consecutively higher) with [B: one identified peak] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

 SD

 

 

 

 

응답함

1
개발자 1
등급
(94)
프로젝트
162
40%
중재
20
15% / 75%
기한 초과
73
45%
무료
2
개발자 2
등급
(195)
프로젝트
395
28%
중재
155
20% / 52%
기한 초과
112
28%
무료
3
개발자 3
등급
(734)
프로젝트
1054
40%
중재
47
49% / 23%
기한 초과
84
8%
무료
4
개발자 4
등급
(46)
프로젝트
73
16%
중재
13
8% / 92%
기한 초과
37
51%
무료
5
개발자 5
등급
(62)
프로젝트
140
46%
중재
19
42% / 16%
기한 초과
32
23%
무료

프로젝트 정보

예산
10 - 20 USD
개발자에게
9 - 18 USD
기한
에서 1  2 일