工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Solid Support/Resistance Lines#1:
At period end (ex: at end of week), indicator will draw a solid horizontal line (red support line#1) across the length of the period, at the lowest price point of the period – if trend is UP (see below);
moreover, draw a solid horizontal line (blue resistance line#1), at the highest price point of the period – if trend is DWN (see below).
Note#2: There should be no simultaneous support and resistance lines visible on prior periods; instead, indicator will only show the support line if the trend is UP, or resistance line if trend is DWN.
Dotted Support/Resistance Lines#2:
At period beginning, draw a dotted horizontal line (red support line#2) across the length of the period, as an extension of the prior period’s red support line#1; moreover, draw a dotted horizontal line (blue resistance line#2) across the length of the period, as an extension of the prior period’s blue resistance line#1.Note#1: If chart candlestick is in current period (ex: any H4 in this current week), the indicator will draw the dotted lines, just as it does with all prior periods.
Trend Direction
If at week end (period end), the chart candlestick (H4) at the end of the week ends lower than red support line#2, the trend has reversed to DWN; RED ARROW appears at this point, and only the blue resistance lines start to appear on succeeding charts, till another reversal (like below) occurs.
If at week end (period end), the chart candlestick (H4) at the end of the week ends higher than blue resistance line #1, the trend has reversed to UP; BLUE ARROW appears at this point, and only the red support lines start to appear on succeeding charts, till another reversal (like above) occurs.
Pip Distance Comments from S/R#2 Line and from Trend Reversal Arrow
Pip Distance Comments from Trend Reversal Arrow
Chart will comment a dynamic field of pips distance from reversal point, the red arrow marking when the chart candlestick ends the week lower than support line#2, or the blue arrow marking when the candlestick ends the week higher than resistance line#2.
/////
An example of a period break indicator is attached, though it does not have the S/R lines, Arrows, and Comments that I wish for.
You may modify the attached indicator or create your own.