CROSS-Line The indicator name must be CROSS-Line -------------------------------------------------------------------------------------------------------------------- Indicator Objectives Its objective is to create alerts. To create alerts, the indicator must use: Price values ​​from a candlestick As well as the "horizontal line" object from the MT5 platform. The alerts must be displayed in a second window, below the chart. The indicator must have a parameter for the historical data size. Finally, it will only display alerts located within a specific time range (time filter). ------------------------------------------------------------------------------------------------------------------- Time Filter This filter will always be active (on/off switching is unnecessary). The time filter will define a time range. Outside this time range, the indicator must not display alerts. A first parameter will define the start of the time range (7 AM 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. The indicator will then display and generate alerts only between these two times. ------------------------------------------------------------------------------------------------------------------- History Size By default, the history size should be 1000 candles. 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 must be located at the candle numbered 1000th candle. Type of this vertical line: white, size 3, and dotted (default). Attached is an image to illustrate what I want for this horizontal line. -------------------------------------------------------------------------------------------------------------------- Horizontal Lines The horizontal lines used to create alerts must be those of the "Horizontal Lines" object in the MT5 platform. The indicator will generate alerts based on these horizontal lines. After placing one or more horizontal lines on the chart, the indicator must create an alert each time a candlestick crosses one of these horizontal lines. Each time I add a horizontal line to the chart, it must be able to generate alerts when certain conditions are met. The conditions for these alerts are detailed below. ------------------------------------------------------------------------------------------------------------------ Second Window As with other indicators (RSI, Stochastic, etc.), this indicator will display alerts in a second window, below the chart. ------------------------------------------------------------------------------------------------------------------- Conditions for Creating an Alert Attached is an image to illustrate what I want. For Bullish Alerts The lowest price of this candle must be below the horizontal line 28515.55 (the name of the horizontal line was assigned by MT5). The closing price of this candle must be above this same horizontal line 28515.55. Finally, the opening price of this candle must be lower than the closing price of this candle. A bullish alert must be created upon the close of this candle. For bearish alerts: The highest price of this candle must be above the horizontal line 21222.88 (the horizontal line name was assigned by MT5). The closing price of this candle must be below this same horizontal line, 21222.88. Finally, the opening price of this candle must be higher than its closing price. A bearish alert should be created upon the close of this candle. ------------------------------------------------------------------------------------------------------------------- Information panel to display on the chart Attached is an image to illustrate what I want. I want to create a dialog box that will display the following information: The current time The currency name And the current price spread. This dialog box should be displayed on the chart. I do not want to see the titles of the displayed elements (Currencies, Spread, Time). I only want to see the values ​​of these elements (currency name, spread value, and current time). The user should be able to manually move this dialog box on the chart by clicking and dragging the object. This object should not affect the creation of alerts. -------------------------------------------------- -------------------------------------------------- ---------------- Marker Line I want to be able to display vertical lines at specific times. A parameter should allow the user to choose these times. If this parameter includes the times 9:00 AM and 2:00 PM, a vertical line should appear each day on every candlestick with 9:00 AM and 2:00 PM as its time. By default, this vertical line should be blue, size 3, and dotted. -------------------------------------------------- -------------------------------------------------- ---------------- Indicator Parameter Order I want the indicator parameters to be positioned in this order, from top to bottom. I want all "true/false" parameters to be editable by double-clicking. 1) Historical data size (1000 candles by default) Time filter 2) Time filter start: 7:00 AM (default) 3) Time filter end: 9:00 PM (default) Allowed alerts 4) Bullish alerts (true) 5) Bearish alerts (true) Alerts 6) Sound alerts (on by default) 7) Show alert arrows (true) 8) Alerts to the alert board (true) Information board 9) Show currency name (true) 10) Show current time (true) 11) Show current spread (true) Marker line 12) Times: 9:00 AM; 2:00 PM; (Default) -------------------------------------------------------------------------------------------------------------------- Colors Line types and colors must be configured in the "Colors" tab. Bullish alert arrow: Blue / Size 4 Bearish alert arrow: Yellow / Size 4 Vertical line at the end of the history: White, Size 3, and dotted (default). Vertical marker line: Blue, Size 3, and dotted (default). For the dialog box: Is it also possible to configure the colors and text size in the Colors tab? Text size: 15 (default) Text color: White (default) If there are other colors to configure, feel free to choose. ------------------------------------------------------------------------------------------------------------------- Thank you in advance for your work. If you have any questions, feel free to ask me. --------------------------------------------------------------------------------------------------------------------