NORMAL ALERT This alert can be defined as a modified bullish engulfing. The normal alert is created with 2 candles. To create a normal bullish alert, the close price of the calculation candle must exceed the high price of the previous candle. To create a normal bearish alert, the close price of the calculation candle must exceed the low price of the previous candle. The calculation of these normal alerts is done at the close of each of the candles. ABBREVIATIONS AND SHORTCUTS USED FOR NORMAL ALERT Candle from which the calculation is made Candle Y Candle preceding the Y Y-1 candle Y YY candle close price Y-1 YH-1 Candle High Price Lowest price of Y-1 YL-1 candle CALCULATION FORMULA for a normal alert For a buy alert If YY > YH-1 For a sell alert If YY < YL-1 This indicator will also consist of 3 filters to filter normal alerts: "The Previous Filter" "The COMBO Filter" "The Level Filter" They can all be activated at the same time, or none of them, or even 1 or 2 filters. The indicator will need to meet the conditions of all enabled filters to create an alert. PREVIOUS FILTER This is a filter that can be added to the normal alert. For a buy alert, this filter determines the number of previous candles for which the lowest price of these candles must be higher than the lowest price of the 2 calculation candles. For a sell alert, this filter determines the number of previous candles for which the highest price of these candles must be lower than the highest price of the 2 calculation candles. The "x" value is to be defined by the user in the parameters. The default value of "x" is 20. ABBREVIATIONS AND SHORTCUTS USED FOR THE "PREVIOUS" FILTER Number of previous candles, user defined x Highest price level between Y-2 and Y(-x) PH candles Lowest price level between Y-2 and Y(-x) PL candles Highest price of candle Y-1 YH-1 Lowest price of Y-1 YL-1 candle Lowest price of Y and Y-1 A candles Highest price of Y and Y-1 B candles CALCULATION FORMULA for a normal alert with the "Previous" filter For a purchase alert If PL ≥ A If YY > YH-1 For a sale alert If PH ≤ B If YY < YL-1 LEVEL FILTER This is a filter that can be added to the normal alert. In addition to a normal alert, this filter adds a level condition to validate the alert. This price level will be identified by a horizontal line drawn on the chart. This line must be able to be moved manually "ONLY" by the user, directly in the graph. If the user changes the timeframe of the graph, the value of this level line should not change. The lines should be created in pairs, one for the bullish alert (blue line), and the other for the bearish alert (yellow line). Finally, the user can define the number of level lines to display on the graph. By default, the number of level lines displayed is 2. ABBREVIATIONS AND SHORTCUTS USED FOR THE LEVEL FILTER Candle from which the calculation is made Candle Y Y YY candle close price The NN level line Lowest price of Y and Y-1 A candles Highest price of Y and Y-1 B candles CALCULATION FORMULA FOR A NORMAL ALERT WITH THE "LEVEL" FILTER For a bullish alert: A bullish alert is detected YY > NN A < NN For a bearish alert: A bearish alert is detected YY < NN B > NN THE COMBOS This is a filter that can be added to the normal alert A COMBO alert is created if there are multiple normal alerts on consecutive timeframes. For bullish alerts, COMBOS will be calculated from the lowest price of a 1min candle. Following this, it will be necessary to check if its lowest price has created a normal alert in each authorized timeframe. The authorized timeframes are those configured by the user in the indicator. For each authorized timeframe, the alert detected must respect all the filters activated. CLASSIFICATION OF TIMEFRAMES, from largest to smallest - H2 – H1 – 30min – 20min – 15min – 12min – 10min – 6min – 5min – 4min – 3min – 2min – 1min This ranking is the order of timeframes to know if 2 timeframes are consecutive. CONSECUTIVE TIMEFRAMES - For example, 3min and 4min are 2 consecutive timeframes. - The 12min and the 15min are 2 consecutive timeframes. - The 6min, 10min, 12min and 15min are 4 consecutive timeframes. For information, a COMBO must include a maximum of 8 consecutive timeframes. Example If the low price of the 13:41 candle is 1.55. It will be necessary to check whether this price, at this time, has allowed the creation of a normal alert on the 2min timeframe. Then do the same for the 3min timeframe. Then the same, until the last authorized timeframe. Following this, it will be necessary to check, among the COMBOS authorized, which COMBOS have been created. As a reminder, a COMBO is created with 1 normal alert on a minimum of 2 consecutive timeframes. COMBO VALIDATION EXAMPLES COMBO 2 will only be created if 1 alert per timeframe is created over 2 consecutive timeframes. For instance : - A normal alert is detected on 2min and 3min >> COMBO 2 - A normal alert is detected on 3min and 4min >> COMBO 2 - A normal alert is detected on the 12min and 15min >> COMBO 2 COMBO 3 will be created only if 1 alert per timeframe is created over 3 consecutive timeframes. For instance : - A normal alert is detected on the 2min, on the 3min, and on the 4min. - A normal alert is detected on the 4min, on the 5min, and on the 6min. - A normal alert is detected on the 12min, on the 15min, and on the 20min. COMBO 5 will be created only if 1 alert per timeframe is created over 5 consecutive timeframes. For instance : - A normal alert is detected on the 2min, on the 3min, on the 4min, on the 5min and on the 6min >> COMBO 5. - A normal alert is detected on the 4min, on the 5min, on the 6min, on the 10min and on the 12min >> COMBO 5. - A normal alert is detected on the 6min, on the 10min, on the 12min, on the 15min and on the 20min >> COMBO 5. AUTHORIZED TIMEFRAME FOR COMBOS A COMBO is differentiated according to the number of timeframes it used to be created. For example, a COMBO created with 3 consecutive timeframes (COMBO 3) will only be created with timeframes greater than or equal to 12min (default value). This means that the 12min, 15min and 20min timeframes will allow the creation of a COMBO 3. On the other hand, the 10min, 12min and 15min timeframes will not allow the creation of a COMBO 3, since the 10min timeframe is lower than the 12min timeframe. Three parameters must make it possible to modify the value of these minimum timeframes: - For COMBO 2 >> 20min is its default setting - For COMBO 3 >> 12min is its default setting - For COMBO 4 to COMBO 8 >> 5min is their default setting COMBO ALERTS Following the creation of a COMBO, an alert must be created. - This alert must first be displayed in the graph, in the small table of the graph. - This alert can also create a sound alert. - The creation of an arrow alert on the chart is not required for the creation of a COMBO. - A display in the history is also requested. - Finally, an alert in the Mt5 alert table is requested. THE DURATION OF ALERTS DISPLAYED IN THE GRAPH AND IN THE HISTORY This display duration is 60min by default. A parameter of the indicator will allow the user to modify this duration. HISTORY The indicator must also provide a history. This history will be visible in a second window, as is the case for the indicators "RSI, MACD, etc….." This history will only provide information about COMBOS. If the alert is not a COMBO, it will not be listed in this history. HISTORY DURATION The default history duration should be 48 hours. - This value of "48" must be able to be modified in the parameters. - The history should display each of the alerts created during the last 48 hours. CONFIGURING HISTORY LINES The history lines should be configured like this: - Bullish arrows should appear for buy alerts. - Bullish arrows should appear for sell alerts. There must be as many rows of alerts as the number of timeframes selected that can create COMBOS alerts. DISPLAYING ALERTS IN THE HISTORY For each timeframe line that allowed the creation of a COMBO, the COMBO alerts of the history should be displayed like this: - Bullish arrows should appear for buy alerts. - Bearish arrows should appear for sell alerts. In the history window, only the normal alerts that created a COMBO will be visible. Thus, normal alerts that have not created a COMBO will not be visible. COMBO ALERT DISPLAY DURATION This rule is only valid for the history window. This duration must be able to be modified in the parameters. The alert arrows will be displayed there for a period of 60 minutes. Finally, these alert arrows will stop appearing when the value of the price has exceeded the following value: - For a purchase alert, the point A concerned by the alert - For a sale alert, the point B concerned by the alert DISPLAY IN THE GRAPH I want the following to be displayed in the graph: Alert arrows GRAPHIC ALERT ARROWS Compared to candle Y which made it possible to create the normal alert, the positioning of the alert arrows should be: - Below the candle for a bullish alert - Above the candle for a bearish alert These arrows will only appear for normal alerts detected on the current chart. The display of these graphic arrows can be activated or deactivated by the user. NAME OF THE COMBOS COMBO NAMES COMBOS must be nominated as follows: - The word "COMBO" - Monitoring of the number of alerts that created this COMBO Thus, the name of a COMBO having been created by 3 normal alerts must be called "COMBO 3". This name will be used in the small chart table, which I described just above. It should also be used for naming alerts in the alert table. Finally, I also want to see this name when I hover my mouse over the alerts listed in the history. SETTINGS The values ​​of the parameters below must be able to be modified by the user in the indicator. The order of these parameters should be the same as described below. The default settings should be the same as described below. All configurable values ​​of the indicator will be disabled when the selected value is "0". History (in hours) 48 Maximum timeframe for a normal alert 60min (by drop-down menu) Capital / Batch value in % 10 Graph arrows for normal Off alerts Duration of visibility of alerts in minutes 30min Information board On Minimum Timeframes for COMBOS 2 Combos, Timeframe minimum 20min 3 Combos, Minimum Timeframe 12min >=4 Combos, Minimum Timeframe 5min Filters Level filter (Number of level pairs) 2 COMBO On Filter Previous filter (parameter x) 20 Alerts Normal visible alerts Off Audible Alerts Off Table Alerts Off Visual alerts (only for graph alert arrows) On Colors Blue Chart Bullish Alerts Color Chart Bearish Alerts Color Yellow Color of historical bullish alerts Blue Color of historical bearish alerts Yellow Blue bullish alert level lines color Color of bearish alert level lines Yellow End...........................................................................................................