888 BOT #alerts█ 888 BOT #alerts
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security ()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA, DEMA, AMA or T3.
There are two ways to decrease noise using JMA. Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish, Red: Bearish.
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish, Red: Bearish.
3. Average Directional Index (ADX Classic) and (ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns (SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI.
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish.
6. Moving Average Convergence Divergence (MACD) and (MAC-Z)
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP (volume weighted average price) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume, the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED' wich is calculated according with: '%EQUITY ON EACH ENTRY'. Only works with Stop Loss on 'NORMAL' or 'BOTH' mode.
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ ALERTS
There is an alert for each leverage, therefore a maximum of 8 alerts can be set for 'long' and 8 for 'short', plus an alert to close the trade with Take Profit or Stop Loss in market mode. You can also place Take Profit limit and Stop Loss limit orders a few seconds after filling the position entry order.
- 'MAXIMUM LEVERAGE': It is the maximum allowed multiplier of the % quantity entered on each entry for 1X according to the volume condition.
- 'ADVANCE ALERTS': There is always a time delay from when the alert is triggered until it reaches the exchange and can be between 1-15 seconds. With this parameter, you can advance the alert by the necessary seconds to activate it earlier. In this way it can be synchronized with the exchange so that the execution time of the entry order to the position coincides with the opening of the bar.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 30 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
█ 888 BOT (SPANISH)
Este es un Expert Advisor 'EA' o script de trading automatizado para ‘longs’ y ‘shorts’, el cual, utiliza solo un Take Profit o, en el peor de los casos, un Stop Loss para cerrar el trade.
Es una versión muy mejorada del anterior ‘Repanocha’. No utiliza ‘Trailing Stop’, ni funciones ‘security()’ (aunque usar una función security no significa que el script repinte) y todas las señales son confirmadas, por consiguiente, el script no repinta en modo alertas y es preciso en en el modo backtest.
Aparte de los anteriores indicadores se han añadido algunos más y otras funciones para Stop-Loss, de re-entrada y apalancamiento.
Utiliza 8 indicadores, (muchos ya sabéis sobradamente lo que son, pero por si hay alguien nuevo), son los siguientes:
1. Jurik Moving Average
Es una media móvil creada por Mark Jurik para profesionales la cual elimina el ‘lag’ o retardo de la señal. Es mejor que otras medias móviles como la EMA, DEMA, AMA o T3.
Hay dos formas de disminuir el ruido utilizando JMA. El aumento del parámetro 'LENGTH' hará que JMA se mueva más lentamente y, por lo tanto, reducirá el ruido a expensas de añadir ‘lag’
Los parámetros 'JMA LENGTH', 'PHASE' y 'POWER' ofrecen una forma de seleccionar el equilibrio óptimo entre ‘lag’ y sobre impulso.
Verde : Alcista, Rojo: Bajista.
2. Range filter
Creado por Donovan Wall, su función es la de filtrar o eliminar el ruido y poder determinar mejor la tendencia del precio a corto plazo.
Primero, se calcula un rango de precio promedio uniforme 'SAMPLING PERIOD' para la base del filtro y se multiplica por una cantidad específica 'RANGE MULTIPLIER'.
A continuación, el filtro se calcula ajustando los movimientos de precios que no exceden el rango especificado.
Por último, los rangos objetivo se trazan para mostrar los precios que activarán el movimiento del filtro.
Verde : Alcista, Rojo: Bajista.
3. Average Directional Index (ADX Classic) y (ADX Masanakamura)
Es un indicador diseñado por Welles Wilder para medir la fuerza y dirección de la tendencia del mercado. El movimiento del precio tiene fuerza cuando el ADX tiene pendiente positiva y está por encima de cierto nivel mínimo 'ADX THRESHOLD' y para un periodo dado 'ADX LENGTH'.
El color verde de las barras indica que la tendencia es alcista y que el ADX está por encima del nivel establecido por el threshold.
El color Rojo de las barras indica que la tendencia es bajista y que el ADX está por encima del nivel de threshold.
El color naranja de las barras indica que el precio no tiene fuerza y seguramente lateralizará.
Se puede elegir entre la opción clásica y la creada por un tal 'Masanakamura'. La diferencia principal entre los dos es que en el primero utiliza RMA() y en el segundo SMA() en su cálculo.
4. Parabolic SAR
Este indicador, creado también por Welles Wilder, coloca puntos que ayudan a definir una tendencia. El Parabolic SAR puede seguir al precio por encima o por debajo, la particularidad que ofrece es que cuando el precio toca al indicador, este salta al otro lado del precio (si el Parabolic SAR estaba por debajo del precio salta arriba y viceversa) a una distancia predeterminada por el indicador. En este momento el indicador vuelve a seguir al precio, reduciendo la distancia con cada vela hasta que finalmente es tocado otra vez por el precio y se vuelve a iniciar el proceso. Este procedimiento explica el nombre del indicador: el Parabolic SAR va siguiendo al precio generando una característica forma parabólica, cuando el precio lo toca, se para y da la vuelta (SAR son las siglas en inglés de ‘stop and reverse’), dando lugar a un nuevo ciclo. Cuando los puntos están por debajo del precio, la tendencia es alcista, mientras que los puntos por encima del precio indica una tendencia bajista.
5. RSI with Volume
Este indicador lo creo un tal LazyBear de TV a partir del popular RSI.
El RSI es un indicador tipo oscilador utilizado en análisis técnico y creado también por Welles Wilder que muestra la fuerza del precio mediante la comparación de los movimientos individuales al alza o a la baja de los sucesivos precios de cierre.
LazyBear le añadió un parámetro de volumen que lo hace más preciso al movimiento del mercado.
Una buena forma de usar el RSI es teniendo en cuenta la línea central de 50 'RSI CENTER LINE'. Cuando el oscilador está por encima, la tendencia es alcista y cuando está por debajo la tendencia es bajista.
6. Moving Average Convergence Divergence (MACD) y (MAC-Z)
Fue creado por Gerald Appel. Posteriormente se añadió el histograma para anticipar el cruce de medias. A grandes rasgos podemos decir que el MACD es un oscilador consistente en dos medias móviles que van girando en torno a la línea de cero. La línea del MACD no es más que la diferencia entre una media móvil corta 'MACD FAST MA LENGTH' y una media móvil larga 'MACD SLOW MA LENGTH'. Es un indicador que nos permite tener una referencia sobre la tendencia del activo sobre el cual se está operando, generando de este modo señales de entrada y salida del mercado.
Podemos hablar de mercado alcista cuando el histograma del MACD se sitúe por encima de la línea cero, junto con la línea de señal, mientras que hablaremos de mercado bajista cuando el histograma MACD se situará por debajo de la línea cero.
Está la opción de utilizar el indicador MAC-Z creado por LazyBear que según su autor es más eficaz, por utilizar el parámetro VWAP (precio medio ponderado por volumen) 'Z-VWAP LENGTH' junto con una desviación standard 'STDEV LENGTH' en su cálculo.
7. Volume Condition
El volumen indica el número de participantes en esta guerra entre toros y osos, cuanto más volumen más probabilidad de que se mueva el precio a favor de la tendencia. Un volumen bajo de negociación indica un menor número de participantes e interés por el instrumento en cuestión. Los bajos volúmenes pueden revelar debilidad detrás de un movimiento de precios.
Con esta condición se filtran aquellas señales cuyo volumen es inferior a la SMA de volumen para un periodo 'SMA VOLUME LENGTH' multiplicado por un factor 'VOLUME FACTOR'. Además, determina el apalancamiento utilizado, a más volumen, más participantes, más probabilidad de que se mueva el precio a nuestro favor, es decir, podemos utilizar más apalancamiento. El apalancamiento en este script lo determina las veces que está el volumen por encima de la línea de la SMA.
El apalancamiento máximo es de 8.
8. Bollinger Bands
Este indicador fue creado por John Bollinger y consiste en tres bandas que se dibujan superpuestas al gráfico de evolución del precio.
La banda central es una media móvil, normalmente se emplea una media móvil simple calculada con 20 períodos. ('BB LENGTH' Número de periodos de la media móvil)
La banda superior se calcula sumando al valor de la media móvil simple X veces la desviación típica de la media móvil. ('BB MULTIPLIER' Número de veces la desviación típica de la media móvil)
La banda inferior de calcula restando a la media móvil simple X veces la desviación típica de la media móvil.
la franja comprendida entre las bandas superior e inferior contiene, estadísticamente, casi un 90% de las posibles variaciones del precio, lo que significa que cualquier movimiento del precio fuera de las bandas tiene especial relevancia.
En términos prácticos, las bandas de Bollinguer se comporta como si de una banda elástica se tratara de manera que, si el precio las toca, éste tiene mucha probabilidad de rebotar.
En ocasiones, después de rellenarse la orden de entrada, el precio se devuelve hacia el lado contrario. Si toca la banda de Bollinger se rellena otra orden en la misma dirección de la posición para mejorar el precio medio de entrada, (% MINIMUM BETTER PRICE': Precio mínimo para que se ejecute la re-entrada y que sea mejor que el precio de la posición anterior en un % dado) de esta manera damos una oportunidad al trade de que el Take Profit se ejecute antes. La desventaja es que se dobla el tamaño de la posición. 'ACTIVATE DIVIDE TP': Divide el tamaño del TP a la mitad. Más probabilidad de que se cierre el trade pero menos ganancias.
█ STOP LOSS y RISK MANAGEMENT.
Una buena gestión de las pérdidas o gestión del riesgo es lo que puede hacer que tu cuenta suba o se liquide en poco tiempo.
El % de riesgo es el porcentaje de nuestro capital que estamos dispuestos a perder por operación. Este se aconseja que debe estar comprendido entre un 1-5%.
% Risk = (% Stop Loss x % Equity per trade x Leverage) / 100
Primero se calcula la estrategia con Stop Loss, después se determina el riesgo por operación y a partir de ahí se calcula el monto por operación y no al revés.
En este script puedes usar un Stop Loss normal o uno según el ATR. También activar la opción de que salte antes si se alcanza el porcentaje de riesgo. '% RISK ALLOWED' que se calcula según el porcentaje de tu capital para 1X '% EQUITY ON EACH ENTRY'.
'STOP LOSS CONFIRMED': Solamente se activa el Stop Loss si el cierre de la barra anterior se encuentra en la condición de límite de pérdidas. Es útil para evitar que se dispare el SL cuando hacen un ‘pump’ para barrer Stops y luego se devuelve el precio a la normalidad.
█ ALERTAS
Hay una alerta por cada apalancamiento por consiguiente como máximo se pueden poner 8 alertas para 'long' y 8 para 'short', más una alerta para cerrar el trade con Take Profit o Stop Loss en modo market. Tambien puedes colocar las ordenes Take Profit limit y Stop Loss limit unos segundos despues de rellenar la orden de entrada de la posición.
- 'MAXIMUM LEVERAGE': Es el máximo multiplicador permitido de la cantidad introducida para 1X según la condición de volumen.
- 'ADVANCE ALERTS': Siempre existe un retardo de tiempo desde que se activa la alerta hasta que llega al exchange y que puede ser de entre 1-15 segundos. Con este párametro se puede adelantar la alerta los segundos necesarios para que se active antes. De este modo se puede sincronizar con el exchange para que el tiempo de ejecución de la orden de entrada a la posición coincida con la de apertura de la barra.
Los settings son para Bitcoin en Binance Futures (BTC:USDTPERP) en 30 minutos.
Para otro pares y otras temporalidades se tienen que ajustar las opciones de nuevo. Además para dentro de un mes, los ajustes serán otros distintos ya que el mercado y la tendencia es cambiante.
In den Scripts nach "bear" suchen
888 BOT #backtest█ 888 BOT #backtest
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA, DEMA, AMA or T3.
There are two ways to decrease noise using JMA. Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish, Red: Bearish.
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish, Red: Bearish.
3. Average Directional Index (ADX Classic) and (ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns (SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI.
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish.
6. Moving Average Convergence Divergence (MACD) and (MAC-Z)
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP (volume weighted average price) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume, the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ BACKTEST
The objective of the Backtest is to evaluate the effectiveness of our strategy. A good Backtest is determined by some parameters such as:
- RECOVERY FACTOR: It consists of dividing the 'net profit' by the 'drawdown’. An excellent trading system has a recovery factor of 10 or more; that is, it generates 10 times more net profit than drawdown.
- PROFIT FACTOR: The ‘Profit Factor’ is another popular measure of system performance. It's as simple as dividing what win trades earn by what loser trades lose. If the strategy is profitable then by definition the 'Profit Factor' is going to be greater than 1. Strategies that are not profitable produce profit factors less than one. A good system has a profit factor of 2 or more. The good thing about the ‘Profit Factor’ is that it tells us what we are going to earn for each dollar we lose. A profit factor of 2.5 tells us that for every dollar we lose operating we will earn 2.5.
- SHARPE: (Return system - Return without risk) / Deviation of returns.
When the variations of gains and losses are very high, the deviation is very high and that leads to a very poor ‘Sharpe’ ratio. If the operations are very close to the average (little deviation) the result is a fairly high 'Sharpe' ratio. If a strategy has a 'Sharpe' ratio greater than 1 it is a good strategy. If it has a 'Sharpe' ratio greater than 2, it is excellent. If it has a ‘Sharpe’ ratio less than 1 then we don't know if it is good or bad, we have to look at other parameters.
- MATHEMATICAL EXPECTATION: (% winning trades X average profit) + (% losing trades X average loss).
To earn money with a Trading system, it is not necessary to win all the operations, what is really important is the final result of the operation. A Trading system has to have positive mathematical expectation as is the case with this script: ME = (0.87 x 30.74$) - (0.13 x 56.16$) = (26.74 - 7.30) = 19.44$ > 0
The game of roulette, for example, has negative mathematical expectation for the player, it can have positive winning streaks, but in the long term, if you continue playing you will end up losing, and casinos know this very well.
PARAMETERS
'BACKTEST DAYS': Number of days back of historical data for the calculation of the Backtest.
'ENTRY TYPE': For '% EQUITY' if you have $ 10,000 of capital and select 7.5%, for example, your entry would be $ 750 without leverage. If you select CONTRACTS for the 'BTCUSDT' pair, for example, it would be the amount in 'Bitcoins' and if you select 'CASH' it would be the amount in $ dollars.
'QUANTITY (LEVERAGE 1X)': The amount for an entry with X1 leverage according to the previous section.
'MAXIMUM LEVERAGE': It's the maximum allowed multiplier of the quantity entered in the previous section according to the volume condition.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 30 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
█ 888 BOT (SPANISH)
Este es un Expert Advisor 'EA' o script de trading automatizado para ‘longs’ y ‘shorts’, el cual, utiliza solo un Take Profit o, en el peor de los casos, un Stop Loss para cerrar el trade.
Es una versión muy mejorada del anterior ‘Repanocha’. No utiliza ‘Trailing Stop’, ni funciones ‘security()’ (aunque usar una función security no significa que el script repinte) y todas las señales son confirmadas, por consiguiente, el script no repinta en modo alertas y es preciso en en el modo backtest.
Aparte de los anteriores indicadores se han añadido algunos más y otras funciones para Stop-Loss, de re-entrada y apalancamiento.
Utiliza 8 indicadores, (muchos ya sabéis sobradamente lo que son, pero por si hay alguien nuevo), son los siguientes:
1. Jurik Moving Average
Es una media móvil creada por Mark Jurik para profesionales la cual elimina el ‘lag’ o retardo de la señal. Es mejor que otras medias móviles como la EMA, DEMA, AMA o T3.
Hay dos formas de disminuir el ruido utilizando JMA. El aumento del parámetro 'LENGTH' hará que JMA se mueva más lentamente y, por lo tanto, reducirá el ruido a expensas de añadir ‘lag’
Los parámetros 'JMA LENGTH', 'PHASE' y 'POWER' ofrecen una forma de seleccionar el equilibrio óptimo entre ‘lag’ y sobre impulso.
Verde : Alcista, Rojo: Bajista.
2. Range filter
Creado por Donovan Wall, su función es la de filtrar o eliminar el ruido y poder determinar mejor la tendencia del precio a corto plazo.
Primero, se calcula un rango de precio promedio uniforme 'SAMPLING PERIOD' para la base del filtro y se multiplica por una cantidad específica 'RANGE MULTIPLIER'.
A continuación, el filtro se calcula ajustando los movimientos de precios que no exceden el rango especificado.
Por último, los rangos objetivo se trazan para mostrar los precios que activarán el movimiento del filtro.
Verde : Alcista, Rojo: Bajista.
3. Average Directional Index (ADX Classic) y (ADX Masanakamura)
Es un indicador diseñado por Welles Wilder para medir la fuerza y dirección de la tendencia del mercado. El movimiento del precio tiene fuerza cuando el ADX tiene pendiente positiva y está por encima de cierto nivel mínimo 'ADX THRESHOLD' y para un periodo dado 'ADX LENGTH'.
El color verde de las barras indica que la tendencia es alcista y que el ADX está por encima del nivel establecido por el threshold.
El color Rojo de las barras indica que la tendencia es bajista y que el ADX está por encima del nivel de threshold.
El color naranja de las barras indica que el precio no tiene fuerza y seguramente lateralizará.
Se puede elegir entre la opción clásica y la creada por un tal 'Masanakamura'. La diferencia principal entre los dos es que en el primero utiliza RMA() y en el segundo SMA() en su cálculo.
4. Parabolic SAR
Este indicador, creado también por Welles Wilder, coloca puntos que ayudan a definir una tendencia. El Parabolic SAR puede seguir al precio por encima o por debajo, la particularidad que ofrece es que cuando el precio toca al indicador, este salta al otro lado del precio (si el Parabolic SAR estaba por debajo del precio salta arriba y viceversa) a una distancia predeterminada por el indicador. En este momento el indicador vuelve a seguir al precio, reduciendo la distancia con cada vela hasta que finalmente es tocado otra vez por el precio y se vuelve a iniciar el proceso. Este procedimiento explica el nombre del indicador: el Parabolic SAR va siguiendo al precio generando una característica forma parabólica, cuando el precio lo toca, se para y da la vuelta (SAR son las siglas en inglés de ‘stop and reverse’), dando lugar a un nuevo ciclo. Cuando los puntos están por debajo del precio, la tendencia es alcista, mientras que los puntos por encima del precio indica una tendencia bajista.
5. RSI with Volume
Este indicador lo creo un tal LazyBear de TV a partir del popular RSI.
El RSI es un indicador tipo oscilador utilizado en análisis técnico y creado también por Welles Wilder que muestra la fuerza del precio mediante la comparación de los movimientos individuales al alza o a la baja de los sucesivos precios de cierre.
LazyBear le añadió un parámetro de volumen que lo hace más preciso al movimiento del mercado.
Una buena forma de usar el RSI es teniendo en cuenta la línea central de 50 'RSI CENTER LINE'. Cuando el oscilador está por encima, la tendencia es alcista y cuando está por debajo la tendencia es bajista.
6. Moving Average Convergence Divergence (MACD) y (MAC-Z)
Fue creado por Gerald Appel. Posteriormente se añadió el histograma para anticipar el cruce de medias. A grandes rasgos podemos decir que el MACD es un oscilador consistente en dos medias móviles que van girando en torno a la línea de cero. La línea del MACD no es más que la diferencia entre una media móvil corta 'MACD FAST MA LENGTH' y una media móvil larga 'MACD SLOW MA LENGTH'. Es un indicador que nos permite tener una referencia sobre la tendencia del activo sobre el cual se está operando, generando de este modo señales de entrada y salida del mercado.
Podemos hablar de mercado alcista cuando el histograma del MACD se sitúe por encima de la línea cero, junto con la línea de señal, mientras que hablaremos de mercado bajista cuando el histograma MACD se situará por debajo de la línea cero.
Está la opción de utilizar el indicador MAC-Z creado por LazyBear que según su autor es más eficaz, por utilizar el parámetro VWAP (precio medio ponderado por volumen) 'Z-VWAP LENGTH' junto con una desviación standard 'STDEV LENGTH' en su cálculo.
7. Volume Condition
El volumen indica el número de participantes en esta guerra entre toros y osos, cuanto más volumen más probabilidad de que se mueva el precio a favor de la tendencia. Un volumen bajo de negociación indica un menor número de participantes e interés por el instrumento en cuestión. Los bajos volúmenes pueden revelar debilidad detrás de un movimiento de precios.
Con esta condición se filtran aquellas señales cuyo volumen es inferior a la SMA de volumen para un periodo 'SMA VOLUME LENGTH' multiplicado por un factor 'VOLUME FACTOR'. Además, determina el apalancamiento utilizado, a más volumen, más participantes, más probabilidad de que se mueva el precio a nuestro favor, es decir, podemos utilizar más apalancamiento. El apalancamiento en este script lo determina las veces que está el volumen por encima de la línea de la SMA.
El apalancamiento máximo es de 8.
8. Bollinger Bands
Este indicador fue creado por John Bollinger y consiste en tres bandas que se dibujan superpuestas al gráfico de evolución del precio.
La banda central es una media móvil, normalmente se emplea una media móvil simple calculada con 20 períodos. ('BB LENGTH' Número de periodos de la media móvil)
La banda superior se calcula sumando al valor de la media móvil simple X veces la desviación típica de la media móvil. ('BB MULTIPLIER' Número de veces la desviación típica de la media móvil)
La banda inferior de calcula restando a la media móvil simple X veces la desviación típica de la media móvil.
la franja comprendida entre las bandas superior e inferior contiene, estadísticamente, casi un 90% de las posibles variaciones del precio, lo que significa que cualquier movimiento del precio fuera de las bandas tiene especial relevancia.
En términos prácticos, las bandas de Bollinger se comporta como si de una banda elástica se tratara de manera que, si el precio las toca, éste tiene mucha probabilidad de rebotar.
En ocasiones, después de rellenarse la orden de entrada, el precio se devuelve hacia el lado contrario. Si toca la banda de Bollinger se rellena otra orden en la misma dirección de la posición para mejorar el precio medio de entrada, (% MINIMUM BETTER PRICE': Precio mínimo para que se ejecute la re-entrada y que sea mejor que el precio de la posición anterior en un % dado) de esta manera damos una oportunidad al trade de que el Take Profit se ejecute antes. La desventaja es que se dobla el tamaño de la posición. 'ACTIVATE DIVIDE TP': Divide el tamaño del TP a la mitad. Más probabilidad de que se cierre el trade pero menos ganancias.
█ STOP LOSS y RISK MANAGEMENT.
Una buena gestión de las pérdidas o gestión del riesgo es lo que puede hacer que tu cuenta suba o se liquide en poco tiempo.
El % de riesgo es el porcentaje de nuestro capital que estamos dispuestos a perder por operación. Este se aconseja que debe estar comprendido entre un 1-5%.
% Risk = (% Stop Loss x % Equity per trade x Leverage) / 100
Primero se calcula la estrategia con Stop Loss, después se determina el riesgo por operación y a partir de ahí se calcula el monto por operación y no al revés.
En este script puedes usar un Stop Loss normal o uno según el ATR. También activar la opción de que salte antes si se alcanza el porcentaje de riesgo. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': Solamente se activa el Stop Loss si el cierre de la barra anterior se encuentra en la condición de límite de pérdidas. Es útil para evitar que se dispare el SL cuando hacen un ‘pump’ para barrer Stops y luego se devuelve el precio a la normalidad.
█ BACKTEST
El objetivo del Backtest es evaluar la eficacia de nuestra estrategia. Un buen Backtest lo determinan algunos parámetros como son:
- RECOVERY FACTOR: Consiste en dividir el ‘beneficio neto’ entre el ‘drawdown’. Un excelente sistema de trading tiene un recovery factor de 10 o más; es decir, genera 10 veces más beneficio neto que drawdown.
- PROFIT FACTOR: El ‘Profit Factor’ es otra medida popular del rendimiento de un sistema. Es algo tan simple como dividir lo que ganan las operaciones con ganancias entre lo que pierden las operaciones con pérdidas. Si la estrategia es rentable entonces por definición el ‘Profit Factor’ va a ser mayor que 1. Las estrategias que no son rentables producen factores de beneficio menores que uno. Un buen sistema tiene un profit factor de 2 o más. Lo bueno del ‘Profit Factor’ es que nos dice lo que vamos a ganar por cada dolar que perdemos. Un profit factor de 2.5 nos dice que por cada dolar que perdamos operando vamos a ganar 2.5.
- SHARPE: (Retorno sistema – Retorno sin riesgo) / Desviación de los retornos.
Cuando las variaciones de ganancias y pérdidas son muy altas, la desviación es muy elevada y eso conlleva un ratio de ‘Sharpe’ muy pobre. Si las operaciones están muy cerca de la media (poca desviación) el resultado es un ratio de ‘Sharpe’ bastante elevado. Si una estrategia tiene un ratio de ‘Sharpe’ mayor que 1 es una buena estrategia. Si tiene un ratio de ‘Sharpe’ mayor que 2, es excelente. Si tiene un ratio de ‘Sharpe’ menor que 1 entonces no sabemos si es buena o mala, hay que mirar otros parámetros.
- MATHEMATICAL EXPECTATION:(% operaciones ganadoras X ganancia media) + (% operaciones perdedoras X pérdida media).
Para ganar dinero con un sistema de Trading, no es necesario ganar todas las operaciones, lo verdaderamente importante es el resultado final de la operativa. Un sistema de Trading tiene que tener esperanza matemática positiva como es el caso de este script.
El juego de la ruleta, por ejemplo, tiene esperanza matemática negativa para el jugador, puede tener rachas positivas de ganancias, pero a la larga, si se sigue jugando se acabará perdiendo, y esto los casinos lo saben muy bien.
PARAMETROS
'BACKTEST DAYS': Número de días atrás de datos históricos para el calculo del Backtest.
'ENTRY TYPE': Para % EQUITY si tienes 10000$ de capital y seleccionas 7.5% tu entrada sería de 750$ sin apalancamiento. Si seleccionas CONTRACTS para el par BTCUSDT sería la cantidad en Bitcoins y si seleccionas CASH sería la cantidad en dólares.
'QUANTITY (LEVERAGE 1X)': La cantidad para una entrada con apalancamiento X! según el apartado anterior.
'MAXIMUM LEVERAGE': Es el máximo multiplicador permitido de la cantidad introducida en el apartado anterior según la condición de volumen.
Los settings son para Bitcoin en Binance Futures (BTC:USDTPERP) en 30 minutos.
Para otro pares y otras temporalidades se tienen que ajustar las opciones de nuevo. Además para dentro de un mes, los ajustes serán otros distintos ya que el mercado y la tendencia es cambiante.
Delta Volume Columns Pro [LucF]█ OVERVIEW
This indicator displays volume delta information calculated with intrabar inspection on historical bars, and feed updates when running in realtime. It is designed to run in a pane and can display either stacked buy/sell volume columns or a signal line which can be calculated and displayed in many different ways.
Five different models are offered to reveal different characteristics of the calculated volume delta information. Many options are offered to visualize the calculations, giving you much leeway in morphing the indicator's visuals to suit your needs. If you value delta volume information, I hope you will find the time required to master Delta Volume Columns Pro well worth the investment. I am confident that if you combine a proper understanding of the indicator's information with an intimate knowledge of the volume idiosyncrasies on the markets you trade, you can extract useful market intelligence using this tool.
█ WARNINGS
1. The indicator only works on markets where volume information is available,
Please validate that your symbol's feed carries volume information before asking me why the indicator doesn't plot values.
2. When you refresh your chart or re-execute the script on the chart, the indicator will repaint because elapsed realtime bars will then recalculate as historical bars.
3. Because the indicator uses different modes of calculation on historical and realtime bars, it's critical that you understand the differences between them. Details are provided further down.
4. Calculations using intrabar inspection on historical bars can only be done from some chart timeframes. See further down for a list of supported timeframes.
If the chart's timeframe is not supported, no historical volume delta will display.
█ CONCEPTS
Chart bars
Three different types of bars are used in charts:
1. Historical bars are bars that have already closed when the script executes on them.
2. The realtime bar is the current, incomplete bar where a script is running on an open market. There is only one active realtime bar on your chart at any given time.
The realtime bar is where alerts trigger.
3. Elapsed realtime bars are bars that were calculated when they were realtime bars but have since closed.
When a script re-executes on a chart because the browser tab is refreshed or some of its inputs are changed, elapsed realtime bars are recalculated as historical bars.
Why does this indicator use two modes of calculation?
Historical bars on TradingView charts contain OHLCV data only, which is insufficient to calculate volume delta on them with any level of precision. To mine more detailed information from those bars we look at intrabars , i.e., bars from a smaller timeframe (we call it the intrabar timeframe ) that are contained in one chart bar. If your chart Is running at 1D on a 24x7 market for example, most 1D chart bars will contain 24 underlying 1H bars in their dilation. On historical bars, this indicator looks at those intrabars to amass volume delta information. If the intrabar is up, its volume goes in the Buy bin, and inversely for the Sell bin. When price does not move on an intrabar, the polarity of the last known movement is used to determine in which bin its volume goes.
In realtime, we have access to price and volume change for each update of the chart. Because a 1D chart bar can be updated tens of thousands of times during the day, volume delta calculations on those updates is much more precise. This precision, however, comes at a price:
— The script must be running on the chart for it to keep calculating in realtime.
— If you refresh your chart you will lose all accumulated realtime calculations on elapsed realtime bars, and the realtime bar.
Elapsed realtime bars will recalculate as historical bars, i.e., using intrabar inspection, and the realtime bar's calculations will reset.
When the script recalculates elapsed realtime bars as historical bars, the values on those bars will change, which means the script repaints in those conditions.
— When the indicator first calculates on a chart containing an incomplete realtime bar, it will count ALL the existing volume on the bar as Buy or Sell volume,
depending on the polarity of the bar at that point. This will skew calculations for that first bar. Scripts have no access to the history of a realtime bar's previous updates,
and intrabar inspection cannot be used on realtime bars, so this is the only to go about this.
— Even if alerts only trigger upon confirmation of their conditions after the realtime bar closes, they are repainting alerts
because they would perhaps not have calculated the same way using intrabar inspection.
— On markets like stocks that often have different EOD and intraday feeds and volume information,
the volume's scale may not be the same for the realtime bar if your chart is at 1D, for example,
and the indicator is using an intraday timeframe to calculate on historical bars.
— Any chart timeframe can be used in realtime mode, but plots that include moving averages in their calculations may require many elapsed realtime bars before they can calculate.
You might prefer drastically reducing the periods of the moving averages, or using the volume columns mode, which displays instant values, instead of the line.
Volume Delta Balances
This indicator uses a variety of methods to evaluate five volume delta balances and derive other values from those balances. The five balances are:
1 — On Bar Balance : This is the only balance using instant values; it is simply the subtraction of the Sell volume from the Buy volume on the bar.
2 — Average Balance : Calculates a distinct EMA for both the Buy and Sell volumes, and subtracts the Sell EMA from the Buy EMA.
3 — Momentum Balance : Starts by calculating, separately for both Buy and Sell volumes, the difference between the same EMAs used in "Average Balance" and
an SMA of double the period used for the "Average Balance" EMAs. The difference for the Sell side is subtracted from the difference for the Buy side,
and an RSI of that value is calculated and brought over the −50/+50 scale.
4 — Relative Balance : The reference values used in the calculation are the Buy and Sell EMAs used in the "Average Balance".
From those, we calculate two intermediate values using how much the instant Buy and Sell volumes on the bar exceed their respective EMA — but with a twist.
If the bar's Buy volume does not exceed the EMA of Buy volume, a zero value is used. The same goes for the Sell volume with the EMA of Sell volume.
Once we have our two intermediate values for the Buy and Sell volumes exceeding their respective MA, we subtract them. The final "Relative Balance" value is an ALMA of that subtraction.
The rationale behind using zero values when the bar's Buy/Sell volume does not exceed its EMA is to only take into account the more significant volume.
If both instant volume values exceed their MA, then the difference between the two is the signal's value.
The signal is called "relative" because the intermediate values are the difference between the instant Buy/Sell volumes and their respective MA.
This balance flatlines when the bar's Buy/Sell volumes do not exceed their EMAs, which makes it useful to spot areas where trader interest dwindles, such as consolidations.
The smaller the period of the final value's ALMA, the more easily you will see the balance flatline. These flat zones should be considered no-trade zones.
5 — Percent Balance : This balance is the ALMA of the ratio of the "On Bar Balance" value, i.e., the volume delta balance on the bar (which can be positive or negative),
over the total volume for that bar.
From the balances and marker conditions, two more values are calculated:
1 — Marker Bias : It sums the up/down (+1/‒1) occurrences of the markers 1 to 4 over a period you define, so it ranges from −4 to +4, times the period.
Its calculation will depend on the modes used to calculate markers 3 and 4.
2 — Combined Balances : This is the sum of the bull/bear (+1/−1) states of each of the five balances, so it ranges from −5 to +5.
█ FEATURES
The indicator has two main modes of operation: Columns and Line .
Columns
• In Columns mode you can display stacked Buy/Sell volume columns.
• The buy section always appears above the centerline, the sell section below.
• The top and bottom sections can be colored independently using eight different methods.
• The EMAs of the Buy/Sell values can be displayed (these are the same EMAs used to calculate the "Average Balance").
Line
• Displays one of seven signals: the five balances or one of two complementary values, i.e., the "Marker Bias" or the "Combined Balances".
• You can color the line and its fill using independent calculation modes to pack more information in the display.
You can thus appraise the state of 3 different values using the line itself, its color and the color of its fill.
• A "Divergence Levels" feature will use the line to automatically draw expanding levels on divergence events.
Default settings
Using the indicator's default settings, this is the information displayed:
• The line is calculated on the "Average Balance".
• The line's color is determined by the bull/bear state of the "Percent Balance".
• The line's fill gradient is determined by the advances/declines of the "Momentum Balance".
• The orange divergence dots are calculated using discrepancies between the polarity of the "On Bar Balance" and the chart's bar.
• The divergence levels are determined using the line's level when a divergence occurs.
• The background's fill gradient is calculated on advances/declines of the "Marker Bias".
• The chart bars are colored using advances/declines of the "Relative Balance". Divergences are shown in orange.
• The intrabar timeframe is automatically determined from the chart's timeframe so that a minimum of 50 intrabars are used to calculate volume delta on historical bars.
Alerts
The configuration of the marker conditions explained further is what determines the conditions that will trigger alerts created from this script. Note that simply selecting the display of markers does not create alerts. To create an alert on this script, you must use ALT-A from the chart. You can create multiple alerts triggering on different conditions from this same script; simply configure the markers so they define the trigger conditions for each alert before creating the alert. The configuration of the script's inputs is saved with the alert, so from then on you can change them without affecting the alert. Alert messages will mention the marker(s) that triggered the specific alert event. Keep in mind, when creating alerts on small chart timeframes, that discrepancies between alert triggers and markers displayed on your chart are to be expected. This is because the alert and your chart are running two distinct instances of the indicator on different servers and different feeds. Also keep in mind that while alerts only trigger on confirmed conditions, they are calculated using realtime calculation mode, which entails that if you refresh your chart and elapsed realtime bars recalculate as historical bars using intrabar inspection, markers will not appear in the same places they appeared in realtime. So it's important to understand that even though the alert conditions are confirmed when they trigger, these alerts will repaint.
Let's go through the sections of the script's inputs.
Columns
The size of the Buy/Sell columns always represents their respective importance on the bar, but the coloring mode for tops and bottoms is independent. The default setup uses a standard coloring mode where the Buy/Sell columns are always in the bull/bear color with a higher intensity for the winning side. Seven other coloring modes allow you to pack more information in the columns. When choosing to color the top columns using a bull/bear gradient on "Average Balance", for example, you will have bull/bear colored tops. In order for the color of the bottom columns to continue to show the instant bar balance, you can then choose the "On Bar Balance — Dual Solid Colors" coloring mode to make those bars the color of the winning side for that bar. You can display the averages of the Buy and Sell columns. If you do, its coloring is controlled through the "Line" and "Line fill" sections below.
Line and Line fill
You can select the calculation mode and the thickness of the line, and independent calculations to determine the line's color and fill.
Zero Line
The zero line can display dots when all five balances are bull/bear.
Divergences
You first select the detection mode. Divergences occur whenever the up/down direction of the signal does not match the up/down polarity of the bar. Divergences are used in three components of the indicator's visuals: the orange dot, colored chart bars, and to calculate the divergence levels on the line. The divergence levels are dynamic levels that automatically build from the line's values on divergence events. On consecutive divergences, the levels will expand, creating a channel. This implementation of the divergence levels corresponds to my view that divergences indicate anomalies, hesitations, points of uncertainty if you will. It precludes any attempt to identify a directional bias to divergences. Accordingly, the levels merely take note of divergence events and mark those points in time with levels. Traders then have a reference point from which they can evaluate further movement. The bull/bear/neutral colors used to plot the levels are also congruent with this view in that they are determined by the line's position relative to the levels, which is how I think divergences can be put to the most effective use. One of the coloring modes for the line's fill uses advances/declines in the line after divergence events.
Background
The background can show a bull/bear gradient on six different calculations. As with other gradients, you can adjust its brightness to make its importance proportional to how you use it in your analysis.
Chart bars
Chart bars can be colored using seven different methods. You have the option of emptying the body of bars where volume does not increase, as does my TLD indicator, and you can choose whether you want to show divergences.
Intrabar Timeframe
This is the intrabar timeframe that will be used to calculate volume delta using intrabar inspection on historical bars. You can choose between four modes. The three "Auto-steps" modes calculate, from the chart's timeframe, the intrabar timeframe where the said number of intrabars will make up the dilation of chart bars. Adjustments are made for non-24x7 markets. "Fixed" mode allows you to select the intrabar timeframe you want. Checking the "Show TF" box will display in the lower-right corner the intrabar timeframe used at any given moment. The proper selection of the intrabar timeframe is important. It must achieve maximal granularity to produce precise results while not unduly slowing down calculations, or worse, causing runtime errors. Note that historical depth will vary with the intrabar timeframe. The smaller the timeframe, the shallower historical plots you will be.
Markers
Markers appear when the required condition has been confirmed on a closed bar. The configuration of the markers when you create an alert is what determines when the alert will trigger. Five markers are available:
• Balances Agreement : All five balances are either bullish or bearish.
• Double Bumps : A double bump is two consecutive up/down bars with +/‒ volume delta, and rising Buy/Sell volume above its average.
• Divergence confirmations : A divergence is confirmed up/down when the chosen balance is up/down on the previous bar when that bar was down/up, and this bar is up/down.
• Balance Shifts : These are bull/bear transitions of the selected signal.
• Marker Bias Shifts : Marker bias shifts occur when it crosses into bull/bear territory.
Periods
Allows control over the periods of the different moving averages used to calculate the balances.
Volume Discrepancies
Stock exchanges do not report the same volume for intraday and daily (or higher) resolutions. Other variations in how volume information is reported can also occur in other markets, namely Forex, where volume irregularities can even occur between different intraday timeframes. This will cause discrepancies between the total volume on the bar at the chart's timeframe, and the total volume calculated by adding the volume of the intrabars in that bar's dilation. This does not necessarily invalidate the volume delta information calculated from intrabars, but it tells us that we are using partial volume data. A mechanism to detect chart vs intrabar timeframe volume discrepancies is provided. It allows you to define a threshold percentage above which the background will indicate a difference has been detected.
Other Settings
You can control here the display of the gray dot reminder on realtime bars, and the display of error messages if you are using a chart timeframe that is not greater than the fixed intrabar timeframe, when you use that mode. Disabling the message can be useful if you only use realtime mode at chart timeframes that do not support intrabar inspection.
█ RAMBLINGS
On Volume Delta
Volume is arguably the best complement to interpret price action, and I consider volume delta to be the most effective way of processing volume information. In periods of low-volatility price consolidations, volume will typically also be lower than normal, but slight imbalances in the trend of the buy/sell volume balance can sometimes help put early odds on the direction of the break from consolidation. Additionally, the progression of the volume imbalance can help determine the proximity of the breakout. I also find volume delta and the number of divergences very useful to evaluate the strength of trends. In trends, I am looking for "slow and steady", i.e., relatively low volatility and pauses where price action doesn't look like world affairs are being reassessed. In my personal mythology, this type of trend is often more resilient than high-volatility breakouts, especially when volume balance confirms the general agreement of traders signaled by the low-volatility usually accompanying this type of trend. The volume action on pauses will often help me decide between aggressively taking profits, tightening a stop or going for a longer-term movement. As for reversals, they generally occur in high-volatility areas where entering trades is more expensive and riskier. While the identification of counter-trend reversals fascinates many traders to no end, they represent poor opportunities in my view. Volume imbalances often precede reversals, but I prefer to use volume delta information to identify the areas following reversals where I can confirm them and make relatively low-cost entries with better odds.
On "Buy/Sell" Volume
Buying or selling volume are misnomers, as every unit of volume transacted is both bought and sold by two different traders. While this does not keep me from using the terms, there is no such thing as “buy only” or “sell only” volume. Trader lingo is riddled with peculiarities.
Divergences
The divergence detection method used here relies on a difference between the direction of a signal and the polarity (up/down) of a chart bar. When using the default "On Bar Balance" to detect divergences, however, only the bar's volume delta is used. You may wonder how there can be divergences between buying/selling volume information and price movement on one bar. This will sometimes be due to the calculation's shortcomings, but divergences may also occur in instances where because of order book structure, it takes less volume to increase the price of an asset than it takes to decrease it. As usual, divergences are points of interest because they reveal imbalances, which may or may not become turning points. To your pattern-hungry brain, the divergences displayed by this indicator will — as they do on other indicators — appear to often indicate turnarounds. My opinion is that reality is generally quite sobering and I have no reliable information that would tend to prove otherwise. Exercise caution when using them. Consequently, I do not share the overwhelming enthusiasm of traders in identifying bullish/bearish divergences. For me, the best course of action when a divergence occurs is to wait and see what happens from there. That is the rationale underlying how my divergence levels work; they take note of a signal's level when a divergence occurs, and it's the signal's behavior from that point on that determines if the post-divergence action is bullish/bearish.
Superfluity
In "The Bed of Procrustes", Nassim Nicholas Taleb writes: To bankrupt a fool, give him information . This indicator can display lots of information. While learning to use a new indicator inevitably requires an adaptation period where we put it through its paces and try out all its options, once you have become used to it and decide to adopt it, rigorously eliminate the components you don't use and configure the remaining ones so their visual prominence reflects their relative importance in your analysis. I tried to provide flexible options for traders to control this indicator's visuals for that exact reason — not for window dressing.
█ LIMITATIONS
• This script uses a special characteristic of the `security()` function allowing the inspection of intrabars — which is not officially supported by TradingView.
It has the advantage of permitting a more robust calculation of volume delta than other methods on historical bars, but also has its limits.
• Intrabar inspection only works on some chart timeframes: 3, 5, 10, 15 and 30 minutes, 1, 2, 3, 4, 6, and 12 hours, 1 day, 1 week and 1 month.
The script’s code can be modified to run on other resolutions.
• When the difference between the chart’s timeframe and the intrabar timeframe is too great, runtime errors will occur. The Auto-Steps selection mechanisms should avoid this.
• All volume is not created equally. Its source, components, quality and reliability will vary considerably with sectors and instruments.
The higher the quality, the more reliably volume delta information can be used to guide your decisions.
You should make it your responsibility to understand the volume information provided in the data feeds you use. It will help you make the most of volume delta.
█ NOTES
For traders
• The Data Window shows key values for the indicator.
• While this indicator displays some of the same information calculated in my Delta Volume Columns ,
I have elected to make it a separate publication so that traders continue to have a simpler alternative available to them. Both code bases will continue to evolve separately.
• All gradients used in this indicator determine their brightness intensities using advances/declines in the signal—not their relative position in a pre-determined scale.
• Volume delta being relative, by nature, it is particularly well-suited to Forex markets, as it filters out quite elegantly the cyclical volume data characterizing the sector.
If you are interested in volume delta, consider having a look at my other "Delta Volume" indicators:
• Delta Volume Realtime Action displays realtime volume delta and tick information on the chart.
• Delta Volume Candles builds volume delta candles on the chart.
• Delta Volume Columns is a simpler version of this indicator.
For coders
• I use the `f_c_gradientRelativePro()` from the PineCoders Color Gradient Framework to build my gradients.
This function has the advantage of allowing begin/end colors for both the bull and bear colors. It also allows us to define the number of steps allowed for each gradient.
I use this to modulate the gradients so they perform optimally on the combination of the signal used to calculate advances/declines,
but also the nature of the visual component the gradient applies to. I use fewer steps for choppy signals and when the gradient is used on discrete visual components
such as volume columns or chart bars.
• I use the PineCoders Coding Conventions for Pine to write my scripts.
• I used functions modified from the PineCoders MTF Selection Framework for the selection of timeframes.
█ THANKS TO:
— The devs from TradingView's Pine and other teams, and the PineCoders who collaborate with them. They are doing amazing work,
and much of what this indicator does could not be done without their recent improvements to Pine.
— A guy called Kuan who commented on a Backtest Rookies presentation of their Volume Profile indicator using a `for` loop.
This indicator started from the intrabar inspection technique illustrated in Kuan's snippet.
— theheirophant , my partner in the exploration of the sometimes weird abysses of `security()`’s behavior at intrabar timeframes.
— midtownsk8rguy , my brilliant companion in mining the depths of Pine graphics.
[Zekis]Donchian Price Channels Strategy with AlertsClassic Donchian(Price) Channels, I added alerts for entries and re-entries and labels for upper and lower bands of the channel.
# Investopedia
" What are Donchian Channels?
Donchian Channels are three lines generated by moving average calculations that comprise an indicator formed by upper and lower bands around a mid-range or median band. The upper band marks the highest price of a security over N periods while the lower band marks the lowest price of a security over N periods. The area between the upper and lower bands represents the Donchian Channel.
The indicator seeks to identify bullish and bearish extremes that favor reversals as well as breakouts, breakdowns and emerging trends, higher and lower.
The Formula for Donchian Channels Is:
UC = Highest High in Last N Periods
Middle Channel=((UC−LC)/2)
LC = Lowest Low in Last N periods
where:
UC = Upper channel
N = Number of minutes, hours, days, weeks, months...
Period = Minutes, hours, days, weeks, months...
LC=Lower channel
What Do Donchian Channels Tell You?
Donchian Channels identify comparative relationships between current price and trading ranges over predetermined periods. Three values build a visual map of price over time, similar to Bollinger Bands, indicating the extent of bullishness and bearishness for the chosen period. The top line identifies the extent of bullish energy, highlighting the highest price achieved for the period through the bull-bear conflict. The center line identifies the median or mean reversion price for the period, highlighting the middle ground achieved for the period through the bull-bear conflict. The bottom line identifies the extent of bearish energy, highlighting the lowest price achieved for the period through the bull-bear conflict.
Limitations of Using Donchian Channels
Markets move according to many cycles of activity. An arbitrary or commonly used N period value for Donchian Channels may not reflect current market conditions, generating false signals that can undermine trading and investment performance
"
⚛WPZO - Wave Period Zone Oscillator by Cryptorhythms⚛WPZO - Wave Period Zone Oscillator by Cryptorhythms
Intro
Based upon Akram El Sherbini's article "Time Cycle Oscillators" published in IFTA journal 2018.
Companion indicator to the Wave Period Oscillator, this is simply a transformation to display in a familiar manner like an RSI. Occasionally WPO can exceed the upper and lower boundary lines in strong moves. With WPZO, it will never go below -80 or above +80.
Description
In the Authors words....
"The wave period zone oscillator (WPZO) is a bounded oscillator for the wave period oscillator (WPO) and calculates the period of the market’s cycle. In other words, the wave period refers to the time taken by buyers or sellers to complete one cycle. The oscillator moves within a range of -100 to 100 percent.
The WPZO has overbought and oversold levels at +40 and -40 respectively. At extreme periods, the oscillator may reach the levels of +60 and -60. The zero level demonstrates an equilibrium between the periods of bulls and bears. The WPZO oscillates between +40 and -40. The crossover at those levels creates buy and sell signals. In an uptrend, the WPZO fluctuates between 0 and +40 where the bulls are controlling the market.
On the contrary, the WPZO fluctuates between 0 and -40 during downtrends where the bears control the market. Reaching the extreme level of -60 in an uptrend is a sign of weakness. Mostly, the oscillator will retrace from its centerline rather than the upper boundary of +40. On the other hand, reaching +60 in a downtrend is a sign of strength, and the oscillator will not be able to reach its lower boundary of -40.
During an ideal uptrend, the WPZO does not reach the lower boundary of -40 and usually rebounds from a higher level than -40. This means that the bulls have taken control earlier. Hence, a zeroline crossover generates a buy signal. The WPZO crosses the upper boundary at +40, then pulls back again below +40 to generate a sell signal. During sideways, the WPZO fluctuates between the lower and upper boundaries of -40 and +40. This tactic is also used in an uptrend where corrections are strong enough to drive the WPZO line below the lower boundary. During downtrends, the WPZO fails to reach the upper boundary and oscillates between the 0 and -40 levels.
The bears enter early, indicating an obvious weakness in the market. Therefore, crossing the zero level generates a sell signal. The exit at weakness tactic is used during uptrend reversals and downtrends. The WPZO oscillates between the centerline and the lower boundary of -40. The bears are controlling the market and move in wide cycle periods, while the bull’s strength is almost absent. An exit signal is triggered once the WPZO crosses -40. When prices decline, the WPZO may cross its extreme lower boundary at -60. Therefore, a swift exit signal is triggered once the WPZO crosses -40.
The WPZO gives an insight about the relation between time and price movements. In this article, we used the oscillator to differentiate between the time taken by bulls and bears to complete one cycle. Due to the boundaries effect, the WPZO may diverge less than the WPO with prices."
TL:DR
More strategy discussed above, but heres the short version:
Bullish signals are generated when WPZO crosses over 0
Bearish signals are generated when WPZO crosses under 0
OverBought level is 40
OverSold level is -40
ExtremeOB level is 60
ExtremeOS level is -60
👍 Enjoying this indicator or find it useful? Please give me a like and follow! I post crypto analysis, price action strategies and free indicators regularly.
💬 Questions? Comments? Want to get access to an entire suite of proven trading indicators? Come visit us on telegram and chat, or just soak up some knowledge. We make timely posts about the market, news, and strategy everyday. Our community isn't open only to subscribers - everyone is welcome to join.
For Trialers & Chat: t.me
[BoTo] ATH/2 OverlayThan this indicator is useful?
Can help you to understand this indicator who main in the market now. Bulls or bears.
How it works
All-Time-High ('ATH') - the highest point in price that a cryptocurrency has been in history.
Step 1: The 'ATH' line is drawn
Step 2: 'ATH/2' line is drawn.
Step 3: If the price became more than 'ATH' it means the market bulls have taken, and the price it will be more probable to increase. And vice versa. If the price became less than 'ATH/2' it means that the market was taken by bears, and the price it will be more probable to fall.
Step 4: If it is the bull market, then the green background is drawn. And vice versa. If it is the bear market, then the red background is drawn. If the market has changed, then the background will be gray color. Only one candle.
How to use it
It is possible to use any timeframes, and any symbol.
It is possible to use chart type only the japanese candles, the line or bars. Don't use Kagi, Renko or Haiken Ashi!
The background can be not shown. You can make 1 or 2 lines. If you have chosen only 1 line, then in the bull market you will see only 'ATH/2' line. And vice versa. In the bear market you will see only the 'ATH' line.
You need just to turn on this indicator once to understand what to wait in this market, big falling or big rockets for. And to switch off it that he didn't prevent to analyze.
It is the good help for long-term investments (the position can be longer than 1 year)
For an example
'Ethereum'
'Ripple'
We tried for you. We want to receive your like for good work.
Bill Williams Divergent BarsBill William Bull/Bear divergent bars
See: Book, Trading Chaos by Bill Williams
Coded by polyclick
A bullish (green) divergent bar, signals a trend switch from bear -> bull
-> The current bar has a lower low than the previous bar, but closes in the upper half of the candle.
-> This means the bulls are pushing from below and are trying to take over, potentially resulting in a trend switch to bullish.
-> We also check if this bar is below the three alligator lines to avoid false positives.
A bearish (red) divergent bar, signals a trend switch from bull -> bear
-> The current bar has a higher high than the previous bar, but closes in the lower half of the candle.
-> This means the bears are pushing the price down and are taking over, potentially resulting in a trend switch to bearish.
-> We also check if this bar is above the three alligator lines to avoid false positives.
Best used in combination with the Bill Williams Alligator indicator.
TREND PULL BACK BUY SELL//@version=5
indicator("Clean Signal Bot 24/7 ($250 SL)", overlay=true)
// ===== SETTINGS =====
riskDollars = 250.0
pointValue = syminfo.pointvalue
// ===== INDICATORS =====
fastEMA = ta.ema(close, 9)
slowEMA = ta.ema(close, 21)
rsi = ta.rsi(close, 14)
// ===== TREND =====
bullTrend = fastEMA > slowEMA
bearTrend = fastEMA < slowEMA
// ===== PULLBACK =====
pullbackLong = close < fastEMA and close > slowEMA
pullbackShort = close > fastEMA and close < slowEMA
// ===== CANDLE CONFIRM =====
bullCandle = close > open
bearCandle = close < open
// ===== ENTRY SIGNALS =====
buySignal = bullTrend and pullbackLong and bullCandle and rsi > 50
sellSignal = bearTrend and pullbackShort and bearCandle and rsi < 50
// ===== TRADE STATE =====
var bool inLong = false
var bool inShort = false
var float entry = na
var float stop = na
riskPoints = riskDollars / pointValue
// ===== ENTER =====
if buySignal
inLong := true
inShort := false
entry := close
stop := entry - riskPoints
if sellSignal
inShort := true
inLong := false
entry := close
stop := entry + riskPoints
// ===== EXIT =====
exitLong = inLong and (close <= stop or bearTrend)
exitShort = inShort and (close >= stop or bullTrend)
if exitLong
inLong := false
if exitShort
inShort := false
// ===== CANDLE HIGHLIGHT =====
barcolor(
buySignal ? color.lime :
sellSignal ? color.red :
exitLong or exitShort ? color.yellow :
na)
// ===== LABELS =====
if buySignal
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.lime, textcolor=color.black)
if sellSignal
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
if exitLong or exitShort
label.new(bar_index, close, "EXIT", style=label.style_label_left, color=color.yellow, textcolor=color.black)
// ===== ALERTS =====
alertcondition(buySignal, "BUY ENTRY", "BUY SIGNAL")
alertcondition(sellSignal, "SELL ENTRY", "SELL SIGNAL")
alertcondition(exitLong or exitShort, "EXIT TRADE", "EXIT SIGNAL")
BK AK-Session Barricade🗽🛡️ BK AK–Session Barricade 🗽🛡️
All glory to G-d — the true source of wisdom, restraint, and right timing.
AK — every indicator I publish carries his standard: discipline, patience, clean execution.
Session Barricade is not a signal generator.
It’s a battlefield fence: it draws the session container, exposes auction control (VWAP vs TWAP), and layers context (trend state, momentum, delta, imbalances, POC/VA, patterns, Gann partitions) so price must prove acceptance/rejection before you act.
🧠 What it does (big picture)
Barricade builds a session-based market map directly on your chart.
1) Session Range “Barricade” Box
Tracks Session Open / High / Low / Close in real time.
Draws Top/Bottom borders + optional Midpoint.
Optional bias shading + optional vertical/horizontal gradient fill.
Tracks directional streaks and labels the session with ▲/▼ + streak # (trend persistence).
2) Previous Session Levels (memory rails)
Projects prior session levels into the current session:
Prev High / Prev Low (default ON)
Optional: Prev Open / Prev Close / Prev Mid
Optional extend-right so the level stays active into the current session (trade it as a rail, not a history line).
3) TWAP (Session)
Session-reset TWAP (time fairness).
Option to show current session only for clean charts.
4) VWAP (Session) + σ Bands
Session-reset VWAP (auction fairness).
1σ / 2σ / 3σ bands computed from session variance (rolling variance engine).
Purpose: define fair value vs stretch, and quantify displacement from mean.
5) Reference VWAP (two methods)
A second VWAP layer for regime anchoring:
True Anchored VWAP engine (real anchor + reset):
Anchor to Prev Session Open, Last Pivot High/Low, ATH, or ATL
Includes ±1σ / ±2σ bands
Optional ta.vwap reference line (baseline)
Modes: True / ta.vwap / Both / Off
6) VWAP Trend State (slope regime)
Calculates VWAP slope % over a lookback and classifies:
Strong Bull / Weak Bull / Flat / Weak Bear / Strong Bear
Optional trend icon on chart
Optional coloring of the session label by trend state (current session)
7) Session Momentum Engine
Session-relative momentum: (price vs session open) smoothed with a session-reset EMA.
Optional momentum line normalized into the session range (so it “lives” inside the box).
Strong/weak thresholds help separate clean push vs fake push.
8) Delta Analysis (lightweight order-flow proxy)
Cumulative Delta approximation using candle direction × volume.
Optional divergence markers:
Bearish: price pushes highs while delta fails
Bullish: price pushes lows while delta holds
Divergence icons are quiet-hours gated to reduce dead-liquidity noise.
9) Order Flow Imbalances
Imbalance boxes print when volume exceeds Average × Threshold:
Buy imbalance = high volume + green candle
Sell imbalance = high volume + red candle
Object count is capped to protect performance.
10) Volume Profile (session) + POC + Value Area
Builds a session volume profile (binning by close due to Pine constraints).
Computes:
POC (highest-volume price bin)
Value Area (70%) expansion around POC
Draw options:
Profile bars
POC line
Value Area box (optional current-only)
11) Pattern Recognition (current session only)
Pivot-confirmed, anti-spam context markers:
Double Tops / Bottoms
Compression Triangles
Tight Ranges
Designed as context, not prophecy.
12) Heat Map Mode
Turns the session box into an intensity map using:
Volatility or Volume metric
Adjustable intensity scaling
13) Gann Levels (optional)
Session range partitioned into 1/8ths
Optional extra sets: 30/60, 33/66, Both
Range source options:
Current session
Previous session
Last pivot range
Purpose: internal harmonic reaction levels inside the session container.
14) Dashboard + Hover Intelligence
UI Mode: Dashboard Panel / Hover Icon / Both / Off
Dashboard summarizes:
VWAP vs TWAP control state
Price relative to VWAP/TWAP
σ position
Momentum
CumΔ
POC/VA (if enabled)
Final state: WAIT / CAUTION / STRONG (confluence-based)
Hover icon provides an on-chart briefing tooltip without clutter.
⚙️ Core logic (how it works)
Session detection (NY time ready)
Uses America/New_York by default (or Exchange timezone).
Default session start:
Intraday: first bar of session
Otherwise: day change
Optional Custom Session input (session string) for ETH/RTH or your own trading day.
Performance protections
Session data stored in a structured record + array.
Hard caps prevent overload:
VP max bars stored per session
VP recalculated every N bars (throttle)
Imbalance boxes capped/trimmed
History filter: show only today / show last N sessions
Quiet Hours gate (anti-noise control)
Default quiet window: 18:00–07:00
When enabled, hides icons/signals during quiet hours (divergences, imbalances, VWAP/TWAP control icon).
The session structure still draws — you keep the map without getting baited by low-liquidity “tells.”
🧭 How to use it (execution workflow)
Step 1 — Treat the session box like a courtroom
Inside the box: rotation/mean reversion is common.
At the rails (top/bottom): hunt rejection (fade) or acceptance (break/hold).
The box is the boundary. Price must testify.
Step 2 — Read control (VWAP vs TWAP)
VWAP leading = participation sponsorship (auction conviction).
TWAP leading = time drift / weaker sponsorship.
Combine with location:
Above both = strength bias
Below both = weakness bias
Mixed = chop risk
Step 3 — Use σ as a stretch/exhaustion ruler
Near VWAP = fair value / magnet zone
1σ/2σ/3σ = displacement zones:
continuation requires momentum + acceptance
exhaustion shows as failure + divergence + snap back
Step 4 — Use POC/VA as “where business happened”
POC = pivot/magnet line
VA edges = acceptance/rejection tests
Strong behaviors:
reject VA edge → rotate to POC
accept VA edge → expand trend
Step 5 — Respect previous session rails
Prev High/Low are “yesterday’s stones.”
Break + hold = regime shift
Break + fail = trap fuel
Step 6 — Add modules only when needed
Delta/divergence = confirmation, not trigger
Imbalances = attention markers, not entries
Patterns = context, not direction
Gann = internal reaction levels, not magic
🧱 Non-negotiable rule
This is a timing + structure map, not a fortune teller.
If you use it to “predict,” you turn a precision tool into superstition.
👑 Watchman on the Wall Lens (Ezekiel 33 × Nehemiah 4)
A watchman doesn’t predict — he warns at the gate. A wall doesn’t guess — it defines the boundary.
This script builds the session wall (box + rails) and posts the watchman (VWAP/TWAP control + gated alerts).
When it’s quiet, it stays silent. When it speaks, it’s the trumpet: price is either granted passage or turned back.
🙏 Respect + Seal
Respect to AK — discipline, patience, clean execution.
All glory to G-d — the source of wisdom and endurance.
🗽🛡️ BK AK–Session Barricade — draw the rails, read control, let price prove itself. 🛡️🗽
Veritas Algo {xqweasdzxcv}
Creator’s Notes
Developer: xqweasdzxcv or x²
Current Version: 2.0.4
Telegram: t.me
Access: DM for access requests
Veritas Algo - Elite Trading System
Veritas Vigilantia - Truth Through Vigilance
Transform your trading with the most comprehensive, institutional-grade indicator available to private traders. Veritas Algo isn't just another indicator—it's a complete trading ecosystem that gives you unprecedented market clarity.
🎯 DUAL-STRATEGY MARKET FILTER SYSTEM
Choose Your Analysis Method:
Trend Analysis Mode
Perfect for traders who want to ride major market movements. This mode excels at filtering out noise and identifying sustainable trends that offer the best risk/reward opportunities. Ideal for swing traders and position traders who prefer clarity over constant signals.
Volume Analysis Mode
Designed for traders who understand that volume precedes price. This mode analyzes market activity patterns to identify where smart money is positioned, giving you insights into accumulation and distribution phases before they become obvious.
Adjustable Sensitivity: Fine-tune the Market Range filter from conservative (fewer, higher-quality signals) to aggressive (more opportunities in volatile markets). One slider gives you complete control over signal frequency.
📍 PRECISION ENTRY & EXIT SYSTEM
Crystal-Clear Directional Signals:
Up Trend Signals - Identify the exact moment bullish momentum confirms
Down Trend Signals - Catch bearish moves before the crowd panics
Each signal appears only when multiple confirmation factors align
Optional Heikin Ashi candle analysis for smoother trend detection
Smart Take Profit System (Game-Changing Feature):
The indicator doesn't just tell you when to enter—it tells you exactly when to secure profits:
TP1 (First Target) - Early profit-taking zone for conservative exits
TP2 (Second Target) - Optimal profit zone where most moves exhaust
Peak Profit Signals - Rare signals indicating extreme profit opportunities
What makes this revolutionary: The TP signals only appear when you're actually in a position. No clutter, no confusion—you see Long TP signals only when you're long, Short TP signals only when you're short. It's like having a professional trader telling you exactly when to take money off the table.
Advanced Reversal Detection:
Three levels of reversal sensitivity (mild, moderate, strong)
Catch market turning points before they appear on traditional indicators
Each reversal level has increasing confidence—more intense signals = higher probability
Re-Entry Opportunity Signals:
Many traders struggle with when to add to winning positions. Veritas Algo shows you:
Safe re-entry points while maintaining your existing position
Confirmation that your original trade thesis remains valid
Opportunities to scale in without excessive risk
🛡️ PROFESSIONAL RISK MANAGEMENT SUITE
Automated Stop Loss & Take Profit Levels:
Never guess where to place your stops again. The system automatically calculates and displays:
Stop Loss Levels - Based on actual market structure (swing highs/lows), not arbitrary percentages
Entry Price Markers - Know exactly where you entered for perfect position tracking
TP1 & TP2 Levels - Calculated using customizable risk/reward ratios
How It Works for You:
When a signal appears, you instantly see:
Where to enter (Entry line)
Where to protect yourself (SL line)
Where to take profits (TP1 and TP2 lines)
All lines extend forward and update in real-time as price moves
Customizable Risk/Reward:
Set your TP1 ratio (default 0.5:1, adjustable 0.1-10.0)
Set your TP2 ratio (default 1:1, adjustable 0.1-10.0)
Perfect for different trading styles: conservative, balanced, or aggressive
Visual Clarity:
Entry lines in clean silver/white
Stop loss in your bearish color (high visibility for protection)
Take profits in your bullish color (celebrate your targets)
All labels show exact price levels—no guessing, no calculation needed
🏆 WHY VERITAS ALGO SURPASSES TRADE AND RELAX
TRADE AND RELAX is popular, but here's what it doesn't tell you:
What TRADE AND RELAX Gives You:
Entry signals
Basic stop loss and take profit levels
"Set it and forget it" mentality
The Problem:
Markets don't stay static. That single TP level might be hit in 10 minutes or never. You're locked into rigid levels with no adaptation, no re-entry opportunities, and no awareness of changing market structure.
What VERITAS ALGO Gives You:
✅ Dynamic Exit Strategy - Not just one TP, but TP1, TP2, AND Peak Profit signals that adapt to actual market momentum
✅ Position-Aware Intelligence - TP signals only appear when YOU'RE in a trade (Long TPs for longs, Short TPs for shorts)
✅ Re-Entry Signals - Scale into winners safely—TRADE AND RELAX can't tell you this
✅ Market Structure Context - See BOS, CHoCH, swing points, FVGs—understand WHY price is moving
✅ Reversal Warnings - Know when your "relax" mode needs to end before it's too late
✅ Multi-Strategy Options - Choose Trend or Volume analysis; TRADE AND RELAX locks you into one approach
NOTE:-
TRADE AND RELAX gives you static levels and hope.
VERITAS ALGO gives you dynamic guidance and knowledge.
You can relax when you have COMPLETE information—not just entry and exit lines.
🏗️ INSTITUTIONAL MARKET STRUCTURE ANALYSIS
Break of Structure (BOS) Detection:
Identify when price breaks through key levels in the direction of the trend. These are high-probability continuation signals that professional traders wait for before committing capital.
Change of Character (CHoCH) Detection:
Catch the exact moment market behavior shifts. CHoCH signals often precede major reversals, giving you advance warning that the trend may be exhausting.
CHoCH+ (Enhanced Change of Character):
The most powerful reversal signal in market structure analysis. When you see CHoCH+, the market is screaming that a significant move is likely imminent.
Swing vs. Internal Structure:
Swing Structure - Major trend changes on higher timeframes (customizable lookback)
Internal Structure - Micro-level changes for precise entries/exits (customizable lookback)
View both simultaneously or focus on one based on your trading timeframe
Dynamic Structure Mode:
Revolutionary feature that automatically adjusts structure sensitivity based on current market volatility. In ranging markets, it tightens detection; in trending markets, it loosens to avoid false signals. Or switch to Manual mode for complete control.
Swing Point Labeling:
HH (Higher High) - Uptrend confirmation
HL (Higher Low) - Uptrend structure remains intact
LH (Lower High) - Downtrend confirmation
LL (Lower Low) - Downtrend structure remains intact
Know exactly where you are in the market cycle at all times.
Equal Highs & Equal Lows (EQH/EQL):
Advanced feature that identifies when price creates equal swing points—often areas where liquidity is targeted before major moves. Professional traders use these levels as magnets for price action.
Fair Value Gap (FVG) Detection:
Identify imbalance zones where price moved too quickly, leaving "gaps" that price often returns to fill. These become:
High-probability support/resistance zones
Ideal entry/exit areas
Profit target locations
Features:
Configurable number of FVGs to display (1-20)
Multi-timeframe FVG analysis
Auto-extension to show future significance
Separate bullish/bearish gap tracking
🎨 PREMIUM VISUALIZATION & CUSTOMIZATION
Three Professional Color Schemes:
xqwe Scheme (Signature)
Bullish: Electric Cyan (#00ffff)
Bearish: Deep Crimson (#cc0041)
Modern, high-contrast, easy on the eyes during long trading sessions
Classic Scheme
Bullish: Pure Green (#00ff00)
Bearish: Pure Red (#ff0000)
Traditional, instantly recognizable, perfect for presentations
Diamond Scheme
Bullish: Aqua Diamond (#00FAC8)
Bearish: Ruby Diamond (#F03264)
Premium, sophisticated, stands out from standard indicators
Full Custom Color Control:
Don't like presets? Enable custom colors and choose any combination you want. Every element of the indicator adapts to your choices—from signals to structure lines to candles.
Intelligent Candle Coloring (Four Modes):
Market Range Mode
Candle's color is based on the Range Filter direction. Instantly see if you're in bullish or bearish territory without checking any lines.
Market Structure Mode
Candles reflect the current market structure state (BOS, CHoCH, etc.). Know at a glance if the structure is bullish, bearish, or transitional.
Market Trend Mode
Advanced EMA-based trend coloring that shows:
Pure bullish color when all EMAs are stacked perfectly bullish
Pure bearish color when all EMAs are stacked perfectly bearish
50% transparency colors during consolidation/transition phases
Helps you avoid choppy markets and focus on trending conditions
Keep standard candle coloring if you prefer clean charts
📊 WHAT MAKES VERITAS ALGO DIFFERENT
1. Complete System, Not Just Signals
Most indicators give you entry signals and nothing else. Veritas Algo gives you:
Entry confirmation
Stop loss placement
Multiple profit targets
Re-entry opportunities
Reversal warnings
Market structure context
2. Smart Position Awareness
The indicator "knows" when you're in a trade. TP signals only appear when relevant to your current position. No screen clutter, no confusion about which signals apply to you.
3. Multi-Layered Confirmation
Every signal is the result of multiple factors aligning:
Price action analysis
Market structure confirmation
Momentum indicators
Volume/trend analysis
4. Professional-Grade Market Structure
Most retail traders trade blind. Veritas Algo shows you what institutional traders see:
Where smart money is positioned
Which levels are likely to hold
When the structure is breaking down
Where liquidity pools exist
5. Adaptable to Any Style
Scalpers: Increase sensitivity, focus on internal structure
Day Traders: Balanced settings, use both structure types
Swing Traders: Lower sensitivity, focus on swing structure
Position Traders: Volume analysis mode, major structure only
💼 PRACTICAL USE CASES
Scenario 1: The Trend Trader
You enable Trend Analysis mode with moderate sensitivity. An Up Trend signal appears at support. The indicator shows:
Entry at current price
Stop loss below recent swing low
TP1 at 0.5R, TP2 at 1R
Price moves up. When you're up 30%, a TP1 signal appears—you take partial profits. Price continues. At 80% gain, TP2 signal appears—you take more profits. Then a Peak Profit signal flashes—you exit completely just before a reversal. Result: Maximum profit extraction with zero guessing.
Scenario 2: The Structure Trader
You're watching market structure. Price breaks a CHoCH level with a Down Trend signal. You enter short. The indicator shows your SL above the CHoCH level. As price falls, you see a BOS confirming trend continuation. No TP signals yet—you stay in. Finally, a reversal signal appears at a major support zone. You exit. Result: Rode the entire move with confidence from structure confirmation.
Scenario 3: The Reversal Hunter
Price has been trending down for days. You see a strong reversal signal appear, followed by an Up Trend signal. You enter long. The Market Structure shows a CHoCH+—major character change. You add to your position on a Re-Entry signal. The trend develops, and you exit on TP signals. Result: Caught the bottom with multiple confirmations and scaled in safely.
Scenario 4: The Risk Manager
You're not great at placing stops. Every Up Trend signal automatically shows you where the stop should go based on actual swing structure—not random percentages. You never have to calculate risk/reward; it's displayed visually. Your trading becomes consistent because your risk is always defined before entry. Result: Professional risk management without the math.
🎓 WHO THIS IS FOR
✅ Perfect For:
Traders who are tired of lagging indicators and false signals
Anyone who wants to see market structure like professionals do
Traders who struggle with profit-taking and letting winners run
People who want one comprehensive system instead of 10 indicators
Serious traders ready to invest in their edge
Anyone trading Forex, Crypto, Stocks, Indices, or Commodities
❌ Not For:
Gamblers looking for "always-win" signals (they don't exist)
Traders unwilling to learn proper risk management
People expecting to get rich overnight with zero effort
Those who won't follow a systematic approach
🔒 EXCLUSIVE INVITE-ONLY ACCESS
Not sold publicly. Not available to everyone.
You’re seeing this because you’ve been shortlisted for access to Veritas Algo, a professional-grade trading intelligence system normally reserved for institutional desks and high-capital traders.
This is the kind of analysis people pay thousands for through Bloomberg terminals and private platforms.
What’s Included:
Full Veritas Algo indicator for TradingView
Complete settings optimization guide
Access to future updates and improvements
Priority support for setup and configuration
Community access (limited to invite holders only)
Markets Supported:
Forex (all pairs)
Cryptocurrencies (Bitcoin, Ethereum, Altcoins)
Stocks (US, International)
Indices (S&P 500, NASDAQ, DAX, etc.)
Commodities (Gold, Silver, Oil, etc.)
Any tradeable asset on TradingView
All Timeframes:
Works seamlessly from 1-minute charts to monthly charts. Use it for scalping or investing—the system adapts.
⚡ THE VERITAS ADVANTAGE
Stop Trading Blind.
See exactly where smart money is positioned
Know where to enter, where to protect, where to profit
Understand market structure in real-time
Get confirmation before committing capital
Stop Leaving Money on the Table.
Multiple TP levels ensure you capture maximum profit
Peak Profit signals catch the extremes
Re-Entry signals help you scale winners
Never exit too early or hold too long again
Stop Guessing.
Every signal has multiple confirmation factors
Risk management is automatic and visual
Structure analysis removes emotion
Clear rules eliminate indecision
Trade Like a Professional.
See the market through institutional eyes
Access analysis typically reserved for hedge funds
Make decisions based on structure, not hope
Build consistency through systematic trading
🎁 FINAL WORD
Most traders fail because they lack three things:
Clarity - They can't see what the market is really doing
Confidence - They second-guess every decision
Consistency - They have no systematic approach
Veritas Algo solves all three.
It gives you clarity through advanced market structure analysis.
It gives you confidence through multi-layered signal confirmation.
It gives you consistency through automated risk management and systematic rules.
This is more than an indicator. It's a complete transformation in how you interact with markets.
The question isn't whether Veritas Algo works.
The question is: Are you ready to trade at the next level?
Veritas Vigilantia - Truth Through Vigilance
Your invitation is waiting. Will you accept it?
LTF FVG + IFVG + HTF Liquidity + SessionsWhat this indicator does
This is a precision execution tool around Fair Value Gaps (FVG) and Inverted FVG (IFVG) with optional higher-timeframe confluence, HTF liquidity levels and session levels (Asia / London / Yesterday’s High–Low / Daily 50%).
By default it keeps things clean:
ON by default:
LTF FVG (nearest bullish & bearish)
LTF IFVG (inverted gaps that stay on the chart and freeze on second break)
OFF by default (you enable if you want):
HTF1 & HTF2 FVG layers
HTF liquidity levels (HTF swing highs/lows)
Asia & London session highs/lows
Yesterday’s high/low
Daily 50% line (D 50%)
Everything is time-anchored with xloc=bar_index, clamped to bar_index + 500, and trimmed by age / count so behaviour is stable in replay and on reload.
1. LTF FVG + IFVG (core engine)
Detection
Uses a 3-bar ICT-style pattern:
Bullish FVG: low > high and close > high
Bearish FVG: high < low and close < low
Runs on a Lower Timeframe (LTF):
Default: current chart timeframe
Optional: override via input.
Lifetime model
FVG lifetime is not hardcoded; it’s based on the timeframe:
Short TF → shorter lifetime in bars
Higher TF → proportionally longer lifetime
When lifetime is reached or price fully closes through the gap, the FVG is frozen:
Right edge stops where it should (expiry or break).
Zone is kept as historical structure, not deleted.
IFVG (Inverted FVG)
When an LTF FVG is broken back through:
It can spawn an Inverted FVG (IFVG) in the same price range.
Source must be younger than N LTF bars (configurable, default max age = 15).
Behaviour:
IFVGs are drawn with their own length (in bars) and color.
They stay on the chart even after being broken again.
On the next break in the opposite direction, the right side is cut:
The IFVG stops extending at that bar (second break = freeze).
Total number of IFVG boxes is capped for performance.
Visibility logic (LTF)
Indicator continuously tracks:
Nearest bearish FVG above price
Nearest bullish FVG below price
Only those two active LTF FVGs are visually highlighted (if enabled):
All other still-alive FVGs are tracked internally but muted.
Colours:
Bullish LTF zone color
Bearish LTF zone color
Separate color for IFVGs.
Result: You always see the closest upside and downside LTF imbalance + all IFVGs frozen where they were created and finally broken.
2. HTF1 & HTF2 FVG (optional)
Two higher-timeframe FVG layers for confluence:
HTF1
Timeframe:
Auto-mapped from the chart TF (e.g. 1m → 5m, 5m → 15m, 15m → 1h, 1h → 4h, 4h → Daily, etc.).
Manual override available.
Detection:
Same 3-bar FVG logic, but calculated on HTF and projected down.
Lifetime based on HTF bars, not LTF bars.
Visibility:
Only one bullish and one bearish HTF1 FVG is shown:
Nearest bearish above current price
Nearest bullish below current price
All others are tracked and culled by age/count.
HTF2
Second, higher layer (e.g. 1m → 1h, 5m → 1h, 1h → Daily, 4h → Weekly, etc.).
Same behaviour as HTF1:
FVG detection on HTF2
Lifetime in HTF2 bars
Only nearest bullish and bearish zones are drawn.
HTF visuals
HTF1
Bullish: yellow, ~20% opacity (subtle background)
Bearish: purple, ~20% opacity
HTF2
Bullish: yellow, ~40% opacity (stronger)
Bearish: purple, ~40% opacity
HTF HUD
Small two-column HUD at the bottom center:
Shows active TF for HTF1 and HTF2, e.g.
HTF1 FVG 15 | HTF2 FVG 60
If a layer is turned off, it shows HTF1 FVG: off / HTF2 FVG: off.
3. HTF Liquidity (pivot highs/lows) – optional
A separate module to track HTF liquidity levels:
HTF selection:
Auto-select HTF (mapping similar to FVG)
Or manual HTF via input.
Detection:
Uses pivot highs/lows with configurable left/right strength.
All pivots are pulled via request.security(..., lookahead_off) and anchored correctly on the LTF chart with xloc=bar_index.
Each liquidity level stores:
Price
Whether it’s a high or low
Creation bar index
Sweep status and sweep bar index.
Sweeps
A level is marked as swept when price wicks through it:
High level swept when high >= level price
Low level swept when low <= level price
Once swept:
The line is extended for a limited number of bars (configurable) and then frozen.
Sweep history:
High sweeps and low sweeps stored in arrays.
History is trimmed by bars back, not by random count – deterministic behaviour on reload.
You can turn the entire HTF Liquidity module on/off with LIQ: Show HTF Levels.
4. Sessions: Asia, London, Y-High/Y-Low, D 50% (optional)
All session features are OFF by default – you only enable what you actually want.
Asia & London highs/lows
Two time windows in Europe/Copenhagen time:
Asia session
London session
During each session:
Script tracks the session high and low plus their bar indices.
When a session ends and Show Asia/London High/Low is enabled:
A line is drawn from the session’s high/low with a label:
“Asia high”, “Asia low”, “London high”, “London low”.
Lines are anchored with xloc=bar_index, right side clamped.
Sweep behaviour
On the first sweep:
If price trades through a session high/low:
The line’s right edge is frozen at the sweep bar.
The label is also locked to that bar.
Line style switches to dashed, indicating the level has been taken.
Before sweep:
Lines & labels extend live with the chart (following the latest bar).
Yesterday’s High / Low
Tracks current day’s high & low, then rolls them into Y-high and Y-low at the new daily open.
When Show Y-high/Y-low is enabled:
Lines + labels for Y-high/Y-low are drawn from the rollover bar.
On sweep:
First touch through Y-high or Y-low:
Line is frozen at sweep bar and set to dashed.
Label is locked at that bar.
Before sweep, they extend live.
Daily Mid (D 50%)
Optional midpoint of the daily range ((dayHigh + dayLow) / 2).
Drawn as a dashed line with a “D 50%” label.
Always extends to the latest bar; not sweep-gated.
Session shading (debug)
Optional background shading when current bar is inside:
Asia session
London session
Purely visual; no effect on logic.
5. Design, performance & behaviour
All drawings are:
xloc = bar_index (sticky with scroll/zoom).
Right-clamped to bar_index + 500 to avoid runaway extensions.
Arrays and objects are trimmed:
FVG/IFVG, HTF FVG, HTF liquidity and session objects are all capped by bars back or max count.
This keeps the script stable even on long histories and in replay mode.
HTF data:
All HTF feeds use request.security(..., lookahead_off) for non-repainting behaviour.
Only preview/visual elements (HUD etc.) depend on last bar state.
TL;DR
You get:
A clean, non-spammy LTF FVG/IFVG engine that:
Shows only the nearest bullish and bearish LTF gaps,
Freezes IFVGs on second break instead of deleting them.
Optional HTF1 & HTF2 FVG context (nearest zones per direction).
Optional HTF liquidity from higher-timeframe pivot highs/lows.
Optional Asia/London session highs/lows, Yesterday’s High/Low, and D 50%, all with proper sweep freezing.
Turn on only the modules you actually trade with – the default setup is just FVG + IFVG, ready for intraday execution.
[COG] NautilusOverview
This indicator combines multiple technical analysis tools to identify high-probability entry points in trending markets. It uses moving average crossovers for trend direction, Bollinger Bands for mean reversion opportunities, and optional filters to reduce false signals and avoid choppy market conditions.
What Makes This Indicator Unique
Heiken Ashi Toggle:
All calculations can be performed on either regular or Heiken Ashi candles with a single click
Multi-Layer Filtering System: Four independent filters work together to improve signal quality
First Entry Detection: Automatically identifies and labels the first signal after a trend change
Anti-Overtrading Protection: Built-in cooldown mechanism prevents signal spam
Core Components
1. Trend Detection (EMA/SMA Crossover)
The indicator uses a 15-period EMA and 50-period SMA to determine market direction. Buy signals only occur when EMA > SMA, and sell signals only when EMA < SMA.
// Trend Detection
bullishTrend = ema15 > sma50
bearishTrend = ema15 < sma50
2. Bollinger Bands Mean Reversion
Entry signals trigger when price touches or penetrates the Bollinger Bands, indicating potential reversal or pullback opportunities within the established trend.
//Bollinger Band Touch Detection
lowerBandTouch = selectedLow <= bbLower
upperBandTouch = selectedHigh >= bbUpper
// Base Entry Conditions
baseBuySignal = bullishTrend and lowerBandTouch and bullishClose
baseSellSignal = bearishTrend and upperBandTouch and bearishClose
3. Candle Confirmation
Signals require a bullish candle close (close > open) for buy signals and bearish candle close (close < open) for sell signals, ensuring momentum alignment.
// Candle Close Type
bullishClose = selectedClose > selectedOpen
bearishClose = selectedClose < selectedOpen
Optional Filters (All Toggleable)
Filter 1: StochRSI Momentum
Ensures entries occur during oversold/overbought conditions. Buy signals require StochRSI < 20, sell signals require StochRSI > 80.
// StochRSI Calculation
rsi = ta.rsi(stochRSISource, rsiLength)
stochRSI_K = ta.sma(ta.stoch(rsi, rsi, rsi, stochRSILength), stochKSmooth)
// Filter Conditions
stochRSIOversoldCondition = stochRSI_K < stochRSIOversold
stochRSIOverboughtCondition = stochRSI_K > stochRSIOverbought
Filter 2: MA Separation (Anti-Chop)
Blocks signals when moving averages are too close together, indicating sideways/choppy market conditions. Default threshold is 1% separation.
// Calculate percentage separation between EMA and SMA
maSeparationPct = (math.abs(ema15 - sma50) / sma50) * 100
// MA separation filter condition
maSeparationValid = maSeparationPct >= maSeparationThreshold
Why this matters: When the 15 EMA and 50 SMA are very close (< 1% apart), the market is typically consolidating. Signals in these conditions have lower win rates.
Filter 3: Cooldown Period
Prevents over-trading by blocking new signals for a specified number of bars (default: 10) after a signal occurs. Buy and sell cooldowns are tracked separately.
// Variables to track the bar index of the last signal
var int lastBuySignalBar = na
var int lastSellSignalBar = na
// Calculate bars since last signal
barsSinceLastBuy = na(lastBuySignalBar) ? 999999 : bar_index - lastBuySignalBar
// Cooldown filter condition
buyCooldownValid = barsSinceLastBuy >= cooldownBars
// Update tracking when signal fires
if buySignal
lastBuySignalBar := bar_index
Advanced Features
Heiken Ashi Mode
Toggle between regular candles and Heiken Ashi candles for all calculations. Heiken Ashi candles smooth price action and can reduce false signals in volatile markets.
// Fetch Heiken Ashi OHLC values
= request.security(
ticker.heikinashi(syminfo.tickerid),
timeframe.period,
)
// Select which OHLC to use based on toggle
selectedClose = useHeikenAshi ? haClose : close
First Entry Detection
Automatically identifies and labels the first signal after a trend change with "1. Trend Cycle Entry" text. This helps traders distinguish between fresh trend entries and continuation signals.
// Detect trend changes
trendChangedToBullish = bullishTrend and not bullishTrend
// Reset tracking when trend changes
if trendChangedToBullish
hadBuySignalInCurrentBullTrend := false
// Identify first signal in new trend
isFirstBuyInTrendCycle = buySignal and not hadBuySignalInCurrentBullTrend
How Signals Are Generated
The indicator uses a layered approach where each condition must be satisfied:
// Apply all filters
buySignal = enableBuySignals and baseBuySignal and
(not enableStochRSIFilter or stochRSIOversoldCondition) and
(not enableMASeparationFilter or maSeparationValid) and
(not enableCooldownFilter or buyCooldownValid)
Buy Signal Requirements:
✅ 15 EMA above 50 SMA (bullish trend)
✅ Candle low touches or goes below lower Bollinger Band
✅ Candle closes bullish (green)
✅ (Optional) StochRSI < 20
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Sell Signal Requirements:
✅ 15 EMA below 50 SMA (bearish trend)
✅ Candle high touches or goes above upper Bollinger Band
✅ Candle closes bearish (red)
✅ (Optional) StochRSI > 80
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Customization Options
Moving Averages:
Adjustable EMA length (default: 15)
Adjustable SMA length (default: 50)
Source selection (Close, Open, High, Low, HL2, HLC3, OHLC4)
Bollinger Bands:
Adjustable length (default: 20)
MA type selection (SMA, EMA, SMMA, WMA, VWMA)
Adjustable standard deviation multiplier (default: 2.0)
StochRSI Filter:
Adjustable RSI length (default: 14)
Adjustable Stochastic length (default: 14)
Customizable oversold/overbought levels (default: 20/80)
MA Separation Filter:
Adjustable minimum separation percentage (default: 1.0%)
Cooldown Filter:
Adjustable cooldown period in bars (default: 10)
Visual Settings:
Customizable colors for all elements
Adjustable line widths
Toggle first entry labels on/off
How to Use
Basic Setup: Apply the indicator to your chart. By default, it shows moving averages, Bollinger Bands, and entry signals.
Choose Your Mode: Enable Heiken Ashi mode if you prefer smoother signals and are willing to accept some lag.
Enable Filters: Start with all filters disabled to see raw signals. Then enable filters one by one:
Start with MA Separation filter to avoid choppy markets
Add StochRSI filter to catch better momentum conditions
Add Cooldown filter to prevent over-trading
Adjust Parameters: Tune the parameters based on your timeframe and trading style:
Lower timeframes: Consider shorter cooldown periods
Higher timeframes: May want tighter MA separation requirements
Watch for First Entry Labels: The "1. Trend Cycle Entry" label highlights the highest-probability signals occurring right after trend changes.
Important Notes
⚠️ This indicator does not repaint. All signals appear on closed candles only.
⚠️ Past performance is not indicative of future results. This indicator should be used as part of a complete trading strategy with proper risk management.
⚠️ Filters reduce signal frequency: Enabling multiple filters will significantly reduce the number of signals. This is intentional to improve quality over quantity.
⚠️ Heiken Ashi mode considerations: While HA mode smooths signals, it can also introduce lag. Test both modes on your preferred timeframe.
Best Practices
Always backtest on your preferred timeframe before live trading
Start conservative with tighter filters, then loosen if needed
Pay special attention to "First Entry" signals for highest probability setups
Use appropriate position sizing and stop losses
Consider market conditions: trending vs ranging
Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. Trading involves substantial risk of loss. Always do your own research and consider your risk tolerance before trading.
DANI _ MTF Pullback StrategyMTF Pullback - RSI Panel Summary
Purpose: Companion indicator for the main strategy that displays RSI with divergence detection in a separate pane below the price chart.
Settings
ParameterDefaultDescriptionRSI Length14Lookback period for RSI calculationRSI Oversold Level30Threshold for oversold conditionRSI Overbought Level70Threshold for overbought conditionDivergence Lookback Bars10How many bars to look back for divergence detection
What It Displays
RSI Line — Changes color based on zone:
Purple = neutral (between 30-70)
Green = oversold (below 30)
Red = overbought (above 70)
Horizontal Levels:
Red dashed line at 70 (overbought)
Green dashed line at 30 (oversold)
Gray dotted line at 50 (midpoint)
Zone Fills:
Light red shading above 70
Light green shading below 30
Divergence Markers:
"DIV" label with lime circle = bullish divergence (price makes lower low, RSI makes higher low while oversold)
"DIV" label with fuchsia circle = bearish divergence (price makes higher high, RSI makes lower high while overbought)
Background Flash:
Green flash when bullish divergence detected
Red flash when bearish divergence detected
Divergence Logic
Bullish: Price makes a lower low AND RSI makes a higher low AND RSI is in oversold territory → potential reversal up
Bearish: Price makes a higher high AND RSI makes a lower high AND RSI is in overbought territory → potential reversal downand for the strategy15:36Outlined strategy script components and display mechanics.The user wants a summary of the main strategy script, similar to what I provided for the RSI panel. I should cover the purpose, settings, entry conditions, exit conditions, and what it displays on the chart.MTF Pullback Strategy Summary
Purpose: Multi-timeframe pullback strategy that trades trend continuations. Uses 4H timeframe for trend direction and entry timeframe (typically 15M) for precise entries based on RSI divergence and engulfing patterns.
Settings
ParameterDefaultDescriptionTimeframesHigher Timeframe240 (4H)Timeframe for trend detectionTrend FilterEMA Length50EMA period for trend directionRSIRSI Length14RSI calculation periodRSI Oversold Level30Long entry RSI thresholdRSI Overbought Level70Short entry RSI thresholdDivergence Lookback10Bars to scan for divergenceSwing DetectionSwing Lookback5Bars left/right to confirm swingRisk ManagementATR Length14ATR calculation periodStop Loss ATR Multiplier2.0SL = 2× ATR from entryTake Profit %2.0TP = entry ± 2%Trade DirectionTrade LongstrueEnable long tradesTrade ShortstrueEnable short trades
Entry Conditions
Long Entry (all must be true):
4H uptrend (price above 50 EMA + EMA rising)
Current price above 4H 50 EMA
Price pulling back from recent 4H swing high
RSI oversold (<30) or below 40
Bullish RSI divergence OR RSI turning up from oversold
Bullish engulfing candle at or within 2 bars after swing low
Short Entry (all must be true):
4H downtrend (price below 50 EMA + EMA falling)
Current price below 4H 50 EMA
Price pulling back from recent 4H swing low
RSI overbought (>70) or above 60
Bearish RSI divergence OR RSI turning down from overbought
Bearish engulfing candle at or within 2 bars after swing high
Exit Conditions
Exit TypeLongShortStop LossEntry - (2 × ATR)Entry + (2 × ATR)Take ProfitEntry × 1.02 (+2%)Entry × 0.98 (-2%)
What It Displays
On Chart:
Blue line = 4H 50 EMA
Green triangle below bar = long entry signal
Red triangle above bar = short entry signal
Green background tint = 4H uptrend active
Red background tint = 4H downtrend active
Info Table (top right):
FieldShows4H TrendUP ↑ / DOWN ↓ / NEUTRALPrice vs EMAABOVE / BELOWPullback LYES/NO (long pullback active)Pullback SYES/NO (short pullback active)Bull DivYES/NO (bullish divergence)Bear DivYES/NO (bearish divergence)
Strategy Logic Flow
4H TREND CHECK
↓
PRICE VS 50 EMA
↓
PULLBACK DETECTED?
↓
RSI CONDITION MET?
↓
RSI DIVERGENCE?
↓
ENGULFING AT SWING?
↓
ENTRY → SL (2×ATR) + TP (2%)
Alerts Available
Long Entry Signal — Triggers when all long conditions align
Short Entry Signal — Triggers when all short conditions align
Recommended Usage
Apply to 15-minute chart (fetches 4H data automatically)
Use alongside the RSI Panel indicator for visual confirmation
Backtest on trending pairs/assets (crypto, forex majors, indices)
Adjust ATR multiplier if stops are too tight/wide for your asset
Augury Grid - Multi-Timeframe ScannerAugury Grid - Multi-Timeframe Scanner
A real-time scanner that monitors 7 symbols across 3 timeframes simultaneously, ranking signals by quality and displaying them in a single organized table. Instead of flipping between charts, the grid brings potential setups to you, complete with entry prices, stop losses, and take profit targets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
Augury Grid scans 21 symbol-timeframe combinations every bar (7 symbols × 3 timeframes) and displays only the setups that pass multiple quality filters. Each signal receives a quality score based on trend alignment, momentum confirmation, and volume participation. The grid ranks signals from strongest to weakest and automatically removes signals when their stop loss level is hit.
The scanner works across any market: crypto, forex, indices, stocks, or commodities. Eight built-in symbol presets provide instant access to popular watchlists, and a Custom mode allows scanning any 7 symbols of your choice.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗜𝗧 𝗪𝗢𝗥𝗞𝗦
The scanner evaluates each symbol-timeframe combination through several analytical layers. Here is what each component does and how to interpret its output.
𝗧𝗿𝗲𝗻𝗱 𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁
What it does: Compares the 21 EMA against the 55 EMA to determine trend direction, and checks price position relative to the 200 EMA for major trend context.
How to interpret: Bullish signals require price above EMA 200 with the fast EMA above the slow EMA. Bearish signals require the opposite. This dual-layer trend check helps filter signals that go against the dominant market structure.
𝗠𝗔𝗖𝗗 𝗖𝗿𝗼𝘀𝘀𝗼𝘃𝗲𝗿
What it does: Monitors the MACD histogram for zero-line crossovers, which indicate shifts in short-term momentum.
How to interpret: A bullish signal triggers when the histogram crosses above zero during an uptrend. A bearish signal triggers when the histogram crosses below zero during a downtrend. The histogram amplitude is also measured to filter out weak, choppy crosses.
𝗔𝗗𝗫 𝗧𝗿𝗲𝗻𝗱 𝗦𝘁𝗿𝗲𝗻𝗴𝘁𝗵
What it does: Measures the strength of the current trend using the Average Directional Index.
How to interpret: Signals require ADX above a configurable minimum (default 20) to confirm meaningful trend strength. Rising ADX adds bonus points to the quality score. ADX below the threshold blocks signals entirely, as ranging markets tend to produce whipsaws.
𝗩𝗼𝗹𝘂𝗺𝗲 𝗖𝗼𝗻𝗳𝗶𝗿𝗺𝗮𝘁𝗶𝗼𝗻
What it does: Compares current volume against the 20-bar average.
How to interpret: Signals require volume at or above a configurable multiplier (default 1.3×) of the average. Volume participation suggests institutional interest and increases the probability that a move will follow through.
𝗥𝗦𝗜 𝗙𝗶𝗹𝘁𝗲𝗿𝗶𝗻𝗴
What it does: Checks RSI position to avoid overbought and oversold extremes, and awards bonus points for mid-range readings.
How to interpret: Bullish signals are blocked when RSI exceeds 70 (overbought). Bearish signals are blocked when RSI falls below 30 (oversold). Signals with RSI in the configurable mid-range (default 40-60) receive bonus points because they have more room to run before hitting extremes.
𝗘𝘅𝘁𝗲𝗻𝘀𝗶𝗼𝗻 𝗖𝗵𝗲𝗰𝗸
What it does: Measures how far price has moved from the 21 EMA in terms of ATR multiples.
How to interpret: If price is more than the configured threshold (default 2.5 ATR) from the EMA, the signal is blocked. Extended moves carry higher risk of mean reversion, so avoiding them helps filter chasing behavior.
𝗤𝘂𝗮𝗹𝗶𝘁𝘆 𝗦𝗰𝗼𝗿𝗶𝗻𝗴
What it does: Combines all factors into a single score from 0-100, displayed as stars in the Bias column.
How to interpret: ★ indicates a score of 70-84, ★★ indicates 85-94, and ★★★ indicates 95 or higher. Higher scores typically mean more factors are aligned: rising ADX, mid-range RSI, growing histogram, and volume participation all contribute bonus points.
𝗠𝘂𝗹𝘁𝗶-𝗧𝗙 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲
What it does: Detects when the same symbol has signals on multiple timeframes pointing in the same direction.
How to interpret: A 🔗 symbol appears when 2 timeframes agree, and 🔗🔗 appears when all 3 timeframes agree. These confluence signals receive bonus points (+15 for 2 TFs, +30 for 3 TFs) and often represent stronger setups because multiple perspectives align.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗪𝗛𝗬 𝗧𝗛𝗘𝗦𝗘 𝗖𝗢𝗠𝗣𝗢𝗡𝗘𝗡𝗧𝗦 𝗪𝗢𝗥𝗞 𝗧𝗢𝗚𝗘𝗧𝗛𝗘𝗥
Each filter addresses a different aspect of trade quality. Trend alignment ensures the signal follows the dominant direction. MACD crossovers provide timing for momentum shifts. ADX confirms the trend has strength behind it. Volume validates institutional participation. RSI filtering prevents chasing into extremes. Extension checks prevent chasing runaway moves.
The scoring system synthesizes these elements into a single ranking. Rather than treating all passing signals equally, the scanner weights signals by how many favorable conditions align. A signal with rising ADX, mid-range RSI, and growing histogram will rank higher than a signal that just barely passes the minimum thresholds.
The multi-timeframe confluence detection adds another dimension. When the 15-minute, 4-hour, and daily timeframes all show bullish signals for the same symbol, the alignment across perspectives often indicates a higher-quality opportunity than a signal appearing on just one timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗧𝗢 𝗨𝗦𝗘
Step 1: Select a Display Preset based on your screen size. Desktop shows all 9 columns at normal text size, positioned in the top right corner. Mobile uses tiny text optimized for phone screens, positioned at the bottom right to avoid interfering with price action. Minimal shows only 5 essential columns (#, Symbol, TF, Bias, Entry) for users who want a quick-glance view without the extra detail. Custom unlocks full control over every display setting: text size, position, abbreviations, row count, and individual column visibility.
Step 2: Choose a Symbol Preset or create a custom watchlist. The scanner includes presets for Crypto Majors on Binance (BTC, ETH, SOL, BNB, XRP, ADA, AVAX), Crypto Majors on Bybit (same symbols, different exchange), Altcoins (ADA, AVAX, DOT, LINK, NEAR, ATOM, UNI), Meme Coins (DOGE, SHIB, PEPE, FLOKI, LUNC, PEOPLE, WIF), Forex Majors (EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD, USD/CHF, NZD/USD), US Indices (SPY, QQQ, DIA, IWM, VTI, VOO, XLF), US Tech Giants (AAPL, MSFT, GOOGL, NVDA, TSLA, META, AMZN), and Commodities (Gold, Silver, Oil, Gas, Copper, Platinum, Palladium). Select Custom to define your own 7 symbols.
Step 3: Configure your timeframes. The defaults are 15-minute, 4-hour, and Daily, providing coverage across intraday scalping, swing trading, and position trading perspectives. Adjust these to match your preferred trading style. Day traders might use 5m, 15m, 1H. Swing traders might use 1H, 4H, D. Position traders might use 4H, D, W.
Step 4: Set your target multipliers. Stop Loss and Take Profit distances are calculated as ATR multiples. The defaults are 1.5× ATR for stop loss, 2× ATR for first target (TP1), and 3× ATR for the runner target (TP2). Tighter stops mean smaller losses but more frequent stop-outs. Wider stops give trades more room but increase risk per trade.
Step 5: Read the grid from top to bottom. The highest-ranked signal appears at position 1. Each row displays: rank number, symbol ticker, timeframe, direction with quality stars and confluence markers, signal age (how long ago it triggered), entry price (where the signal fired), stop loss level, take profit level, and current P&L percentage showing unrealized profit or loss.
Step 6: Use confluence indicators for stronger setups. When you see 🔗 next to a signal, that symbol has matching direction on 2 timeframes. When you see 🔗🔗, all 3 timeframes agree. These confluence signals receive automatic score bonuses and often represent more reliable opportunities because the setup is confirmed across multiple time perspectives.
Step 7: Monitor signal age and P&L. Fresh signals (age under 1 hour) show developing momentum. Older signals with positive P&L may be extended. Older signals with negative P&L approaching stop loss may soon be removed from the grid. The scanner automatically removes any signal when current price crosses the stop loss level.
𝗘𝘅𝗮𝗺𝗽𝗹𝗲 𝗦𝗰𝗲𝗻𝗮𝗿𝗶𝗼𝘀
*Example Scenario A (Trend Continuation):*
Grid shows BTC with Bull ★★★ 🔗🔗 on the 4H timeframe, ranked first. Signal age is 2 days, current P&L shows +1.5%. The triple star rating indicates strong factor alignment (rising ADX, mid-range RSI, growing histogram). The double confluence marker shows 15m, 4H, and Daily all agree bullish. This type of setup suggests the trend has conviction across multiple perspectives.
*Example Scenario B (Momentum Fading):*
ETH appears with Bull ★★ on the 15m, but the P&L column shows -2.3%. The signal triggered 6 hours ago but price has moved against the entry. The stop loss column shows 3,450 and current price is approaching that level. When price hits stop loss, the scanner will automatically remove this signal and begin looking for fresh setups.
*Example Scenario C (Exhaustion Warning):*
SOL shows Bear ★ at position 5 in the grid. The single star indicates minimum passing score (70-84 range). No confluence marker appears, meaning only one timeframe shows bearish. This type of signal has fewer confirming factors and may warrant additional caution or smaller position sizing.
*Example Scenario D (Fresh Signal Appearing):*
The grid has been showing 4 signals for the past hour. A new row appears at position 2 with BNB Bull ★★★ and Age showing 3m. The fresh signal just triggered on the 4H timeframe with high quality score. When new signals appear near the top of the grid with strong ratings, they often indicate developing momentum that passed all filters at the current bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗡𝗔𝗩𝗜𝗚𝗔𝗧𝗜𝗡𝗚 𝗗𝗜𝗙𝗙𝗘𝗥𝗘𝗡𝗧 𝗠𝗔𝗥𝗞𝗘𝗧 𝗖𝗢𝗡𝗗𝗜𝗧𝗜𝗢𝗡𝗦
𝗧𝗿𝗲𝗻𝗱𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During strong trends, the grid typically shows multiple signals in the same direction across different symbols. Higher ADX readings produce more ★★ and ★★★ signals. Confluence markers appear more frequently as timeframes align. The scanner works well in trending conditions because its filters are designed to identify trend-following setups.
𝗥𝗮𝗻𝗴𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During sideways consolidation, the grid may show fewer signals or signals with lower quality scores. ADX typically falls below 20, which blocks most signals. This is intentional: the scanner reduces output during choppy conditions to avoid whipsaw trades. If the grid shows few or no signals, it may indicate the market lacks clear directional bias.
𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗲 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
High volatility periods may produce signals that hit stop losses quickly. The P&L column helps track which signals are working and which are struggling. The automatic SL-hit removal feature keeps the grid focused on active opportunities rather than failed setups. Consider widening stop loss multipliers during high-volatility regimes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗧𝗘𝗖𝗛𝗡𝗜𝗖𝗔𝗟 𝗗𝗘𝗧𝗔𝗜𝗟𝗦
The scanner uses exponential moving averages for trend detection, with fast and slow periods optimized for swing trading timeframes. MACD uses standard parameters for histogram calculation. RSI uses a standard lookback period for overbought and oversold detection. ADX uses a standard smoothing period for trend strength measurement. ATR calculates volatility for position sizing and extension detection.
All signal detection runs on confirmed bars to prevent repainting. The scanner remembers the entry price, ATR, and timestamp when each signal triggers, allowing accurate stop loss and take profit calculations even as the market moves. Stop loss hit detection compares current price against the stored entry and ATR values.
The scoring system weights each factor based on empirical testing across multiple market conditions. Mandatory factors (trend, MACD cross, ADX minimum, volume, RSI extremes, extension) must all pass for a signal to appear. Bonus factors (rising ADX, mid-range RSI, growing histogram, confluence) add points to the quality score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗨𝗡𝗜𝗤𝗨𝗘 𝗙𝗘𝗔𝗧𝗨𝗥𝗘𝗦
• Multi-symbol, multi-timeframe scanning in a single indicator (21 combinations)
• Automatic signal invalidation when stop loss is hit
• Quality scoring with star ratings for quick visual assessment
• Multi-timeframe confluence detection with 🔗 indicators
• Eight built-in symbol presets covering crypto, forex, indices, and commodities
• Four display presets optimized for different screen sizes
• Configurable signal thresholds for ADX, RSI, volume, and extension
• Real-time P&L tracking for each active signal
• Actionable alerts with entry, stop loss, and take profit included
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗦𝗘𝗧𝗧𝗜𝗡𝗚𝗦 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
𝗗𝗶𝘀𝗽𝗹𝗮𝘆 𝗚𝗿𝗼𝘂𝗽
• Display Preset: Desktop, Mobile, Minimal, or Custom
• Text Size: Tiny, Small, Normal, or Large (Custom only)
• Position: 9 positions available (Custom only)
• Abbreviate: Shorter text labels (Custom only)
• Show Rows: 1-7 rows displayed (Custom only)
• Column toggles: Show or hide each of the 9 columns (Custom only)
𝗖𝗼𝗹𝗼𝗿𝘀 𝗚𝗿𝗼𝘂𝗽
• Bullish, Bearish, Neutral colors
• Header and row background colors
• Entry, Stop Loss, Take Profit, Timeframe text colors
𝗙𝗶𝗹𝘁𝗲𝗿𝘀 𝗚𝗿𝗼𝘂𝗽
• Min Score: Minimum quality score to display (0-100)
• Show Top N: Maximum signals to display (1-7)
𝗦𝗶𝗴𝗻𝗮𝗹 𝗧𝘂𝗻𝗶𝗻𝗴 𝗚𝗿𝗼𝘂𝗽
• ADX Minimum: Trend strength threshold (10-40)
• RSI Range Low/High: Mid-range bonus bounds (20-50, 50-80)
• Volume Spike ×: Volume multiplier requirement (1.0-3.0)
• Extension ATR: Maximum distance from EMA (1.0-5.0)
𝗧𝗮𝗿𝗴𝗲𝘁𝘀 𝗚𝗿𝗼𝘂𝗽
• SL ×ATR: Stop loss distance as ATR multiple
• TP1 ×ATR: First take profit as ATR multiple
• TP2 ×ATR: Runner target as ATR multiple
𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲𝘀 𝗚𝗿𝗼𝘂𝗽
• TF 1, TF 2, TF 3: The three timeframes to scan
𝗦𝘆𝗺𝗯𝗼𝗹 𝗣𝗿𝗲𝘀𝗲𝘁 𝗚𝗿𝗼𝘂𝗽
• Preset: Crypto Majors (Binance), Crypto Majors (Bybit), Altcoins, Meme Coins, Forex Majors, US Indices, US Tech Giants, Commodities, or Custom
• Custom Symbols 1-7: Your own symbols when preset is Custom
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗔𝗟𝗘𝗥𝗧𝗦
The scanner provides 45 alert conditions.
𝗔𝗰𝘁𝗶𝗼𝗻𝗮𝗯𝗹𝗲 𝗔𝗹𝗲𝗿𝘁𝘀 (42)
Each symbol-timeframe-direction combination has its own dynamic alert. Alert messages include the symbol, timeframe, direction, entry price, stop loss, and take profit. Example message: "🟢 BTC 4H BULL | Entry: 89,500 | SL: 88,200 | TP: 91,100"
To receive these alerts, create an alert on this indicator and select "Any alert() function call" as the condition.
𝗦𝗶𝗺𝗽𝗹𝗲 𝗔𝗹𝗲𝗿𝘁𝘀 (3)
• Any Bullish (Simple): Triggers when any bullish signal appears
• Any Bearish (Simple): Triggers when any bearish signal appears
• Any Signal (Simple): Triggers when any signal appears
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗟𝗜𝗠𝗜𝗧𝗔𝗧𝗜𝗢𝗡𝗦
• Your chart timeframe must be EQUAL TO or LOWER than your lowest scanner timeframe (TF 1). Scanning 15m data from a 4H chart causes memory errors. If you see "Memory limits exceeded", lower your chart TF or raise TF 1.
• Maximum of 7 symbols can be scanned simultaneously due to TradingView's security function limits
• Signals are based on confirmed bar data; intrabar movements are not evaluated until bar close
• The scanner identifies potential setups based on technical criteria; it does not predict future price movement
• Performance varies across different market conditions; trending markets typically produce better results than ranging markets
• Symbol presets are fixed; adding or removing symbols from presets requires code modification
• Alerts fire once per bar close; rapid intrabar signals are not captured
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗖𝗢𝗡𝗖𝗟𝗨𝗦𝗜𝗢𝗡
Augury Grid consolidates multi-symbol, multi-timeframe scanning into a single organized display. The quality scoring system helps prioritize signals, the confluence detection identifies cross-timeframe agreement, and the automatic stop loss tracking keeps the grid focused on active opportunities. Whether scanning crypto majors, forex pairs, or stock indices, the scanner provides a structured approach to identifying and ranking potential setups across your watchlist.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗗𝗜𝗦𝗖𝗟𝗔𝗜𝗠𝗘𝗥
Trading is risky and most traders lose money. This indicator is provided for informational and educational purposes only. It does not constitute financial advice, and past performance does not guarantee future results. All content, tools, and analysis should not be considered as recommendations to buy or sell any asset. Users are solely responsible for their own trading decisions. Always use proper risk management and consider consulting a qualified financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Questions or feedback? Send a private message.
ICT Internal Levels [Amaan] 🔷 OVERVIEW
The ICT Internal Levels is a comprehensive institutional analysis suite designed to bridge the gap between subjective price action and objective algorithmic logic. This script automates the detection of core ICT pillars—Liquidity, Time, and Displacement—into a single, high-performance interface.
🧠 The Core Engine
Unlike standard support/resistance indicators, this script uses a dynamic state-tracking system to identify institutional interest zones. It manages historical levels using memory-efficient User-Defined Types (UDTs) and arrays, ensuring that only the most relevant "unswept" liquidity remains on your chart.
🛠 Key Features
• Auto IFVG Checklist: A real-time confluence engine that "grades" market conditions from C to A+ by cross-verifying Liquidity Sweeps, Midnight Open Bias, and HTF Delivery.
• SMT Divergence Engine: A dual-mode detector (Adjacent & Structural) that identifies cracks in correlation between correlated assets (e.g., NQ/ES) with built-in dynamic invalidation.
• Algorithmic Macros: Six fully customizable time-anchored sessions (New York local time) that highlight the specific "killzones" where institutional volatility is highest.
• Internal Liquidity Scanner: A multi-timeframe scanner for Equal Highs (EQH) and Equal Lows (EQL) that identifies the "Draw on Liquidity" across 1m to 15m charts.
• Institutional Bias Framework: Automatically anchors the Midnight Opening Price to determine Daily Equilibrium (Discount vs. Premium arrays).
📈 Why Use This Script?
This tool is built for the "Smarter Trader." It removes the guesswork from ICT concepts by providing:
1. Objectivity: Know exactly when a setup has enough confluence via the automated Checklist.
2. Clarity: Clear visual distinction between Major and Minor liquidity levels.
3. Risk Management: Automated "Breakeven" logic prompts you when the stop-run phase is likely complete.
📝 Technical Implementation
This version is optimized for speed and accuracy. It features zero repainting on the checklist and SMT components by utilizing closed-candle verification. The UI is fully customizable, allowing you to tailor the dashboard to your specific trading style.
🟢 Advanced BSL & SSL Liquidity Engine
The core of this script is a sophisticated tracking system for Buyside Liquidity (BSL) and Sellside Liquidity (SSL). In institutional trading (ICT), these aren't just highs and lows; they are "Liquidity Pools" where retail stop-losses (buy/sell stops) are clustered, acting as magnets for the market algorithm.
1. The Logic of "Parent Swings"
Unlike basic indicators that mark every fractal high/low, this script uses a Swing Strength filter. It only identifies levels after they have been confirmed by a specific number of bars on either side (lookback/lookforward). This ensures the levels represent significant structural points where true "Smart Money" liquidity resides.
2. Major vs. Minor Classification (The Volatility Filter)
The script includes an intelligent classification system based on the Major Level Threshold %:
• The Calculation: Once a pivot is formed, the script measures the displacement away from that level.
• The Depth: If price expands by more than \bm{X\%} (e.g., 0.5%) after forming a high, it is labeled a "Major BSL".
This tells the trader that this level protected a significant move, making the liquidity sitting above it even more valuable to the algorithm.
3. Proximity Logic: Relatively Equal Highs/Lows (REQH/REQL)
The script features an internal "Proximity Scan." It automatically evaluates the distance between active liquidity levels:
• Logic: If two BSL levels are within a defined price threshold (\bm{REQ\_THRESHOLD}), the script identifies them as Relatively Equal Highs.
• Trading Insight: In ICT concepts, equal highs/lows are "engineered liquidity." The market is much more likely to run through these levels aggressively because there is a double layer of stops resting there.
4. Automated Level Management & Mitigation
To prevent "chart clutter," the script uses Custom Types and Arrays to manage levels dynamically:
• Mitigation (The Purge): As soon as price trades through a level, it is considered "mitigated" or "purged."
• Traded-Through Memory: You can toggle a setting to keep these levels visible. If enabled, the script stops extending the line and reduces its opacity (e.g., to 25%), leaving a "ghost level" on the chart. These often act as S/R Flips or support/resistance zones in future sessions.
📝 Logic behind it
• Methodology: The script utilizes the method keyword in Pine Script v6 to create clean, object-oriented code for level deletion and updates.
• Performance: By using array.unshift() and array.remove(), the script maintains a FIFO (First-In-First-Out) queue. This ensures that even on high-volatility days, the script never exceeds the 500-line drawing limit, maintaining smooth chart performance.
• Coordinate Precision: Lines are pinned using bar_index , ensuring that the line starts at the exact wick peak, providing pixel-perfect accuracy for liquidity analysis.
🟢 Institutional Macro Sessions
In the ICT methodology, Time is the primary filter. Price levels only become significant when they are reached at specific times of the day. This script automates the detection of Algorithmic Macros—tight 20-to-30-minute windows where the "Interbank Price Delivery Algorithm" (IPDA) is programmed to execute specific volatility injections.
1. Algorithmic Directives
During these highlighted windows, the market is not moving randomly. The algorithm is usually "called" to perform one of three tasks:
• Liquidity Purge: A quick run to stop out retail traders at a previous High (BSL) or Low (SSL).
• Rebalancing: Returning to a Fair Value Gap (FVG) or "Imbalance" to seek equilibrium.
• Expansion: Moving rapidly from an internal range toward a higher-timeframe target.
2. The 6 Tracked Macros
Your script identifies the most vital institutional windows for the New York session:
• AM Macro 1 (08:50 – 09:10): Often used for "Setting the Stage" or manipulation before the Equities Open.
• AM Macro 2 (09:50 – 10:10): A high-probability execution window often coinciding with the "Silver Bullet" setup.
• AM Macro 3 (10:50 – 11:10): Frequently marks the "Trend Continuation" or the start of a midday reversal.
• Lunch Macro (11:50 – 12:10): Algorithmic rebalancing before the PM session.
• PM Macro (13:10 – 13:40): The kick-off for the afternoon trend and London Close volatility.
• Last Hour Macro (15:15 – 15:45): The final algorithmic rebalancing before the New York "MOC" (Market On Close) orders.
3. Behind the Logic: Timezone Synchronization
A major technical challenge in Pine Script is ensuring time-boxes align correctly regardless of the user's local clock
• The Solution: This script utilizes a Timezone Shift parameter combined with the timestamp() function.
• Logic: It anchors the calculation to the chart’s syminfo.timezone and then offsets it to match New York Local Time.
This ensures that even if you are trading from London, Tokyo, or Dubai, the "09:50 Macro" will always plot exactly when the New York algorithms become active.
🟢 Multi-Timeframe Liquidity Scanner (EQH/EQL)
One of the most powerful features of V2 is the Stable Deep Scan Logic. Unlike basic fractal indicators, this script doesn't just mark any two similar peaks; it performs a rigorous historical audit of the price action.
The "Unswept" Logic
The table is powered by a custom function, check_liquidity_deep(), which executes a two-stage verification:
1. Detection: It scans a lookback window (default 300 bars) to find price points that are mathematically equal.
2. Verification: Once a level is found, the script runs a secondary loop to ensure that no intervening candle has breached (swept) that level. If a higher high has occurred between the level formation and the current bar, the level is discarded as "invalid/purged."
Data Visualization
The scanner requests this deep-scan data via request.security() for the 1m, 2m, 3m, 4m, 5m, and 15m timeframes simultaneously.
• EQH (Green/Red): Indicates a "Ceiling" of liquidity waiting to be raided.
• EQL (Red/Green): Indicates a "Floor" of sell-side liquidity.
• Both: Alerts the trader to a "bracketed" market, often preceding a high-volatility expansion.
• Memory Management: By using var array structures for SMT lines and labels, the script avoids the "Maximum Objects" limit often hit by lower-quality scripts.
• Optimization: The check_liquidity_deep function is designed to only trigger its heaviest calculations on the barstate.islast, ensuring your chart remains fluid and responsive even with multiple timeframes active.
• Coordinate Precision: The script uses xloc.bar_time for Macro lines to ensure they remain pinned to the correct NYC time regardless of the user's local computer clock or daylight savings shifts.
🟢 The Auto IFVG Checklist
The Auto IFVG Checklist in this script is a real-time confluence engine. It doesn't just display labels; it executes complex multi-timeframe scans and state-checks to verify if an institutional setup is currently active.
1. 🛡️ Liq Sweep (Liquidity Sweep)
Code Logic: high > high and close < high (for Bearish) or low < low and close > low (for Bullish).
• How it works: Your code identifies "Wick Manipulations." It flags a sweep when price breaches a previous candle's extremity but fails to hold that level on the close.
• Persistence: It uses swept_p with a ta.barssince lookback of 5 bars, meaning the "fuel" from the sweep remains valid for 5 candles after it occurs.
2. ⚡ Momentum (Midnight Open Bias)Orderflow Code Logic: midnightOpen = na anchored at hour == 0 and minute == 0.
• How it works: The script establishes a "True Day Open."
• IOF Bullish: Price is currently below Midnight Open (accumulating in a discount).
• IOF Bearish: Price is currently above Midnight Open (distributing in a premium).
• The Checklist Role: The Momentum check confirms if you are trading on the correct side of the "Power of 3" (Accumulation/Manipulation/Distribution).
3. 🎯 Clear DOL (Draw on Liquidity)
Code Logic: iof_bullish ? close < ta.vwap : close > ta.vwap.
• How it works: It uses VWAP (Volume Weighted Average Price) as the standard for algorithmic equilibrium.
• The Objective: If the bias is bullish, the script looks for price to be below VWAP, indicating the "Draw" is toward a higher premium or internal liquidity pool. It ensures the trade has room to "breathe" before hitting equilibrium.
4. 🔄 HTF iFVG (Higher Timeframe Inversion FVG)
Code Logic: f_scan_tf(tf) using request.security.
• How it works: This is the most complex part of the indicator. It scans the 1m, 2m, 3m, 4m, and 5m timeframes for "Inversion."
• The "Inversion" Event: It checks if price has closed completely through a Fair Value Gap (inv_b or inv_s). In your script, if a gap on any of these five timeframes is inverted, it signals a high-probability "Change in State of Delivery."
5. 🚢 HTF Delivery (Higher Timeframe Narrative)
Code Logic: f_scan_tf scanning 15m, 30m, 1H, and 4H.
• How it works: The script checks if price is currently interacting with an institutional zone on much higher timeframes.
• Priority: It uses a hierarchical "if-else" chain. If a 4H zone is found, it overrides the 1H; if a 1H is found, it overrides the 15m. This ensures the Checklist always displays the most significant timeframe currently "delivering" price.
6. ⚖️ Breakeven (The Risk-Off Trigger)
Code Logic: beR = ta.barssince(swept) < 10.
• How it works: This is a time-based risk management filter.
• The Logic: If a Liquidity Sweep occurred within the last 10 bars and the trade is moving, the script flags "Breakeven." It alerts the trader that the "Stop Run" phase should be over, and it is time to move the stop loss to the entry to ensure a risk-free trade.
📊 The Mathematical Rating System
The final "RATING" cell in the table is the result of a weighted boolean check:
• A+: Requires all 5 confluences (Sweep, Momentum, iFVG, Delivery, and DOL).
• A: Requires Sweep, Momentum, iFVG, and DOL.
• B+: Only requires the intraday pillars (Sweep, Momentum, and iFVG).
• C: Only requires an iFVG presence.
🟢 SMT Divergence Engine
The SMT engine in this script acts as a "crack in correlation" detector. It monitors the relationship between current chart and a Comparison Symbol (e.g., NQ vs. ES) to identify institutional accumulation or distribution that isn't visible on a single chart.
1. Dual-Mode Detection
This feature implements two distinct types of SMT to capture both aggressive and structural shifts:
• Adjacent Wick SMT: This is "Micro-SMT." It compares the current candle's wick to the previous candle's wick. If the main symbol makes a Higher High but the correlated symbol does not, it flags an immediate divergence.
• Structural Pivot SMT: This is "Macro-SMT." It uses three different lookback lengths (Primary, Secondary, and Tertiary) to find divergences across major market swings.
2. Dynamic Invalidation Logic (The "Mended Crack")
A common issue with SMT indicators is that they stay on the chart forever. Your code solves this with a Reference Price Check:
• The Logic: When a divergence is found, the script stores the correlated symbol’s high/low in an array (adj_up_comp_refs).
• The Invalidation: If the correlated symbol eventually "catches up" and breaks that stored reference price, the "crack" is considered mended. The script then executes a while loop to purge the lines and labels from the chart automatically.
3. Advanced Memory Management (Array-Based)
This allows the script to track multiple concurrent SMTs. If three different divergences happen in a row, the script can display and manage all of them independently without hitting TradingView's drawing limits or "forgetting" old levels.
4. Triple-Length Pivot Analysis
By using three different pivot lengths (3, 5, and 8), the SMT engine filters "Market Noise":
• Tertiary (3): For scalpers looking for quick entries.
• Primary (5): For standard intraday trend changes.
• Secondary (8): For major structural shifts and daily bias reversals.
5. Algorithmic Correlation Mapping
The script uses fixnan(ta.pivothigh(...)) to ensure that the SMT lines are pinned exactly to the historical pivots, even if the comparison symbol has gaps in its data. This ensures that the "slope" of the SMT line is mathematically accurate, providing a clear visual of the divergence.
⚒️How to use ICT Internal Levels
Step 1: Establish the "Daily Anchor" (Midnight Open)
Before looking for trades, identify your bias using the Midnight Opening Price.
• Look at the Momentum section of your Checklist.
• If the script says "BULL" (price is below Midnight Open), you are in a Discount and should only look for Longs.
• If it says "BEAR" (price is above Midnight Open), you are in a Premium and should only look for Shorts.
Step 2: Identify the "Draw" (EQH/EQL & BSL/SSL)
Now, find out where the market is likely to go.
• The Scanner: Check the Multi-TF EQH/EQL Table. If you see "EQH" across multiple timeframes (1m, 5m, 15m), that is a high-probability Draw on Liquidity (DOL).
• The Levels: Look for the Major BSL/SSL lines. These are your "Targets." The market will likely seek these pools of money before reversing.
Step 3: Wait for the "Time Window" (Macros)
Don't trade in the "dead zones." Wait for price to enter a Macro Session (the highlighted vertical zones).
• Institutional volatility is most consistent during these windows (e.g., 09:50–10:10 AM).
• The Goal: You want to see price reach your "Draw" (from Step 2) during this time window.
Step 4: Confirm the "Crack" (SMT Divergence)
As price approaches a BSL or SSL level within a Macro window, look for an SMT label.
• If the asset you are trading (e.g., NQ) sweeps a high, but the comparison symbol (e.g., ES) does not, the SMT engine will plot a line.
• This confirms that "Smart Money" is actively distributing, and a reversal is imminent.
Step 5: The "Entry Signal" (HTF iFVG)
Wait for the Change in State of Delivery.
• Look for an iFVG (Inversion Fair Value Gap) to form on the 1m or 5m chart.
• When price closes through a gap, the HTF IFVG item on your Checklist will turn green. This is your "Green Light" to enter the market.
Step 6: Final Audit (The Checklist Grade)
Before clicking "Buy" or "Sell," look at the RATING in the bottom corner of the checklist.
• A+ / A: Execute with full confidence. All pillars (Time, Price, SMT, and HTF) are aligned.
• B+: High probability, but perhaps you are trading outside of a Macro or against the HTF Delivery. Use smaller risk.
• C: Avoid this setup; it is likely a trap or a low-probability scalp.
Step 7: Risk Management (Breakeven)
Once you are in the trade:
• Monitor the Breakeven status on the checklist.
• Once it switches to "YES" (usually after 10 bars or a significant move), move your Stop Loss to your entry price. You now have a "Risk-Free" trade.
⚠️ Risk Disclaimer
The ICT Internal Levels V2 is an educational tool for market analysis and does not provide financial advice or guaranteed "buy/sell" signals. Trading involves significant risk, and you may lose some or all of your invested capital.
No Guarantees: Past performance does not guarantee future results. While this script uses advanced logic to identify confluences, all market analysis involves probability, not certainty.
User Responsibility: The author is not liable for any financial losses resulting from the use of this indicator. You are solely responsible for your trading decisions and should always use proper risk management. Use this script to supplement your own manual analysis—never rely on an indicator alone for execution.
ORB + Expected Move + Trade Bias RWCORB + Expected Move + Trade Bias v3
Overview
A comprehensive 0DTE SPX options trading indicator designed to identify optimal credit spread and iron condor setups based on Opening Range Breakout (ORB) analysis, Expected Move calculations, VWAP dynamics, and multi-factor confidence scoring. The indicator provides specific strike suggestions, real-time position management signals, and exit warnings.
Who This Is For
This indicator is built for traders who sell 0DTE SPX credit spreads (put spreads, call spreads, or iron condors) and want a systematic, data-driven approach to:
Determine trade direction (bullish, bearish, or neutral)
Select appropriate strikes based on market conditions
Manage positions with clear exit signals
Core Components
1. Opening Range Breakout (ORB)
The ORB establishes the initial trading range after market open, serving as the foundation for trade bias determination.
Settings:
ORB Period: Choose 15, 30, 45, or 60 minutes
Shorter periods (15-30 min) = more signals, more noise
Longer periods (45-60 min) = fewer signals, more reliable ranges
ORB Breakout Buffer %: Percentage buffer beyond ORB high/low before confirming breakout (default 0.1%)
Colors: Customize ORB high (green), low (red), and fill colors
How It Works:
Tracks the high and low during the ORB period
After ORB completes, monitors for breakouts above/below with buffer
Counts consecutive bars above/below ORB for confirmation
2. Expected Move (EM)
Calculates the statistically expected daily range based on Average True Range (ATR).
Settings:
ATR Length: Lookback period for ATR calculation (default 14)
ATR Multiplier: Scale the expected move (default 1.0)
Colors: Customize expected move lines and fill
How It Works:
Pulls daily ATR from the previous session
Projects expected move boundaries from session open
Used for strike distance calculations and range containment analysis
3. VWAP Analysis
Volume Weighted Average Price with standard deviation bands provides trend confirmation and stretch detection.
Settings:
Show VWAP: Toggle VWAP line visibility
Show VWAP StdDev Bands: Toggle ±1 standard deviation bands
VWAP Band Multiplier: Adjust band width (default 1.0)
VWAP Slope Lookback: Bars to measure VWAP slope (default 10)
Key Metrics:
VWAP Slope: Normalized slope indicating trend strength
Strong Up (↑↑): > 0.5
Up (↑): 0.3 to 0.5
Flat (—): -0.3 to 0.3
Down (↓): -0.5 to -0.3
Strong Down (↓↓): < -0.5
Stretched Detection: Warns when price is >1.5 standard deviations from VWAP
4. Prior Day Levels (PDH/PDL)
Yesterday's high and low serve as key support/resistance levels where institutional orders often cluster.
Settings:
Show Prior Day High/Low: Toggle PDH/PDL lines
Show Prior Day Close: Optional PDC line
Colors: Customize PDH (teal), PDL (orange), PDC (gray)
Why It Matters:
Price above PDH = strong bullish continuation signal
Price below PDL = strong bearish continuation signal
Price between PDH/PDL = range-bound, favors iron condors
Strikes are adjusted to respect these levels as potential support/resistance
Trade Signal System
Signal Time
Settings:
Signal Time (ET): Choose when the indicator evaluates and locks in the trade signal
1100 = 8:00 AM PT / 11:00 AM ET
1115 = 8:15 AM PT / 11:15 AM ET (default)
1130 = 8:30 AM PT / 11:30 AM ET
1145 = 8:45 AM PT / 11:45 AM ET
1200 = 9:00 AM PT / 12:00 PM ET
Recommendation: Later signal times (8:30-9:00 AM PT) provide more data and reduce morning fakeout signals, but leave less time for theta decay.
Confidence Scoring (9 Factors)
The indicator calculates three scores: Iron Condor (IC), Bullish, and Bearish. The highest score determines the signal.
Factor 1: Price Position vs ORB (max 40 pts)
Inside ORB → +35-40 IC points
Above ORB (confirmed breakout) → +40 Bull points
Below ORB (confirmed breakout) → +40 Bear points
Factor 2: VWAP Slope (max 30 pts)
Flat slope → +25 IC points
Strong positive slope → +30 Bull points
Strong negative slope → +30 Bear points
Factor 3: Price vs VWAP Position (max 20 pts)
Above upper band → +20 Bull points
Below lower band → +20 Bear points
Near VWAP → +12 IC points
Factor 4: VWAP Consistency (max 15 pts)
70%+ bars above VWAP → +15 Bull points
70%+ bars below VWAP → +15 Bear points
Mixed → +10 IC points
Factor 5: Move from Open (max 20 pts)
30% of EM up → +20 Bull points
30% of EM down → +20 Bear points
<12% move either way → +15 IC points
Factor 6: Trend Structure (max 15 pts)
Higher highs + higher lows → +15 Bull points
Lower lows + lower highs → +15 Bear points
No clear structure → +8 IC points
Factor 7: Day Range Containment (max 15 pts)
Range <35% of EM → +15 IC points
Range <50% of EM → +8 IC points
Range >65% of EM → Points to directional score
Factor 8: Gap Behavior (max 12 pts)
Gap up, unfilled, above ORB → +12 Bull points
Gap down, unfilled, below ORB → +12 Bear points
Gap filled, inside ORB → +8 IC points
Factor 9: Prior Day High/Low (max 20 pts)
Above PDH → +20 Bull points
Below PDL → +20 Bear points
Between PDH/PDL → +15-20 IC points
Alignment Bonuses (max 25 pts)
Additional points when multiple factors align in the same direction.
Signal Types
SignalMeaningTradeIRON CONDORRange-bound conditionsSell both put and call credit spreadsPUT SPREADBullish conditionsSell put credit spread onlyCALL SPREADBearish conditionsSell call credit spread onlyNO TRADEConflicting signals or low confidenceStay out
Confidence Levels
ConfidenceColorStrike Mode75%+Green🍆 AGGRESSIVE (tighter strikes, more premium)60-75%Lime/Yellow🌶️ NORMAL (balanced strikes)45-60%Yellow/Orange🐢 CONSERVATIVE (wider strikes, safer)<45%Orange/RedNO TRADE triggered
Strike Suggestions
Base Calculation
For Iron Condors: Strikes are calculated from current price at signal time as the midpoint, ensuring symmetric risk on both sides.
For Directional Spreads: Strikes are calculated from session open, betting on continuation.
Put Strike = Midpoint - (Expected Move × Distance)
Call Strike = Midpoint + (Expected Move × Distance)
Distance Settings:
High Confidence (75%+): 0.60 EM (default) - Tighter strikes, more premium
Mid Confidence (60-75%): 0.70 EM (default) - Balanced
Low Confidence (<60%): 0.80 EM (default) - Wider strikes, safer
Skew Adjustments
When Auto-Adjust for Skew is enabled, strikes are asymmetrically adjusted based on:
VIX Level:
VIX > 20: Puts pushed wider (-0.05), Calls pulled tighter (+0.05)
VIX < 15: Opposite adjustment
2-Day Momentum:
Strong down move: Puts pushed wider
Strong up move: Calls pushed wider
Prior Day Levels:
Below PDL: Puts pushed wider (more downside protection)
Above PDH: Calls pushed wider (more upside protection)
PDH/PDL Strike Reference
If the calculated strike is too close to PDH or PDL, the indicator adjusts to place strikes 10 points beyond these key levels (maximum 20 point adjustment).
Exit Signal System
Three-Stage Warning System
Stage 1: EARLY ⚠️ (Yellow)
Trigger: Price moves against position with:
Below VWAP AND in lower fib zones (for put spreads/IC downside)
Above VWAP AND in upper fib zones (for call spreads/IC upside)
Action: Heightened awareness. Consider reducing position or tightening mental stops.
Note: Only fires once per direction per day to avoid alert fatigue.
Stage 2: CAUTION (Orange)
Trigger:
2+ consecutive bars beyond ORB
Price has traveled 25%+ of the distance to short strike
Action: Actively manage position. Prepare to exit.
Stage 3: EXIT (Red)
Trigger:
3+ consecutive bars beyond ORB (configurable)
Price has traveled 40%+ of the distance to short strike
VWAP slope confirms the move (if enabled)
Action: Close position immediately.
Exit Settings
Exit Confirmation Bars: Consecutive bars required for EXIT signal (default 3)
CAUTION Distance %: How far toward strike before CAUTION (default 25%)
EXIT Distance %: How far toward strike before EXIT (default 40%)
Require VWAP Confirmation: EXIT only fires if VWAP slope confirms direction
Fibonacci Retracement Levels
After signal fires, fib levels are drawn between key price points:
For Iron Condors:
0% = Put Strike
100% = Call Strike
For Put Spreads:
0% = Put Strike (danger zone)
100% = Day High at signal
For Call Spreads:
0% = Day Low at signal
100% = Call Strike (danger zone)
Fib Levels Shown:
0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Fib Zone Tracking: The left table shows current fib zone, color-coded:
Red: Near strikes (danger)
Orange: Approaching strikes
Green: Safe middle zones
Information Tables
Left Table (Position Management)
RowDescriptionSIGNALCurrent trade signal with confidence colorConfConfidence percentageEXITCurrent exit status (HOLD/EARLY/CAUTION/EXIT)Fib ZoneCurrent price position in fib structurePDHPrior day high valuePDLPrior day low valuevs PDPosition relative to prior day rangeModeStrike mode (🍆/🌶️/🐢)PutSuggested short put strikeCallSuggested short call strikeCall Dist% distance traveled toward call strikePut Dist% distance traveled toward put strike
Right Table (Market Factors)
RowDescriptionStructureOverall market structure (BULLISH/BEARISH/RANGE/MIXED)PricePosition relative to ORBVWAPVWAP slope direction and strengthStretchedWarning if price extended from VWAPMoveCurrent move from open as % of EMEM UsedDay range as % of expected moveGapGap status (up/down, filled/unfilled)ReversalV-top or V-bottom detectionConflictAny conflicting signals detectedVIXCurrent VIX levelSkewMomentum-based skew direction
Alerts
The indicator includes pre-configured alerts:
AlertDescriptionEntry: Iron CondorIC signal firedEntry: Put SpreadBullish signal firedEntry: Call SpreadBearish signal firedHigh Confidence EntryAny signal with 75%+ confidenceNo TradeNO TRADE signal firedEARLY WARNINGEarly warning triggeredCAUTIONPosition under pressureEXIT NOWExit signal triggered
Recommended Settings
Conservative (New Traders)
ORB Period: 60 minutes
Signal Time: 1130 (8:30 AM PT)
Min Confidence: 50%
Strike Distances: 0.65 / 0.75 / 0.85
Balanced (Default)
ORB Period: 30-45 minutes
Signal Time: 1115 (8:15 AM PT)
Min Confidence: 45%
Strike Distances: 0.60 / 0.70 / 0.80
Aggressive (Experienced)
ORB Period: 30 minutes
Signal Time: 1100 (8:00 AM PT)
Min Confidence: 40%
Strike Distances: 0.55 / 0.65 / 0.75
Important Notes
This indicator does not guarantee profits. It provides a systematic framework for trade selection and management.
Paper trade first. Test the indicator on historical data and paper trade before using real capital.
Position sizing matters. Never risk more than you can afford to lose on any single trade.
Exits are suggestions. Use the exit signals as guidance, but always apply your own judgment.
Market conditions vary. The indicator performs best in normal volatility environments. Use extra caution during major news events, FOMC days, and earnings season.
SPX/SPY focused. While the indicator may work on other instruments, it was designed specifically for SPX 0DTE options trading.
Version History
v3.0
Added 45/60 minute ORB options
Added configurable signal time (8:00-9:00 AM PT)
Added stretched detection (VWAP distance warning)
Added Prior Day High/Low as scoring factor
Iron Condor strikes now centered on current price (symmetric risk)
Split table UI (left: position, right: factors)
PDH/PDL reference for strike adjustments
Credits
Developed for the 0DTE SPX options trading community. Inspired by SMB Capital's ORB methodology, VWAP analysis techniques, and real-world credit spread trading experience.
Disclaimer: This indicator is for educational and informational purposes only. It is not financial advice. Trading options involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results.
Scalp Breakout Predictor Pro - by Herman Sangivera (Papua)Scalp Breakout Predictor Pro by Herman Sangivera ( Papuan Trader )
Overview
The Scalp Breakout Predictor Pro is a high-performance technical indicator designed for scalpers and day traders who thrive on market volatility. This tool specializes in identifying "Squeeze" phases—periods where the market is consolidating sideways—and predicts the likely direction of the upcoming breakout using underlying momentum accumulation.
How It Works
The indicator combines three core mathematical concepts to ensure "Safe but Fast" entries:
Squeeze Detection (BB vs. KC): It monitors the relationship between Bollinger Bands and Keltner Channels. When Bollinger Bands contract inside the Keltner Channels, the market is in a "Squeeze" (represented by the gray background). This indicates that energy is being coiled for a massive move.
Momentum Accumulation (Pre-Signal): While the price is still moving sideways, the script analyzes linear regression momentum.
PRE-BULL: Momentum is building upwards despite price being flat.
PRE-BEAR: Momentum is fading downwards despite price being flat.
Breakout Confirmation: An entry signal is only triggered when the Squeeze "fires" (the price breaks out of the bands), ensuring you don't get stuck in a dead market for too long.
Key Features
Real-time Prediction Labels: Get early warnings (PRE-BULL / PRE-BEAR) to prepare for the trade before it happens.
Dynamic TP/SL Lines: Automatically calculates Take Profit and Stop Loss levels based on the Average True Range (ATR), adapting to the current market's "breath."
On-Screen Dashboard: A sleek table in the top-right corner displays the current market phase (Squeeze vs. Volatile), the predicted next move, and the current ATR value.
Pine Script V6 Optimized: Built using the latest version of TradingView’s coding language for maximum speed and compatibility.
Trading Rules
Preparation: When you see a Gray Background, the market is sideways. Watch the Dashboard for the "Potential" direction.
Anticipation: If a PRE-BULL or PRE-BEAR label appears, get ready to enter.
Execution: Enter the trade when the ENTRY BUY (Lime Triangle) or ENTRY SELL (Red Triangle) signal appears.
Exit: Follow the Green Line for Take Profit and the Red Line for Stop Loss.
Technical Settings
HMA Length: Adjusts the sensitivity of the trend filter (Hull Moving Average).
TP/SL Multipliers: Allows you to customize your Risk:Reward ratio based on ATR volatility.
Squeeze Length: Determines the lookback period for consolidation detection.
Disclaimer: Scalping involves high risk. Always test this indicator on a demo account before using it with live capital.
OmniDeck - Unified Chart OverlayOmniDeck - Unified Chart Overlay
OmniDeck consolidates ten independent trading systems into a single, coherent chart overlay — eliminating the need to manage multiple indicators while preserving the analytical depth of each methodology. The indicator is designed to help traders see how Exhaustion Counter, SuperTrend, EMAs, Bull Market Support Band, volatility squeeze, supply/demand zones, liquidity sweeps, candlestick patterns, regime detection, and confluence scoring all interact on the same chart, at the same time.
Instead of switching between indicators and mentally synthesizing their outputs, OmniDeck presents everything in one unified view with a real-time confluence score that quantifies how many systems are aligned.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
Most traders face a common challenge: important signals are scattered across multiple indicators, making it difficult to see how different analytical methods align or conflict. Adding ten separate indicators creates visual chaos. Switching between them means missing the bigger picture. And mentally tracking which signals agree versus conflict is cognitively exhausting.
OmniDeck running on a single chart — exhaustion counts, SuperTrend line, EMA stack, supply/demand zones, liquidity sweep markers, and the confluence panel all visible simultaneously without chart clutter.
OmniDeck addresses this by unifying ten distinct analytical systems into a single overlay:
• 𝗘𝘅𝗵𝗮𝘂𝘀𝘁𝗶𝗼𝗻 𝗖𝗼𝘂𝗻𝘁𝗲𝗿 — Identifies potential exhaustion points through sequential counting (8 warns, 9 completes)
• 𝗦𝘂𝗽𝗲𝗿𝗧𝗿𝗲𝗻𝗱 𝗖𝗼𝗻𝘀𝗲𝗻𝘀𝘂𝘀 — Combines three ATR multipliers (2/3/4) so you get agreement, not just one setting
• 𝗘𝗠𝗔 𝗦𝘁𝗮𝗰𝗸 — 50/100/200 EMAs with automatic Golden Cross and Death Cross detection
• 𝗕𝘂𝗹𝗹 𝗠𝗮𝗿𝗸𝗲𝘁 𝗦𝘂𝗽𝗽𝗼𝗿𝘁 𝗕𝗮𝗻𝗱 — The classic 20 SMA / 21 EMA zone for trend support analysis
• 𝗦𝗾𝘂𝗲𝗲𝘇𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻 — Bollinger Bands inside Keltner Channels = volatility compression incoming
• 𝗦𝘂𝗽𝗽𝗹𝘆/𝗗𝗲𝗺𝗮𝗻𝗱 𝗭𝗼𝗻𝗲𝘀 — Auto-detected pivot zones with quality grades (A/B/C) based on freshness, distance, and touch count
• 𝗟𝗶𝗾𝘂𝗶𝗱𝗶𝘁𝘆 𝗦𝘄𝗲𝗲𝗽𝘀 — Wicks that grab stops and reverse, marked with 💧 (bullish) and 🩸 (bearish)
• 𝗖𝗮𝗻𝗱𝗹𝗲𝘀𝘁𝗶𝗰𝗸 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 — 16 classic patterns filtered by swing location to reduce noise
• 𝗥𝗲𝗴𝗶𝗺𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻 — Background tinting shows bull/bear regime at a glance
• 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 𝗣𝗮𝗻𝗲𝗹 — Real-time weighted score showing how many systems agree, with optional multi-timeframe input
The goal is not to provide more signals, but to provide clearer context by showing how different methods agree or disagree at any given moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗜𝗧 𝗪𝗢𝗥𝗞𝗦
The indicator is built around one core principle: confluence between independent analytical methods may provide more context than any single method alone. When Exhaustion Counter, SuperTrend, EMAs, and structural zones all point the same direction, that's different from when they conflict.
𝗘𝘅𝗵𝗮𝘂𝘀𝘁𝗶𝗼𝗻 𝗖𝗼𝘂𝗻𝘁𝗲𝗿
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Counts consecutive bars that close higher or lower than the close four bars prior. When a sequence reaches eight, a warning marker appears. At nine, the setup is considered complete. A "perfected" nine occurs when specific low or high conditions are met relative to earlier bars in the sequence.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: A count of 8 may indicate the trend is becoming extended. A count of 9 suggests potential exhaustion where a pause or reversal could occur. These counts should not be followed blindly and do not guarantee any particular outcome.
Exhaustion Counter in action — the "8" warning appears as the move extends, followed by the "9" completion. Notice the bearish Count 8 warning occurring right at a supply zone (red box, top right), providing confluence between exhaustion counting and structural resistance.
𝗦𝘂𝗽𝗲𝗿𝗧𝗿𝗲𝗻𝗱 𝗖𝗼𝗻𝘀𝗲𝗻𝘀𝘂𝘀
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Most SuperTrend indicators use a single ATR multiplier — but which one? 2x ATR is responsive but whippy. 4x ATR is smooth but late. OmniDeck calculates three separate SuperTrend lines using ATR multipliers of 2, 3, and 4. When at least two of three agree on direction, the consensus line displays. A dot marker appears when the consensus direction changes.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: The consensus approach may help filter noise compared to a single SuperTrend. When price is above a rising consensus line, this suggests bullish conditions. Direction changes marked by dots (●) may warrant attention as potential trend shifts.
Adaptive SuperTrend in action — during this choppy correction, a standard single-setting SuperTrend would have flipped multiple times. The consensus approach (requiring 2 of 3 ATR settings to agree) held the trend, filtering out noise and maintaining directional confidence.
𝗘𝗠𝗔 𝗦𝘁𝗮𝗰𝗸 & 𝗚𝗼𝗹𝗱𝗲𝗻/𝗗𝗲𝗮𝘁𝗵 𝗖𝗿𝗼𝘀𝘀
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Plots three exponential moving averages at 50, 100, and 200 periods. Automatically detects and labels Golden Cross (50 crossing above 200) and Death Cross (50 crossing below 200) events — you don't have to watch for them manually.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: When EMAs are stacked bullishly (50 above 100 above 200), this may indicate an uptrend environment. The reverse stacking may suggest a downtrend. Cross events are historically significant but do not predict future price action.
𝗕𝘂𝗹𝗹 𝗠𝗮𝗿𝗸𝗲𝘁 𝗦𝘂𝗽𝗽𝗼𝗿𝘁 𝗕𝗮𝗻𝗱
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Displays the 20-period SMA and 21-period EMA as a filled band. This is a classic technical analysis tool popularized for identifying potential support during uptrends.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Price holding above the band may suggest bullish conditions. Price crossing below may indicate weakening momentum. The band itself is not a signal but a reference zone for context.
𝗦𝗾𝘂𝗲𝗲𝘇𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Identifies when Bollinger Bands are trading inside Keltner Channels — the classic "squeeze" setup indicating compressed volatility. When the squeeze releases, an arrow (▲/▼) indicates the momentum direction at the time of release.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Volatility compression often precedes expansion. The squeeze cloud highlights these periods visually. The direction of the subsequent move is not guaranteed by the squeeze itself — but knowing compression is present may inform position sizing or timing decisions.
𝗦𝘂𝗽𝗽𝗹𝘆/𝗗𝗲𝗺𝗮𝗻𝗱 𝗭𝗼𝗻𝗲𝘀 𝘄𝗶𝘁𝗵 𝗤𝘂𝗮𝗹𝗶𝘁𝘆 𝗚𝗿𝗮𝗱𝗶𝗻𝗴
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Detects pivot-based supply and demand zones using left and right bar confirmation. But here's what makes this different: each zone receives a quality grade (A, B, or C) based on freshness, distance from current price, and touch count. Fresh, untested zones near price get higher grades. Old, multiple-touched zones get lower grades. Zones can also merge when they overlap significantly.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Zones represent areas where price previously showed reaction. Higher-graded zones may indicate stronger historical significance. Price entering a zone does not guarantee a reaction — but an A-grade demand zone with a Count 9 Buy and bullish candlestick pattern is a very different situation than a C-grade zone with no other confluence.
Supply and demand zones with quality grades visible. The "A" grade supply zone (red box) shows high confluence with nearby structure. The "C" grade demand zone (green box, bottom) has been touched multiple times and degraded. Price bounced off the demand zone near EMA 200, demonstrating zone and moving average confluence.
𝗟𝗶𝗾𝘂𝗶𝗱𝗶𝘁𝘆 𝗦𝘄𝗲𝗲𝗽𝘀
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Identifies candles where the wick extends beyond the recent high or low (12-bar lookback) but the close returns inside that level — the classic "stop hunt" pattern. A minimum wick-to-range ratio filters for significant wicks. Bullish sweeps display 💧 below the candle. Bearish sweeps display 🩸 above.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: These patterns may indicate that stops were triggered before price reversed. The emoji markers make these events immediately visible. They do not guarantee continuation in the reversal direction — but a 💧 at a demand zone with regime background turning green is a very different context than an isolated sweep.
Liquidity sweeps in action — the 🩸 marker (top) appears after price wicked above recent highs and closed back inside, grabbing stops before reversing down. The 💧 markers (bottom) show bullish sweeps where price wicked below recent lows and reversed. Notice the April sweep followed by a sustained move higher.
𝗖𝗮𝗻𝗱𝗹𝗲𝘀𝘁𝗶𝗰𝗸 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Recognizes sixteen classic patterns including Hammer, Inverted Hammer, Hanging Man, Shooting Star, Engulfing, Harami, Morning Star, Evening Star, Three White Soldiers, Three Black Crows, Rising Three Methods, Falling Three Methods, and Tweezers. Critically: patterns are filtered by swing location to reduce false positives — a Hammer means more at a swing low than in the middle of a range.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Bullish patterns appearing at swing lows may be more significant. Bearish patterns at swing highs may warrant more attention. Pattern recognition is a visual aid and does not constitute a trading signal — but an Engulfing pattern at a demand zone with Count 8 warning is stronger context than pattern recognition alone.
𝗥𝗲𝗴𝗶𝗺𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Uses a four-vote system based on EMA relationship, price position relative to a longer EMA, slope direction, and directional movement to determine overall market regime. A confirmation period and minimum hold time prevent rapid flipping. The background tints green (bullish) or red (bearish) to reflect the current regime.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: The background color provides ambient context without requiring active interpretation. You can see at a glance whether the regime system considers conditions bullish or bearish. Regime changes tend to lag price action by design — they confirm rather than predict.
𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 𝗣𝗮𝗻𝗲𝗹
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: This is where everything comes together. The confluence panel aggregates signals from all active systems into a weighted score. Different events carry different weights. The panel displays in two modes:
• 𝗕𝗮𝗱𝗴𝗲 𝗠𝗼𝗱𝗲: Compact view showing directional arrow, numerical score, and strength bar
• 𝗧𝗮𝗯𝗹𝗲 𝗠𝗼𝗱𝗲: Detailed view showing each system's current contribution with timeframe labels
Multi-timeframe inputs allow the confluence calculation to incorporate higher timeframe data — so you can see if the Daily SuperTrend agrees with your 1H chart.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Higher scores indicate more systems are aligned in one direction. A score of 6+ may indicate strong confluence. The score is informational and does not recommend any action — but it quantifies something traders usually have to track mentally.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗪𝗛𝗬 𝗧𝗛𝗘𝗦𝗘 𝗖𝗢𝗠𝗣𝗢𝗡𝗘𝗡𝗧𝗦 𝗪𝗢𝗥𝗞 𝗧𝗢𝗚𝗘𝗧𝗛𝗘𝗥
Each system analyzes price from a different perspective using different mathematics. When multiple independent methods point in the same direction, this may provide more context than any single method.
1. 𝗧𝗿𝗲𝗻𝗱 𝗜𝗱𝗲𝗻𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 — SuperTrend (ATR-based), EMA Stack (moving average-based), Regime (multi-factor), and BMSB (dual-MA) each assess trend from different angles using different calculations
2. 𝗘𝘅𝗵𝗮𝘂𝘀𝘁𝗶𝗼𝗻 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻 — Exhaustion Counter (counting logic), candlestick patterns (price structure), and liquidity sweeps (wick analysis) may identify potential turning points through completely different methodologies
3. 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲 𝗠𝗮𝗽𝗽𝗶𝗻𝗴 — Supply/Demand zones (pivot-based) and EMA levels (dynamic) provide price structure context
4. 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗖𝗼𝗻𝘁𝗲𝘅𝘁 — Squeeze detection highlights periods of compression that may precede expansion
The power of confluence — at the April low, a bullish sweep (💧) grabbed stops below, SuperTrend flipped bullish, regime turned bullish, and price sat at a demand zone. The confluence panel (right) shows the score at 3.5 with multiple systems aligned. Rally followed. This is what OmniDeck reveals: multiple independent systems confirming at the same moment.
When multiple factors align — for example, a Count 9 at a demand zone with a bullish candlestick pattern while SuperTrend is up — this represents multiple independent confirmations from unrelated mathematical methods. Such conditions may warrant additional analysis, though they do not guarantee any particular outcome.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗧𝗢 𝗨𝗦𝗘
This section provides step-by-step guidance for interpreting the indicator's visual elements.
𝗦𝘁𝗲𝗽 𝟭: 𝗔𝘀𝘀𝗲𝘀𝘀 𝘁𝗵𝗲 𝗥𝗲𝗴𝗶𝗺𝗲
Begin by observing the background color. This provides immediate context about the overall market environment without requiring detailed analysis.
• Green background tinting indicates the regime detection system has identified bullish conditions
• Red background tinting indicates bearish conditions have been detected
• This ambient information helps frame all other signals
The regime detection uses a confirmation system that prevents rapid flipping, so changes tend to be meaningful when they occur.
𝗦𝘁𝗲𝗽 𝟮: 𝗖𝗵𝗲𝗰𝗸 𝗧𝗿𝗲𝗻𝗱 𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁
Look at the SuperTrend line and EMA positioning. When analyzing potential opportunities, consider whether these trend indicators agree.
• SuperTrend consensus line below price with upward slope may suggest bullish trend
• EMAs stacked bullishly (50 above 100 above 200) may confirm uptrend structure
• Disagreement between systems may indicate transitional or unclear conditions
The confluence panel in Badge mode provides a quick numerical summary of this alignment.
𝗦𝘁𝗲𝗽 𝟯: 𝗜𝗱𝗲𝗻𝘁𝗶𝗳𝘆 𝗞𝗲𝘆 𝗟𝗲𝘃𝗲𝗹𝘀
If Supply/Demand zones are enabled, observe where the nearest zones are relative to current price.
• Demand zones below price represent areas where buying previously emerged
• Supply zones above price represent areas where selling previously emerged
• Zone quality grades (A, B, C) indicate relative significance — prioritize A-grade zones
The zone labels show "supply" or "demand" inside each box, with the grade displayed at the zone's origin point.
𝗦𝘁𝗲𝗽 𝟰: 𝗪𝗮𝘁𝗰𝗵 𝗳𝗼𝗿 𝗘𝘃𝗲𝗻𝘁𝘀
Several event types may appear on the chart:
• Exhaustion Counter numbers (8 and 9) indicate exhaustion counts — watch for these at key levels
• Candlestick pattern labels (HMR, ENG, MS, etc.) indicate recognized formations
• Liquidity sweep markers (💧 below or 🩸 above) indicate wick-based sweep events
• SuperTrend flip dots (●) indicate direction changes
• GC/DC labels indicate Golden Cross or Death Cross events
• Squeeze arrows (▲/▼) indicate volatility release direction
Each event provides context but should be interpreted within the broader picture, not in isolation.
𝗦𝘁𝗲𝗽 𝟱: 𝗖𝗼𝗺𝗯𝗶𝗻𝗲 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗲 𝗙𝗮𝗰𝘁𝗼𝗿𝘀
The indicator provides the most context when multiple elements align:
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘈 — 𝘉𝘶𝘭𝘭𝘪𝘴𝘩 𝘊𝘰𝘯𝘧𝘭𝘶𝘦𝘯𝘤𝘦: Price pulls back to the Bull Market Support Band during a bullish regime (green background), a Count 8 appears warning of exhaustion in the pullback, and a Hammer pattern forms at an A-grade demand zone. The confluence panel shows 6+. This represents multiple systems identifying a potential support area simultaneously. Such conditions may warrant closer examination, though no outcome is guaranteed.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘉 — 𝘚𝘲𝘶𝘦𝘦𝘻𝘦 𝘉𝘳𝘦𝘢𝘬𝘰𝘶𝘵: A squeeze has been building for several bars (purple cloud visible), the regime is bullish, SuperTrend is up, and the confluence panel shows a score of 7. When the squeeze releases with an upward arrow (▲), this represents volatility expansion in the direction of the prevailing trend signals. The alignment does not guarantee continuation.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘊 — 𝘉𝘦𝘢𝘳𝘪𝘴𝘩 𝘊𝘰𝘯𝘧𝘭𝘶𝘦𝘯𝘤𝘦: A Count 9 Sell appears while price is at a B-grade supply zone, regime background is red, a 🩸 sweep marker appears on the same candle showing stops were grabbed above. This represents exhaustion signals clustering near resistance during bearish conditions. These observations are informational and do not constitute trading recommendations.
𝗦𝘁𝗲𝗽 𝟲: 𝗨𝘀𝗲 𝘁𝗵𝗲 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 𝗣𝗮𝗻𝗲𝗹
The confluence panel synthesizes signals into a single view:
• Badge mode shows a directional arrow, numerical score, and strength bar — glanceable
• Table mode shows each system's current contribution with timeframe labels — detailed
• Higher scores indicate more systems aligned in one direction
• Scores of 6 or above trigger the High Confluence alert condition
Switch between Badge and Table mode based on whether you prefer a quick summary or detailed breakdown. Badge is great for mobile; Table is great for detailed analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗡𝗔𝗩𝗜𝗚𝗔𝗧𝗜𝗡𝗚 𝗗𝗜𝗙𝗙𝗘𝗥𝗘𝗡𝗧 𝗠𝗔𝗥𝗞𝗘𝗧 𝗖𝗢𝗡𝗗𝗜𝗧𝗜𝗢𝗡𝗦
𝗧𝗿𝗲𝗻𝗱𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
In trending conditions, the regime background provides consistent coloring, SuperTrend tracks below (uptrend) or above (downtrend) price, and EMAs maintain their stack order. Exhaustion Counter counts may reach completion multiple times during extended trends without reversals occurring — this is normal. During trends, focus on:
• The BMSB and SuperTrend as dynamic reference levels for pullback entries
• Supply and demand zones that align with trend direction
• High confluence scores as confirmation of trend strength
Supply and demand zones may be swept through without sustained reaction in strong trends.
𝗥𝗮𝗻𝗴𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
In ranging conditions, the regime may flip more frequently or show conflicting signals. SuperTrend may generate multiple direction changes as price oscillates. EMAs may compress together and lose their stack order. In these conditions, focus on:
• Supply and demand zones as range boundaries
• Squeeze detection — compression often occurs during consolidation
• Lower confluence scores as systems disagree
The confluence score may remain low as systems disagree — this itself is useful information indicating unclear conditions.
𝗛𝗶𝗴𝗵 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗘𝘃𝗲𝗻𝘁𝘀
During high volatility, multiple signals may cluster together as price moves rapidly. Liquidity sweeps may become more frequent as wicks extend beyond recent ranges. Exhaustion counts may complete quickly. Candlestick patterns may form in rapid succession. The confluence panel may show extreme scores in either direction.
These conditions require careful interpretation as signals may whipsaw. The non-repainting design ensures that historical signals remain consistent with what would have appeared in real-time — so you can backtest how the indicator behaved during past volatile events.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗧𝗘𝗖𝗛𝗡𝗜𝗖𝗔𝗟 𝗗𝗘𝗧𝗔𝗜𝗟𝗦
• Exhaustion Counter uses bar close comparison with four-bar offset for counting logic
• SuperTrend consensus requires 2-of-3 ATR band agreement for direction determination
• Supply/Demand zones use left and right bar confirmation for pivot detection
• Zone quality scoring considers freshness, proximity, and touch count
• Liquidity sweep detection uses a wick-to-range ratio filter for quality control
• Regime detection uses a four-vote majority system with confirmation period and minimum hold time
• Candlestick patterns are filtered by swing location using a lookback window
• All signals fire on bar close only (non-repainting architecture)
• Multi-timeframe data retrieved using request.security() with lookahead disabled
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗨𝗡𝗜𝗤𝗨𝗘 𝗙𝗘𝗔𝗧𝗨𝗥𝗘𝗦
• 𝗔𝗱𝗮𝗽𝘁𝗶𝘃𝗲 𝗦𝘂𝗽𝗲𝗿𝗧𝗿𝗲𝗻𝗱 𝗖𝗼𝗻𝘀𝗲𝗻𝘀𝘂𝘀 — Standard SuperTrend uses a single ATR setting: responsive but whippy, or smooth but laggy. OmniDeck calculates three SuperTrends (2x, 3x, 4x ATR) and requires two of three to agree before flipping. The result: a trend line that adapts to volatility, filters out noise during corrections, and only changes direction when multiple sensitivity levels confirm. During choppy pullbacks, it holds the trend instead of whipsawing — giving you confidence to stay positioned while others panic.
• 𝗧𝗲𝗻 𝗦𝘆𝘀𝘁𝗲𝗺𝘀, 𝗢𝗻𝗲 𝗜𝗻𝗱𝗶𝗰𝗮𝘁𝗼𝗿 — Replace ten separate indicators with one unified overlay. Less chart clutter, more analytical depth.
• 𝗚𝗿𝗼𝘂𝗽𝗲𝗱 𝗖𝗼𝗹𝗼𝗿 𝗦𝘆𝘀𝘁𝗲𝗺 — Colors organized by analytical function: Trend systems share one palette, Exhaustion systems share another. Systems that work together look alike, making pattern recognition intuitive.
• 𝗠𝘂𝗹𝘁𝗶-𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 — Each system can pull data from a different timeframe for the confluence calculation. See if Daily SuperTrend agrees with your 1H chart.
• 𝗭𝗼𝗻𝗲 𝗤𝘂𝗮𝗹𝗶𝘁𝘆 𝗦𝗰𝗼𝗿𝗶𝗻𝗴 — Supply/Demand zones receive letter grades (A/B/C) based on confluence with key levels. Zones near VWAP, previous day high/low, or EMAs score higher. Not all zones are equal.
• 𝗦𝘄𝗲𝗲𝗽 𝗩𝗶𝘀𝘂𝗮𝗹𝗶𝘇𝗮𝘁𝗶𝗼𝗻 — Distinctive emoji markers (💧/🩸) for immediate visual identification of liquidity events. Spot stop hunts at a glance.
• 𝗠𝗮𝘀𝘁𝗲𝗿 𝗧𝗼𝗴𝗴𝗹𝗲 — One-click control to show all systems, hide all systems, or use manual individual toggles. Clean up your chart instantly.
• 𝗡𝗼𝗻-𝗥𝗲𝗽𝗮𝗶𝗻𝘁𝗶𝗻𝗴 — All calculations use confirmed bar data only. Historical display matches what would have appeared in real-time. What you see in backtesting is what you would have seen live.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗦𝗘𝗧𝗧𝗜𝗡𝗚𝗦 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
• ① 𝗠𝗮𝗶𝗻 — Master toggle (All On/All Off/Manual) plus individual visibility for each of the ten analytical systems. Enable what you need, disable what you don't.
• ② 𝗖𝗼𝗹𝗼𝗿𝘀 — Grouped by analytical function for intuitive customization:
- Trend (📈/📉): SuperTrend, EMA Stack, BMSB, Regime — systems that identify directional bias
- Exhaustion (🔄): Exhaustion Counter, Candlestick Patterns, Liquidity Sweeps — systems that detect potential turning points
- Structure (🟥/🟩): Supply and Demand zones — key price levels
- Squeeze (🔮): Volatility compression detection
- Warning (⚠️): Caution/Danger momentum markers
- Neutral (⚪): Backgrounds and inactive states
• ③ 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 𝗣𝗮𝗻𝗲𝗹 — Choose Badge or Table mode and position. Badge for glanceability, Table for detail.
• ④ 𝗠𝘂𝗹𝘁𝗶-𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲 — Set individual timeframes for confluence calculation. Align lower timeframe entries with higher timeframe context.
• ⑤ 𝗩𝗶𝘀𝘂𝗮𝗹 𝗦𝗲𝘁𝘁𝗶𝗻𝗴𝘀 — Adjust sizes, transparency, and display styles for your screen setup.
• ⑥ 𝗦/𝗗 𝗭𝗼𝗻𝗲𝘀 — Configure zone appearance, maximum zones displayed, and grading thresholds.
• ⑦ 𝗖𝗮𝗻𝗱𝗹𝗲𝘀𝘁𝗶𝗰𝗸 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 — Select which of the 16 patterns to display.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗔𝗟𝗘𝗥𝗧𝗦
38 alert conditions available:
• Count 8 Buy / Count 9 Buy / Count 8 Sell / Count 9 Sell — Sequential exhaustion counts
• Squeeze Active / Squeeze Break UP / Squeeze Break DOWN — Volatility compression events
• SuperTrend Bullish Flip / SuperTrend Bearish Flip — Trend direction changes
• Golden Cross / Death Cross — EMA 50/200 cross events
• BMSB Cross Above / BMSB Cross Below — Price crossing the support band
• Supply Broken / Demand Broken — Zone break events
• Liquidity Sweep Bullish / Liquidity Sweep Bearish — Wick-based sweep detection
• Caution / Danger — Momentum exhaustion warnings
• High Confluence — Score reaches 6 or above
• 16 individual candlestick pattern alerts plus Any Bullish / Any Bearish aggregates
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗟𝗜𝗠𝗜𝗧𝗔𝗧𝗜𝗢𝗡𝗦
• 𝗥𝗲𝗾𝘂𝗶𝗿𝗲𝘀 𝘀𝘂𝗳𝗳𝗶𝗰𝗶𝗲𝗻𝘁 𝗵𝗶𝘀𝘁𝗼𝗿𝗶𝗰𝗮𝗹 𝗱𝗮𝘁𝗮 — EMAs and other calculations need adequate bar history to initialize properly. Allow 200+ bars for full functionality.
• 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀 𝘁𝗼𝗼𝗹, 𝗻𝗼𝘁 𝗮 𝘀𝗶𝗴𝗻𝗮𝗹 𝗴𝗲𝗻𝗲𝗿𝗮𝘁𝗼𝗿 — This indicator displays analytical information. It does not tell you when to trade. All trading decisions should incorporate additional analysis and risk management.
• 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 𝗶𝘀 𝗻𝗼𝘁 𝗰𝗲𝗿𝘁𝗮𝗶𝗻𝘁𝘆 — Multiple aligned signals may provide more context but do not guarantee outcomes. High confluence setups can and do fail.
• 𝗟𝗮𝗴𝗴𝗶𝗻𝗴 𝗶𝗻𝗱𝗶𝗰𝗮𝘁𝗼𝗿 — Most components are derived from historical price data and inherently lag current price action. Signals confirm rather than predict.
• 𝗠𝗮𝗿𝗸𝗲𝘁 𝗰𝗼𝗻𝗱𝗶𝘁𝗶𝗼𝗻𝘀 𝘃𝗮𝗿𝘆 — Settings and interpretations that work in one market environment may not work in another. What works in trending BTC may not work in ranging forex.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗖𝗢𝗡𝗖𝗟𝗨𝗦𝗜𝗢𝗡
OmniDeck provides a structured framework for analyzing price action through ten integrated analytical systems. The indicator is designed to help traders identify when multiple independent methods align, providing context that may warrant further analysis.
By consolidating Exhaustion Counter, SuperTrend consensus, EMA analysis, Bull Market Support Band, volatility squeeze, supply/demand zones, liquidity sweeps, candlestick patterns, regime detection, and confluence scoring into a single overlay, OmniDeck aims to reduce chart clutter while maintaining comprehensive analytical coverage.
The confluence panel quantifies what traders usually track mentally — showing at a glance how many systems agree and which direction they point. All signals should be interpreted as informational context, not as trading recommendations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗗𝗜𝗦𝗖𝗟𝗔𝗜𝗠𝗘𝗥
Trading is risky and most traders lose money. This indicator is provided for informational and educational purposes only. It does not constitute financial advice, and past performance does not guarantee future results. All content, tools, and analysis should not be considered as recommendations to buy or sell any asset. Users are solely responsible for their own trading decisions. Always use proper risk management and consider consulting a qualified financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built with PineScript v6. Non-repainting. All signals confirmed on bar close.
Volume Oracle - Regime DetectionVolume Oracle - Regime Detection
Volume Oracle transforms raw volume data into a regime-based flow analysis framework. The indicator is designed to help traders identify periods of accumulation and distribution through five integrated analytical layers: regime detection, market structure validation, volume footprint analysis, quality scoring, and multi-timeframe confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
Volume analysis has long been considered a window into market participant activity. Large players cannot move size without leaving footprints in the volume record. Traditional volume indicators show raw numbers, but interpreting whether elevated volume represents accumulation or distribution requires additional context.
Volume Oracle builds on this foundation by adding five analytical layers:
• Regime Detection: Classifies the current market state as Accumulation (buying pressure), Distribution (selling pressure), or Neutral (no clear direction) using a composite scoring system that weighs price velocity, trend alignment, and volume-weighted flow.
• Market Structure Validation: Tracks swing highs and lows to determine if price structure (higher highs/higher lows vs lower highs/lower lows) agrees with the detected regime.
• Volume Footprint Analysis: Classifies volume spikes as either Momentum bars (large body, small wicks indicating directional conviction) or Absorption bars (small body, large wicks indicating supply/demand absorption).
• Quality Scoring System: Rates each signal from 0-100% based on multiple confluence factors, displayed as star ratings for quick visual assessment.
• Multi-Timeframe Confluence: Optional higher timeframe filters that require regime alignment across multiple timeframes before generating signals.
The indicator adapts all parameters automatically based on the chart timeframe, with different settings optimized for scalping, intraday, swing, and position trading styles.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗜𝗧 𝗪𝗢𝗥𝗞𝗦
The indicator is built around one core principle: market participant activity may reveal itself through the relationship between volume, price movement, and market structure.
𝗥𝗲𝗴𝗶𝗺𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻 𝗦𝘆𝘀𝘁𝗲𝗺
What it does: The regime engine calculates a composite score using four weighted components: recent price velocity (where price is heading now versus recent history), trend alignment (EMA stacking and price position relative to moving averages), volume-weighted flow (proportion of volume occurring on up-closes versus down-closes), and volume confirmation (whether current volume exceeds average). The score passes through an EMA smoothing filter and must exceed configurable thresholds for multiple consecutive bars before a regime change is confirmed.
How to interpret it: When the indicator shows Accumulation, this suggests buying pressure currently dominates. Distribution suggests selling pressure dominates. Neutral indicates no clear directional bias. The regime state colors the volume bars: green tints during accumulation, red tints during distribution, gray during neutral periods. A subtle background shade reinforces the current regime.
𝗠𝗮𝗿𝗸𝗲𝘁 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲 𝗩𝗮𝗹𝗶𝗱𝗮𝘁𝗶𝗼𝗻
What it does: The indicator tracks recent swing highs and swing lows using pivot detection. It compares the most recent swing points to previous ones to determine if price is making higher highs and higher lows (bullish structure), lower highs and lower lows (bearish structure), or mixed patterns.
How to interpret it: When structure aligns with regime (bullish structure during accumulation, bearish structure during distribution), the regime table displays a checkmark. When structure conflicts with regime, this may suggest the regime is losing conviction. Structure validation appears in the regime table and factors into signal quality scores.
𝗩𝗼𝗹𝘂𝗺𝗲 𝗙𝗼𝗼𝘁𝗽𝗿𝗶𝗻𝘁 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀
What it does: On volume spike bars, the indicator analyzes the candle structure. Momentum bars have large bodies relative to their range (directional conviction). Absorption bars have small bodies with large wicks (supply or demand being absorbed without moving price significantly).
How to interpret it: Momentum bars during a trend may suggest strong directional conviction pushing price. Absorption bars may suggest supply or demand being absorbed at support or resistance without significant price movement. Footprint type factors into signal quality and triggers dedicated alerts.
𝗤𝘂𝗮𝗹𝗶𝘁𝘆 𝗦𝗰𝗼𝗿𝗶𝗻𝗴 𝗦𝘆𝘀𝘁𝗲𝗺
What it does: Each signal receives a quality score from 0-100% based on multiple factors: volume spike strength, flow direction conviction, trend alignment, regime strength, regime freshness, squeeze proximity, HTF alignment (if enabled), momentum acceleration, structure agreement, footprint type, market character (trending vs choppy), and confluence count. High signal density (many signals in a short period) reduces quality scores.
How to interpret it: Signals display star ratings: three stars for scores above 85%, two stars for 75-84%, one star for 65-74%, and no stars below 65%. A target emoji appears when five or more confluence factors align. Higher quality scores suggest more factors agreeing, though this does not guarantee outcomes.
𝗠𝘂𝗹𝘁𝗶-𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲
What it does: When enabled, the indicator fetches data from one or two higher timeframes and calculates simplified regime scores for each. It checks whether HTF regimes match the current timeframe regime, whether HTF strength exceeds a minimum threshold, and whether HTF regimes are strengthening rather than weakening.
How to interpret it: When all HTF conditions align, signals display an additional emoji indicator. In strict mode, signals only appear when HTF agrees. The HTF table shows regime state, strength percentage, trend direction, and alignment status for each configured timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗪𝗛𝗬 𝗧𝗛𝗘𝗦𝗘 𝗖𝗢𝗠𝗣𝗢𝗡𝗘𝗡𝗧𝗦 𝗪𝗢𝗥𝗞 𝗧𝗢𝗚𝗘𝗧𝗛𝗘𝗥
Each layer addresses a different aspect of market analysis:
1. Regime Detection: Establishes the directional bias using volume-weighted evidence.
2. Structure Validation: Confirms whether price action supports the detected regime.
3. Footprint Analysis: Characterizes the nature of volume activity on spikes.
4. Quality Scoring: Synthesizes all factors into a single actionable metric.
5. Multi-Timeframe Filter: Reduces noise by requiring agreement across timeframes.
When multiple factors align (strong regime, confirming structure, momentum footprint, high quality score, HTF agreement), this represents maximum confluence. Such conditions may warrant closer examination, though they do not guarantee any particular outcome.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗧𝗢 𝗨𝗦𝗘
This section provides step-by-step guidance for interpreting the indicator's visual elements.
𝗦𝘁𝗲𝗽 𝟭: 𝗜𝗱𝗲𝗻𝘁𝗶𝗳𝘆 𝘁𝗵𝗲 𝗖𝘂𝗿𝗿𝗲𝗻𝘁 𝗥𝗲𝗴𝗶𝗺𝗲
Look at the regime table in the corner of the chart. The top row shows the current regime state: ACCUMULATION, DISTRIBUTION, or NEUTRAL. The color matches the regime (green, red, or gray).
• Volume bars tinted green suggest accumulation regime
• Volume bars tinted red suggest distribution regime
• Volume bars gray indicate neutral regime
The regime provides context for all other readings. Trading with the regime (buying during accumulation, selling during distribution) aligns with the detected flow direction.
𝗦𝘁𝗲𝗽 𝟮: 𝗔𝘀𝘀𝗲𝘀𝘀 𝗥𝗲𝗴𝗶𝗺𝗲 𝗛𝗲𝗮𝗹𝘁𝗵
The regime table displays multiple health indicators:
• Strength percentage: Higher values suggest stronger conviction
• Status: STRONG, FADING, WEAKENING, or CRITICAL
• Health: Composite warning indicator (HEALTHY, WATCH, CAUTION, DANGER)
• Structure: Whether price structure agrees with regime
• Market: Whether conditions are TRENDING, NORMAL, or CHOPPY
• Flip: Whether a regime change is building
When status shows FADING or worse, the regime may be losing conviction. Yellow-tinted volume bars appear after three consecutive bars of weakening status, providing early warning of potential regime changes.
𝗦𝘁𝗲𝗽 𝟯: 𝗪𝗮𝘁𝗰𝗵 𝗳𝗼𝗿 𝗦𝗶𝗴𝗻𝗮𝗹𝘀
Bullish signals appear as green labels with an up arrow above volume spikes during accumulation. Bearish signals appear as red labels with a down arrow during distribution. Labels include:
• Star ratings indicating quality (more stars suggest more confluence)
• Target emoji when five or more factors align
• HTF emoji when higher timeframe agrees
Hover over any signal label to see detailed tooltip information including quality percentage, risk levels, position sizing suggestions, and specific confluence factors present.
𝗦𝘁𝗲𝗽 𝟰: 𝗖𝗵𝗲𝗰𝗸 𝗛𝗧𝗙 𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁 (𝗜𝗳 𝗘𝗻𝗮𝗯𝗹𝗲𝗱)
When multi-timeframe filtering is enabled, a second table appears showing HTF regime states. Green checkmarks indicate alignment, red X marks indicate disagreement. For maximum confluence, all timeframes should agree on regime direction.
𝗦𝘁𝗲𝗽 𝟱: 𝗠𝗼𝗻𝗶𝘁𝗼𝗿 𝗘𝘅𝗶𝘁 𝗪𝗮𝗿𝗻𝗶𝗻𝗴𝘀
Yellow warning labels appear when exit conditions trigger: regime flips, flow reversals, critical weakness, time-based exits, or target hits. These suggest reviewing open positions. The tooltip explains the specific exit reason.
𝗦𝘁𝗲𝗽 𝟲: 𝗖𝗼𝗺𝗯𝗶𝗻𝗲 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗲 𝗙𝗮𝗰𝘁𝗼𝗿𝘀
The indicator provides the most context when multiple elements align:
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘈 (𝘛𝘳𝘦𝘯𝘥 𝘊𝘰𝘯𝘵𝘪𝘯𝘶𝘢𝘵𝘪𝘰𝘯): Regime shows ACCUMULATION at 72% strength with STRONG status. Structure displays checkmark (HH/HL confirmed). Market character shows TRENDING. A volume spike triggers a bullish signal with two stars and HTF alignment. Multiple factors agreeing during an established regime suggests trend may continue, though no outcome is guaranteed.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘉 (𝘔𝘰𝘮𝘦𝘯𝘵𝘶𝘮 𝘍𝘢𝘥𝘪𝘯𝘨): Regime shows DISTRIBUTION but status has shifted to FADING. Strength dropped from 65% to 48% over recent bars. Structure shows conflict (regime bearish but structure making higher lows). Volume bars have turned yellow. This type of internal disagreement often appears before regime changes or consolidation periods.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘊 (𝘌𝘹𝘩𝘢𝘶𝘴𝘵𝘪𝘰𝘯 𝘞𝘢𝘳𝘯𝘪𝘯𝘨): After an extended rally, regime shows ACCUMULATION but status reads CRITICAL. Health indicator shows CAUTION with two warnings active. An absorption bar appears (volume spike with small body and large upper wick). The Flip row shows regime change building. None of this guarantees reversal, but multiple warning signs appearing together suggest caution.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘋 (𝘉𝘳𝘦𝘢𝘬𝘰𝘶𝘵 𝘍𝘳𝘰𝘮 𝘊𝘰𝘯𝘴𝘰𝘭𝘪𝘥𝘢𝘵𝘪𝘰𝘯): Regime has shown NEUTRAL for several sessions with volume bars gray and muted. Market character displays CHOPPY. Then a volume spike triggers with regime flipping to ACCUMULATION, confirmed by structure shift to HH/HL. A three-star signal appears with target emoji. When multiple elements shift together after a quiet period, consolidation may be resolving into a directional move.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗡𝗔𝗩𝗜𝗚𝗔𝗧𝗜𝗡𝗚 𝗗𝗜𝗙𝗙𝗘𝗥𝗘𝗡𝗧 𝗠𝗔𝗥𝗞𝗘𝗧 𝗖𝗢𝗡𝗗𝗜𝗧𝗜𝗢𝗡𝗦
𝗧𝗿𝗲𝗻𝗱𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During sustained trends, the indicator typically shows persistent regime state (accumulation in uptrends, distribution in downtrends) with STRONG status and TRENDING market character. Structure should confirm with appropriate swing point patterns. Signals receive quality bonuses during trending conditions. Focus on signals that align with the established regime rather than counter-trend setups. The regime strength percentage and status provide ongoing confirmation that the trend remains healthy.
𝗥𝗮𝗻𝗴𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During consolidation, expect frequent regime shifts between accumulation, distribution, and neutral. Market character will display CHOPPY, and quality scores receive penalties. Structure may show mixed readings. Signal frequency increases but quality decreases. Consider using stricter filtering (higher volume threshold, HTF requirement) or waiting for regime stability before acting. The stability index in the regime table tracks flip frequency to help identify choppy conditions.
𝗛𝗶𝗴𝗵 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗘𝘃𝗲𝗻𝘁𝘀
During news events or volatility spikes, the auto-adapt feature adjusts thresholds based on ATR readings. Higher volatility raises the bar for regime changes, reducing whipsaws. Volume spikes during high volatility require greater statistical significance. The regime table tooltip shows current adaptive settings for transparency. Signals during extreme volatility should be interpreted with additional caution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗧𝗘𝗖𝗛𝗡𝗜𝗖𝗔𝗟 𝗗𝗘𝗧𝗔𝗜𝗟𝗦
• Volume spike detection uses z-score normalization against a lookback window
• Regime scoring combines velocity, trend, flow, and volume components with configurable weights
• Regime changes require multi-bar confirmation above thresholds
• Structure detection uses pivot-based swing point identification
• Footprint classification analyzes body-to-range ratio and wick proportions
• Quality scoring aggregates multiple factors with caps and multipliers
• HTF data uses request.security with lookahead disabled (non-repainting)
• All signals fire on bar close only (non-repainting architecture)
• Parameters adapt automatically based on timeframe category
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗨𝗡𝗜𝗤𝗨𝗘 𝗙𝗘𝗔𝗧𝗨𝗥𝗘𝗦
• Timeframe Adaptive: All parameters (lookbacks, thresholds, confirmations) automatically scale based on whether the chart shows scalp, intraday, swing, or position timeframes.
• Multi-Layer Warning System: Four warning levels (STRONG, FADING, WEAKENING, CRITICAL) provide graduated alerts as regimes deteriorate, rather than binary flip signals.
• Structure-Regime Validation: Cross-references detected regime against actual price structure (swing highs/lows) to identify potential divergences.
• Volume Footprint Classification: Distinguishes between momentum-driven volume spikes and absorption patterns that may indicate different market participant behavior.
• Quality-Based Position Sizing: Suggested position sizes scale based on signal quality, with higher confluence signals receiving larger size recommendations.
• Non-Repainting Architecture: All calculations use confirmed bar data only. Historical display matches real-time behavior exactly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗦𝗘𝗧𝗧𝗜𝗡𝗚𝗦 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
• Detection: Volume spike threshold, signal cooldown, regime sensitivity mode, auto-adapt toggle, warning display toggle
• Risk: Account size, risk percentage, ATR length, stop/target multipliers, partial exit percentage, trailing stop and breakeven settings
• Multi-Timeframe: HTF enable toggles, timeframe selections, strict mode, minimum HTF strength threshold
• Strategy: Trading mode selection (Trend Following, Mean Reversion, or Hybrid), mean reversion threshold
• Display: Toggles for regime table, background colors, exit warnings, quality stars, management labels, tooltips, and HTF table
• Table Style: Layout orientation, table positions, text sizes, border and frame widths
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗔𝗟𝗘𝗥𝗧𝗦
25 alert conditions available:
• Bull Signal / Bear Signal / Any Signal: Core directional signals with quality and position details
• Target 1 Hit / Breakeven: Position management milestones
• Exit Warning: Triggered when exit conditions appear
• Regime to Accumulation / Distribution / Neutral: Individual regime change alerts
• Any Regime Change: Fires on any regime transition
• Regime Weakening: Early warning of deteriorating regime
• Momentum Fading / Flow Deteriorating / Volume Drying: Leading exit indicators
• Multiple Warnings: Fires when two or more warning conditions active
• HTF Aligned / HTF Broke: Multi-timeframe alignment changes
• Structure Bullish / Structure Bearish: Price structure shifts
• Structure Conflict: When structure disagrees with regime
• Momentum Footprint / Absorption Footprint: Volume footprint detection
• Market Trending / Market Choppy: Market character changes
• High Confluence Signal: Signals with five or more factors aligned
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗟𝗜𝗠𝗜𝗧𝗔𝗧𝗜𝗢𝗡𝗦
• Requires Volume Data: Instruments without reliable volume data (some forex pairs, indices) will produce unreliable readings.
• Analysis Tool, Not Signal Generator: This indicator identifies conditions that may warrant attention. It does not provide entry/exit instructions and should not be followed mechanically.
• Lagging Component: Regime detection requires confirmation bars, introducing necessary lag. Fast reversals may not be captured in time.
• No Guarantee of Outcomes: High quality scores and multiple confluence factors improve context but do not predict results. Markets can move against any setup.
• HTF Limitations: Higher timeframe data updates on HTF bar closes, not continuously. Brief alignment windows may be missed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗖𝗢𝗡𝗖𝗟𝗨𝗦𝗜𝗢𝗡
Volume Oracle provides a structured framework for analyzing volume flow through regime detection, structure validation, footprint classification, quality scoring, and multi-timeframe confluence. The indicator is designed to help traders identify accumulation and distribution phases and assess the conviction behind detected regimes. Multiple warning systems provide early indication when regimes may be losing strength.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗗𝗜𝗦𝗖𝗟𝗔𝗜𝗠𝗘𝗥
Trading is risky and most traders lose money. This indicator is provided for informational and educational purposes only. It does not constitute financial advice, and past performance does not guarantee future results. All content, tools, and analysis should not be considered as recommendations to buy or sell any asset. Users are solely responsible for their own trading decisions. Always use proper risk management and consider consulting a qualified financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built with PineScript v6. Non-repainting. All signals confirmed on bar close.
SMC Liquidity Engine Pro SMC Liquidity Engine Pro - Complete Trading Guide & Documentation
📊 Introduction: Understanding Smart Money Concepts
The SMC Liquidity Engine Pro is a comprehensive, institutional-grade trading indicator that brings professional Smart Money Concepts (SMC) methodology directly to your TradingView charts. This isn't just another technical indicator—it's a complete framework for understanding how institutional traders, market makers, banks, and hedge funds manipulate and move the markets.
What Makes This Different?
While most retail traders rely on lagging indicators like moving averages or RSI, this indicator reveals the real-time footprints of institutional activity. It shows you:
Where large players are accumulating or distributing positions
How they engineer liquidity to trigger retail stop losses
When they're shifting from one directional bias to another
Where price inefficiencies exist that institutions will likely revisit
The markets don't move randomly—they move based on liquidity. Understanding this fundamental truth is what separates consistently profitable traders from those who struggle. This indicator decodes that liquidity-driven behavior and presents it in clear, actionable visual signals.
The Philosophy Behind Smart Money Concepts
Smart Money Concepts is built on several core principles:
1. Liquidity is King: Price doesn't move because of patterns or indicators—it moves to collect liquidity (stop losses and pending orders). Institutions need massive liquidity to fill their large positions, so they engineer price movements to create that liquidity before making their real directional move.
2. Market Structure Reveals Intent: The way price forms highs and lows tells a story about who's in control. When structure breaks, it signals a shift in institutional positioning.
3. Inefficiencies Get Filled: When price moves too quickly in one direction, it leaves behind "fair value gaps"—areas of imbalance. Institutions frequently return to these areas to fill orders and restore balance.
4. Manipulation Precedes True Moves: The most explosive directional moves are often preceded by liquidity sweeps in the opposite direction—trapping retail traders before the real move begins.
This indicator automates the identification of all these concepts, allowing you to trade alongside the smart money rather than being their exit liquidity.
🎯 Core Features - Deep Dive
1. Market Structure Detection & Visualization
What It Is: Market structure forms the foundation of all Smart Money analysis. This indicator automatically identifies and tracks swing highs and swing lows using a sophisticated pivot detection algorithm. These aren't just any price points—they represent areas where the market showed a significant shift in supply and demand dynamics.
How It Works: The indicator uses a customizable lookback period to identify valid swing points. A swing high must have lower highs on both sides within the lookback period, and a swing low must have higher lows on both sides. This ensures that only significant structural points are marked, filtering out minor noise and consolidation.
Visual Presentation:
Bullish Structure (Cyan Lines): Horizontal lines extending from each identified swing high, showing resistance levels that price previously respected
Bearish Structure (Red Lines): Horizontal lines extending from each identified swing low, showing support levels where buying pressure emerged
Trading Application: These structure levels serve multiple purposes:
Target Zones: Previous highs become targets in uptrends; previous lows become targets in downtrends
Invalidation Levels: If expecting a bullish move, breaking below the last swing low invalidates the setup
Context for Other Signals: All BOS, CHOCH, and liquidity sweep signals gain meaning from their relationship to structure
Multi-Timeframe Anchors: Higher timeframe structure provides context for lower timeframe entries
Advanced Tip: When multiple timeframe structures align (e.g., a daily swing low coincides with a 4-hour swing low), these levels carry significantly more weight and are more likely to be defended or, when broken, lead to explosive moves.
2. Break of Structure (BOS) - Trend Confirmation
What It Is: A Break of Structure occurs when price definitively closes beyond a previous swing high (bullish BOS) or swing low (bearish BOS). This signals that the current trend maintains its momentum and is likely to continue in the same direction.
The Institutional Perspective: When institutions want to continue pushing price in a direction, they need to break through previous resistance or support. A clean BOS indicates that:
There's sufficient institutional buying/selling to overcome the supply/demand at previous structure
The trend has enough momentum to attract more participants
Stop losses above/below structure have been triggered, providing liquidity for continuation
Signal Characteristics:
Bullish BOS Label: Appears below the bar that closes above the previous swing high
Bearish BOS Label: Appears above the bar that closes below the previous swing low
Confirmation: Requires a full candle close, preventing false signals from wicks
Trading Strategies:
Trend Continuation Entries: After a BOS, wait for a pullback to a Fair Value Gap or minor structure, then enter in the direction of the break
Breakout Trading: Enter immediately on BOS confirmation with a stop below the broken structure
Momentum Confirmation: Use BOS to confirm that your existing position is aligned with institutional flow
Scaling Strategy: Add to positions on each successive BOS in trending markets
What to Watch For:
Volume: Strong BOS movements should be accompanied by above-average volume
Speed: Rapid price movement through structure suggests institutional urgency
Follow-Through: The best BOS signals see price continue strongly without immediately reversing
Higher Timeframe Alignment: BOS on higher timeframes (4H, Daily) carry more weight than lower timeframe breaks
Common Pitfalls:
Not all structure breaks are equal—BOS during ranging markets are less reliable
A BOS immediately followed by a reversal back into the range may indicate a failed breakout
During major news events, structure can be broken temporarily without institutional intent
3. Liquidity Sweep Detection - Spotting Manipulation
What It Is: Liquidity sweeps (also called "stop hunts" or "liquidity grabs") occur when price temporarily breaks beyond a key level to trigger stop losses and pending orders, then immediately reverses back. This is one of the most important concepts in SMC trading because it reveals intentional manipulation.
Why Institutions Do This: Large institutional orders can't be filled at a single price point—they need massive liquidity. The biggest pools of liquidity sit just beyond obvious highs and lows where retail traders place their stops. By briefly pushing price into these zones, institutions:
Trigger retail stop losses (creating market orders)
Activate pending buy/sell orders
Fill their large positions at favorable prices
Trap late breakout traders before reversing
Detection Methodology: The indicator identifies sweeps using multiple criteria:
Price must penetrate beyond the structural high/low (creating the sweep)
The candle must close back on the opposite side of the structure (confirming rejection)
The sweep distance is measured against ATR to distinguish manipulation from normal volatility
The sweep multiplier setting allows you to adjust sensitivity based on market conditions
Visual Indicators:
Orange Down Arrows: Mark liquidity sweeps above structural highs
Lime Up Arrows: Mark liquidity sweeps below structural lows
Liquidity Zone Boxes: Semi-transparent colored boxes highlight the exact range of the swept area
Persistent Display: Zones remain visible for several bars to maintain context
Trading Applications:
Reversal Trading: Liquidity sweeps often mark excellent reversal points. After a sweep:
Wait for the sweep to complete (candle closes back inside structure)
Look for a Change of Character signal for confirmation
Enter in the direction opposite to the sweep
Place stops beyond the sweep high/low
Target the opposite side of the range or next structural level
Continuation Filtering: Not all sweeps lead to reversals. During strong trends:
Sweeps of minor structure in a trending market often precede continuation
Use higher timeframe structure to determine if a sweep is counter-trend (likely reversal) or with-trend (likely continuation)
Entry Refinement: In ranging markets, trade from swept lows to highs and vice versa, as institutions accumulate at the extremes.
Advanced Sweep Analysis:
Double Sweeps: When both sides of a range are swept, expect a strong breakout
Sweep Rejection Quality: Fast, strong rejections of sweeps are more reliable than slow grinding returns
Timeframe Consideration: Daily timeframe sweeps are significantly more important than 15-minute sweeps
Volume Profile: Sweeps with low volume followed by high volume reversals confirm manipulation
What Makes a High-Quality Sweep Signal: ✅ Penetrates structure by at least 0.5-1x ATR
✅ Strong rejection candle (long wick, decisive close)
✅ Occurs at a higher timeframe structural level
✅ Creates a Change of Character on the following move
✅ Sweeps an obvious level where retail stops cluster
4. Change of Character (CHOCH) - Major Reversal Signals
What It Is: A Change of Character represents the most significant shift in market dynamics—when the entire structural bias of the market flips from bullish to bearish or bearish to bullish. CHOCH signals are the crown jewel of SMC trading because they identify the exact moment when institutional positioning fundamentally changes.
The Anatomy of a CHOCH: A valid CHOCH requires a specific sequence:
Established Trend: A clear directional bias with multiple BOS in one direction
Liquidity Engineering: A sweep of structure in the current trend direction (the manipulation phase)
Structural Break: Price then breaks structure in the OPPOSITE direction (the revelation phase)
This combination shows that institutions have:
Completed their accumulation/distribution at favorable prices (via the sweep)
Shifted their positioning from bullish to bearish (or vice versa)
Begun a new directional campaign
Visual Presentation:
Bullish CHOCH (Cyan Triangle Up): Appears when bearish structure is broken after a low sweep, signaling the shift to bullish control
Bearish CHOCH (Red Triangle Down): Appears when bullish structure is broken after a high sweep, signaling the shift to bearish control
Prominent Markers: Larger and more visually distinct than BOS signals, reflecting their importance
Why CHOCH Signals Are So Powerful:
Trend Reversal Identification: They mark the earliest possible confirmation of a trend change
High Win Rate: When combined with proper risk management, CHOCH signals have among the highest success rates in SMC trading
Risk-Reward Ratio: Entering at CHOCH gives you the best possible risk-reward since you're entering at the beginning of a new trend
Institutional Confirmation: The sequence of sweep + structure break proves institutional repositioning, not just retail sentiment
Trading CHOCH Signals:
The Perfect CHOCH Setup:
Identify the Sweep: Watch for a liquidity sweep of structural lows (for bullish) or highs (for bearish)
Wait for the Break: Don't enter on the sweep—wait for structure to break in the opposite direction
CHOCH Confirmation: The indicator fires the CHOCH signal—this is your entry trigger
Entry Execution:
Aggressive: Enter immediately on CHOCH confirmation
Conservative: Wait for a pullback to the first Fair Value Gap or broken structure (now turned support/resistance)
Stop Placement: Beyond the swept liquidity point
Target Selection: Previous swing in the opposite direction, or let it run to the next CHOCH
Multiple Timeframe CHOCH Strategy: The most powerful setups occur when CHOCHs align across timeframes:
Daily CHOCH: Signals major institutional trend change, target 500+ pips (Forex) or significant point moves
4H CHOCH: Confirms daily direction, provides swing trade opportunities
1H CHOCH: Offers precise entry timing within the higher timeframe trend
15M CHOCH: Used for position scaling and intraday management
Example Trade Flow:
Daily Chart: Bullish CHOCH appears after weeks of downtrend
↓
4H Chart: Wait for pullback after the daily CHOCH, then catch the 4H bullish CHOCH
↓
1H Chart: Enter on the 1H bullish CHOCH that aligns with both higher timeframes
↓
Result: You've entered at the beginning of a major trend with multiple confirmations
CHOCH Quality Grading:
A-Grade CHOCH (Highest Probability):
Occurs at major higher timeframe structure
Following a clear liquidity sweep
Volume spike on the structural break
Multiple timeframe alignment
Creates a large Fair Value Gap on the break
B-Grade CHOCH (Good Probability):
Valid sweep and structure break
Single timeframe signal
Moderate volume
Occurs at minor structure
C-Grade CHOCH (Lower Probability):
Choppy, ranging market context
Weak sweep or unclear structure
Counter to higher timeframe trend
Low volume confirmation
Common Mistakes with CHOCH Trading: ❌ Entering on the sweep instead of waiting for the structure break
❌ Ignoring higher timeframe context
❌ Taking every CHOCH regardless of quality
❌ Not waiting for pullbacks on aggressive trends
❌ Placing stops too tight, getting caught in volatility
Advanced CHOCH Concepts:
Failed CHOCH: Occasionally, what appears to be a CHOCH will fail (price reverses back into the previous trend). This often indicates:
Insufficient institutional conviction for the reversal
Fake-out to grab liquidity in the opposite direction
Need to wait for a higher timeframe CHOCH for confirmation
When a CHOCH fails, it often sets up an even stronger continuation of the original trend.
CHOCH vs BOS Decision Matrix:
If in doubt about trend direction → wait for CHOCH
If confident in trend → trade BOS continuations
After a CHOCH → next signals in the new direction are BOS
5. Fair Value Gaps (FVG) - Institutional Retracement Zones
What It Is: Fair Value Gaps represent price imbalances where the market moved so quickly that it left behind inefficient pricing. These gaps form when there's no overlap between the current candle's wick and the candle from two bars ago—a void in the price action that creates a "gap" in the order flow.
The Institutional Logic: When institutions execute large market orders, they can push price rapidly through levels without allowing normal two-way trading. This creates unfilled orders and imbalanced order books. Institutions often return to these gaps to:
Fill additional orders at more favorable prices
Allow the market to "breathe" before the next push
Create support/resistance at the gap for the next move
Restore balance to the order book
FVG Formation Criteria: This indicator uses enhanced FVG detection logic:
Bullish FVG (Upward Gap):
Current candle's low is above the high from 2 candles ago
Creates a visible gap where no trading occurred
Gap size must exceed 30% of ATR (filtering minor gaps)
Typically forms on strong bullish momentum candles
Market moved up so fast it left unfilled sell orders
Bearish FVG (Downward Gap):
Current candle's high is below the low from 2 candles ago
Creates a visible gap where no trading occurred
Gap size must exceed 30% of ATR
Typically forms on strong bearish momentum candles
Market moved down so fast it left unfilled buy orders
Visual Presentation:
Bullish FVG Zones: Semi-transparent cyan boxes extending from gap bottom to top
Bearish FVG Zones: Semi-transparent red boxes extending from gap top to bottom
Dynamic Management: Gaps automatically removed when filled or expired
Clean Display: Only active, unfilled gaps shown to prevent chart clutter
FVG Trading Strategies:
Strategy 1: FVG Retracement Entries After a CHOCH or strong BOS, wait for price to retrace into the FVG for entry:
Identify trend direction via CHOCH or BOS
Locate the nearest FVG in the direction of the trend
Set limit orders within the FVG zone
Stop loss beyond the FVG
Target the next structural level or previous swing
Strategy 2: FVG Breakout Confirmation When price breaks through an FVG without filling it:
Signals extreme institutional urgency
Indicates the move is likely to continue strongly
The unfilled gap becomes a "no-go zone" for counter-trend entries
Strategy 3: Multiple FVG Management When multiple FVGs form in sequence:
The first FVG is most likely to be filled
If price skips the first FVG, it signals exceptional strength
Sequential gaps create a "gap ladder" for scaling into positions
FVG Quality Assessment:
High-Quality FVGs (Best Trading Zones):
Large gap size (1.5x+ ATR)
Formed on high volume impulse moves
Aligned with higher timeframe structure
Created during CHOCH or strong BOS
Positioned between current price and key structure
Low-Quality FVGs (Use Caution):
Small gaps (< 0.5 ATR)
Formed during choppy, ranging conditions
Multiple overlapping gaps in the same area
Counter to higher timeframe trend
Very old gaps (50+ bars ago)
FVG Lifecycle Management:
The indicator intelligently manages FVG zones:
Gap Filling:
Bullish FVG is "filled" when price touches the bottom of the gap
Bearish FVG is "filled" when price touches the top of the gap
Filled gaps are automatically removed from the chart
Partial fills count as complete fills (institutions got their orders)
Gap Expiration:
Gaps older than the extension period (default 10 bars) are removed
This keeps the chart clean and focuses on relevant levels
Adjustable from 5-50 bars based on timeframe and trading style
Gap Priority: When multiple gaps exist, closest gap to current price is most relevant
Advanced FVG Concepts:
Nested FVGs: Sometimes FVGs form within larger FVGs. The smaller, more recent gap typically gets filled first, providing a secondary entry within the larger gap.
FVG Clusters: When 3+ FVGs stack in the same zone, this area becomes a major institutional reaccumulation zone—excellent for swing entries.
Inverted FVGs: Bullish FVGs in downtrends or bearish FVGs in uptrends can act as resistance/support where rallies/dips fail.
FVG + Liquidity Sweep Combination: The ultimate entry setup:
Liquidity sweep occurs
CHOCH confirms reversal
Price retraces into FVG created during the CHOCH move
Enter with exceptional risk-reward ratio
FVG Statistics & Probabilities:
Research on FVG behavior shows:
Approximately 70% of FVGs get filled within 20 bars
FVGs formed during CHOCH have 80%+ fill rate
Larger gaps (2x+ ATR) have lower but higher-quality fill rates
Higher timeframe FVGs are more magnetic than lower timeframe
Timeframe Considerations:
Daily FVGs:
Can remain unfilled for weeks
Major institutional zones
Often mark the absolute best entry prices for swing trades
When filled, usually result in strong reactions
4H FVGs:
Typically fill within 3-7 days
Excellent for swing trading
Balance between frequency and reliability
1H FVGs:
Usually fill within 1-3 days
Good for short-term position trading
More frequent signals
15M FVGs:
Often fill same day
Best used for intraday refinement
Should align with higher timeframe gaps
🔧 Customization & Settings Guide
Structure Detection Settings
Swing Lookback Period (3-50 bars): This is arguably the most important setting as it determines what the indicator considers "structure."
Low Values (3-7):
Identifies minor swings and frequent structure points
More BOS and CHOCH signals
Better for scalping and day trading
Risk: More false signals in choppy markets
Best for: 15M-1H charts, active traders
Medium Values (8-15):
Balanced approach capturing meaningful swings
Default setting works well for most traders
Good signal-to-noise ratio
Best for: 1H-4H charts, swing traders
High Values (16-50):
Only major structural points identified
Fewer but higher-quality signals
Cleaner charts with less noise
Better for trending markets
Best for: 4H-Daily charts, position traders
ATR Period (1-50): Controls how volatility is measured for liquidity sweep detection.
Shorter Periods (7-14):
More responsive to recent volatility changes
Better during high volatility events
May overreact to short-term spikes
Longer Periods (15-30):
Smoother, more stable volatility measurement
Better for swing trading
Reduces sensitivity to short-term noise
Liquidity Sweep Multiplier (0.5-3.0): Determines how far beyond structure price must move to qualify as a sweep.
Low Multiplier (0.5-0.9):
Catches smaller, more frequent sweeps
More signals but lower reliability
Good for scalping or high-frequency trading
Use in ranging markets
Medium Multiplier (1.0-1.5):
Balanced sensitivity
Default 1.2 works for most situations
Good signal quality
High Multiplier (1.6-3.0):
Only major, obvious sweeps detected
Fewer but very high-quality signals
Best for trending markets
Use when you want only the clearest setups
Display Options
Toggle Controls: Each component can be individually enabled/disabled:
Show Market Structure:
Turn off when chart becomes too cluttered
Essential for understanding context, generally keep ON
Disable only when you know structure from higher timeframe
Show Liquidity Zones:
Highlights swept areas with boxes
Can be disabled if you prefer cleaner charts
Keep ON when learning to spot manipulation
Show Break of Structure:
BOS labels can be disabled if trading only reversals
Keep ON for trend following strategies
Show Change of Character:
Core SMC signal, usually keep ON
Only disable if focusing purely on continuation trading
Show Fair Value Gaps:
OFF by default to prevent overwhelming new users
Turn ON once comfortable with basic structure
Can generate many zones on lower timeframes
FVG Extension Period (5-50 bars): Determines how long unfilled gaps remain displayed.
Short Extension (5-10):
Keeps charts very clean
Only shows very recent gaps
Good for day trading
May remove gaps before they fill
Medium Extension (11-25):
Balanced approach
Captures most gap fills
Good for swing trading
Long Extension (26-50):
Shows historical gap context
Better for position trading
Higher timeframe analysis
Can make charts busy on lower timeframes
Color Scheme Customization
Why Colors Matter: Visual clarity is crucial for quick decision-making. The color scheme should:
Clearly distinguish bullish vs bearish elements
Work well with your chart background (dark/light mode)
Be visible but not distracting
Match your personal preference for aesthetics
Default Colors:
Bullish: Cyan (
#00ffff) - visibility and association with "cool" buying
Bearish: Red (
#ff0051) - visibility and universal danger/selling association
FVG Bullish: 85% transparent cyan - visible but not overpowering
FVG Bearish: 85% transparent red - visible but not overpowering
Customization Tips:
Increase transparency if zones overwhelm price action
Use higher contrast colors on light backgrounds
Keep bullish/bearish colors visually distinct
Test colors across different market conditions
Optimization by Market Type
Forex (24-hour markets):
Structure Lookback: 10-15
ATR Period: 14-21
Sweep Multiplier: 1.0-1.5
Best Timeframes: 15M, 1H, 4H
Stocks (Session-based):
Structure Lookback: 8-12
ATR Period: 14
Sweep Multiplier: 1.2-1.8
Best Timeframes: 5M, 15M, 1H, Daily
Note: Gaps at market open/close aren't FVGs
Cryptocurrency (High volatility):
Structure Lookback: 12-20 (filter noise)
ATR Period: 10-14 (responsive to volatility)
Sweep Multiplier: 1.5-2.5 (larger sweeps)
Best Timeframes: 15M, 1H, 4H
Indices (Moderate volatility):
Structure Lookback: 10-15
ATR Period: 14-20
Sweep Multiplier: 1.0-1.5
Best Timeframes: 1H, 4H, Daily
📈 Complete Trading System & Strategies
The Complete SMC Trading Process
Step 1: Higher Timeframe Analysis (Daily/4H) Begin every trading session by analyzing higher timeframes:
Identify the prevailing market structure (bullish or bearish)
Mark key swing highs and lows
Note any recent CHOCHs that signal trend changes
Identify major Fair Value Gaps that could act as targets or entry zones
Determine areas of liquidity (obvious highs/lows where stops cluster)
Step 2: Trading Timeframe Setup (1H/4H) Move to your primary trading timeframe:
Wait for alignment with higher timeframe bias
Look for CHOCH signals if expecting reversal
Look for BOS signals if expecting continuation
Identify liquidity sweeps that create trading opportunities
Note nearby FVGs for entry refinement
Step 3: Entry Timeframe Execution (15M/1H) Use lower timeframe for precise entry:
After higher timeframe signal, wait for lower timeframe confirmation
Enter on FVG fills, structure breaks, or CHOCH signals
Place stop beyond swept liquidity or broken structure
Set targets at next structure level or opposite side of range
Step 4: Management Active trade management increases profitability:
Move stop to breakeven after price moves 1R (risk unit)
Take partial profits at first target (structure level)
Let remainder run to major targets
Trail stop using FVGs or structure breaks in your direction
Exit if a counter-trend CHOCH appears
High-Probability Trading Setups
Setup 1: The Classic CHOCH Reversal
Market Context:
Extended trend in one direction
Price reaching obvious highs/lows where liquidity pools
Setup Requirements:
Liquidity sweep of the high/low
CHOCH signal fires
(Optional) Wait for pullback to FVG
Entry: On CHOCH confirmation or FVG fill
Stop: Beyond swept liquidity
Target: Previous swing in opposite direction
Example (Bullish):
Market in downtrend for 2 weeks
Price sweeps below obvious daily low
Bullish CHOCH fires (breaks previous lower high)
Enter immediately or wait for pullback to bullish FVG
Stop below swept low
Target: Previous lower high, then previous high
Risk-Reward: Typically 1:3 to 1:5+
Setup 2: BOS Continuation with FVG Entry
Market Context:
Established trend with recent CHOCH
Strong momentum in trend direction
Setup Requirements:
Recent CHOCH established trend direction
BOS signal confirms continuation
Wait for pullback into FVG created on the BOS move
Entry: Limit order within FVG zone
Stop: Beyond FVG (invalid if exceeded)
Target: Next structural level
Example (Bearish):
Bearish CHOCH 2 days ago
Price makes BOS breaking new low
Large bearish FVG created during the break
Price retraces into FVG zone
Enter short at FVG fill
Stop above FVG
Target: Next major low or daily FVG below
Risk-Reward: 1:2 to 1:4
Setup 3: Liquidity Sweep Fade
Market Context:
Ranging market between defined highs/lows
Obvious liquidity on both sides of range
Setup Requirements:
Clear range established (minimum 20-30 bars)
Price sweeps one side of range (high or low)
Strong rejection back into range
Entry: After sweep rejection confirmed
Stop: Beyond swept level
Target: Opposite side of range
Example:
Range between 1.0850-1.0920 (EUR/USD)
Price sweeps above 1.0920 to 1.0935
Strong bearish rejection candle back below 1.0920
Enter short at 1.0915
Stop at 1.0940 (above sweep high)
Target: 1.0850 (range low)
Risk-Reward: 1:2.6
Setup 4: Multi-Timeframe CHOCH Alignment
Market Context:
Major trend change occurring
Multiple timeframes showing reversal signals
Setup Requirements:
Daily timeframe shows CHOCH
Wait for 4H CHOCH in same direction
Enter on 1H CHOCH that aligns
Entry: 1H CHOCH confirmation
Stop: Below 4H structure
Target: Daily structural level
Example (Bullish):
Daily bearish trend for months
Daily bullish CHOCH appears
4H shows bullish CHOCH next day
1H bullish CHOCH provides entry
Enter long on 1H signal
Stop: Below 4H swing low
Target: Daily previous high
Risk-Reward: 1:5 to 1:10+
Position: Larger size due to alignment
Setup 5: Failed CHOCH Continuation
Market Context:
Strong trend temporarily looks like reversing
"False" CHOCH creates trap for counter-trend traders
Setup Requirements:
Apparent CHOCH against main trend
Price fails to follow through
Original trend resumes with strong BOS
Entry: On BOS in original trend direction
Stop: Recent swing
Target: Extension of original trend
Example:
Strong daily uptrend
Bearish CHOCH appears (potential reversal)
Price consolidates but doesn't follow through down
Bullish BOS breaks above recent consolidation
Enter long on BOS
Stop: Below failed CHOCH low
Target: New high extension
Risk-Reward: 1:3 to 1:6
Note: Failed reversals often lead to explosive continuations
Risk Management Framework
Position Sizing: Never risk more than 1-2% of account per trade, even on A+ setups.
Risk Calculation:
Position Size = (Account Size × Risk %) / (Entry - Stop Loss in pips/points)
Example:
Account: $10,000
Risk: 1% = $100
Entry: 1.0900
Stop: 1.0870 (30 pips)
Position Size: $100 / 30 pips = $3.33 per pip
Lot Size (Forex): 0.33 lots
Stop Loss Placement:
For CHOCH Reversals:
Place stop 5-10 pips beyond swept liquidity
Gives room for volatility while protecting capital
If swept liquidity is violated, setup is invalidated
For BOS Continuations:
Place stop beyond the FVG or structure that provided entry
Typically tighter stops (closer to entry)
Can trail stop to breakeven quickly
For Range Trading:
Stop beyond the swept level
Generally tight stops work well in ranges
Exit quickly if range boundaries break
Take Profit Strategy:
Scaling Out Method (Recommended):
First Target (50% of position): First structural level (1:1 to 1:2)
Second Target (30% of position): Major structure (1:3 to 1:5)
Trail Stop (20% of position): Let run to full extension
Full Exit Method:
Hold entire position to predetermined target
Requires more discipline
Higher reward but also higher risk of giveback
Trade Management Rules:
Breakeven Rule: Move stop to breakeven after 1R profit
Partial Profit Rule: Take partials at structure levels
Trailing Rule: Trail stop
cephxs / Quarterly Theory [Ultimate +]QUARTERLY THEORY
Multi-cycle Sequential SMT divergence analysis with 7-layer time fractal detection, PSP swing points, CISD momentum tracking, Purge visualization, and a comprehensive alert system with preset combinations.
This indicator is subject to the terms of the Mozilla Public License 2.0.
WHAT IT DOES
The Quarterly Theory indicator maps Trader Daye's time-based market cycles—from Monthly down to Nano—and detects SSMT (Sequential SMT) divergences across correlated assets within each cycle. It tracks when your chart asset and its correlated pairs disagree on highs and lows, often preceding significant reversals.
This is NOT a signal generator. It is a divergence detection tool designed to show you WHEN correlated markets are disagreeing within the natural rhythm of time cycles—information that helps identify high-probability turning points.
-- IMAGE: Main indicator view showing SSMT lines across multiple cycles --
CORE CONCEPTS
Quarterly Theory Time Cycles
The indicator tracks 7 nested time cycles based on ICT/Daye's Quarterly Theory:
Monthly: Week-based quarters within each month (Q1-Q4)
Weekly: Daily quarters within each trading week
Daily: Session-based quarters (Asia, London, NY AM, NY PM)
90m: 90-minute cycles divided into quarters (~22.5 minutes each)
30m: 30-minute cycles (90m divided by 3)
Micro: 64 sessions per day (~22.5 minutes each)
Nano: 256 sessions per day (~5-6 minutes each) - optional high-resolution mode (basically each Micro session divided by 4)
Each cycle has its own SSMT detection, allowing you to see divergences across multiple time fractals simultaneously.
SSMT (Sequential SMT) Divergences
SSMT tracks when correlated assets disagree on extremes within a time cycle:
Bullish SSMT: Primary asset makes a lower low while correlated asset makes a higher low
Bearish SSMT: Primary asset makes a higher high while correlated asset makes a lower high
Lines connect the divergent extremes, providing visual confirmation of market disagreement.
Normal vs Hidden Divergences
Normal: Wick-based extremes—traditional SMT comparing session highs and lows
Hidden: Body-based extremes—more selective, comparing close prices for stronger signals according to some.
You can display Normal only, Hidden only, or Both for maximum information—flexible.
All of these lines have robust labels and dual label handling for when correlations occur with two of the assets in the triad at once to avoid collision.
PSP (Precision Swing Points)
A PSP is not just a pivot—it is a pivot WITH a divergence on the closure. When one asset makes a new high or low but correlated assets FAIL to confirm, the pivot becomes a Precision Swing Point. These often mark significant turning points. It also highlights PSPs that are not divergences for even more advanced analyses and alerts.
Example: ES closes bullish on a candle, but NQ closes bearish. If this occurs at a pivot point, the C2 candle is flagged as a PSP on the chart itself. The indicator also allows one to filter PSPs based on proximity to an existing SMT Divergence.
CISD (Change In State of Delivery)
CISD identifies momentum shifts after pivot formation by detecting opposing candle stretches and confirming when price closes beyond the stretch level. This helps validate directional commitment. It uses a custom pivot system to track originating trends.
Purge Detection
Purges occur when price sweeps through a previous pivot level (liquidity grab). The indicator tracks these events with solid/dotted line visualization and optional alerts.
KEY FEATURES
7-Layer Cycle Detection: Monthly, Weekly, Daily, 90m, 30m, Micro, and Nano cycles all computed simultaneously
Auto Timeframe Gating: Automatically shows relevant cycles based on your chart timeframe. On 15m, you see Daily SSMT. On 1m, you see Micro and 30m SSMT.
Dual Detection Modes: Normal (wick) and Hidden (body) divergence detection per cycle
Automatic Asset Correlation: Uses the same AssetCorrelationUtils library as our other tools—auto-detects correlated pairs or configure manually
Per-Cycle Colors: Customize bull/bear colors for each cycle level
Pivot Time Labels: Optional time labels at swing points with key time highlighting
Purge Visualization: Solid lines for confirmed purges, dotted extensions while active
CISD with Size Filter: ATR-based filtering to ignore insignificant stretches
THE ALERT SYSTEM
The Quarterly Theory indicator provides a comprehensive alert system with multiple layers:
Individual Event Alerts
Swing High/Low: Alert when a new pivot forms
Purge High/Low: Alert when price sweeps through a pivot level
CISD Pending/Confirmed: Alert on momentum shift detection
SSMT per Cycle: Individual alerts for Monthly, Weekly, Daily, 90m, 30m, Micro divergences
CISD Model Combo Alerts
Pre-built alert presets that combine SSMT + CISD confirmation per cycle:
Monthly SSMT + CISD
Weekly SSMT + CISD
Daily SSMT + CISD
90m SSMT + CISD
30m SSMT + CISD
Micro SSMT + CISD
Stacked (multiple cycles aligning)
PSP Model Combo Alerts
Alerts when a Precision Swing Point forms with SSMT confirmation:
PSP + SSMT per cycle
PSP + Stacked SSMT (multiple cycles)
Directional filtering (bullish/bearish only)
Alert Kitchen - Custom Combos
Build your own alert conditions by combining:
Any cycle level (or multiple)
Direction (bullish/bearish/both)
Detection type (Normal/Hidden/Both)
Additional filters (CISD, PSP, Purge/Sweep)
Session Filter
Restrict alerts to specific trading sessions: Asia, London, NY AM, NY PM, London + NY, or define a custom time window.
-- IMAGE: Alert settings panel --
Will be streamlining the inputs to allow for an improved UX.
HOW TO USE IT
Getting Started (2 minutes)
Add the indicator to your chart
SSMT lines will appear automatically based on your timeframe
Each colored line represents a divergence at that cycle level
Labels show the cycle name and/or correlated asset
Understanding the Display
Lines connecting highs = Bearish SSMT (potential reversal down)
Lines connecting lows = Bullish SSMT (potential reversal up)
Solid lines = Normal divergence (wick-based)
Dotted lines = Hidden divergence (body-based)
Line color = Cycle level (customizable per cycle)
Adjusting Timeframe Visibility
Auto: Shows only the most relevant cycle for your chart TF
All: Shows all enabled cycles regardless of chart TF
Extended: Broader visibility ranges per cycle
Custom: Define exact min/max TF ranges per cycle
Configuring Asset Correlation
Go to Asset Selection settings
Set to Auto (detects correlated assets automatically)
Or set to Manual and enter custom ticker symbols
Use Invert Asset 3 for inverse correlations (e.g., DXY vs EUR/USD)
Pro Tips
Start with Auto timeframe gating to reduce clutter
Focus on one or two cycle levels until you understand the rhythm
Enable Hidden divergence for higher-probability signals
Use the Directional Bias Filter to focus on one direction only
The Status Bar shows current cycle states at a glance
-- IMAGE: Status bar showing active cycles vs when it's not active --
INPUT SETTINGS OVERVIEW
These inputs may change as updates roll out with improvements.
Visual Preset
Preset options: SSMT Only, SSMT + CISD, SSMT + Purge, CISD + Purge, All Features
Directional Bias Filter: All, Bullish only, Bearish only
SSMT Plots (Section 2)
Show SSMT master toggle
Labels toggle with size and color
Label Mode: Cycle + Asset, Cycle only, Asset only
Timeframe Gating: Auto, All, Extended, Custom
Detection Mode: Normal, Hidden, All
Per-cycle toggles and colors (Monthly through Nano)
Min/Max TF ranges for Custom mode
Pivot & PSP Settings (Section 3)
Show swing high/low shapes
Shape styles and colors
Show pivot lines with crossing style
PSP highlighting options
Pivot Time Labels (Section 3.5)
Show Time Labels toggle
Key time highlighting (macros)
Label styling options
Purge Settings (Section 4)
Show purge lines
Solid/dotted line styles
Line colors for bull/bear
CISD Settings (Section 5)
Show CISD toggle
Maximum CISDs displayed
Size filter (ATR-based)
Bull/bear colors
Alert Sections (6-11)
Master switches
Session filter
Individual event alerts
CISD model combos
PSP model combos
Alert Kitchen custom combos
Asset Selection (Section 12)
Correlation Preset: Off, Auto, Manual
Manual Asset 1/2/3 inputs
Invert Asset 3 for inverse correlations
Status Bar (Section 13)
Position, size, colors
Shows active cycle states
SUPPORTED MARKETS
The built-in correlation library automatically detects pairs for:
Index Futures: NQ/ES/YM/RTY and micro variants
Forex: EUR/GBP/DXY triad, USD/JPY/CHF triad, CAD pairs
Crypto: BTC/ETH/TOTAL3, SOL/XRP pairs, major alts
Metals: Gold/Silver/Copper
Energy: Crude/Gasoline/Heating Oil
Treasuries: ZB/ZF/ZN
For assets not covered, use Manual mode to define your own correlation group.
AUTOMATICALLY RECOMMENDED TIMEFRAMES
1m: See Micro and 30m cycles
3m-5m: See 90m and 30m cycles
15m: See Daily cycle
1H: See Weekly cycle
4H: See Monthly cycle
Use Extended or Custom mode to see multiple cycles simultaneously.
TERMINOLOGY QUICK REFERENCE
QT: Quarterly Theory (time-based cycle analysis)
SSMT: Sequential SMT (divergence within a time cycle)
SMT: Smart Money Technique (divergence between correlated assets)
PSP: Precision Swing Point (pivot with divergence)
CISD: Change In the State of Delivery (confirmed directional shift)
Purge: Liquidity sweep through a pivot level
Normal: Wick-based divergence detection
Hidden: Body-based divergence detection
Q1/Q2/Q3/Q4: Quadrants within each cycle
PERFORMANCE NOTES
Micro cycle (64 sessions) adds significant computation load and makes the tool unbearably slow—disable if not needed
30m cycle (48 sessions) is an alternative to Micro with less load
Nano cycle (256 sessions) is optional and only active below 1m timeframes
Use Auto timeframe gating to reduce unnecessary computations
A bar limiter is implemented at the bottom for performance considerations, prioritizing real-time analysis.
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before making trading decisions.
CREDITS
Developed by cephxs and fstarcapital
Uses AssetCorrelationUtils library by fstarcapital for automatic correlation detection
Conceptual Credits
This Indicator uses Concepts by the Inner Circle Trader, Michael Huddleston.
This Indicator uses concepts from Quarterly Theory as taught by TraderDaye.
VERSION
PineScript v6 | Ultimate+ Edition
FVG by AlgoKingsFVG by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT ARE FAIR VALUE GAPS?
Fair Value Gaps (FVGs) are price imbalances created when aggressive institutional order flow leaves gaps between consecutive candles. These gaps often act as magnetic zones where price returns to fill the imbalance before continuing in the original direction.
Example: Bullish FVG forms when candle 1's low is above candle 3's high, creating a gap that wasn't traded. Price often returns to fill this gap before moving higher.
UNDERLYING METHODOLOGY
This indicator combines four analytical layers:
1. THREE-CANDLE PATTERN DETECTION
Identifies FVGs using precise gap analysis:
BULLISH FVG:
Candle 1 (current) low > Candle 3 (two bars back) high = Gap between bars that price never traded
BEARISH FVG:
Candle 3 (two bars back) low > Candle 1 (current) high = Gap between bars that price never traded
Technical implementation:
- Uses request.security with lookahead_on to compare high , low (candle 1) against high , low (candle 3)
- For bullish FVG: Gap top = low , Gap bottom = high
- For bearish FVG: Gap top = low , Gap bottom = high
- Detects new FVGs when time exceeds lastTime (new bar completed on indicator timeframe)
Higher timeframe precision:
When indicator timeframe exceeds chart timeframe (e.g., 1H FVG on 5m chart), the algorithm searches backward through chart bars to find the exact bar that created the gap extreme, providing precise entry points rather than using the timeframe's open time.
2. PARTIAL MITIGATION TRACKING
Advanced mitigation system tracks progressive gap fills:
MITIGATION TYPES:
- Wick: Price touches gap boundary (high >= gap for bearish, low <= gap for bullish)
- Body: Candle closes inside gap (close >= gap for bearish, close <= gap for bullish)
STATE MANAGEMENT:
- Unmitigated: Full gap remains (displays in green for bullish, red for bearish)
- Partially Mitigated: Price entered gap but not fully filled (split display: mitigated portion in gray, remaining in green/red)
- Fully Mitigated: Price completely filled gap (displays in gray)
Progressive update algorithm:
- priceMt variable tracks current mitigation level
- On each bar, compares new close/low (bullish) or close/high (bearish) against priceMt
- If deeper mitigation detected, updates priceMt and redraws box boundaries
- When priceMt reaches gap bottom (bullish) or gap top (bearish), marks isMt flag true
Visual updates:
- boxUnMt (unmitigated box) shrinks as priceMt advances
- boxMt (mitigated box) expands from opposite side
- Both boxes share same start/end times, meet at priceMt level
3. MULTI-TIMEFRAME AGGREGATION
Monitors up to 9 timeframes simultaneously:
TIMEFRAME ELIGIBILITY:
Only processes timeframes >= chart timeframe. If chart is 5m, can show 5m, 15m, 1H, 4H, Daily, etc. Cannot show 1m FVGs on 5m chart.
Seconds filter: Excludes seconds-based indicator timeframes when chart is 4H+ (prevents attempting to load 1s/5s data on Daily chart where it doesn't exist)
FVG ARRAY MANAGEMENT:
Each timeframe maintains independent array of FVG objects, sorted newest first. History parameter controls array size (default: 50). When array exceeds history limit, oldest FVG is removed and deleted.
4. TOUCH DETECTION AND VISUAL MANAGEMENT
Tracks when price revisits FVG zones:
TOUCH EVENTS:
Separate from mitigation, tracks when price enters FVG at all (isOutlineMt flag). Uses same logic as mitigation detection but sets flag on first touch regardless of depth.
Visual consequences:
- Before touch: Outline border displays in gray (bdUnWkColor)
- After touch: Outline border removed, indicates price acknowledged zone
- Extension behavior: If "Extend Unmitigated" enabled, only untouched FVGs extend right
BIAS FILTERING:
Optional filter to show only bullish, only bearish, or both (neutral) FVGs. Applied during FVG creation, prevents drawing filtered direction entirely.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Three-bar gap detection: Precise timestamp matching using time > lastTime to identify new bar completions across multiple timeframes simultaneously, with lookahead_on to access confirmed previous bar data
- Partial mitigation algorithm: Real-time priceMt tracking that compares current bar against existing gap levels, calculates progressive fill depth, updates box boundaries dynamically without redrawing entire object
- Higher timeframe precision: getHighestTime and getLowestTime functions that search backward through chart bars (using offset calculations: length * 3 for 3 bars back) to pinpoint exact bar that created gap extreme rather than using timeframe open
- Multi-state tracking: Complex state machine with isMt (fully mitigated), isOutlineMt (touched), and priceMt (current mitigation level) flags that determine visual rendering and extension behavior
- Dynamic visual updates: Box boundary adjustments (set_top/set_bottom) that maintain object references while changing coordinates, preventing flicker and preserving tooltips
Standard FVG indicators simply draw boxes between wicks. This script provides institutional-grade mitigation tracking with progressive fill monitoring and precise timestamp resolution.
TECHNICAL COMPONENTS
Core structures:
- Security Object: Stores timeframe data including high , low , high , low , time , time from request.security calls
- Fvg Object: Contains gap coordinates (h, l), mitigation level (priceMt), state flags (isMt, isOutlineMt), timestamps (startTime, endTime), and drawing objects (boxes, lines, labels)
- SecurityFvg Object: Manages array of Fvg objects for one timeframe, handles updates, mitigation checks, and history purging
Gap detection logic:
- Bullish: if (l1 > h3 and isBias(bias, Trend.up)) create FVG with h=l1, l=h3, priceMt=l1
- Bearish: if (l3 > h1 and isBias(bias, Trend.dn)) create FVG with h=l3, l=h1, priceMt=h1
- Timestamp precision: startTime = getHighestTime(h3) for bullish or getLowestTime(l3) for bearish on HTF
Mitigation detection:
- Bullish: if (close < priceMt or low < priceMt depending on type) update priceMt = min(close/low, priceMt)
- Bearish: if (close > priceMt or high > priceMt depending on type) update priceMt = max(close/high, priceMt)
- Full mitigation: if (priceMt <= gap.l for bullish or priceMt >= gap.h for bearish) set isMt = true
HOW TO USE
Setup:
1. Apply to any chart (works on all symbols and timeframes)
2. Enable/disable timeframes in settings (9 configurable slots)
3. Select Bias to filter FVG direction (Neutral, Bullish, Bearish)
4. Choose Mitigation Type (Wick for conservative, Body for confirmation)
5. Configure History to control how many FVGs display per timeframe
Chart Timeframe Requirements:
Indicator only shows FVGs from timeframes equal to or higher than chart timeframe. For 5m chart: can show 5m, 15m, 1H, 4H, Daily, Weekly, Monthly. Cannot show 1m FVGs.
Interpretation:
- Green box = Bullish FVG (unmitigated portion)
- Red box = Bearish FVG (unmitigated portion)
- Gray box = Mitigated portion
- Dashed line = 50% equilibrium level (EQ)
- Gray outline = Untouched FVG
- No outline = Price has touched FVG
- Label = Timeframe and direction (e.g., "5m +FVG" or "1H -FVG")
SETTINGS EXPLAINED
Options:
- Bias: Filter FVG direction (Neutral shows both, Bullish shows only green, Bearish shows only red)
- History: Number of FVGs to display per timeframe (default: 50)
- Mitigation Type: Wick (price touches) or Body (candle closes inside)
- EQ: Show/hide 50% equilibrium line
- 25/75%: Show/hide quarter lines within gap
- Label: Show/hide text labels with size and color options
- Unmitigated Border: Color and style for untouched FVG outlines
- Bullish/Bearish/Mitigated: Colors for gap fill states
- Remove Fully Mitigated: Auto-hide FVGs after complete fill
- Extend All: Keep all FVGs extending right (requires Remove Fully Mitigated)
- Extend Unmitigated: Only untouched FVGs extend right
Timeframes:
9 configurable timeframe rows, each with checkbox to enable/disable. Only timeframes >= chart timeframe will display. Default: Chart TF, 1m, 5m, 15m, 1H, 4H, Daily, Weekly, Monthly.
Common Configurations:
- Scalping: Enable chart TF, 1m, 5m with Mitigation Type = Wick
- Day Trading: Enable 5m, 15m, 1H, 4H with Mitigation Type = Body, History = 20
- Swing Trading: Enable 1H, 4H, Daily with Remove Fully Mitigated = false
- Bias Trading: Set Bias = Bullish during uptrends, Bearish during downtrends to reduce noise
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
BK AK-King Quazi🦁👑 BK AK–KING QUAZI — MEASURED HAND, CLEAN BLADE. 👑🦁
All glory to Gd — the true source of wisdom, restraint, and endurance.
AK is honor — my mentor’s standard: clarity, patience, no shortcuts, no gambling.
Update / Record: A previous version of this publication was hidden by PineCoders moderation due to insufficient description. This republish includes a fully self-contained explanation of what the script does, how it works, and how to use it.
1) What this script does (outputs)
BK AK–King Quazi is a Quasimodo (QM) structure manager that turns the pattern into a permissioned process:
PROTO → BOS proof → RETEST → CONFIRM → resolve or invalidate
On-chart you get:
Stage labels: P↑ / P↓ (PROTO), R↑ / R↓ (RETEST), C↑ / C↓ (CONFIRM), X (INVALIDATED), ✓ (TARGET HIT)
Execution map lines: QM, BOS, INV (invalidation)
Optional projection extension forward (QM/BOS/INV + optional T1/T2)
Optional entry zone around QM (ATR buffer)
MTF “War Room” table: 5 timeframes showing STATE and NOW (recent events)
This is not a “pattern sticker.” It’s a workflow + object lifecycle so outcomes are visible and charts stay clean.
2) Definitions (what each stage means)
PROTO (P): “Sweep + BOS candidate.” Early awareness that a QM setup is forming.
BOS (Break of Structure): requires a body displacement vs ATR (proof filter).
RETEST (R): price returns to the QM level and holds it (permission test).
CONFIRM (C): full QM geometry is complete (structure + proof + timing aligned).
INV: invalidation level. If breached, the pattern is failed and marked X.
Targets: optional T1/T2 mapped from selected target mode.
3) How it works (actual logic in plain English)
A) Swing engine (how structure is built)
The script uses a ZigZag-style swing detector based on lookbacks:
A “to_up” swing trigger occurs when high reaches the highest high over zz_len
A “to_down” swing trigger occurs when low reaches the lowest low over zz_len
Trend flips on those triggers and the script stores the last 3 swing points:
Highs: h2 → h1 → h0
Lows: l2 → l1 → l0
This creates repeatable swing structure without manual drawing.
B) BOS displacement filter (proof of intent)
A BOS is only accepted if the candle body displacement is large enough:
Displacement condition: abs(close - open) ≥ disp_used * ATR(atr_len)
disp_used can be:
Manual, or
Auto (TF Map), or
Auto (ATR%)
This is the “no wick theater” filter.
C) PROTO detection (sweep + BOS)
Bull PROTO fires when:
structure suggests a sweep (higher swing high behavior) and
price sweeps below a prior swing low, then BOS closes above h1 with displacement
Bear PROTO is the mirror:
sweep above a prior swing high, then BOS closes below l1 with displacement
On PROTO, the script defines the key levels:
Bull: QM = l1, BOS = h1, INV = current low
Bear: QM = h1, BOS = l1, INV = current high
D) RETEST + CONFIRM
RETEST checks the return to QM with a hold:
Bull retest: low ≤ QM and close ≥ QM
Bear retest: high ≥ QM and close ≤ QM
CONFIRM triggers only when the full swing sequence meets the “QM complete” rules (the script’s bu_conf / be_conf conditions).
E) Targets / projection math (if enabled)
Targets are optional:
Measured (1.0 / 1.618): uses the distance |BOS − QM| times multipliers
BOS + prior swing: uses BOS + prior swing extreme
Neck→Head (H&S projection): projects neck/head distance from BOS
F) Object lifecycle (keeps chart honest and readable)
If opposite PROTO appears, you can:
do nothing, or
clear projections, or
mark X + clear the prior campaign
On invalidation, the script replaces the existing P/C label with X (no overlapping junk)
On target hit, it can resolve the campaign and optionally remove projections/tags
4) MTF War Room (what the table means)
The table shows 5 user-selectable timeframes (TF1–TF5) with:
STATE: current posture on that TF (P↑, C↑, P↓, C↓, —)
NOW: highlights recent PROTO/CONFIRM events on that TF
Implementation note (what’s original here):
It computes zigzag + displacement inside each TF context
“NOW” flash timing is measured in that TF (not chart TF)
It packs NOW + RECENT + STAGE into one request.security() call per TF (performance-aware)
5) How to use it (clean execution workflow)
Suggested workflow (AK standard):
Use MTF first: don’t fight higher court structure
Treat PROTO as awareness, not permission
Require BOS displacement (proof)
Execute only on RETEST of QM or on your CONFIRM rules
Stop is INV (if INV breaks, mark X and stand down)
Use mapped T1/T2 for planning + resolution (no improvising mid-trade)
Label key:
P = Proto (sweep + BOS)
R = Retest (QM hold)
C = Confirm (full QM)
X = Invalidated (broke INV)
✓ = Target hit (T1/T2 resolution)
6) What’s original (why it’s not “another QM clone”)
Quasimodo is public. The originality here is the system around it:
staged sequencing (PROTO → BOS proof → RETEST → CONFIRM) instead of “shape = signal”
ATR displacement proof filter to cut fake BOS
standardized level mapping (QM/BOS/INV + targets + entry zone)
object lifecycle management (replace labels with X, clear/gray projections, remove on target)
MTF packed engine (one call per TF; “NOW” measured on that TF)
controlled alert routing by event type (PROTO vs CONFIRM)
7) Limitations (important)
This is bar-based structure logic; it can change during an unclosed realtime candle.
ZigZag swings are lookback-based, not a broker “official” swing definition.
It’s a structure/permission tool, not a guarantee engine.
🧑🏫 BK / AK / Faith
BK is the mark I’m building.
AK is honor — discipline, patience, clean execution.
All glory to Gd — the true source of wisdom and endurance.
🗡️ King David Lens (Deep — Discipline Under Fire)
David’s power wasn’t impulse. It was governed force — strength that answers to law.
He learned early that the most dangerous trap is moving before you’re sent.
That’s why his life is full of the same pattern traders ignore:
He was anointed long before he was crowned.
Meaning: truth can be real before it’s allowed to manifest.
He fought Goliath with a weapon people mocked — not because it was flashy, but because it was mastered.
Meaning: edge isn’t what looks impressive — it’s what’s trained and repeatable.
He had Saul in his hands and still refused the shortcut.
Meaning: opportunity is not permission; proximity is not assignment.
He waited through wilderness seasons where nothing “looked like progress.”
Meaning: silence isn’t rejection — sometimes it’s preparation.
That is the trader’s war.
Price will always offer motion.
But motion without permission is bait.
David didn’t survive by chasing what was available.
He survived by waiting until the moment was proved, the ground was chosen, and the strike was clean.
That’s what King Quazi enforces:
PROTO is the rumor.
BOS displacement is the proof.
Retest is the test of legitimacy.
Confirm is permission to strike.
Invalidation is humility — stand down immediately.
A lion doesn’t chase every shadow.
A lion waits until the prey is committed — then ends it.
🦁👑 BK AK–KING QUAZI — execute with proof. 👑🦁
Gd bless. 🙏






















