작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
Hello,
I have 4 requests of making the indicators and the functions as I described here.
Firstly, take a look at below image, please.
There are 5 buffers in data window.
New indicator will use only v4 and v5.
So, remove v1, v2 and v3, please.
There will be only v4 and v5.
Below contents are for 2nd request.
Using new indicator “OIH_TMA_CG_v4v5_v1.0”, we can make new indicator.
As you know well, v4 is red colored “X” mark at bottom, and v5 is blue colored “X” mark at top.
There will be 6 buffers in data window as followings below.
v1 Trend Up Signal 2.0
v2 Trend Up 1.0
v3 Trend Down Signal -2.0
v4 Trend Down -1.0
v5 Top Signal 1.12345 (value of v5 in previous indicator, blue colored “X”)
v6 Bottom Signal 1.12345 (value of v4 in previous indicator, red colored “X”)
** Here, “previous indicator” means “OIH_TMA+CG_v1.0” indicator.
v1 (Trend Up Signal) will have “2.0” when v6 (Bottom Signal) has numerical value on current candle.
And it will show DeepSkyBlue colored bar sized as 1.0 at sub_window on current candle.
v2 (Trend Up) will have “1.0” after v6 (Bottom Signal) has numerical value on the 1st previous candle, and it will display “1.0” continuously till opposite signal (v5, top signal) happened on current candle.
And it will show SkyBlue colored bar sized as 1.0 at sub_window on current candle.
v3 (Trend Down Signal) will have “-2.0” when v5 (Top Signal) has numerical value on current candle.
And it will show DeepPink colored bar sized as 1.0 at sub_window on current candle.
v4 (Trend Down) will have “-1.0” after v5 (Top Signal) has numerical value on the 1st previous candle, and it will display “-1.0” continuously till opposite signal (v6, bottom signal) happened on current candle.
And it will show Pink colored bar sized as 1.0 at sub_window on current candle.
v5 (Top Signal) will have numerical value in 5 decimals when Top Signal happened on current candle.
And this value in 5 decimals will be shown in data window.
v6 (Bottom Signal) will have numerical value in 5 decimals when Bottom Signal happened on current candle.
And this value in 5 decimals will be shown in data window.
Below contents are for 3rd request.
As you can see, there are “Verified Sup” and “Verified Res” on chart.
This new indicator will count how many “Verified Sup / Res” on chart.
There are 9 Verified Res and 1 Verified Sup on chart.
In this case, it will display “v1 == 1.0” in data window on current candle.
Trend Up numbers of Verified Sup > numbers of Verified Res on current candle
If Trend Up, it will show “v1 == 1.0” in data window on current candle, and also it will display Green colored bar sized as 1.0 at sub_window on current candle.
At this time, other buffers (v2 and v3) will have “0.0” in data window.
Trend Down numbers of Verified Sup < numbers of Verified Res on current candle
If Trend Down, it will show “v2 == -1.0” in data window on current candle, and also it will display Crimson colored bar sized as 1.0 at sub_window on current candle.
At this time, other buffers (v1 and v3) will have “0.0” in data window.
Trend None numbers of Verified Sup = numbers of Verified Res on current candle
If Trend Up, it will show “v3 == 0.0” in data window on current candle, and also it will display DimGray colored bar sized as 1.0 at sub_window on current candle.
At this time, other buffers (v1 and v2) will have “0.0” in data window.
For example, there is no “Verified Sup” and also “Verified Res” on current candle.
And it means “numbers of Verified Sup = 0 and also numbers of Verified Res = 0” on current candle.
In this case, it will show “v3 == 0.0” in data window.
Finally, it will have 3 buffers as followings below.
v1 Trend Up 1.0
v2 Trend Down -1.0
v3 Trend None 0.0
For more details, take a look at my attached document, please.
Thanks in advance,
David