This TradingView Pine Script integrates Heikin-Ashi candles, the Relative Strength Index (RSI), and volume trends to generate buy and sell signals. It first calculates Heikin-Ashi values by averaging price movements, smoothing out market noise to highlight trends more clearly. The script then computes a 14-period RSI to measure momentum, focusing on whether RSI crosses above 50 (indicating bullish momentum) or below 50 (indicating bearish momentum). To confirm trade signals, the script includes a volume filter, calculating a 20-period moving average of volume and ensuring that trades are only triggered when volume exceeds this average, preventing false signals in low-liquidity conditions. Buy signals appear when RSI crosses above 50 and volume is strong, while sell signals occur when RSI drops below 50 with high volume. These signals are visually marked with green up arrows for buys and red down arrows for sells, while Heikin-Ashi candles are color-coded to represent trends—green for uptrends and red for downtrends. This strategy helps traders filter out weak trades and identify stronger trends with confirmation from both momentum and volume. It is useful for trend-following strategies and can be enhanced with additional filters like moving averages or stop-loss levels for risk management.
Script de código aberto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.