SR-Line The indicator name should be SR-Line -------------------------------------------------------------------------------------------------------------------- Indicator Objectives Its purpose is to create alerts. It will only use price values ​​to create these alerts. Alerts should be created near horizontal contour lines. Two different types of alerts should be created. Alerts should be displayed in a second window, below the chart. The indicator should have a parameter for the history size. Finally, it will only display alerts within a specific time range (time filter). -------------------------------------------------------------------------------------------------------------------- Time Filter This filter will always be enabled (on/off activation is unnecessary). The time filter will define a time range. Outside of this time range, the indicator should not display alerts. A first parameter will define the start of the time range (7H by default). A second parameter will define the end of the time range (8 PM by default). This time range can be modified by the user. Thus, the indicator will display and create alerts only between these two time periods. -------------------------------------------------------------------------------------------------------------------- History Size By default, the history size should be 1000 candlesticks. At the end of the history, on the left side of the screen, the beginning of the history should be indicated by a vertical line. This vertical line should be located at candlestick number 1005 (1000 + 5). Type (default) of this vertical line: white, size 3, and dotted. -------------------------------------------------------------------------------------------------------------------- Second Window As with other indicators (RSI, Stochastic, etc.), the indicator should display alerts in a second window, below the chart. -------------------------------------------------------------------------------------------------------------------- Horizontal Lines When installing the indicator on the chart, a main horizontal line and two secondary horizontal lines ("High Line" and "Low Line" should be displayed on the chart. When installing the indicator on the chart, the main horizontal line (the middle one) should be placed at the current price of the security. The first secondary line ("High Line"") should be placed above the main line. It should be placed at a distance of 15 pips by default. This value should be modifiable in the indicator settings. The second secondary line ("Low Line"") should be placed below the main line. It should also be placed at a distance of 15 pips by default. Example The horizontal line is placed at the 10.63 level. When installing the indicator on the chart, the default spread value is 15 pips. So, when installed on the chart, the levels of the three lines should be as follows: Main line level: 10.63 High line level: 10.78 (calculated as 10.63 + 0.15) Low line level: 10.48 (calculated as 10.63 – 0.15) ---------------------------------------------------------------------------------------------------------------------- Moving the horizontal lines After installing the indicator on the chart, I want the main line to be able to be moved manually only. To do this, the user must first select the main line, which should allow the three horizontal lines to be moved simultaneously. Then, the user can drag the level of the main line up or down. Finally, by deselecting the main line, none of the three lines should be able to be moved in any way. Changing the indicator parameter values ​​should not change the value of the main horizontal line. To change the level of the main line again, you will need to select the main line again and then move it manually again. -------------------------------------------------------------------------------------------------------------------- Number of Horizontal Lines on the Chart A parameter should define the number of main lines to create on the chart. If this number is 1, only one main line (and its two subsidiary lines) should appear on the chart. If this number is 2, two main lines should appear on the chart. And each of its main lines should have its associated subsidiary lines. By default, two main lines should be created. -------------------------------------------------------------------------------------------------------------------- Types of Alerts Created After being installed on the chart, the indicator must be able to create two types of alerts, independent of each other: Crossing alerts And position alerts The indicator will display the alerts in the second window. These two types of alerts must be displayed on two different lines. -------------------------------------------------------------------------------------------------------------------- Crossing alert - Bullish alert To create a bullish alert, the indicator must meet the following conditions: The closing price of the candlestick must be between the main line and the "High line" The lowest price of the candlestick must be lower than the value of the main line. The closing price of the candlestick must be higher than the opening price of the candlestick. - Bearish Alert To create a bearish alert, the indicator must meet the following conditions: The candle's closing price must be between the main line and the "Low line" The candle's high price must be greater than the main line value. The candle's closing price must be lower than the candle's opening price. Several dedicated parameters (on/off) will allow or disable the creation of these alerts (sound alerts, alert panel alerts, or display alerts). Alert Example If the main line value is 15.85. If the high line value is 16.23. If the candle's closing price is greater than the candle's opening price. If the candle's closing price is greater than the main line value. If the closing price is lower than the high line value. And if the lowest price of the candlestick is lower than the value of the main line. Then a crossing alert should be created, and a blue bullish alert arrow should be displayed. -------------------------------------------------------------------------------------------------------------------- Position alert When the closing price of a candlestick closes between the main line and the "High line", the indicator should display a blue dot. When the closing price of a candlestick closes between the main line and the "Low line", the indicator should display a yellow dot. Several dedicated settings (on/off) will allow or disable the creation of these alerts (sound alerts, alert panel, or display). Example If the value of the main line is 15.85. If the value of the "High line" is 16.23. If the closing price of the candlestick is greater than the value of the main line. If the closing price is lower than the "High Line" value. Then a position alert should be created and a blue dot should be displayed. -------------------------------------------------------------------------------------------------------------------- Indicator Parameter Order I would like the indicator parameters to be positioned in this order, from top to bottom. I would like all "on/off" parameters to be editable by double-clicking. 1) History size (1000 candles by default) Horizontal line settings 2) Line spacing: 15 pips (default) 3) Number of horizontal lines: 2 (default) Time filter 4) Time filter start: 7:00 AM (default) 5) Time filter end: 9:00 PM (default) Crossing alerts (blue and yellow ARROWS) 6) Audible alerts (on by default) 7) Display alert arrows (on by default) 8) Alerts in the alert panel (on by default) Position alerts (blue and yellow DOTS) 9) Audible alerts (off by default) 10) Display position points (on by default) 11) Alerts in the alert panel (on by default) Other 12) ---------------------------------------------------------------------------------------------------------------------- Colors Line types, As well as the colors, these must be configured in the "Colors" tab. Default Bullish alert arrow: Blue / size 4 Bearish alert arrow: Yellow / size 4 Bullish position point: Blue / size 4 Bearish position point: Yellow / size 4 Lines Main horizontal lines: Solid line type / White / size 2 Second horizontal lines: Dotted line type / White / size 1 End of history vertical line: Dashed line type / Beige / size 4 If there are other colors to configure, I'll let you choose. ---------------------------------------------------------------------------------------------------------------------- Thank you in advance for your work. If you have any questions, don't hesitate to ask me.