Alxuse Stochastic RSI for tutorial All abilities of Stochastic RSI, moreover :
Drawing upper band and lower band & the ability to change values, change colors, turn on/off show.
Crossing K line and D line in multi timeframe & there are symbols (Circles) with green color (Buy) and red color (Sell) & the ability to change colors, turn on/off show.
Crossing K line and D line in multi timeframe according to the values of upper band and lower band & there are symbols (Triangles) with green color (Long) and red color (Short) & the ability to change colors, turn on/off show.
The ability used in the alert section and create customized alerts.
To receive valid alerts the replay section , the timeframe of the chart must be the same as the timeframe of the indicator.
Stochastic RSI (STOCH RSI)
Definition
The Stochastic RSI indicator (Stoch RSI) is essentially an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means that it is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which is then plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.
The basics
It is important to remember that the Stoch RSI is an indicator of an indicator making it two steps away from price. RSI is one step away from price and therefore a stochastic calculation of the RSI is two steps away. This is important because as with any indicator that is multiple steps away from price, Stoch RSI can have brief disconnects from actual price movement. That being said, as a range bound indicator, the Stoch RSI's primary function is identifying crossovers as well as overbought and oversold conditions.
The basics
It is important to remember that the Stoch RSI is an indicator of an indicator making it two steps away from price. RSI is one step away from price and therefore a stochastic calculation of the RSI is two steps away. This is important because as with any indicator that is multiple steps away from price, Stoch RSI can have brief disconnects from actual price movement. That being said, as a range bound indicator, the Stoch RSI's primary function is identifying crossovers as well as overbought and oversold conditions.
Overbought/Oversold
Overbought and Oversold conditions are traditionally different than the RSI. While RSI overbought and oversold conditions are traditionally set at 70 for overbought and 30 for oversold, Stoch RSI are typically .80 and .20 respectively. When using the Stoch RSI, overbought and oversold work best when trading along with the underlying trend.
During an uptrend, look for oversold conditions for points of entry.
During a downtrend, look for overbought conditions for points of entry.
Summary
When using Stoch RSI in technical analysis, a trader should be careful. By adding the Stochastic calculation to RSI, speed is greatly increased. This can generate many more signals and therefore more bad signals as well as the good ones. Stoch RSI needs to be combined with additional tools or indicators in order to be at its most effective. Using trend lines or basic chart pattern analysis can help to identify major, underlying trends and increase the Stoch RSI's accuracy. Using Stoch RSI to make trades that go against the underlying trend is a dangerous proposition.
The added features to the indicator are made for training, it is advisable to use it with caution in tradings.
Osilatörler
Rolling VWAP OscillatorTL;DR - TradingView's Rolling VWAP as centered oscillator
I really like TradingView's rolling VWAP (Rolling Volume-Weighted Average Price - RVWAP) indicator. But I also like clean charts that's why I'm mainly using indicators which are not displayed on the chart. Instead of simply moving the RVWAP to another pane I turned it into a centered oscillator. This allows me checking the RVWAP while having my chart clean.
You can find the oroginal RVWAP here .
Creds to TradingView for creating this indicator 👍
* I also added a fourth deviation band, gradient colors and the option to switch between candles and lines.
MMI Auto Backtesting StrategyDescription:
A strategy based on ATR with auto-backtesting capabilities, Take Profit and Stop Loss (either Normal or Trailing). It allows you to select ranges of values and step for each parameter, and backtest the strategy on a multitude of input combinations at once. You can alternatively use a constant value for each parameter. The backtesting results strive to be as close as possible to those given by Tradingview Strategy Tester.
The strategy displays a table with results for different input combinations. This has columns showing current input combination as well as the following stats: Net Profit, Number of trades, % of Profitable trades, Profit Factor, Max Drawdown, Max Runup, Average Trade and Average number of bars in a trade.
You can sort the table by any column (including sorting by multiple columns at the same time) to find, for example, input combination that gives highest Net Profit (or, if sorting by multiple columns, to find input combination with the best balance of Net Profit and % of Profitable trades). You can filter by any column as well (or multiple columns at the same time), using logical expressions like "< value", "> value", "<= value", ">= value". And you can use logical expressions like "< value%" for Net Profit, Max Drawdown, Max Runup and Average trade to filter by percentage value. You will see a "↓" symbol in column's header if that column is sorted from Highest to Lowest, a "↑" symbol if it's sorted from Lowest to Highest and a "𐕢" symbol if that column is being filtered.
The table has customisable styles (like text color, background color of cells, etc.), and can show the total number of backtested combinations with the time taken to test them. You can also change Initial Capital and Position Size (either Contracts, Currency or % of Equity).
Parameters:
The following parameters are located in the "INPUTS (USUAL STRATEGY)" group, and control the behaviour of strategy itself (not the auto-backtesting functionality):
- Period: ATR Length
- Multiplier: ATR Multiplier
- DPO: length of the filtering moving average
- SL: stop loss
- TP: take profit
- Use Stop Loss: enable stop loss
- Stop Loss Mode: stop loss mode (either Normal or Trailing)
- Use Take Profit: enable take profit
- Wicks: use high & low price, or close price
The strategy also has various parameters separated by different groups:
- INPUTS (AUTO-BACKTESTING): has the same parameters as the "INPUTS (USUAL STRATEGY)" group, but controls the input combinations for auto-backtesting; all the numeric parameters have 3 values: F/V (from), T (to) and S (step); if the checkbox to the left of F/V parameter is off, the value of F/V will indicate the constant value used for that parameter (if the checkbox is on, the values will be from F/V to T using step S)
- STRATEGY: contains strategy related parameters like Initial Capital and Position Size
- BACKTESTING: allows you to display either Percentage, Absolute or Both values in the table and has checkboxes that allow you to exclude certain columns from the table
- SORTING: allows you to select sorting mode (Highest to Lowest or vice versa) and has checkboxes in case you want to sort by multiple columns at the same time
- FILTERING: has a text field for each column of the strategy where you can type logical expressions to filter the values
- TABLE: contains styling parameters
Many parameters have the "(i)" description marker, so hover over it to see more details.
Problems:
- The script works best on lower timeframes and continuous markets (trades 24/7), in other cases the backtesting results may vary from those that Tradingview shows
- The script shows closest results when Take Profit and Stop Loss are not used
- Max Runup percentage value is often wrong
Limitations:
- As we are limited by the maximum time a script can be running (which is 20s for Free plan and 40s for Paid plans), we can only backtest several hundreds of combinations within that timeframe (though it depends on the parameters, market and timeframe of the chart you use)
Heeger Alert | Didi's Needles setup [HeegerBot]Indicator based on Color Candles - Didi's Needles setup , but now exclusively focused on generating alerts.
With this indicator, you can set up alerts and notifications on TradingView for up to 15 assets based on Didi Aguiar's setup. Additionally, you can specify whether the alert should trigger at the candle close or X minutes before the close.
A session filter has also been added, allowing you to configure alerts to trigger only during a specific session.
Description of monitored signals:
The setup involves the crossing of three moving averages, along with the trend analysis in the ADX and the open Bollinger Bands.
The moving averages will be named "Didi Index". We will have the 3-period average as "Fast Average", the 8-period average as "Median Average", and the 20-period average as "Slow Average". When the Fast Average crosses the Median Average, we will have an alert, and when the Slow Average crosses the Median Average, we will have a confirmation. To adjust the Didi Index in the signals, the Median Average was normalized, that is, it will always be equal to 0. For the Slow and Fast Average, we will only consider the percentage difference in relation to the Median Average.
In addition to the moving averages, we analyze whether the ADX is rising, with DI+ above DI- to indicate an uptrend, or if the ADX is rising, with DI- above DI+ to indicate a downtrend. We also check if the Bollinger Bands are open. With these conditions, we will have a Needle.
Now I'm going to detail how I set this up on the indicator and some filters that I inserted for my personal use, along with some additional signals from the setup.
# Needle Alert
Firstly, we have the "Needle Alert" signal. This signal occurs when the Fast Average crosses the Median Average, along with the trend confirmation in the ADX and the opening of the Bollinger Bands. The filter is set at "1", which means we will only consider the needle alert when the percentage difference between the Slow Average and the Median Average is below 1%. This signal can be used as an entry point or to monitor the asset. Let's go through the examples:
• For a "Buy Alert", the Fast Average must cross the Median Average from bottom to top, and the percentage difference between the Slow Average and the Median Average should be less than +1% and greater than 0, as indicated by the Didi Index.
• For a "Sell Alert", the Fast Average must cross the Median Average from top to bottom, and the percentage difference between the Slow Average and the Median Average should be greater than -1% and less than 0, as indicated by the Didi Index.
We also have the alert projection, which serves as a signal to attract attention and monitor the asset. I use a "0.1" filter, which means that the percentage difference between the Fast Average and the Median Average must be equal to or less than 0.1%. Let's look at the example:
• For a "Buy Alert Projection", the Fast Average should be below the Median Average, and the percentage difference between the Fast Average and the Median Average should be greater than -0.1% and less than 0. In addition, the Slow Average should be above the Median Average in the Didi Index.
• For a "Buy Alert Projection", the Fast Average should be below the Median Average, and the percentage difference between the Fast Average and the Median Average should be greater than -0.1% and less than 0. In addition, the Slow Average should be above the Median Average in the Didi Index.
# Needle
After the Needle Alert, we have the Needle Confirmation, which occurs when the Slow Average crosses the Median Average after the alert. This signal is used to enter the operation. Let's divide this signal into two parts:
1. Needle: We use a filter of "3" (adjustable). This means that, to be considered a "Needle", the candle distance between the Alert (crossing of the Fast Average with the Median Average) and the Confirmation (crossing of the Slow Average with the Median Average) must be equal to or less than 3 candles. Also, there needs to be a trend on the ADX and the Bollinger Bands should be open.
2. Queijo Minas Needle (QM): Essentially, it's a Needle that occurs outside of the filter, with a candle distance between the Alert and the Confirmation above "3" candles. A trend on the ADX and open Bollinger Bands are also necessary.
To anticipate the Needle Confirmation, we use the "Needle Projection" signal. This signal has two filters: the "Needle Projection with Alert", set as "0.1%", and the "Needle Projection after the Alert", set as "0.3%".
1. The "Needle Projection with Alert" generates the signal when the "Needle Alert" occurs (crossing of the Fast Average with the Median Average), as long as the difference between the Slow Average and the Median Average is less than 0.1%.
2. The "Needle Projection after the Alert" generates the signal when the Fast Average has already crossed the Median Average, and the difference between the Slow Average and the Median Average should be less than 0.3%.
# BJMA (Spider Woman's Kiss)
There is another variation of the needle called BJMA. Essentially, it occurs when the Fast Average and the Slow Average approach the Median Average (each on one pole), but do not cross the Median and return to where they came from. In this signal, we have two filters: "Delta BJMA previous candle" and "Delta BJMA current candle". Let's see an example:
• Buy BJMA: First, we observe the previous candle, where the Fast Average must be above 0 (above the Median Average) and the percentage difference should be less than 0.02. In relation to the Slow Average, the configuration is the same, but in the negative sense, that is, it should be below 0 and above -0.02. Now, in the current candle, the Fast Average should be above 0 and below 0.05, while the Slow Average should be below 0 and above -0.05.
• Sell BJMA: First, we observe the previous candle, where the Fast Average must be below 0 (below the Median Average) and the percentage difference should be greater than -0.02. In relation to the Slow Average, the configuration is the same, but in the positive sense, that is, it should be above 0 and below 0.02. Now, in the current candle, the Fast Average should be below 0 and above -0.05, while the Slow Average should be above 0 and below 0.05.
Now, let's look at two signals that are commonly used to stay in a position.
# Fake Point
The Fake Point is primarily used to identify retracements before a continuation of the prevailing trend. Typically, it is preceded by a Needle Confirmation or BJMA signal. Here are some examples:
• Fake Sell (Signal to Maintain a Buy Position): The Fast Average crosses the Median from top to bottom (entering the negative pole of the Didi Index), while the Slow Average, which is already below the Median (below 0), continues to decline further, increasing the percentage difference between the Fast and Slow Averages in the negative pole.
• Fake Buy (Signal to Maintain a Sell Position): It is the same as the fake sell scenario but in the positive pole. The Fast Average crosses the Median, entering the positive pole of the Didi Index, while the Slow Average, which was already above the Median, continues to increase the percentage difference with the Median. For example, if the Slow Average was at +1 on the Didi Index, it would now be at +1.3.
There is also another variation of the Fake Breakout that takes into consideration the ADX (Average Directional Index) to confirm the trend direction. In other words, if we have a fake sell signal that suggests a buy position, we want the ADX to indicate a buying trend, and vice versa.
# Bought and Sold
This signal basically checks whether the indicators continue to confirm the previous signals. There are two variations: "Bought/Sold" and "Bought/Sold without Bollinger Bands". Let's see an example:
• Bought: The Didi Index is in the buying position, which means the Fast Average is above the Median Average (above 0), and the Slow Average is below the Median Average. Additionally, the ADX is indicating a buying trend and the Bollinger Bands are open.
• Sold: The Didi Index is in the selling position, which means the Fast Average is below 0 and the Slow Average is above 0. Moreover, the ADX is indicating a selling trend and the Bollinger Bands are open.
• Bought/Sold without Bollinger Bands: It's the same signal, but without considering whether the Bollinger Bands are open or not.
We can also consider the "Bought/Sold" signal based on the Trix and Stochastic, which would be additional confirmations of the movement.
Personally, I do not activate the Bought/Sold signal.
Now we come to signals to exit the position or take partial profits.
# Close
This exit signal is based on the following indicators: ADX, Bollinger Bands, Trix, and Stochastic. We wait for the ADX Kick or the falling ADX, along with the Bollinger Bands closing, and the Trix and Stochastic changing to the opposite side. Let's see some examples:
• Close a Buy: The ADX was in a buying trend (ADX rising and DI+ above DI-), but then the ADX Kick occurs or the ADX starts to fall. In addition, the Bollinger Bands close, and the Trix and Stochastic should switch to the sell signal.
• Close a Sell: The ADX was in a selling trend (ADX rising and DI- above DI+), but then the ADX Kick occurs or the ADX starts to fall. Also, the Bollinger Bands close, and the Trix and Stochastic should switch to the buy signal.
All indicators must provide signals together, but it is not necessary for all to occur in the exact same candle. For example:
1. The ADX Kick may occur, and the Trix and Stochastic switch to the buy signal, but the Bollinger Bands still remain open. In this case, we still do not have the exit signal.
2. In the next candle, the ADX continues to fall (after the Kick), the Trix and Stochastic continue to indicate buying, but this time the Bollinger Bands close. In this case, we have the "Close a Sell" signal.
It is important that all indicators are in accordance with the necessary signals, even if they occur in different candles, in order for the exit signal to be triggered.
# Close with Alert
This signal occurs when the Didi Index switches to the opposite side from where it was, along with a trend on the ADX, provided it's not a fake point. Let's see some examples:
• Close Buy - Sell Alert: Suppose we were in a buy position on the previous candle. In the current candle, the Fast Average crosses the Median Average from top to bottom, and the ADX indicates a sell trend. In this case, we completely close our buy position or make a partial realization.
• Close Sell - Buy Alert: Suppose we were in a sell position on the previous candle. In the current candle, the Fast Average crosses the Median Average from bottom to top, and the ADX indicates a buy trend. In this case, we completely close our sell position or make a partial realization.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Indicador baseado no Color Candles - Didi's Needles setup , mas agora focado exclusivamente na geração de alertas.
Com esse indicador, você pode configurar alertas e notificações no TradingView para até 15 ativos com base no setup de Didi Aguiar. Além disso, é possível definir se o alerta deve ser acionado no fechamento do candle ou X minutos antes do fechamento.
Também foi adicionado um filtro de sessão que permite configurar os alertas para serem acionados apenas durante uma sessão específica.
Descrição dos sinais monitorados:
O setup consiste no cruzamento de 3 médias móveis, juntamente com a análise da tendência no ADX e das bandas de Bollinger abertas.
As médias móveis serão nomeadas "Didi Index". Teremos a média de 3 períodos como "Média Rápida", a média de 8 períodos como "Média Mediana" e a média de 20 períodos como "Média Lenta". Quando a Média Rápida cruzar a Média Mediana, teremos um alerta e, quando a Média Lenta cruzar a Média Mediana, teremos uma confirmação. Para ajustar o Didi Index nos sinais, a Média Mediana foi normalizada, isto é, ela sempre será igual a 0. Para a Média Lenta e a Média Rápida, levaremos em consideração apenas a diferença percentual em relação à Média Mediana.
Além das médias móveis, analisamos se o ADX está em ascensão, com o DI+ acima do DI- para indicar uma tendência de alta, ou se o ADX está subindo, com o DI- acima do DI+ para indicar uma tendência de baixa. Também verificamos se as bandas de Bollinger estão abertas. Com essas condições, teremos uma Agulhada.
Agora vou detalhar como estabeleci isso no indicador e alguns filtros que inseri para o meu uso pessoal, além de alguns sinais adicionais do setup.
# Alerta de Agulhada
Primeiramente, temos o sinal de "Alerta de Agulhada". Este sinal acontece quando a Média Rápida cruza a Média Mediana, junto com a confirmação da tendência no ADX e a abertura das Bandas de Bollinger. O filtro está ajustado em "1", o que significa que só levaremos em consideração o alerta de agulhada quando a diferença percentual entre a Média Lenta e a Média Mediana estiver abaixo de 1%. Esse sinal pode ser utilizado como um ponto de entrada ou para monitorar o ativo. Vamos aos exemplos:
• Para um "Alerta de Compra", a Média Rápida deve cruzar a Média Mediana de baixo para cima, e a diferença percentual entre a Média Lenta e a Média Mediana deve ser menor que +1% e maior que 0, conforme indicado pelo Didi Index.
• Para um "Alerta de Venda", a Média Rápida deve cruzar a Média Mediana de cima para baixo, e a diferença percentual entre a Média Lenta e a Média Mediana deve ser maior que -1% e menor que 0, conforme indicado pelo Didi Index.
Também temos a projeção do alerta, que serve como um sinal para chamar atenção e monitorar o ativo. Eu uso um filtro de "0.1", o que significa que a diferença percentual entre a Média Rápida e a Média Mediana deve ser igual ou menor que 0.1%. Vamos ver o exemplo:
• Para uma "Projeção de Alerta de Compra", a Média Rápida deve estar abaixo da Média Mediana, e a diferença percentual entre a Média Rápida e a Média Mediana deve ser maior que -0.1% e menor que 0. Além disso, a Média Lenta deve estar acima da Média Mediana no Didi Index.
• Para uma "Projeção de Alerta de Compra", a Média Rápida deve estar abaixo da Média Mediana, e a diferença percentual entre a Média Rápida e a Média Mediana deve ser maior que -0.1% e menor que 0. Além disso, a Média Lenta deve estar acima da Média Mediana no Didi Index.
# Agulhada
Após o Alerta de Agulhada, temos a confirmação da Agulhada, que ocorre quando a Média Lenta cruza a Média Mediana após o alerta. Esse sinal é utilizado para entrar na operação. Vamos dividir esse sinal em duas partes:
1. Agulhada: Utilizamos um filtro de "3" (ajustável). Isso significa que, para ser considerada uma "Agulhada", a distância em velas entre o Alerta (cruzamento da Média Rápida com a Média Mediana) e a Confirmação (cruzamento da Média Lenta com a Média Mediana) deve ser igual ou menor que 3 velas. Além disso, é necessário ter uma tendência no ADX e as Bandas de Bollinger devem estar abertas.
2. Agulhada Queijo Minas (QM): Basicamente, é uma agulhada que ocorre fora do filtro, com uma distância em velas entre o Alerta e a Confirmação acima de "3" velas. Também é necessário ter uma tendência no ADX e as Bandas de Bollinger devem estar abertas.
Para antecipar a confirmação da Agulhada, utilizamos o sinal de "Projeção de Agulhada". Esse sinal possui dois filtros: o "Projeção de Agulhada com Alerta", configurado como "0.1%", e o "Projeção de Agulhada após o Alerta", configurado como "0.3%".
1. "Projeção de Agulhada com Alerta" gera o sinal quando ocorre o "Alerta de Agulhada" (cruzamento da Média Rápida com a Média Mediana), desde que a diferença entre a Média Lenta e a Média Mediana seja menor que 0.1%.
2. "Projeção de Agulhada após o Alerta" gera o sinal quando a Média Rápida já cruzou a Média Mediana, e a diferença entre a Média Lenta e a Média Mediana deve ser menor que 0.3%.
# BJMA (Beijo da Mulher Aranha)
Existe uma outra variação da agulhada chamada BJMA. Essencialmente, ocorre quando a Média Rápida e a Média Lenta se aproximam da Média Mediana (cada uma em um polo), mas não cruzam a Mediana e voltam para o lado de onde vieram. Nesse sinal, temos dois filtros: "Delta BJMA vela anterior" e "Delta BJMA vela atual". Vejamos um exemplo:
• BJMA de Compra: Primeiramente, observamos a vela anterior, onde a Média Rápida deve estar acima de 0 (acima da Média Mediana) e a diferença percentual deve ser menor que 0.02. Em relação à Média Lenta, a configuração é a mesma, porém no sentido negativo, ou seja, ela deve estar abaixo de 0 e acima de -0.02. Agora, na vela atual, a Média Rápida deve estar acima de 0 e abaixo de 0.05, enquanto a Média Lenta deve estar abaixo de 0 e acima de -0.05.
• BJMA de Venda: Primeiramente, observamos a vela anterior, onde a Média Rápida deve estar abaixo de 0 (abaixo da Média Mediana) e a diferença percentual deve ser maior que -0.02. Em relação à Média Lenta, a configuração é a mesma, porém no sentido positivo, ou seja, ela deve estar acima de 0 e abaixo de 0.02. Agora, na vela atual, a Média Rápida deve estar abaixo de 0 e acima de -0.05, enquanto a Média Lenta deve estar acima de 0 e abaixo de 0.05.
Agora vamos abordar dois sinais que são normalmente utilizados para manter uma posição.
# Ponto Falso (Fake Point)
O Ponto Falso é usado para identificar uma retração antes de retomar o movimento. Geralmente, ele ocorre após um sinal de Agulhada ou BJMA. Vejamos exemplos:
• Venda Falsa (sinal para manter uma posição de compra): A Média Rápida cruza a Média Mediana de cima para baixo (entrando no polo negativo do Didi Index), enquanto a Média Lenta, que já está abaixo da Média Mediana (abaixo de 0), continua caindo, aumentando assim a diferença percentual entre a Média Lenta e a Média Mediana no polo negativo.
• Compra Falsa (sinal para manter uma posição de venda): O cenário é semelhante, mas no polo positivo. A Média Rápida cruza a Média Mediana, passando para o lado positivo do Didi Index, enquanto a Média Lenta, que já estava acima da Média Mediana, continua aumentando a diferença percentual em relação à Média Mediana. Por exemplo, se a Média Lenta estava em +1 no Didi Index, agora ela está em +1.3.
Também existe uma variação do Ponto Falso em que verificamos se a tendência no ADX está se mantendo na mesma direção. Ou seja, se tivermos uma Venda Falsa (que seria um sinal para permanecermos em uma posição de compra), é importante que o ADX esteja indicando uma tendência de compra, e vice-versa. Dessa forma, consideramos não apenas o cruzamento das médias, mas também a confirmação da tendência no ADX. Essa variação é chamada de Ponto Falso com Tendência (Fake Point with Trend).
# Comprado e Vendido
Esse sinal, essencialmente, verifica se os indicadores estão mantendo a confirmação dos sinais anteriores. Existem duas variações: "Comprado/Vendido" e "Comprado/Vendido sem Bandas de Bollinger". Vejamos um exemplo:
• Comprado: O Didi Index está em compra, o que significa que a Média Rápida está acima da Média Mediana (acima de 0) e a Média Lenta está abaixo da Média Mediana. Além disso, o ADX está indicando uma tendência de compra e as Bandas de Bollinger estão abertas.
• Vendido: O Didi Index está em venda, o que significa que a Média Rápida está abaixo de 0 e a Média Lenta está acima de 0. Além disso, o ADX está indicando uma tendência de venda e as Bandas de Bollinger estão abertas.
• Comprado/Vendido sem Bollinger: É o mesmo sinal, porém sem considerar se as Bandas de Bollinger estão abertas ou não.
Podemos também considerar o "Comprado/Vendido" com base no Trix e no Estocástico, que seriam confirmações adicionais do movimento.
Eu, pessoalmente, não deixo ativado o sinal de Comprado/Vendido.
Agora chegamos aos sinais de saída da posição ou de realização parcial.
# Fechar (Close)
Este sinal de saída baseia-se nos seguintes indicadores: ADX, Bandas de Bollinger, Trix e Estocástico. Aguardamos o Kick do ADX ou o ADX em queda, juntamente com as Bandas de Bollinger se fechando, e o Trix e o Estocástico mudando para o lado oposto. Vamos ver alguns exemplos:
• Fechar uma Compra (Close Buy): O ADX estava em uma tendência de compra (ADX subindo e DI+ acima do DI-), mas em seguida ocorre o Kick do ADX ou o ADX começa a cair. Além disso, as Bandas de Bollinger se fecham e o Trix e o Estocástico devem mudar para o sinal de venda.
• Fechar uma Venda (Close Sell): O ADX estava em uma tendência de venda (ADX subindo e DI- acima do DI+), mas em seguida ocorre o Kick do ADX ou o ADX começa a cair. Além disso, as Bandas de Bollinger se fecham e o Trix e o Estocástico devem mudar para o sinal de compra.
Todos os indicadores devem fornecer os sinais em conjunto, mas não é necessário que todos ocorram exatamente na mesma vela. Por exemplo:
1. Pode ocorrer o Kick do ADX e o Trix e o Estocástico mudarem para o sinal de compra, mas as Bandas de Bollinger ainda permanecerem abertas. Nesse caso, ainda não teremos o sinal de saída.
2. No candle seguinte, o ADX continua caindo (após o Kick), o Trix e o Estocástico continuam indicando compra, mas desta vez as Bandas de Bollinger se fecham. Nesse caso, teremos o sinal de "Fechamento de uma Venda".
É importante que todos os indicadores estejam em conformidade com os sinais necessários, mesmo que ocorram em velas diferentes, para que seja acionado o sinal de saída.
# Fechar com Alerta (Close with Alert)
Esse sinal ocorre quando o Didi Index muda para o lado oposto do que estava, juntamente com uma tendência no ADX, desde que não seja um ponto falso. Vejamos exemplos:
• Fechar Compra - Alerta de Venda: Suponha que estávamos em uma posição de compra no candle anterior. No candle atual, a Média Rápida cruza a Média Mediana de cima para baixo, e o ADX indica uma tendência de venda. Nesse caso, encerramos completamente nossa posição de compra ou realizamos uma realização parcial.
• Fechar Venda – Alerta de Compra: Suponha que estávamos em uma posição de venda no candle anterior. No candle atual, a Média Rápida cruza a Média Mediana de baixo para cima, e o ADX indica uma tendência de compra. Nesse caso, encerramos completamente nossa posição de venda ou realizamos uma realização parcial.
[ADOL_]Trend_Osilator_beta
ENG) Trend_Osilator_beta
Introduction)
This is an indicator that analyzes and displays trends.
By taking the form of an oscillator, upper and lower limits are established, which limits the unlimited range that can appear on the chart.
Through oscillatorization, you can find overbought, oversold, and current trend areas.
This version is a beta version, so signals and alerts do not occur.
It adopts MTF and is a simple but functional indicator. Complement your skills with the trading methods below.
To use multiple time frames, use the timeframe.multiplier function.
We created a table using the table.new function and displayed the time zone selected in the current indicator at the bottom right of the chart.
When using multiple indicators, you can easily distinguish the currently selected time.
Principle)
Set up two moving averages with different speeds and make the relative difference.
Create the speed difference between the two moving averages using methods such as over = crossover(fast, slow) and under = crossunder(fast, slow).
The point at which the difference in relative speed decreases is where the possibility of inflection is high. Through the cross code, you can find out when the speed difference becomes 0.
It was created by determining the green and red areas at the inflection point.
Using the code of fill(fast, slow, color = fast>= slow? color.green: color.red, transp = 80, title = "fillcolor")
You can color and distinguish areas.
MA: MA_type can be selected (limited)
Min: This is the starting value to set the oscillator range.
Max: This is the final value to set the oscillator range.
Lenght: This is the number of candles used to calculate the calculation formula in the oscillator.
repaint: You can choose whether to draw a repaint. The default is OFF.
The coding for repaint settings for the indicator was written using the optimal method recommended by TradingView.
Reference:
security(syminfo.tickerid, tf, src )
Trading method)
You can set different time zones in Timeframe. Even if you change the time frame of the chart, it is displayed based on the time set in the indicator.
If the timeframe is set to 4h in the indicator, the standard that occurs in 4h is retrieved and displayed even if the chart screen is adjusted to 15m or 30m.
This is a feature of Multi-Time-Frame (MTF). The repaint problem that occurred when using MTF was resolved by referring to TradingView's recommended code.
User can decide whether to repaint or not. The default is OFF.
In the green area, Buy is the dominant opinion, and in the red area, Sell is the dominant opinion. simple!
You can gain good insight by deciding to buy or sell without moving too far from the point where the area changes.
- Settings are the most common default values. It is also possible to change the settings, but leave the settings as is.
If you want to do short shots, you can select the time frame as 1 hour, 15 minutes, or whatever time you want. If you want to analyze big changes, you can select the time frame as 4 hours or daily.
The recommended basic time frame is 4 hours.
- Upward divergence
We confirm that 8/25 is the lowest point.
- trend line
- Find a property for sale by amplitud.
Breaking a trend line that candles cannot indicate, It can be used to view branches.
Disclaimer)
This indicator is not an indicator that guarantees absolute returns and is used for simple reference purposes. Accordingly, all trading decisions you make are solely your responsibility.
KOR) 트렌드_오실레이터_베타
소개)
이것은 트렌드를 분석하여 표기해주는 지표입니다.
오실레이터 형태를 갖춤으로써, 상한과 하한이 정해지며, 이로 인해 차트에서 나타날 수 있는 무제한적인 확장영역이 제한됩니다.
오실레이터화를 통해, 과매수와 과매도, 현재의 트렌드 영역을 잘 찾을 수 있습니다.
이 버전은 베타바전으로 시그널과 얼러트가 발생하지 않습니다.
MTF를 채택했으며, 단순하지만, 기능적으로 훌륭한 지표입니다. 아래 매매방법에서 능력을 보완하십시오.
멀티타임프레임을 사용하기 위해 timeframe.multiplier 함수를 사용합니다.
table.new 함수를 사용하여 table을 만들고, 차트 우측 하단에 현재 지표에서 선택한 시간대가 표시되도록 하였습니다.
여러개의 지표를 사용할 때 쉽게, 현재 선택된 시간을 쉽게 구분가능합니다.
원리)
속도가 다른 두 개의 이평선을 설정하고 상대적인 차이를 만듭니다.
over = crossover(fast, slow) , under = crossunder(fast, slow) 와 같은 방법으로 두개의 이평선의 속도차이를 만듭니다.
상대적 속도의 차이가 줄어드는 시점은 변곡의 가능성이 높은 자리입니다. cross code를 통해 속도차가 0이 되는 시점을 알 수 있습니다.
변곡점에서 초록색과 빨간색의 영역을 결정하는 방법으로 만들어졌습니다.
fill(fast, slow, color = fast>= slow? color.green: color.red, transp = 80, title = "fillcolor") 의 코드를 사용하여
영역을 색칠하고 구분할 수 있습니다.
MA : MA_유형을 선택할 수 있습니다.(제한적 사용)
Min : 오실레이터 범위를 설정할 시작값입니다.
Max : 오실레이터 범위를 설정할 마지막값입니다.
Lenght : 오실레이터에서 계산식을 산출하기 위한 캔들의 개수입니다.
repaint : 리페인팅을 그릴지 선택할 수 있습니다. 기본값은 OFF 입니다.
해당 지표의 리페인트 설정에 관한 코딩은 트레이딩뷰에서 권장하는 추천 방법으로 작성되었습니다.
참고 :
security(syminfo.tickerid, tf, src )
매매방법)
- Timeframe에서 다양한 시간대를 설정할 수 있습니다. 차트의 시간프레임을 바꿔도 지표에서 설정한 시간을 기준으로 표시해줍니다.
지표에서 Timeframe을 4h로 설정했다면, 차트화면을 15m으로 조정하거나 30m으로 조정해도 4h 에서 발생하는 기준을 가져와 보여줍니다.
이것은 Multi-Time-Frame(MTF)의 기능입니다. MTF 사용시 발생하는 리페인트 문제는 트레이딩뷰의 권장코드를 참고하여 해결했습니다.
사용자가 리페인트 여부를 결정할 수 있습니다. 기본값은 OFF 입니다.
초록색의 영역에서는 매수가 지배적인 의견이며, 빨간색의 영역에서는 매도가 지배적인 의견입니다. 단순!
영역이 바뀌는 시점에서 멀리 벗어나지 않고 매매를 결정하면 좋은 통찰력을 얻을 수 있습니다.
- 설정값은 가장 보편적인 기본값입니다. 설정값을 바꾸는 방법도 가능하지만, 설정값을 그대로 두고,
단타를 하고 싶으면 타임프레임을 1시간, 15분, 혹은 원하는 시간, 큰 변화를 분석하고 싶으면 타임프레임을 4시간, 날봉 으로 선택하면 되며,
추천하는 기본 시간프레임은, 4시간입니다.
- 상승다이버전스
를 통해 8/25이 최저점이 됨을 확인합니다. 하락다이버전스는 같은 원리로 반대방향으로 그릴 수 있습니다.
- 추세선
그림과 같이 같은 영역의 고점을 이어 하락추세선을 긋습니다. 상승추세선은 반대입니다.
캔들이 표시할 수 없는 추세선돌파 지점을 볼 수 있게 활용가능합니다.
- 진폭으로 매물대 찾기
빨간색 영역의 저점과 초록색 영역의 고점이 발생할 때, 그 차이를 하나의 진폭으로 보고 범위를 설정합니다.
여기서 하나의 진폭은 위나 아래로 갈 수 있는 패턴값이 되며, 이 패턴값은 지지/저항으로 작용합니다.
얼러트)
얼러트의 설정이 포함되어 있지 않습니다.
면책조항)
해당지표는 절대수익을 보장하는 지표가 아니며, 단순한 참고용으로 사용됩니다. 따라서, 귀하가 내리는 모든 거래 결정은 전적으로 귀하의 책임입니다.
Strategy Gaussian Anomaly DerivativeConcept behind this Strategy :
Considering a normal "buy/sell" situation, an asset would be bought in average at the median price following a Gaussian like concept. A higher or lower average trend would significate that the current perceived value is respectively higher or lower than the current median price, which mean that the buyers are evaluating the price underpriced or overpriced.
This behaviour would be even more relevent depending on its derivative evolution.
Therefore, this Strategy setup is based on this Gaussian like concept anomaly of average close positionning compare to high-low average derivative, such as the derivative of the following ploted basic signal : 1-(high+low)/(2*close).
This Strategy can actually be used like a trend change and continuation strength indicator aswell.
In the Setup Signal part :
You can define the filtering of the basis signal "1-(high+low)/(2*close)" on EMA or SMA as you wish.
You can define the corresponding period and the threathold as a mutiply of the average 1/3 of all time value of the basis signal.
You can define the SMA filtering period of the Derivative signal and the corresponding threathold on the same mutiply of the average 1/3 of all time value of the derivative.
In the Setup Strategy part :
You can set up your strategy assesment based on Long and/or Short. You can also define the considered period.
The most successful tuned strategies I did were based on the derivative indicator with periods on the basis signal and the derivative under 30, can be 1 to 3 of te derivative and 7 to 21 for the basis signal. The threathold depends on the asset volatility aswell, 1 is usually the most efficient but 0 to 10 can be relevent depending on the situation I met. You can find an example of tuning for this strategy based on Kering's case hereafter.
I hoping that you will enjoy using this Strategy, don't hesitate to comment, to question, to correct or complete it ! I would be very curious about similar famous approaches that would have already been made.
Thank to you !
ZN Market CycleDescription
The purpose of this indicator is to create symbols that try to show the most accurate positions possible for trading. The formation of BUY/SELL symbols is based on the intersection of RSI, MACD and 6 bar moving average. Additionally, BOLLINGER bands were used to determine the lower and upper points. For example, while the price is falling, it will create an BOTTOM symbol when the price crosses the lower BOLLINGER band upwards. If this transition is accompanied by the RSI breaking its average upwards, it will produce the STRONG BOTTOM symbol. If the RSI average crosses the RSIMA direction upwards, it will produce the DEEP symbol. Of course, the scenario described above is also valid in the opposite direction. The purpose of the icons on the screen is indicated by the text above them. However, a detailed explanation of what these symbols do is given below.
Symbols
The symbols are explained one by one below.
BOTTOM: Indicates that the fall has slowed down or may have been completed.
STRONG BOTTOM: Indicates that the fall has stopped or may have been completed.
TOP: Indicates that the ascent has slowed down or may have been completed.
STRONG TOP: Indicates that the ascent has stopped or may have been completed.
BUY: Indicates the convenient location to make a buying. Buying pressure may increase after this symbol.
STRONG BUY: Indicates the most suitable location for buying. It should be considered that a strong buying wave may come after the appearance of this symbol.
SELL: Indicates the appropriate location to selling Selling pressure may increase after this symbol.
STRONG SELL: Indicates the most suitable position to selling. It should be considered that a strong selling wave may come after the appearance of this symbol.
PEAK: It indicates that the uptrend has come to an end.
DEEP: It indicates that the downtrend has come to an end.
ARROWS: Arrows show the trend direction. Since it varies a lot, it should be used to follow the trend rather than buy/sell. However, the appearance of a downward arrow shortly after a buy signal should suggest that the buy signal is fake. In this case, the buying position can be closed. This also applies to the selling process.
Best Use
This indicator should be used for SPOT trades. Regardless, since it is not possible to know exactly the direction of the market, it should be considered to buy gradually at buy signals and sell gradually at sell signals.
It should be followed for at least a 4-hour period. We do not recommend its use as the margin of error will increase in shorter time periods.
After a buy signal comes, a short decline may occur and the rise may begin. An immediate rise should not be expected after the signal arrives. Since the signals are not guaranteed to work 100%, we do not recommend you to trade with all your money.
No Repainting
Repainting is definitely not done. After the symbols appear, the closing should be expected. Once the closing occurs, the symbol will now be permanent.
Disclaimer
This indicator is for informational purposes only and should be used for educational purposes only. You may lose money if you rely on this to trade without additional information. Use at your own risk.
Version
v1.0
SOFEX High-End Indicators + BacktestingBINANCE:BTCUSDT.P BINANCE:ETHUSDT.P
Introducing the first publicly available suite of indicators for Bitcoin and Ethereum by Sofex - the High-End Indicators & Backtesting System.
🔬 Trading Philosophy
The High-End Indicators & Backtesting system offers both trend-following and mean-reversal algorithms to provide traders with a deep insight into the highly volatile cryptocurrency markets, known for their market noise and vulnerability to manipulation.
With these factors in mind, our indicators are designed to sidestep most potentially false signals. This is facilitated further by the "middle-ground" time frame (1 Hour) we use. Our focus is on the two largest cryptocurrencies: Bitcoin and Ethereum , which provide high liquidity, necessary for reliable trading.
Therefore, we recommend using our suite on these markets.
The backtesting version of the Sofex High-End Indicators includes mainly trend-following indicators. This is because our trading vision is that volatility in cryptocurrency markets is a tool that should be used carefully, and many times avoided. Furthermore, mean-reversal trading can lead to short-term profits, but we have found it less than ideal for long-term trading.
The script does not aim to make a lot of trades, or to always remain in a position and switch from long to short. Many times there is no direction and the market is in "random walk mode", and chasing trades is futile.
Based on our experience, it is preferable if traders remain neutral the majority of the time and only enter trades that can be exited in the foreseeable future. Trading just for the sake of it ultimately leads to loss in the long-run.
Expectations of performance should be realistic.
We also focus on a balanced take-profit to stop-loss ratio. In the default set-up of the script, that is a 2% : 2% (1:1) ratio. A relatively low stop loss and take profit build onto our idea that positions should be exited promptly. There are many options to edit these values, including enabling trailing take profit and stop loss. Traders can also completely turn off TP and SL levels, and rely on opposing signals to exit and enter new trades.
Extreme scenarios can happen on the cryptocurrency markets, and disabling stop-loss levels completely is not recommended. The position size should be monitored since all of it is at risk with no stop-loss.
We take pride in presenting this comprehensive suite of trading indicators, designed for both manual and automated use. Although automated use leads to increased efficiency, traders are free to incorporate any of our indicators into their own manual trading strategy.
⚙️ Indicators
By default, all indicators are enabled for both Long and Short trades.
Extreme Trend Breakouts
The Extreme Trend Breakouts indicator seeks to follow breakouts of support and resistance levels, while also accounting for the unfortunate fact that false signals can be generated on these levels. The indicator combines trend-breakout strategies with various other volatility and direction measurements. It works best in the beginning of trends.
Underpinning this indicator are renowned Perry Kaufman's Adaptive Moving Averages (PKAMA) alongside our proprietary adaptive moving averages. These dynamic indicators adjust their parameters based on recent price movements, attempting to catch trends while maintaining consistent performance in the long run.
In addition, our modification of the TTM Squeeze indicator further enhances the Extreme Trend Breakouts indicator, making it more responsive, especially during the initial stages of trends and filtering of "flat" markets.
High-Volatility Trend Follower
The High-Volatility Trend Follower indicator is based around the logic of evading market conditions where volatility is low (choppy markets) and aggressively following confirmed trends. The indicator works best during strong trends, however, it has the downside of entering trades at trend tops or bottoms.
This indicator also leverages our proprietary adaptive moving averages to identify and follow high-volatility trends effectively. Furthermore, it uses the Average Directional Index, Aroon Oscillator, ATR and a modified version of VWAP, to categorize trends into weak or strong ones. The VWAP indicator is used to identify the monetary (volume) inflow into a given trend, further helping to avoid short-term manipulations.
Low-Volatility Reversal
The Low-Volatility Reversal aims at plugging the holes that trend-following indicators ignore. It specifically looks for choppy markets. Using proven concepts such as Relative Strength Index and volume measurements, among others, this indicator finds local tops and bottoms with good accuracy. It works best in choppy markets with low to medium volatility. It has a downside that all reversals have, losing trades at the end of choppy markets and in the beginning of big trends.
This indicator, like the others, employs PKAMA in conjunction with our proprietary adaptive moving averages, and an Average PSAR indicator to seek out "sideways" markets. Furthermore, Bollinger Bands with an adaptive basis line is used, with the idea of trading against the short-term trends by looking at big deviations in price movement. The above mentioned indicators attempt to catch local tops and bottoms in markets.
Adaptive Trend Convergence
The Adaptive Trend Convergence aims at following trends while avoiding entering positions at local bottoms and tops. It does so by comparing a number of adaptive moving averages and looking for convergence among them. Adaptive filtering techniques for avoiding choppy markets are also used.
This indicator utilizes our proprietary adaptive moving averages, and an Average Price Range indicator to identify trend convergence and divergence effectively, preventing false signals during volatile market phases. It also makes use of Bollinger Bands with an adaptive moving average basis line and price-action adjusted deviation. Contrasting to the Low-Volatility Reversal condition described above, the Bollinger Bands used here attempt to follow breakouts outside of the lower and upper bands.
Double-Filtered Channel Breakouts
The Double-Filtered Channel Breakouts indicator is made out of adaptive channel-identifying indicators. The indicator then follows trends that significantly diverge from the established channels. This aims at following extreme trends, where rapid, continuous movements in either direction occur. This indicator works best in very strong trends and follows them relentlessly. However, these strong trends can end in strong reversals, and the indicator can be stopped out on the last trade.
Our Double-Filtered Channel Breakouts indicator is built on a foundation of adaptive channel indicators. We've harnessed the power of Keltner Channels and Bollinger Band Channels, with a similar approach used in the Adaptive Trend Convergence indicator. The basis and upper/lower bands of the channels do not rely on fixed deviation parameters, rather on adaptive ones, based on price action and volatility. This combination seeks to identify and follows extreme trends.
Direction Tracker
The Direction Tracker indicator is made out of a central slower, adaptive moving average that clearly recognizes global, long-term trends. Combined with direction and range indicators, among others, this indicator excels at finding the long-term trend and ignoring temporary pullbacks in the opposite direction. It works best at the beginning and middle of long and strong trends. It can fail at the end of trends and on very strong historical resistance lines (where sharp reversals are common).
Our Direction Tracker indicator integrates an adaptive SuperTrend indicator into its core, alongside our proprietary adaptive moving averages, to accurately identify and track long-term trends while mitigating temporary pullbacks. Furthermore, it uses Average True Range, ADX and other volatility indicators to attempt to catch unusual moves on the market early-on.
📟 Parameters Menu
To offer traders flexibility, our system comes with a comprehensive parameter menu:
Preset Selection : Choose between Bitcoin or Ethereum presets to tailor the indicators to your preferred cryptocurrency market.
Global Signal Direction: Set the global signal direction as Long, Short, or Both, depending on your trading strategy.
Global Sensitivity Parameter : Adjust the system's sensitivity to adapt to different trend-following conditions, particularly beneficial during higher-strength trends.
Source of Signals : Toggle individual indicators on or off according to your preference. By default, all indicators are enabled. Customize the indicators to trade Long, Short, or Both, aligning them with your desired market exposure.
Confirmation of Signals : Set the minimum number of confirmed signals on the same bar, ensuring signals are generated only when specific confirmation criteria are met. The default value is one, and it can be adjusted for both Long and Short signals.
Exit of Signals : You have options regarding Take-Profit (TP) and Stop-Loss (SL) levels. Enable TP/SL levels to exit trades at predetermined levels, or disable them to rely on direction changes for exits. Be aware that removing stop losses can introduce additional risk, and position sizing should be carefully monitored.
By enabling Trailing TP/SL, the system switches to a trailing approach, allowing you to:
- Place an initial customizable SL.
- Specify a level (%) for the Trailing SL to become active.
- When the activation level is reached, the system moves the trailing stop by a given Offset (%).
Additionally, you can enable exit at break-even, where the system places an exit order when the trail activation level is reached, accounting for fees and slippage.
Alert Messages : Define the fields for alert messages based on specific conditions. You can set up alerts to receive email, SMS, and in-app notifications. If you use webhooks for alerts, exercise caution, as these alerts can potentially execute trades without human supervision.
Backtesting : Default backtesting parameters are set to provide realistic backtesting performance:
- 0.04% Commission per trade (for both entries and exits)
- 3 ticks Slippage (highly dependent on exchange)
- Initial capital of $1000
- Order size of $1000
While the order size is equal to the initial capital, the script employs a 2% stop-loss order to limit losses and attempts to prevent risky trades from creating big losses. The order size is a set dollar value, so that the backtesting performance is linear, instead of using % of capital which may result in unrealistic backtesting performance.
Risk Disclaimer
Please be aware that backtesting results, while valuable for statistical overview, do not guarantee future performance in any way. Cryptocurrency markets are inherently volatile and risky. Always trade responsibly and do not risk more than you can afford to lose.
W and M Pattern Indicator- SwaGThis is a TradingView indicator script that identifies potential buy and sell signals based on ‘W’ and ‘M’ patterns in the Relative Strength Index (RSI). It provides visual alerts and draws horizontal lines to indicate potential trade entry points.
User Manual:
Inputs: The script takes two inputs - an upper limit and a lower limit. The default values are 70 and 40, respectively.
RSI Calculation: The script calculates the RSI based on the closing prices of the last 14 periods.
Pattern Identification: It identifies ‘W’ patterns when the RSI makes a higher low within the lower limit, and ‘M’ patterns when the RSI makes a lower high within the upper limit.
Visual Alerts: The script plots these patterns on the chart. ‘W’ patterns are marked with small green triangles below the bars, and ‘M’ patterns are marked with small red triangles above the bars.
Trade Entry Points: A horizontal line is drawn at the high or low of the candle to represent potential trade entry points. The line starts from one bar to the left and extends 10 bars to the right.
Trading Strategy:
For investing, use a weekly timeframe.
For swing trading, use a daily timeframe.
For intraday trading, use a 5 or 15-minute timeframe. Only consider sell-side signals for intraday trading.
Take a buy position if the high breaks above the green line or sell if the low breaks below the red line.
Use recent signals only and avoid signals that are too old.
Swing highs or lows will be your stop-loss level.
Always think about your stop-loss before entering a trade, not your target.
Avoid trades with a large stop-loss.
Remember, this script is a tool to aid in your trading decisions. Always test your strategies thoroughly before live trading. Happy trading! 😊
RSRS (Resistance Support Relative Strength)The Resistance Support Relative Strength (RSRS) indicator, published by Everbright Securities, is a technical analysis tool that enjoys immense popularity among Chinese quantitative traders, owing to its stellar performance in China's stock markets.
🟠 Principle
The indicator treats daily highs and lows as resistance and support levels respectively. It measures market strength by comparing the magnitude of price changes in daily highs versus lows. Specifically, it fits a linear regression model to the (low, high) data points over the past N days (typically 18) and uses the slope (beta) as the RSRS value. A steeper slope indicates stronger market strength.
🟠 Algorithm
1. Collect the daily low and high prices over the past N days.
2. Apply Ordinary Least Squares to estimate the linear regression model: high = alpha + beta * low. The beta is the RSRS value.
3. Compute the z-score of the RSRS over the past M days (typically 600).
4. Compare the z-score to preset buy and sell thresholds (typically 0.7 and -0.7) to generate trading signals. If z-score > buy threshold, a buy signal is triggered. If z-score < sell threshold, a sell signal is triggered.
Sudden increase in volume [PINESCRIPTLABS]The indicator plots buying and selling histograms on the price chart, as well as graphical signals in the form of triangles to highlight buying and selling conditions. Buying conditions are based on a sudden increase in volume and oversold RSI, while selling conditions are based on a sudden increase in volume and overbought RSI.
In summary, this strategy aims to identify moments when there is a significant surge in trading volume along with overbought or oversold conditions in the RSI. These moments are considered potential signals for buying or selling in the market.
Sudden Volume Surge: It checks if the current volume is greater than a multiple of the exponential moving average of volume (EMA) calculated with a specific length (ema_length). This indicates a sudden surge in trading volume.
RSI Overbought and Oversold Levels: Two RSI values, rsi_overbought and rsi_oversold, are used as references. If the RSI value is below the rsi_oversold level, it is considered to be in oversold territory, and if the RSI value is above the rsi_overbought level, it is considered to be in overbought territory.
El indicador plotea histogramas de compra y venta en el gráfico de precios, así como señales gráficas en forma de triángulos para resaltar las condiciones de compra y venta. Las condiciones para la compra se basan en un aumento brusco de volumen y un RSI en sobreventa, mientras que las condiciones para la venta se basan en un aumento brusco de volumen y un RSI en sobrecompra.
En resumen, esta estrategia busca identificar momentos en los que haya un aumento significativo en el volumen de operaciones junto con condiciones de sobrecompra o sobreventa en el RSI. Estos momentos se consideran señales potenciales de compra o venta en el mercado.
Aumento brusco de volumen: Se verifica si el volumen actual es mayor que un múltiplo del promedio móvil exponencial del volumen (EMA) calculado con una longitud específica (ema_length). Esto indica un aumento repentino en el volumen de operaciones.
Niveles de RSI en sobrecompra y sobreventa: Se utilizan dos valores de RSI como referencia, rsi_overbought y rsi_oversold. Si el valor del RSI está por debajo del nivel rsi_oversold, se considera que está en territorio de sobreventa, y si el valor del RSI está por encima del nivel rsi_overbought, se considera que está en territorio de sobrecompra.
RSI Divergence SmoothedRSI Divergence Smoothed
This indicator is based on the RSI Divergence indicator by @InvestitoreComune.
The "RSI Divergence Smoothed" is a custom technical indicator designed to highlight divergence between two RSI (Relative Strength Index) lines: a fast RSI and a slow RSI. The divergence is then visualized on the chart, assisting traders in recognizing potential market reversals and trend continuation.
Here's a breakdown of its smoothing options added:
1. **WMA Difference**: The indicator first computes a weighted moving average (WMA) difference, which takes the difference between the WMA of half the input length and the WMA of the full length.
2. **Hull Moving Average (HMA)**: The indicator can use the HMA as a filter. HMA combines the benefits of a simple moving average and a linear weighted moving average, aiming to be faster in response to price changes.
3. **Sine Weighted Moving Average (SWMA)**: Another filter option, SWMA, weighs the data points by the sine of their position in the data set, giving more weight to the central data points.
4. **Kaufman's Adaptive Moving Average (KAMA)**: KAMA adapts to price volatility and can also be used as a filter. It's especially useful in choppy markets, adjusting the smoothing constant based on the relative volatility of the price series.
5. **Gaussian Moving Average (GMA)**: This filter uses a Gaussian kernel to weigh the data points, emphasizing the more recent data while giving lesser importance to older data. It helps smooth out the price data, potentially eliminating some of the noise.
I've personally found the KAMA smoothing to be most helpful but keen to hear of anyone's personal experiences and recommendations.
RSI divergence computations are based on the filtered price (or raw price if no filter is chosen) - the indicator calculates two RSIs:
- Fast RSI: With a default length of 5 periods.
- Slow RSI: With a default length of 14 periods.
The core functionality of this indicator is to compute the divergence between the Fast and Slow RSI. The divergence is plotted on the chart, with the color indicating its direction: white for positive divergence and red for negative.
Laguerre RSI - non repaintingIt seems that the traditional Laguerre* functions repaint due to the gamma parameter.
That goes even for the editorial pick here.
But one could use calculation period instead of "gamma" parameter. This gives us a non-repainting Laguerre RSI fit for scalping trends.
At first glance, I haven't seen anyone do this with a pine script, but I could be wrong because it's not a big deal.
So here is a variation of Laguerre RSI, without repainting. It's a little bit more insensitive, but this is not of great importance, since only the extreme values are used for confirmation.
( * Laguerre RSI is based on John EHLERS' Laguerre Filter to avoid the noise of RSI.)
And if you implement this indicator into a strategy (like I do) I can give you a trick.
Traditionaly the condition is at follows:
LaRSI = cd == 0 ? 100 : cu / (cu + cd)
(this is the final part of the indicator before the plotting)
LongLaguerre= LaRSIupb
It's fine for the short (ot exit long), but for the long is better to make a swich between the CD and CU parameters, as follows:
LaRSI1 = cd == 0 ? 100 : cu / (cu + cd)
LaRSI2 = cu == 0 ? 100 : cu / (cu + cd)
LongLaguerre= LaRSI2upb
Heuristic Bg Color Hodl/swing/scalp [Ox_kali]The "Heuristic BG Color Hodl/Swing/Scalp " is a multi-faceted technical indicator designed to aid traders across varying investment strategies such as long-term holding (Hodl), swing trading, and scalping. Optimized to run on a range of timeframes from seconds to months. Built upon an intricate layering of moving averages, market oscillators. The indicator displays a color range from light green to deep red, based on market conditions. This tool aims to provide an analytical edge by visualizing market conditions in a straightforward manner. Incorporating both trend-following and oscillatory components both trend-following and oscillating components to furnish a more rounded view of the market. Note that this indicator is best used in conjunction with other forms of market analysis and should not be solely relied upon for making trading decisions.
Key Features:
Multiple Moving Averages: Utilizes Fast and Slow MAs to identify trend momentum.
Modified RSI and MFI: Incorporates RSI and MFI to gauge overbought and oversold conditions.
Stoch RSI Indicator: Used to provide additional confirmation for trading signals.
Dynamic Background Color: Highlights potential Buy and Sell zones using background color for easier visual interpretation.
Alert Conditions: Trigger customizable alerts for Buy and Sell zones.
Functionality Analysis:
The script allows you to select the type and period for Fast and Slow moving averages. It uses these MAs to calculate an underlying trend momentum, further refined by a user-defined MA.
The RSI and MFI are used to identify overbought and oversold conditions calculated and smoothed over a user-defined period. The Stoch RSI gives an additional layer of confirmation, allowing traders to identify more reliable trading signals.
The script's main visual feature is the background color, which changes based on potential Buy and Sell zones. It provides two layers for each, enabling traders to understand the strength of the signal. Notably, the indicator is particularly optimized for identifying Buy Zones and is more functional for detecting Sell Zones when applied to larger timeframes.
Trading Application:
The "Heuristic BG Color Hodl/Swing/Scalp" indicator can adapt to various trading styles, from long-term investment to short-term trading. When the background turns green, it signifies a potential Buy Zone, ideal for entering long positions. Conversely, a red background indicates a Sell Zone, suggesting it may be a good time to exit positions or go short.
Traders can also utilize the alert conditions set within the script to receive real-time notifications, making it easier to capitalize on potential market opportunities.
Please note that the "Heuristic BG Color Hodl/Swing/Scalp" by Ox_kali is intended for educational purposes only and does not constitute financial advice. This indicator is not a guarantee of future market performance and should be used alongside proper risk management strategies. Ensure you fully understand the methodology and limitations of this indicator before making any trading decisions. Past performance is not indicative of future results.
RSI with SMA and Bollinger BandsRSI with SMA and Bollinger Bands
The SMA and BB use the RSI as a source. The source of the RSI is selectable.
With the right settings, you can effectively determine the trend phase and trend strength.
I personally use the following settings:
RSI with a 14-period applied to Price Close.
The SMA has a 26-period, and the Bollinger Bands have a period of 50 with a deviation of 2.
GP - Long Short ScannerThis script is made to predict the point at which price-time charts will rise or fall. The script was inspired by the RSI and TSI formulas. The formula is simply; Calculates the RSI and TSI values of open, high, low and close. Calculated values are converted to an array. The maximum and minimum values in the array are taken for the candles included in the calculation. These values calculate the time when the "Long" label will be seen on the chart of the candle that will increase the price. At the same time, it calculates the time when the "Short" label will appear on the chart of the candle that will decrease the price. Although these calculations are not precise; Seeing the “Long” label means that the price will rise at that candle, and seeing the “Short” label means that the price will decrease at that candle. The “Long”, “Short” tags from this script alone should not be used to determine the direction of the price. It can be used on all price-time charts.
Stochastic Trend mtfDefinition
The Stochastic RSI indicator (Stoch RSI) is actually an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means it's an RSI measure relative to its own high/low range over a user-defined time period. Stochastic RSI is an oscillator that calculates a value between 0 and 1 and then plots it as a line. This indicator is primarily used to identify overbought and oversold conditions.
It is important to remember that the Stoch RSI is an indicator of an indicator that is two steps away from the price. The RSI is one step away from the price and therefore a stochastic calculation of the RSI is two steps away. This is important because as with any indicator that is more than one step away from price, the Stoch RSI can be short-term disconnected from actual price action. However, as a range-bound indicator, the Stoch RSI's primary function is to identify cross-bought, overbought and oversold conditions.
Use
When we integrate it into our chart in the upper time frame, it both gives the direction of the trend more healthy and is more efficient in terms of noise reduction in terms of leaving the overbought-sold zones. Unlike the classic stochastic, I set the "d" value to 8. Even though the trend returns are a little late, we see healthier data on our graph. Trend changes in overbought zones are getting stronger. Coloring red indicates that the trend is selling, while painting green indicates that the trend is buying. I hope you find it useful, if you have any questions or suggestions, please feel free to ask.
Good luck...
It is not investment advice.
Machine Learning Momentum Oscillator [ChartPrime]The Machine Learning Momentum Oscillator brings together the K-Nearest Neighbors (KNN) algorithm and the predictive strength of the Tactical Sector Indicator (TSI) Momentum. This unique oscillator not only uses the insights from TSI Momentum but also taps into the power of machine learning therefore being designed to give traders a more comprehensive view of market momentum.
At its core, the Machine Learning Momentum Oscillator blends TSI Momentum with the capabilities of the KNN algorithm. Introducing KNN logic allows for better handling of noise in the data set. The TSI Momentum is known for understanding how strong trends are and which direction they're headed, and now, with the added layer of machine learning, we're able to offer a deeper perspective on market trends. This is a fairly classical when it comes to visuals and trading.
Green bars show the trader when the asset is in an uptrend. On the flip side, red bars mean things are heading down, signaling a bearish movement driven by selling pressure. These color cues make it easier to catch the sentiment and direction of the market in a glance.
Yellow boxes are also displayed by the oscillator. These boxes highlight potential turning points or peaks. When the market comes close to these points, they can provide a heads-up about the possibility of changes in momentum or even a trend reversal, helping a trader make informed choices quickly. These can be looked at as possible reversal areas simply put.
Settings:
Users can adjust the number of neighbours in the KNN algorithm and choose the periods they prefer for analysis. This way, the tool becomes a part of a trader's strategy, adapting to different market conditions as they see fit. Users can also adjust the smoothing used by the oscillator via the smoothing input.
Bitcoin to GOLD [presentTrading]**Introduction and How it is Different**
Unlike traditional indicators, the BTGR offers a unique perspective on market sentiment and asset valuation by juxtaposing two seemingly disparate assets: Bitcoin, the digital gold, and Gold, the traditional store of value. This article introduces an advanced version of this ratio, complete with upper and lower bands calculated using standard deviations. These bands add an extra layer of analytical depth, allowing for more nuanced trading strategies.
BTCUSD 12h bigger picture
**Economic Principles**
The BTGR is rooted in the economic principles of asset valuation and market sentiment. Gold has long been considered a safe haven asset, a place where investors park their money during times of economic uncertainty. Bitcoin, on the other hand, is often viewed as a high-risk, high-reward investment. By comparing the two, the BTGR provides insights into the broader market sentiment.
- Risk Appetite: A high BTGR indicates a bullish sentiment towards riskier assets like Bitcoin.
- Market Uncertainty: A low BTGR suggests a bearish sentiment and a flight to the safety of Gold.
- Asset Diversification: The BTGR can be used as a tool for portfolio diversification, helping investors balance risk and reward.
**How to Use It**
Setting Up the Indicator
- Platform: The indicator is designed for use on TradingView.
- Time Frame: A 480-minute time frame is recommended for more accurate signals.
- Parameters: The moving average is set at 200 periods, and the standard deviation is calculated over the same period.
**Trading Signal**
Long Entry: Consider going long when the BTGR crosses above the upper band.
Short Entry: Consider going short when the BTGR crosses below the lower band.
Note: Due to the issue that the number of trading is less than about 100 times, the corresponding strategy is not allowed to publish.
Philpose's Binary Turbo 1.2Hello there,
I'm thrilled to introduce my very first TradingView indicator - "Philpose's Binary Turbo 1.0." This indicator isn't just another tool; it's my unique take on binary options trading, powered by the Relative Strength Index (RSI).
Differences from Other Indicators:
This indicator is designed for traders who prefer short-term trading, as it uses a 1-minute timeframe.
It assumes that RSI crossovers of overbought and oversold levels can be used to generate binary options signals.
Users should backtest and evaluate the indicator's performance in different market conditions and consider risk management strategies.
Custom Logic: This indicator implements a custom trading logic based on RSI crossovers of overbought and oversold levels. Many indicators on TradingView use standard indicators, but this script incorporates unique logic.
Signal Tracking: It tracks and displays the last buy and sell signals on the chart. This visual representation can be helpful for traders to see when signals were generated.
Streak Tracking: The script keeps track of winning and losing streaks, which can provide traders with insights into their trading performance over time.
Table Summary: It creates a table summarizing various statistics related to the signals generated, such as total signals, wins, losses, and streaks. This tabular representation can be useful for traders to assess the indicator's performance.
How to Use:
To use this indicator effectively, follow these steps:
Add the Indicator: Copy and paste the script into TradingView's Pine Script editor. Then, apply the indicator to the chart.
Customize Parameters: Adjust the RSI parameters (period, overbought, and oversold levels) and the minimum bars between signals according to your trading strategy and preferences.
Interpret Signals: Buy signals are generated when the RSI crosses above the oversold level, and sell signals occur when it crosses below the overbought level.
Analyze Streaks: Keep an eye on the win and loss streaks to assess the indicator's performance and your trading strategy.
Review Table: The table at the top-right corner of the chart provides a summary of important statistics related to signals, wins, losses, and streaks.
Markets and Conditions:
The script can be used in various financial markets, including stocks, forex, commodities, and indices. However, it's important to note that binary options trading has a distinct risk profile and is available on certain platforms. Therefore, you should ensure that your chosen binary options platform supports TradingView indicators and that you understand the specific conditions of binary options trading.
Conditions for Use:
This indicator is designed for traders who prefer short-term trading, as it uses a 1-minute timeframe.
It assumes that RSI crossovers of overbought and oversold levels can be used to generate binary options signals.
Users should backtest and evaluate the indicator's performance in different market conditions and consider risk management strategies.
Please exercise caution when using any trading indicator or strategy, especially in binary options trading, as it involves a high level of risk, and you may lose your entire investment. It's advisable to thoroughly test any strategy on a demo account before trading with real funds and to seek the advice of a qualified financial advisor if you are unsure about your trading decisions.