Presentation of the COMBOS indicator First of all, this indicator must detect price situations (color alerts). The indicator should display a history in a second window. And he must finally create buy or sell alerts (COMBO ALERT). It should only work on the m1 timeframe. Only chart price values (and different timeframes) are needed to create alerts. For each candle, the indicator must calculate color alerts over several timeframes. It must detect alerts with a unique formula. The display of the results must be visible in a second window, as is the case for other indicators such as the Rsi, the Macd or the stochastic. Attached is a text file that describes the indicator I want to create. Thanks in advance. --------------------------------------------------------------------------------------------------------------------------------- COLOR ALERTS Color alerts are not buy or sell alerts. They only reflect a situation. This alert formula can be defined as a modified bullish (or bearish) engulfment. The calculation of these color alerts is done at the close of the candles. These color alerts will be displayed in the history. Color alerts should be calculated for all selected timeframes. A color alert is created with the price values of several candles. The color alert also depends on a price level, identified on the chart by a horizontal line. The detected color alert will also have to respect a condition relating to previous candles. Finally, the indicator will have to detect these color alerts only on timeframes authorized to detect color alerts (indicated in the indicator settings). CALCULATION FORMULAS Definition of values to use: Calculation Candle >> Y Candle Candle preceding candle Y >> Candle Y(-1) Calculation candle close price level >> F level Y(-1) >> L(-1) candle low price level Y(-1) >> H(-1) candle high price level Lowest price level of Y and Y(-1) >> L candles High price level of candles Y and Y(-1) >> H Purchase line price level >> AA Sales line price level >> VV Lowest price level of previous "x" candles L >> xL Highest price level of previous "x" candles H >> xH A bullish color alert is detected like this: - F => H(-1) - F => AA - L =< AA - L =< xL A bearish color alert is detected like this: - F =< L(-1) - F =< VV - H => VV - H => xH The color alert must be identified on 1 second window of the indicator, as are the values of the macd or the Rsi. This color alert must be displayed in a second window, as is the case for other indicators such as the Rsi, the Macd or the stochastic. COMBO ALERT Following the detection of these color alerts, the indicator can create buy or sell alerts (COMBO ALERTS). By default, all color alerts are displayed. An indicator parameter will only display color alerts that have created a COMBO ALERT. --------------------------------------------------------------------------------------------------------------------------------- HISTORY For practical reasons, the indicator will only work on the 1min timeframe. The history should not be displayed when a timeframe other than 1min is selected on the screen. This history must be used to display color alerts, as well as purchase or sale alerts. The history must be displayed in a second window, as is the case for other indicators such as the Rsi, the Macd or the stochastic. DISPLAYING COLOR ALERTS First of all, the previously calculated color alerts must be displayed in this history. The history should have several horizontal lines, representing several different timeframes: - Each timeframe line will calculate its own color alert. For example, the 5min line will calculate if the close of the 5min candle creates a color alert. Thus, all timeframes between 5min and 15min will have their own history line: - 1 history line for the 5min, for the 6min, for the 10min, for the 12min and a last line for the 15min. The indicator settings should allow setting the highest and lowest timeframe used. I created a screenshot to show you what I imagined for its graphic visualization. I let you manage the aesthetics of the graphic. Detected alerts should be displayed with a color code: - Blue for a validated bullish alert - Yellow for a validated bearish alert 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 color alerts created during the last 48 hours. COLOR ALERT DISPLAY DURATION As a reminder, the display of these color alerts (and the history) must only be done when the 1min timeframe is selected in the graph. If 1 color alert is detected on the 5min timeframe, the history should show a color during and under the next 60 1min candles. One parameter of the indicator must make it possible to choose the display duration. INVALIDATION PRICE Color alerts will stop appearing after these 60 candles (by default). In addition, they may also cease to appear if the value of the prize exceeds: - For a buy alert, the price level L - For a sell alert, the price level H DISPLAY OF COLOR ALERTS THAT HAVE CREATED A COMBO A parameter must make it possible to display only the color alerts having created a COMBO. Thus, if this parameter is validated, an isolated 5min color alert should not be displayed when this parameter is activated. --------------------------------------------------------------------------------------------------------------------------------- COMBO ALERTS This COMBO ALERT is the main focus of this indicator. This COMBO ALERT must be displayed in the history, with alert arrows (bullish or bearish). CLASSIFICATION OF TIMEFRAMES, from largest to smallest To create a COMBO ALERT, the indicator must respect the consecutive order of the timeframes used in the history. The following ranking is the order of timeframes to know if 2 timeframes are consecutive. - 1min – 2min – 3min – 4min – 5min – 6min – 10min – 12min – 15min – 20min – 30min etc…… 2 timeframes are consecutive if they respect the order of the classification above, and if they are side by side in this same classification. - 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. - Finally, the 3min, 4min, 5min and 10min timeframes are not consecutive timeframes. CONDITIONS FOR CREATING A COMBO ALERT - If at least 2 color alerts have been created under the same 1min candle - If, under this same 1min candle, at least 2 color alerts have consecutive timeframes - A COMBO ALERT will need to be created. - The COMBO ALERT must be displayed as long as the conditions for creating a COMBO ALERT are met. - And as with color alerts, the display of this COMBO ALERT will cease to be displayed if the price reaches its invalidation price. - The COMBO ALERT will be identified by a directional arrow, up or down --------------------------------------------------------------------------------------------------------------------------------- SETTINGS The indicator settings should be as follows. They must be editable by the user. 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". All on/off settings must be done by double-clicking. The other configurable values must be in data or via a drop-down panel. History (in hours) 48 (value) Minimum timeframe for detection of color alerts 5min (by drop-down menu) Maximum timeframe for detection of color alerts 60min (by drop-down menu) Duration of visibility of color alerts in minutes 60min (value in minutes) - Other alert settings Minimum number of COMBOs 3 (value) Number of level pairs 2 (value) Parameter x 20 (value) Show only color alerts that created a COMBO Off - Alerts (only for COMBO ALERTS) Display Alerts On Audible Alerts On Board Alerts On - Colors Blue Chart Bullish Alerts Color Chart Bearish Alerts Color Yellow Color of historical bullish color alerts Blue Color of historical bearish color alerts Yellow Blue bullish alert level lines color Color of bearish alert level lines Yellow I would like all the parameters concerning the color and the thickness of the characters to be set in the color tab of the indicator.