Multi-Indicator Trading StrategyKey Features of the Script:
Moving Averages (MA):
Uses a fast and slow SMA to identify trends.
Generates buy/sell signals based on crossovers.
Relative Strength Index (RSI):
Identifies overbought and oversold conditions.
Filters trade to avoid entering during extreme conditions.
MACD:
Confirms momentum with MACD line and signal line crossovers.
Risk Management:
Optional stop loss and take profit levels.
Customizable percentages for risk management.
Backtesting:
The script is designed to backtest historical data.
Trades are executed based on the defined conditions.
Indicateurs et stratégies
VWAP Bands with ML [CryptoSea]VWAP Machine Learning Bands is an advanced indicator designed to enhance trading analysis by integrating VWAP with a machine learning-inspired adaptive smoothing approach. This tool helps traders identify trend-based support and resistance zones, predict potential price movements, and generate dynamic trade signals.
Key Features
Adaptive ML VWAP Calculation: Uses a dynamically adjusted SMA-based VWAP model with volatility sensitivity for improved trend analysis.
Forecasting Mechanism: The 'Forecast' parameter shifts the ML output forward, providing predictive insights into potential price movements.
Volatility-Based Band Adjustments: The 'Sigma' parameter fine-tunes the impact of volatility on ML smoothing, adapting to market conditions.
Multi-Tier Standard Deviation Bands: Includes two levels of bands to define potential breakout or mean-reversion zones.
Dynamic Trend-Based Colouring: The VWAP and ML lines change colour based on their relative positions, visually indicating bullish and bearish conditions.
Custom Signal Detection Modes: Allows traders to choose between signals from Band 1, Band 2, or both, for more tailored trade setups.
In the image below, you can see an example of the bands on higher timeframe showing good mean reversion signal opportunities, these tend to work better in ranging markets rather than strong trending ones.
How It Works
VWAP & ML Integration: The script computes VWAP and applies a machine learning-inspired adjustment using SMA smoothing and volatility-based adaptation.
Forecasting Impact: The 'Forecast' setting shifts the ML output forward in time, allowing for anticipatory trend analysis.
Volatility Scaling (Sigma): Adjusts the ML smoothing sensitivity based on market volatility, providing more responsive or stable trend lines.
Trend Confirmation via Colouring: The VWAP line dynamically switches colour depending on whether it is above or below the ML output.
Multi-Level Band Analysis: Two standard deviation-based bands provide a framework for identifying breakouts, trend reversals, or continuation patterns.
In the example below, we can see some of the most reliable signals where we have mean reversion signals from the band whilst the price is also pulling back into the VWAP, these signals have the additional confluence which can give you a higher probabilty move.
Alerts
Bullish Signal Band 1: Alerts when the price crosses above the lower ML Band 1.
Bearish Signal Band 1: Alerts when the price crosses below the upper ML Band 1.
Bullish Signal Band 2: Alerts when the price crosses above the lower ML Band 2.
Bearish Signal Band 2: Alerts when the price crosses below the upper ML Band 2.
Filtered Bullish Signal: Alerts when a bullish signal is triggered based on the selected signal detection mode.
Filtered Bearish Signal: Alerts when a bearish signal is triggered based on the selected signal detection mode.
Application
Trend & Momentum Analysis: Helps traders identify key market trends and potential momentum shifts.
Dynamic Support & Resistance: Standard deviation bands serve as adaptive price zones for potential breakouts or reversals.
Enhanced Trade Signal Confirmation: The integration of ML smoothing with VWAP provides clearer entry and exit signals.
Customizable Risk Management: Allows users to adjust parameters for fine-tuned signal detection, aligning with their trading strategy.
The VWAP Machine Learning Bands indicator offers traders an innovative tool to improve market entries, recognize potential reversals, and enhance trend analysis with intelligent data-driven signals.
200MA x3 Investor Tool with Undervaluation LineThis is the 200 day moving average with a 3x take profit line and a 2x undervalued line. Great for pretty much all volitile assets.
Simplified Trading Alpha Inspired IndicatorThis Pine Script creates a visual trading indicator that uses blue and red dots to represent short-term and long-term Simple Moving Averages (SMAs) respectively, combined with RSI dots for confirmation. It signals potential buy or sell points based on SMA crossovers, RSI overbought/oversold conditions, and volume spikes.
Instantaneous Trendline with Cloud Instantaneous Trendline with Cloud
Introduction & History
The Instantaneous Trendline was introduced by John Ehlers, a well-known figure in the field of technical analysis, particularly for applying digital signal processing concepts to financial markets. Ehlers aimed to create an indicator that reacts to market price changes more quickly than traditional moving averages, yet remains smooth enough to avoid excessive noise. By incorporating concepts from digital filtering, he devised a formula that calculates a trendline with minimal lag—hence the term “instantaneous.”
Purpose
The primary purpose of the Instantaneous Trendline with Cloud is to provide traders and analysts with a responsive, smoothed line that closely follows market price movements. Additionally, this script enhances the visual cues by adding a cloud fill to highlight bullish and bearish zones:
Trend Identification
The ITL (Instantaneous Trendline) is plotted alongside the price. When price consistently stays above the ITL, it may signal an uptrend. Conversely, when price dips below the ITL, it can suggest a downtrend.
Signal Generation
Crossover points between the price and the ITL can serve as potential entry or exit signals. A bullish crossover (price moving above the ITL) often indicates the start of upward momentum, while a bearish crossover (price dropping below the ITL) may point to downward momentum.
Noise Reduction
By applying digital filtering concepts and smoothing through the alpha (smoothing coefficient), the ITL reduces noise while still responding relatively quickly to price changes. Traders can adjust alpha to make the trendline more reactive (higher alpha) or smoother (lower alpha).
Clarity via Cloud Fill
A color-coded cloud between the price and the ITL provides an at-a-glance view of market bias. The green cloud highlights potentially bullish phases, while the red cloud highlights potentially bearish phases.
Experiment with the alpha value (commonly between 0.2 and 0.3) to find a balance that suits your preference for responsiveness versus smoothness.
This indicator implements John Ehlers’ Instantaneous Trendline concept and plots a smoothed trendline (ITL) alongside the price. The trendline is controlled by a user-defined smoothing coefficient (alpha). A higher alpha makes the trendline respond more quickly to price changes, while a lower alpha produces a smoother line.
A color-filled cloud helps traders identify bullish and bearish conditions:
Green cloud if the price is above the ITL (bullish potential).
Red cloud if the price is below the ITL (bearish potential).
Key Benefits
Trend Visualization: Quickly see if the market is in an uptrend or downtrend based on the position of the price relative to the trendline.
Crossover Signals: Identify potential shifts in trend or momentum when the price crosses the ITL.
Customizable Sensitivity: Adjust the alpha parameter to make the ITL more or less reactive to price moves. Use this tool to better visualize short-term trend changes and potential entry/exit signals in conjunction with other technical analysis methods.
BB ATR Fractal MMThe Bollinger Bands + ATR with Fractal indicator is a powerful combination of Bollinger Bands, ATR (Average True Range), and Fractal to help identify market volatility and potential entry/exit points on the chart.
Bollinger Bands help to assess the market’s volatility by calculating upper and lower bands based on the simple moving average (SMA) and standard deviation. It’s an excellent tool for identifying overbought and oversold conditions.
ATR (Average True Range) is used to measure market volatility. It helps determine how much the price is moving, and it can be used to adjust the Bollinger Bands, creating bands that reflect the current volatility more accurately.
Fractal helps to identify peaks and troughs in the market, supporting decision-making by highlighting potential reversal points. Fractals mark regions where price may reverse direction, making it easier to spot possible trade opportunities.
How to Use:
Bollinger Bands Upper and Lower Bands: These bands help to identify overbought or oversold conditions. If the price breaks above the upper band, the market may be overbought. If the price breaks below the lower band, the market may be oversold.
ATR: It indicates the volatility level of the market. When the market shows large volatility (ATR increases), the Bollinger Bands expand to reflect higher price swings.
Fractal: Arrows appear at the market’s peaks and troughs, helping identify entry points for buying (at fractal lows) or selling (at fractal highs). These signals can help you make trading decisions based on potential price reversals.
Simple Buy/Sell Indicator: gordonatedThis chart displays the performance trends of two Simple Moving Averages (SMAs) over time, with a short-term SMA in blue and a long-term SMA in red. Buy signals are marked by green labels where the short-term SMA crosses above the long-term SMA, suggesting potential entry points for traders. Conversely, sell signals are indicated by red labels where the short-term SMA crosses below the long-term SMA, signaling potential exit points or bearish trends. The chart helps visualize momentum and potential trend reversals in price movements.
IFR2 e Cruzamento de Média v1.4 podendo selecionar uma.Strategy for IFR2 and Moving Average crossovers
Strategy for backtesting IFR2 or moving average crossovers
At the exit of the trade, a box appears stating: the reason for the exit:
Green for Take Profit (TP)
Red for Stop Loss (ST)
BLUE for the number of IFR2 candles reached (CD)
PURPLE for Crossing Averages (CZ)
in this box you can also enter the number of tkts and the percentage of the trade taken and the trade number TR = XX
For IFR trades, you can select the IFR2 PERIOD and level and the number of candles to close the trade if it is not closed by TP or LOSS.
When you select the moving average crossover entry, you can choose the period of the fast average and the slow average, in both cases you can select a mm as a filter for the trade entry and the period of this mm.
You can also choose a percentage for TAke Profit and Sop Loss.
We can also select a date to start the Back Test and an end date.
Translated with www.DeepL.com (free version)
Explicação em português:
Estratégia para IFR2 e cruzamento de Media Movel
Estratégia para backTest de IFR2 ou Cruzamento da média Movel
Na saída da operação mostra uma caixa informando: o motivo da saída:
Verde para Take Profit (TP)
Vermelho para Stop Loss (ST)
AZUL para número de candles atingido IFR2 (CD)
Roxo para Cruzamento de Médias (CZ)
nesta caixa ainda informa o numero de tkts e o porcentual da operação realizada e o numero do trade TR = XX
Nas operações por IFR podemos selecionar o PERIODO do e o nivel do IFR2 e a quantidade de candles para fechar a operação se não for fechado por TP ou LOSS.
Quando selecionado a entrada por cruzamento de media movel, podemos escolher o período da media rápida e da média lenta, em ambos os casos podemos selecionar uma mm como filtro para entrada da operação e o período desta mm.
Podemos ainda escolher um porcentual para TAke Profit e Sop Loss.
E ainda selecionar uma data para iniciar o Back Test e uma data final.
TOTAL3/BTC This Pine Script™ code, named "TOTAL3/BTC with Arrow," is designed for cryptocurrency analysis on TradingView.
This script essentially provides a visual tool for traders to gauge when altcoins might be gaining or losing ground relative to Bitcoin through moving average analysis and color-coded trend indication.
Intention was to help the community with a script based on classic TA only.
Use it with SASDv2r indicator.
Feel free to make it better. If you did so, please let me know.
Main elements:
Data Fetching: It retrieves market cap data for all cryptocurrencies excluding Bitcoin and Ethereum (TOTAL3) and for Bitcoin (BTC).
Ratio Calculation: The script calculates the ratio of TOTAL3 to BTC market caps, which indicates how altcoins (excluding ETH) are performing relative to Bitcoin.
Plotting the Ratio: This ratio is plotted on the chart with a blue line, allowing traders to see the relative performance visually.
Moving Averages: Two Simple Moving Averages (SMA) are calculated for this ratio, one for 20 periods (ma20) and another for 50 periods (ma50), though these are not plotted in the current version of the code.
Reference Lines: Horizontal lines are added at ratios of 0.3 and 0.8 to serve as visual equilibrium points or thresholds for analysis.
Complex Moving Average: The script uses constants (len, len2, cc, smoothe) from another script, suggesting it's adapting or simplifying another's logic for multi-timeframe analysis.
Average Calculation: Two SMAs (avg and avg2) are computed using the constants defined, focusing on different lengths for trend analysis.
Direction Determination: It checks if the moving average is trending up or down by comparing the current value with its value smoothe bars earlier.
Color Coding: The color of the plotted moving average changes based on its direction (lime for up, red for down, aqua if no clear direction), aiding in quick visual interpretation of trends.
Plotting: Finally, the script plots this multi-timeframe moving average with a dynamic color to reflect the current market trend of the TOTAL3/BTC ratio, with a thicker line for visibility.
SASDv2rSensitive Altcoin Season Detector V2
This Pine Script™ code, titled "SASDv2r" (Sensitive Altcoin Season Detector version 2 revised), is designed for cryptocurrency trading analysis on the TradingView platform and tailored for those interested in tracking when altcoins might be outperforming Bitcoin, potentially indicating a market shift towards altcoins.
Feel free to use and modify. If you made it better, please let me know. Intention was to help the community with a tool for retail traders have no access to advanced, MV indicators. Solution uses classic TA only.
Use it witl TOTAL3/BTC indicator.
Please check: it gave signal just before last alt season % rose more than 250%.
Market Cap Data Fetching: The script fetches market capitalization data for Bitcoin, Ethereum, and all other altcoins (excluding Bitcoin and Ethereum) using request.security function.
Altcoin to Bitcoin Ratio: It calculates the ratio of total market cap of altcoins to Bitcoin's market cap (altToBtcRatio), which is central to identifying an "altcoin season."
Moving Averages: Several moving averages are computed for different time frames (50-day SMA, 200-day SMA, 20-day SMA, and 10-day EMA) to analyze trends in the altcoin to Bitcoin ratio.
Momentum Indicators: The script uses RSI (Relative Strength Index) and MACD (Moving Average Convergence Divergence) to gauge momentum and potential reversal points in the market.
Custom Indicators: It includes Volume Weighted Moving Average (VWMA) and a custom momentum indicator (altMomentum and altMomentumAvg) to provide additional insights into market movements.
Volatility Measurement: Bollinger Bands are calculated to assess volatility in the altcoin to Bitcoin ratio, which helps identify periods of high or low market activity.
Visual Analysis: Various plots are added to the chart for visual interpretation, including the altcoin to Bitcoin ratio, different moving averages, and Bollinger Bands.
Alt Season Detection: The script defines conditions for detecting when an "altcoin season" might be starting, based on crossovers of moving averages, RSI levels, MACD signals, and other custom criteria.
Performance Tracking: After signaling an alt season, the script evaluates the performance over the next 30 days by checking if there's been an increase in the altcoin to Bitcoin ratio, adding labels for positive or negative trends.(this one is in progress). Logic still gives false signals and aim is to identify failed signals.
Visual Signals: Labels are placed on the chart to visually indicate the beginning of a potential alt season or the performance outcome after a signal, aiding traders in making informed decisions.
Aggregated Volume (Multi-Exchange)Indicator: Aggregated Volume (Multi-Exchange)
Overview:
The Aggregated Volume (Multi-Exchange) indicator is designed to aggregate trading volume data from multiple exchanges for a specific cryptocurrency pair. The goal is to provide a consolidated view of the total trading volume across different platforms, helping traders and analysts gauge the overall market activity for a given asset.
Features:
Multi-Exchange Support: The indicator allows you to aggregate trading volume data from various exchanges. Users can enable or disable volume data from specific exchanges (e.g., Binance, Bybit, Kucoin, etc.).
Spot and Futures Volumes: The indicator can sum the volume for spot trading and futures trading separately if desired. However, in the current version, it only sums the volume for specific pairs across multiple exchanges, without distinguishing between spot and futures volumes (though this feature can be added if necessary).
Customizable Exchange Selection: Users can select which exchanges' volume data to include in the aggregation.
Real-Time Updates: The volume data is updated in real-time as new bars are formed on the chart, providing an up-to-date picture of the trading volume.
Purpose:
The primary purpose of this indicator is to consolidate trading volume information from multiple exchanges for the same trading pair (e.g., BTC/USD). Traders can use this aggregated volume to gain a better understanding of market activity across various platforms, as well as assess the level of liquidity and interest in a particular asset.
By viewing the total aggregated volume, traders can:
Track market trends: Higher aggregated volume can signal increased market interest, making it easier to spot trends or potential breakouts.
Analyze liquidity: This indicator can help traders assess liquidity in the market, especially when using multiple exchanges.
Identify potential market manipulation: If there is a sudden spike in volume on multiple exchanges, it could signal market manipulation or an event-driven surge.
How it Works:
Volume Aggregation: The indicator collects and sums the volume data for a given symbol (e.g., BTC/USD) from different exchanges like Binance, Bybit, Kucoin, and others.
Multiple Exchanges: The volume data is aggregated from each selected exchange and plotted as a single volume value on the chart.
Real-Time Volume Plotting: The total aggregated volume is then plotted as a histogram on the chart, with the color of the bars changing depending on whether the price is rising or falling (typically green for rising prices and red for falling prices).
Inputs/Settings:
Exchange Selection: A list of checkboxes where users can choose which exchanges' volume data to include (e.g., Binance, Bybit, Kucoin, etc.).
Color Settings: Users can set the color for the histogram bars based on price direction (e.g., green for rising and red for falling).
Volume Calculation: The indicator calculates the volume for a specific cryptocurrency pair across selected exchanges in real-time.
Enhanced Volume Profile█ OVERVIEW
The Enhanced Volume Profile (EVP) is an indicator designed to plot a volume profile on the chart based on either the visible chart range or a fixed lookback period. The script helps analyze the distribution of volume at different price levels over time, providing insights into areas of high trading activity and potential support/resistance zones.
█ KEY FEATURES
1. Visible Chart Range vs. Fixed Lookback Depth
Visible Chart Range
- Default analysis mode
- Calculates profile based on visible portion of the chart
- Dynamically updates with chart view changes
Fixed Lookback Depth
- Optional alternative to visible range
- Uses specified number of bars (10-3000)
- Provides consistent analysis depth
- Independent of chart view
2. Custom Resolution
Auto-Resolution Mode
Automatically selects timeframes based on chart's current timeframe:
≤ 1 minute: Uses 1-minute resolution
≤ 5 minutes: Uses 1-minute resolution
≤ 15 minutes: Uses 5-minute resolution
≤ 1 hour: Uses 5-minute resolution
≤ 4 hours: Uses 15-minute resolution
≤ 12 hours: Uses 15-minute resolution
≤ 1 day: Uses 1-hour resolution
≤ 3 days: Uses 2-hours resolution
≤ 1 week: Uses 4-hours resolution
Custom Resolution Override
Optional override of auto-resolution system
Provides control over data granularity
Must be lower than or equal to chart's timeframe
Falls back to auto-resolution if validation fails
3. Volume Profile Resolution
Adjustable number of points (10-400)
Controls profile granularity
Higher resolution provides more detail
Balance between precision and performance
4. Point of Control (PoC)
Identifies price level with highest traded volume
Optional display with customizable appearance
Adjustable line thickness (1-30)
Configurable color
5. Value Area (VA)
Shows price range of majority trading volume
Adjustable coverage (5-95%), default is 68%
Customizable boundary lines
Configurable lines color and thickness (1-20)
█ INPUT PARAMETERS
Lookback Settings
Use Visible Chart Range
- Default: true
- Calculates profile based on visible bars
- Ideal for focused analysis
Fixed Lookback Bars
- Range: 10-3000
- Default: 200
- Used when visible range is disabled
Resolution Settings
Enable Custom Resolution
- Default: false
- Overrides auto-resolution
Custom Resolution
- Default: 1-minute
- Changes automatically when "Enable Custom Resolution" is disabled
Volume Profile Appearance
Profile Resolution
- Range: 10-400
- Default: 200
- Controls detail level
Profile Width Scale
- Range: 1-50
- Default: 15
- Adjusts profile width
Right Offset
- Range: 0-500
- Default: 20
- Controls spacing from price bars
Profile Fill Color
- Default: #5D606B (70% transparency)
Point of Control Settings
Show Point of Control
- Default: true
- Toggles PoC visibility
PoC Line Thickness
- Range: 1-30
- Default: 1
PoC Line Color
- Default: Red
Value Area Settings
Show Value Area
- Default: true
- Toggles VA lines
Value Area Coverage
- Range: 5-95%
- Default: 68%
Value Area Line Color
- Default: Blue
Value Area Line Thickness
- Range: 1-20
- Default: 1
█ TECHNICAL IMPLEMENTATION DETAILS
Exceeding Bars Management
The script dynamically adjusts the number of bars used in the volume profile calculation based on the selected timeframe and the maximum allowed bars (max_bars_back).
If the total number of bars exceeds the predefined threshold (6000 bars), the script reduces the lookback period (lookback_bars) by trimming some of the historical data, ensuring the chart does not become overloaded with data.
The adjustment is made based on the ratio of bars per candle (bars_per_candle), ensuring that the volume profile remains computationally efficient while maintaining its relevance.
█ EXAMPLE USE CASES
1. Visible Range Mode
For analyzing a recent trend and focusing on only the visible part of the chart, enabling the "Use Visible Chart Range" option calculates the profile based on the current view, without considering historical data outside the visible area.
2. Fixed Lookback Depth
For analyzing a specific period in the past (e.g., the last 200 bars), disabling the visible range and setting a fixed lookback depth of 200 bars ensures the profile always considers the last 200 bars, regardless of the visible range.
3. Custom Resolution
If there’s a need for greater control over the timeframe used for volume profile calculations (e.g., using a 5-minute resolution on a 15-minute chart), enabling custom resolution and setting the desired timeframe provides this control.
HAPPY TRADING ✌️
Intraday ORB Breakout IndicatorThis is an intraday indicator works in a 15-minute timeframe.
Timeframe - 15 min
IB Range - 1-hour range after the market opens in India (i.e. 9.15 to 10.15 AM range)
If the price shows a breakout of IB High or a breakdown of IB low and the breakout/breakdown candle has less than 20% of the wick (selling wick in breakout and buying wick in breakdown) in a 15-minute chart, then it will set a flag or alert mechanism on the chart with 'Long' or 'Short' terms. It also marks the IB range (9.15 to 10.15 AM range) with two simple lines.
Traders should wait for the break of the high of the breakout candle or the low of the breakdown candle to take their trades. Besides, one should follow proper risk management rules when making trades.
// Disclaimer: This indicator is for educational purposes only.
// I am not responsible for any financial losses incurred from its use.
convergence of price With the help of convergence of ema we can identify demand zone, when see boilenger band it clearly tell us about accumulation , when price is abobe median line of boilenger band it shows strength of price, sign of accumulation, price is abobe all averages (5,22,66,100,150,200) it may give good return in shorter time.
Support and Resistance//@version=5
indicator("Fair Value Gaps and Order Blocks", overlay=true)
// Input parameters
fvgLookback = input.int(3, title="FVG Lookback (Candles)", minval=1)
obLookback = input.int(5, title="Order Block Lookback (Candles)", minval=1)
fvgColor = input.color(color.new(color.teal, 80), title="FVG Color")
obBullishColor = input.color(color.new(color.green, 80), title="Bullish OB Color")
obBearishColor = input.color(color.new(color.red, 80), title="Bearish OB Color")
// Fair Value Gap (FVG) Detection
fvgUp = (high < low ) and (low < low ) // Bullish FVG condition
fvgDown = (low > high ) and (high > high ) // Bearish FVG condition
// Plot FVG
if (fvgUp)
label.new(bar_index , na, text="FVG", style=label.style_circle, color=fvgColor, textcolor=color.white, size=size.small)
if (fvgDown)
label.new(bar_index , na, text="FVG", style=label.style_circle, color=fvgColor, textcolor=color.white, size=size.small)
// Order Block (OB) Detection
isBullishOB = (close > open ) and (close > close ) and (open < close ) // Bullish OB condition
isBearishOB = (close < open ) and (close < close ) and (open > close ) // Bearish OB condition
// Plot Order Blocks
if (isBullishOB)
box.new(left=bar_index , right=bar_index, top=high , bottom=low , bgcolor=obBullishColor, border_color=color.green, border_width=1)
if (isBearishOB)
box.new(left=bar_index , right=bar_index, top=high , bottom=low , bgcolor=obBearishColor, border_color=color.red, border_width=1)
Library taplus (Médias móveis avançadas)Biblioteca taplus - Descrição Técnica (PT-BR)
Médias móveis avançadas
Introdução:
A biblioteca taplus é uma coleção avançada de 14 tipos de médias móveis personalizadas para Pine Script (v5), projetada para traders e desenvolvedores que buscam ferramentas técnicas precisas e eficientes. Oferece desde algoritmos clássicos até métodos adaptativos modernos, com código otimizado para estratégias e indicadores.
Motivação e Necessidade:
Desenvolvida para preencher lacunas na biblioteca padrão do TradingView, a taplus surge da necessidade de:
Acesso a médias móveis especializadas (ex: ALMA, FRAMA)
Cálculos precisos com baixa latência
Simplificação da criação de indicadores complexos
Correções de bugs em implementações existentes
Descrição:
A biblioteca contém algoritmos matematicamente validados, documentação clara e exemplos práticos. É open-source (MPL 2.0) e compatível com estratégias automatizadas.
Sumário dos Tipos de Médias (14 Total):
(Seção exclusiva - sem limite de caracteres)
HMA (Hull MA):
Reduz lag usando WMAs aninhadas. Ideal para identificar tendências com resposta rápida.
LWMA (Linear Weighted MA):
Ponderada linearmente (últimos dados têm maior peso). Simples, porém eficaz para momentum.
GMA (Geometric MA):
Baseada na média geométrica (multiplicativa). Recomendada para séries positivas.
AMA (Adaptive MA):
Ajusta velocidade conforme eficiência do movimento. Filtra ruídos de mercado.
KAMA (Kaufman Adaptive MA):
Versão otimizada da AMA com suavização exponencial. Precisão em períodos voláteis.
DEMA (Double EMA):
EMA duplo para redução de lag. Combinação de duas camadas exponenciais.
TEMA (Triple EMA):
EMA triplo com redução adicional de lag. Indicador técnico avançado.
Wilders (WSMA):
Suavização estilo Welles Wilder (RMA). Base para indicadores como RSI.
ZLEMA (Zero Lag EMA):
Compensa o lag tradicional usando ajuste de fase. Ideal para scalping.
VIDYA (Variable Index DA):
Adapta-se via Chande Momentum Oscillator (CMO). Dinamismo em mercados cíclicos.
McGinley Dynamic:
Ajusta velocidade automaticamente conforme a volatilidade. Minimiza falsos sinais.
ALMA (Arnaud Legoux MA):
Ponderação Gaussiana com offset ajustável. Precisão em reversões de preço.
LSMA (Least Squares MA):
Baseada em regressão linear. Projeta suportes/resistências futuras.
FRAMA (Fractal Adaptive MA):
Usa dimensão fractal para adaptação. Eficaz em mercados caóticos.
Bug Fixes (vs. Versões Anteriores):
Correção na FRAMA (parâmetro length não utilizado)
Revisão das fórmulas KAMA e AMA (cálculo do Efficiency Ratio)
Ajuste no McGinley Dynamic (estabilidade numérica em divisões)
Otimização do ZLEMA (correção do lag teórico)
Melhoria na VIDYA (uso do CMO para dynamic alpha)
Exemplos de Uso:
//pinescript v5 (em breve será atualizado para versão 6 de Pinescript)
// Exemplo 1: Combinação HMA + FRAMA
import cesar_consultant/taplus/1 as taplus
hma = taplus.hma(close, 20)
frama = taplus.frama(close, 14, 10)
plot(hma, color=color.blue)
plot(frama, color=color.red)
///////////////////////////////////////////////
// Exemplo 2: ALMA Personalizada
alma = taplus.alma(close, 28, 0.9, 5.0)
plot(alma, title="ALMA Customizada", color=color.purple)
Contato & Solicitações:
🔗 Código em desenvolvimento. Solicite novas médias móveis ou reporte issues!
> Tem alguma idéia de indicadores ou bibliotecas? Entre em contato!
___________________________________________________________
taplus Library - Technical Description (EN-US)
Advanced Moving Averages
Introduction:
The taplus library is an advanced collection of 14 custom moving average types for Pine Script™ (v5), designed for traders and developers seeking precise technical tools. It offers everything from classical algorithms to modern adaptive methods, with code optimized for strategies and indicators.
Motivation & Need:
Developed to address gaps in TradingView's native library, taplus fulfills the need for:
Access to specialized MAs (e.g., ALMA, FRAMA)
Low-latency precision calculations
Simplified creation of complex indicators
Bug fixes in existing implementations
Description:
The library contains mathematically validated algorithms, clear documentation, and practical examples. Open-source (MPL 2.0) and compatible with automated strategies.
MA Type Summary (14 Total):
HMA (Hull MA):
Reduces lag using nested WMAs. Ideal for fast trend identification.
LWMA (Linear Weighted MA):
Linear weighting (recent data prioritized). Simple yet effective for momentum.
GMA (Geometric MA):
Multiplicative geometric mean. Requires positive price series.
AMA (Adaptive MA):
Speed adjusts to market efficiency. Filters market noise.
KAMA (Kaufman Adaptive MA):
AMA optimized with exponential smoothing. Effective in volatility.
DEMA (Double EMA):
Dual EMA layers for lag reduction.
TEMA (Triple EMA):
Triple EMA for enhanced lag reduction. Advanced technical tool.
Wilders (WSMA):
Welles Wilder-style smoothing (RMA). Foundation for RSI-like indicators.
ZLEMA (Zero Lag EMA):
Phase-adjusted lag compensation. Perfect for scalping.
VIDYA (Variable Index DA):
CMO-adapted dynamics. Ideal for cyclical markets.
McGinley Dynamic:
Auto-adjusts to volatility. Minimizes false signals.
ALMA (Arnaud Legoux MA):
Gaussian weighting with adjustable offset. Precision in price reversals.
LSMA (Least Squares MA):
Linear regression-based. Projects future support/resistance.
FRAMA (Fractal Adaptive MA):
Fractal dimension adaptation. Effective in chaotic markets.
Bug Fixes (vs. Previous Versions):
Fixed FRAMA (unused length parameter)
Revised KAMA/AMA formulas (Efficiency Ratio calculation)
Adjusted McGinley Dynamic (numerical stability in divisions)
Optimized ZLEMA (theoretical lag correction)
Enhanced VIDYA (CMO-based dynamic alpha)
Usage Examples:
// PineScript™ v5 (to be updated to v6 soon)
// Example 1: HMA + FRAMA Combination
import cesar_consultant/taplus/1 as taplus
hma = taplus.hma(close, 20)
frama = taplus.frama(close, 14, 10)
plot(hma, color=color.blue)
plot(frama, color=color.red)
///////////////////////////////////////////////
// Example 2: Custom ALMA
alma = taplus.alma(close, 28, 0.9, 5.0)
plot(alma, title="Custom ALMA", color=color.purple)
Contact & Requests:
🔗 Code under active development. Request new MAs or report issues!
Have indicator or library ideas? Contact us!
Intraday ORB Breakout IndicatorThis is only applicable to intraday trading in 15 minutes timeframe.
It highlights the 1-hour range in Indian markets i.e. 9.15 AM to 10.15 AM.
If the price shows a breakout of a 1-hour High or a breakdown of a 1-hour low and the breakout/breakdown candle has less than 20% of the wick (selling wick in breakout and buying wick in breakdown) in the 15-minute chart, then it will set an alert 'Long' or 'Short' on the chart.
However, to take a trade, one must wait for the break of the high of the breakout candle for a long trade or a break of the low of the breakdown candle for a short trade. Besides, one should follow proper risk management rules to manage their trades.
Multi-indicator Signal Builder [Skyrexio]Overview
Multi-Indicator Signal Builder is a versatile, all-in-one script designed to streamline your trading workflow by combining multiple popular technical indicators under a single roof. It features a single-entry, single-exit logic, intrabar stop-loss/take-profit handling, an optional time filter, a visually accessible condition table, and a built-in statistics label. Traders can choose any combination of 12+ indicators (RSI, Ultimate Oscillator, Bollinger %B, Moving Averages, ADX, Stochastic, MACD, PSAR, MFI, CCI, Heikin Ashi, and a “TV Screener” placeholder) to form entry or exit conditions. This script aims to simplify strategy creation and analysis, making it a powerful toolkit for technical traders.
Indicators Overview
1. RSI (Relative Strength Index)
Measures recent price changes to evaluate overbought or oversold conditions on a 0–100 scale.
2. Ultimate Oscillator (UO)
Uses weighted averages of three different timeframes, aiming to confirm price momentum while avoiding false divergences.
3. Bollinger %B
Expresses price relative to Bollinger Bands, indicating whether price is near the upper band (overbought) or lower band (oversold).
4. Moving Average (MA)
Smooths price data over a specified period. The script supports both SMA and EMA to help identify trend direction and potential crossovers.
5. ADX (Average Directional Index)
Gauges the strength of a trend (0–100). Higher ADX signals stronger momentum, while lower ADX indicates a weaker trend.
6. Stochastic
Compares a closing price to a price range over a given period to identify momentum shifts and potential reversals.
7. MACD (Moving Average Convergence/Divergence)
Tracks the difference between two EMAs plus a signal line, commonly used to spot momentum flips through crossovers.
8. PSAR (Parabolic SAR)
Plots a trailing stop-and-reverse dot that moves with the trend. Often used to signal potential reversals when price crosses PSAR.
9. MFI (Money Flow Index)
Similar to RSI but incorporates volume data. A reading above 80 can suggest overbought conditions, while below 20 may indicate oversold.
10. CCI (Commodity Channel Index)
Identifies cyclical trends or overbought/oversold levels by comparing current price to an average price over a set timeframe.
11. Heikin Ashi
A type of candlestick charting that filters out market noise. The script uses a streak-based approach (multiple consecutive bullish or bearish bars) to gauge mini-trends.
12. TV Screener
A placeholder condition designed to integrate external buy/sell logic (like a TradingView “Buy” or “Sell” rating). Users can override or reference external signals if desired.
Unique Features
1. Multi-Indicator Entry and Exit
You can selectively enable any subset of 12+ classic indicators, each with customizable parameters and conditions. A position opens only if all enabled entry conditions are met, and it closes only when all enabled exit conditions are satisfied, helping reduce false triggers.
2. Single-Entry / Single-Exit with Intrabar SL/TP
The script supports a single position at a time. Once a position is open, it monitors intrabar to see if the price hits your stop-loss or take-profit levels before the bar closes, making results more realistic for fast-moving markets.
3. Time Window Filter
Users may specify a start/end date range during which trades are allowed, making it convenient to focus on specific market cycles for backtesting or live trading.
4. Condition Table and Statistics
A table at the bottom of the chart lists all active entry/exit indicators. Upon each closed trade, an integrated statistics label displays net profit, total trades, win/loss count, average and median PnL, etc.
5. Seamless Alerts and Automation
Configure alerts in TradingView using “Any alert() function call.”
The script sends JSON alert messages you can route to your own webhook.
The indicator can be integrated with Skyrexio alert bots to automate execution on major cryptocurrency exchanges
6. Optional MA/PSAR Plots
For added visual clarity, optionally plot the chosen moving averages or PSAR on the chart to confirm signals without stacking multiple indicators.
Methodology
1. Multi-Indicator Entry Logic
When multiple entry indicators are enabled (e.g., RSI + Stochastic + MACD), the script requires all signals to align before generating an entry. Each indicator can be set for crossovers, crossunders, thresholds (above/below), etc. This “AND” logic aims to filter out low-confidence triggers.
2. Single-Entry Intrabar SL/TP
One Position At a Time: Once an entry signal triggers, a trade opens at the bar’s close.
Intrabar Checks: Stop-loss and take-profit levels (if enabled) are monitored on every tick. If either is reached, the position closes immediately, without waiting for the bar to end.
3. Exit Logic
All Conditions Must Agree: If the trade is still open (SL/TP not triggered), then all enabled exit indicators must confirm a closure before the script exits on the bar’s close.
4. Time Filter
Optional Trading Window: You can activate a date/time range to constrain entries and exits strictly to that interval.
Justification of Methodology
Indicator Confluence: Combining multiple tools (RSI, MACD, etc.) can reduce noise and false signals.
Intrabar SL/TP: Capturing real-time spikes or dips provides a more precise reflection of typical live trading scenarios.
Single-Entry Model: Straightforward for both manual and automated tracking (especially important in bridging to bots).
Custom Date Range: Helps refine backtesting for specific market conditions or to avoid known irregular data periods.
How to Use
1. Add the Script to Your Chart
In TradingView, open Indicators , search for “Multi-indicator Signal Builder”.
Click to add it to your chart.
2. Configure Inputs
Time Filter: Set a start and end date for trades.
Alerts Messages: Input any JSON or text payload needed by your external service or bot.
Entry Conditions: Enable and configure any indicators (e.g., RSI, MACD) for a confluence-based entry.
Close Conditions: Enable exit indicators, along with optional SL (negative %) and TP (positive %) levels.
3. Set Up Alerts
In TradingView, select “Create Alert” → Condition = “Any alert() function call” → choose this script.
Entry Alert: Triggers on the script’s entry signal.
Close Alert: Triggers on the script’s close signal (or if SL/TP is hit).
Skyrexio Alert Bots: You can route these alerts via webhook to Skyrexio alert bots to automate order execution on major crypto exchanges (or any other supported broker).
4. Visual Reference
A condition table at the bottom summarizes active signals.
Statistics Label updates automatically as trades are closed, showing PnL stats and distribution metrics.
Backtesting Guidelines
Symbol/Timeframe: Works on multiple assets and timeframes; always do thorough testing.
Realistic Costs: Adjust commissions and potential slippage to match typical exchange conditions.
Risk Management: If using the built-in stop-loss/take-profit, set percentages that reflect your personal risk tolerance.
Longer Test Horizons: Verify performance across diverse market cycles to gauge reliability.
Example of statistic calculation
Test Period: 2023-01-01 to 2025-12-31
Initial Capital: $1,000
Commission: 0.1%, Slippage ~5 ticks
Trade Count: 468 (varies by strategy conditions)
Win rate: 76% (varies by strategy conditions)
Net Profit: +96.17% (varies by strategy conditions)
Disclaimer
This indicator is provided strictly for informational and educational purposes .
It does not constitute financial or trading advice.
Past performance never guarantees future results.
Always test thoroughly in demo environments before using real capital.
Enjoy exploring the Multi-Indicator Signal Builder! Experiment with different indicator combinations and adjust parameters to align with your trading preferences, whether you trade manually or link your alerts to external automation services. Happy trading and stay safe!
Statistical Arbitrage Pairs Trading - Long-Side OnlyThis strategy implements a simplified statistical arbitrage (" stat arb ") approach focused on mean reversion between two correlated instruments. It identifies opportunities where the spread between their normalized price series (Z-scores) deviates significantly from historical norms, then executes long-only trades anticipating reversion to the mean.
Key Mechanics:
1. Spread Calculation: The strategy computes Z-scores for both instruments to normalize price movements, then tracks the spread between these Z-scores.
2. Modified Z-Score: Uses a robust measure combining the median and Median Absolute Deviation (MAD) to reduce outlier sensitivity.
3. Entry Signal: A long position is triggered when the spread’s modified Z-score falls below a user-defined threshold (e.g., -1.0), indicating extreme undervaluation of the main instrument relative to its pair.
4. Exit Signal: The position closes automatically when the spread reverts to its historical mean (Z-score ≥ 0).
Risk management:
Trades are sized as a percentage of equity (default: 10%).
Includes commissions and slippage for realistic backtesting.
RSI & RSI-MA Buy-Sell IndicatorThe RSI & RSI-MA Buy-Sell Indicator is a technical analysis tool designed to identify potential trading opportunities based on the Relative Strength Index (RSI) and its moving average (RSI-MA). The indicator provides clear buy and sell signals when specific conditions are met, helping traders make informed decisions.
How It Works
This indicator is based on two main components:
Relative Strength Index (RSI): Measures the strength and momentum of price movements.
RSI Moving Average (RSI-MA): A simple moving average of RSI values, used to smooth out volatility and confirm trends.
Trading Signals:
A buy signal occurs when the RSI crosses above 70 after previously being below 30, and the RSI-MA is above a predefined threshold.
A sell signal is generated when the RSI crosses below 30 after previously being above 70, and the RSI-MA is below the threshold.
Visual labels for "BUY" and "SELL" appear on the RSI chart rather than the price chart, making it easier to interpret the signals.
Alerts can be set to notify traders when a buy or sell condition is met.
Benefits of the Indicator
Clear Trading Signals: The indicator removes subjectivity by providing distinct buy and sell signals.
Enhanced Trend Confirmation: RSI-MA helps validate RSI movements, reducing false signals.
Customizable Inputs: Traders can adjust the RSI period, RSI-MA period, and reference level based on their strategy.
Efficient for Momentum Trading: Works well in volatile markets where RSI movements are pronounced.
Compatible with Alerts: Can send notifications when trading conditions are met, allowing traders to act swiftly.
Risks & Limitations
False Signals in Sideways Markets: RSI can generate misleading signals when the market lacks a clear trend.
Lagging Nature of Moving Averages: RSI-MA may cause a delay in signal generation compared to RSI alone.
Market Conditions Dependency: Works best in trending markets but may be unreliable during low volatility.
Not a Standalone Strategy: Should be used in conjunction with other indicators, fundamental analysis, and risk management techniques.
Overbought/Oversold Assumptions: Just because RSI reaches extreme levels doesn’t guarantee a reversal—prices can remain overbought/oversold for extended periods.
Conclusion
The RSI & RSI-MA Buy-Sell Indicator is a powerful tool for identifying momentum shifts and potential trade setups. However, like all technical indicators, it has limitations and should be used alongside other analysis techniques. Traders must implement proper risk management and avoid relying solely on RSI signals for trading decisions. With careful usage, this indicator can help enhance decision-making and improve trade timing in dynamic markets.
Aj's DikFat Adjusted ADXRAj's DikFat Adjusted ADXR
This indicator is designed to plot the Average Directional Index (ADX) and Average Directional Movement Rating (ADXR) on the chart. The ADX and ADXR are both used to measure the strength of a trend in the market. The script allows you to customize several parameters, including the ADX Length and the Moving Average Method used for smoothing the directional movement indicators.
Key Features:
- ADX Length : Defines the number of periods over which the ADX is calculated. This value can be adjusted by the user to suit different trading styles and timeframes.
- Moving Average Method : Choose between several smoothing methods, including Simple Moving Average (SMA), Exponential Moving Average (EMA), Wilder's Moving Average, Weighted Moving Average (WMA), Hull Moving Average (HMA), or a Super Smooth Moving Average.
- Directional Indicators : The script calculates the +DI and -DI, which represent the positive and negative directional indicators respectively. These are then used to calculate the ADX.
- ADXR : The ADXR is calculated as the average of the current ADX value and the ADX value from 14 periods ago, providing a more smoothed representation of the trend strength.
How Traders Use ADX and ADXR:
- ADX : A rising ADX indicates an increasing trend strength, while a falling ADX suggests a weakening trend. A value above 25 is often considered an indication of a strong trend.
- ADXR : This indicator smooths the ADX over time, helping traders identify persistent trends. The ADXR can help filter out noise and provide a clearer picture of the trend's health.
Please note that this script and its indicators are designed to be used as tools for analysis, not as guarantees of market outcomes. Adjustments to the moving average method or ADX length can change the behavior of the indicators based on market conditions.
RSI - MUA BAN - Captain Hope communities----------------------RSI - MUA BAN - Captain Hope communities--------------------------
RSI Calculation Computes RSI based on user-defined source and length.
Moving Average (MA) Calculation Computes an RSI-based simple moving average (SMA) and a 50-period SMA of the closing price.
Buy & Sell Levels Customizable RSI levels for buy and sell signals with adjustable thresholds.
Signal Conditions - Buy signal: RSI crosses above the adjusted buy level and was previously below it.
- Sell signal: RSI crosses below the adjusted sell level and was previously above it.
Check Conditions - "?.UP" signal when RSI crosses above RSI-based MA, price is below MA50, and rising.
- "?.DOWN" signal when RSI crosses below RSI-based MA, price is above MA50, and falling.
Visual Representation - Plots MA 50 line on the chart.
- Displays "Buy" and "Sell" labels based on conditions.
- Shows "?.UP" and "?.DOWN" markers based on additional conditions.
Customizable Appearance Users can configure text and background colors for buy/sell signals.
Alert Conditions Triggers alerts for buy and sell signals based on RSI conditions.