Dual Bayesian For Loop [QuantAlgo]Discover the power of probabilistic investing and trading with Dual Bayesian For Loop by QuantAlgo , a cutting-edge technical indicator that brings statistical rigor to trend analysis. By merging advanced Bayesian statistics with adaptive market scanning, this tool transforms complex probability calculations into clear, actionable signals—perfect for both data-driven traders seeking statistical edge and investors who value probability-based confirmation!
🟢 Core Architecture
At its heart, this indicator employs an adaptive dual-timeframe Bayesian framework with flexible scanning capabilities. It utilizes a configurable loop start parameter that lets you fine-tune how recent price action influences probability calculations. By combining adaptive scanning with short-term and long-term Bayesian probabilities, the indicator creates a sophisticated yet clear framework for trend identification that dynamically adjusts to market conditions.
🟢 Technical Foundation
The indicator builds on three innovative components:
Adaptive Loop Scanner: Dynamically evaluates price relationships with adjustable start points for precise control over historical analysis
Bayesian Probability Engine: Transforms market movements into probability scores through statistical modeling
Dual Timeframe Integration: Merges immediate market reactions with broader probability trends through custom smoothing
🟢 Key Features & Signals
The Adaptive Dual Bayesian For Loop transforms complex calculations into clear visual signals:
Binary probability signal displaying definitive trend direction
Dynamic color-coding system for instant trend recognition
Strategic L/S markers at key probability reversals
Customizable bar coloring based on probability trends
Comprehensive alert system for probability-based shifts
🟢 Practical Usage Tips
Here's how you can get the most out of the Dual Bayesian For Loop :
1/ Setup:
Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites ⭐️
Start with default source for balanced price representation
Use standard length for probability calculations
Begin with Loop Start at 1 for complete price analysis
Start with default Loop Lookback at 70 for reliable sampling size
2/ Signal Interpretation:
Monitor probability transitions across the 50% threshold (0 line)
Watch for convergence of short and long-term probabilities
Use L/S markers for potential trade signals
Monitor bar colors for additional trend confirmation
Configure alerts for significant trend crossovers and reversals, ensuring you can act on market movements promptly, even when you’re not actively monitoring the charts
🟢 Pro Tips
Fine-tune loop parameters for optimal sensitivity:
→ Lower Loop Start (1-5) for more reactive analysis
→ Higher Loop Start (5-10) to filter out noise
Adjust probability calculation period:
→ Shorter lengths (5-10) for aggressive signals
→ Longer lengths (15-30) for trend confirmation
Strategy Enhancement:
→ Compare signals across multiple timeframes
→ Combine with volume for trade validation
→ Use with support/resistance levels for entry timing
→ Integrate other technical tools for even more comprehensive analysis
Osciladores
50 EMA Alarm with Proximity NotificationThis script calculates the 50-period Exponential Moving Average (EMA) and provides alerts for two conditions:
EMA Cross: When the price crosses the 50 EMA from above or below.
Proximity Alert: When the price approaches the 50 EMA within a customizable threshold (e.g., 0.5% of the EMA value).
Features:
50 EMA Calculation: Displays the 50 EMA as a blue line on the chart for trend analysis.
Proximity Highlight: Changes the chart's background color to green when the price is within the defined proximity threshold
.
Alerts for Both Conditions:
"EMA Cross" alert is triggered when the price crosses the EMA.
"Proximity Alert" is triggered when the price approaches the EMA.
How It Works:
The EMA is calculated using TradingView's ta.ema() function.
A proximity threshold is defined as a percentage of the EMA value (default: 0.5%).
The script checks if the price is within the proximity range using math.abs(close - ema50) < threshold.
Alerts are sent for both conditions using the alert() function, ensuring traders never miss a key event.
Usage:
Add the script to your chart.
Customize the proximity threshold in the code if necessary.
Set up alerts for the two conditions (EMA Cross and Proximity Alert).
Use the visual background color change as a quick indicator for proximity.
Ideal For:
Traders who rely on EMA-based strategies for scalping or trend-following.
Those looking for a tool to notify them of key EMA interactions without constantly monitoring the chart.
stochastic volume//@version=5
indicator("Стохастик с уровнями и объемами", overlay=false)
// Параметры для сглаживания
k_smooth = input(3, title="Сглаживание %K")
d_smooth = input(3, title="Сглаживание %D")
// Параметры уровней (настраиваемые значения)
level_75 = input(75, title="Уровень 75")
level_50 = input(50, title="Уровень 50")
level_25 = input(25, title="Уровень 25")
// Функция для вычисления цвета между красным и зеленым
get_color(period) =>
r = 255 - int(255 * (period - 20) / (100 - 20)) // уменьшение красного компонента
g = int(255 * (period - 20) / (100 - 20)) // увеличение зеленого компонента
b = 0 // синий всегда 0
color.new(color.rgb(r, g, b), 0) // цвет с полной непрозрачностью
// Вычисляем стохастик для разных периодов от 20 до 100 с шагом 10
sma_20 = ta.sma(100 * (close - ta.lowest(low, 20)) / (ta.highest(high, 20) - ta.lowest(low, 20)), k_smooth)
sma_30 = ta.sma(100 * (close - ta.lowest(low, 30)) / (ta.highest(high, 30) - ta.lowest(low, 30)), k_smooth)
sma_40 = ta.sma(100 * (close - ta.lowest(low, 40)) / (ta.highest(high, 40) - ta.lowest(low, 40)), k_smooth)
sma_50 = ta.sma(100 * (close - ta.lowest(low, 50)) / (ta.highest(high, 50) - ta.lowest(low, 50)), k_smooth)
sma_60 = ta.sma(100 * (close - ta.lowest(low, 60)) / (ta.highest(high, 60) - ta.lowest(low, 60)), k_smooth)
sma_70 = ta.sma(100 * (close - ta.lowest(low, 70)) / (ta.highest(high, 70) - ta.lowest(low, 70)), k_smooth)
sma_80 = ta.sma(100 * (close - ta.lowest(low, 80)) / (ta.highest(high, 80) - ta.lowest(low, 80)), k_smooth)
sma_90 = ta.sma(100 * (close - ta.lowest(low, 90)) / (ta.highest(high, 90) - ta.lowest(low, 90)), k_smooth)
sma_100 = ta.sma(100 * (close - ta.lowest(low, 100)) / (ta.highest(high, 100) - ta.lowest(low, 100)), k_smooth)
// Отображаем стохастики для разных периодов как объемы (вертикальные линии) с интерполяцией цвета
plot(sma_20, color=get_color(20), title="SMA 20 %K", style=plot.style_columns, linewidth=2)
plot(sma_30, color=get_color(30), title="SMA 30 %K", style=plot.style_columns, linewidth=2)
plot(sma_40, color=get_color(40), title="SMA 40 %K", style=plot.style_columns, linewidth=2)
plot(sma_50, color=get_color(50), title="SMA 50 %K", style=plot.style_columns, linewidth=2)
plot(sma_60, color=get_color(60), title="SMA 60 %K", style=plot.style_columns, linewidth=2)
plot(sma_70, color=get_color(70), title="SMA 70 %K", style=plot.style_columns, linewidth=2)
plot(sma_80, color=get_color(80), title="SMA 80 %K", style=plot.style_columns, linewidth=2)
plot(sma_90, color=get_color(90), title="SMA 90 %K", style=plot.style_columns, linewidth=2)
plot(sma_100, color=get_color(100), title="SMA 100 %K", style=plot.style_columns, linewidth=2)
// Отображаем настраиваемые уровни
hline(level_75, "Уровень 75", color=color.red)
hline(level_50, "Уровень 50", color=color.blue)
hline(level_25, "Уровень 25", color=color.green)
ADX with Middle Line - RehmanFeatures:
Customizable Parameters:
ADX Length: Set the length for calculating the ADX smoothing (default: 14).
Middle Line Value: A user-defined threshold (default: 25) to highlight trend strength.
Plots:
ADX Line: Indicates trend strength (blue line).
DI+ and DI- Lines: Show positive (green) and negative (red) directional movement.
Middle Line: A horizontal line for reference (red).
Background Highlights:
Green background when ADX is above the middle line, indicating a strong trend.
Red background when ADX is below the middle line, indicating a weak trend.
CJ - RSI - Daily, Weekly, MonthlyThe Single Indicator to showcase RSI - Daily, Weekly and Monthly Timeframe
Sum Trend OscillatorPublishing my first indicator.
This one accumulates bars over two short period and divide that by the difference between a long term mean value of high-low
Buy/Sell signal is when both line cross at close below or above the center line.
Soul Button Scalping (1 min chart) V 1.0Indicator Description
- P Signal: The foundational buy signal. It should be confirmed by observing RSI divergence on the 1-minute chart.
- Green, Orange, and Blue Signals: Three buy signals generated through the combination of multiple oscillators. These signals should also be cross-referenced with the RSI on the 1-minute chart.
- Big White and Big Yellow Signals: These represent strong buy signals, triggered in extreme oversold conditions.
- BEST BUY Signal: The most reliable and powerful buy signal available in this indicator.
____________
Red Sell Signal: A straightforward sell signal indicating potential overbought conditions.
____________
Usage Guidance
This scalping indicator is specifically designed for use on the 1-minute chart, incorporating data from the 5-minute chart for added context. It is most effective when used in conjunction with:
• VWAP (Volume Weighted Average Price), already included in the indicator.
• RSI on the 1-minute chart, which should be opened as a separate indicator.
• Trendlines, structure breakouts, and price action analysis to confirm signals.
Intended for Crypto Scalping:
The indicator is optimized for scalping cryptocurrency markets.
____________
Future Enhancements:
• Integration of price action and candlestick patterns.
• A refined version tailored for trading futures contracts, specifically ES and MES in the stock market.
UM VIX status table and Roll Yield with EMA
Description :
This oscillator indicator gives you a quick snapshot of VIX, VIX futures prices, and the related VIX roll yield at a glance. When the roll yield is greater than 0, The front-month VX1 future contract is less than the next-month VX2 contract. This is called Contango and is typical for the majority of the time. If the roll yield falls below zero. This is considered backwardation where the front-month VX1 contract is higher than the value of the next-month VX2 contract. Contango is most common. When Backwardation occurs, there is usually high volatility present.
Features :
The red and green fill indicate the current roll yield with the gray line being zero.
An Exponential moving average is overlaid on the roll yield. It is red when trending down and green when trending up. If you right-click the indicator, you can set alerts for roll yield EMA color transitions green to red or red to green.
Suggested uses:
The author suggests a one hour chart using the 55 period EMA with a 60 minute setting in the indicator. This gives you a visual idea of whether the roll yield is rising or falling. The roll yield will often change directions at market turning points. For example if the roll yield EMA changes from red to green, this indicates a rising roll yield and volatility is subsiding. This could be considered bullish. If the roll yield begins falling, this indicates volatility is rising. This may be negative for stocks and indexes.
I look for short volatility positions (SVIX) when the roll yield is rising. I look for long volatility positions (VXX, UVXY, UVIX) when the roll yield begins falling. The indicator can be added to any chart. I suggest using the VX1, SPY, VIX, or other major stock index.
Set the time frame to your trading style. The default is 60 minutes. Note, the timeframe of the indicator does NOT utilize the current chart timeframe, it must be set to the desired timeframe. I manually input text on the chart indicator for understanding periods of Long and Short Volatility.
Settings and Defaults
The EMA is set to 55 by default and the table location is set to the lower right. The default time frame is 60 minutes. These features are all user configurable.
Other considerations
Sometimes the Tradingview data when a VX contract expires and another contract begins, may not transition cleanly and appear as a break on the chart. Tradingview is working on this as stated from my last request. This VX contract from one expiring contract to the next can be fixed on the price chart manually: ( Chart settings, Symbol, check the "Adjust for contract changes" box)
Observations
Pull up a one-hour chart of VX1 or SPY. Add this indicator. roll it back in time to see how the market and volatility reacts when the EMA changes from red to green and green to red. Adjust the EMA to your trading style and time frame. Use this for added confirmation of your long and short volatility trades with the Volatility ETFs SVIX, SVXY, VXX, UVXY, UVIX. or use it for long/short indexes such as SPY.
Mongoose Signals: Trend & Momentum Hunter
**Mongoose Signals: Trend & Momentum Hunter**
Stay ahead of the market with **Mongoose Signals**, an agile and precise tool designed to detect key **trend reversals** and **momentum shifts**. This script combines the power of:
- **Moving Averages (MA):** Tracks overall trend direction.
- **RSI:** Identifies overbought/oversold conditions and momentum.
- **MACD:** Confirms bullish or bearish momentum changes.
- **Volume Delta:** Ensures signals align with strong market participation.
With built-in **background trend zones** and intuitive **signal markers**, this script is perfect for traders seeking actionable and reliable alerts. Let the mongoose hunt down opportunities for you!
Buy/Sell Signals (MACD + RSI) 1HThis is a Pine Script indicator for TradingView that plots Buy/Sell signals based on the combination of MACD and RSI indicators on a 1-hour chart.
Description of the Code:
Indicator Setup:
The script is set to overlay the Buy/Sell signals directly on the price chart (using overlay=true).
The indicator is named "Buy/Sell Signals (MACD + RSI) 1H".
MACD Settings:
The MACD (Moving Average Convergence Divergence) uses standard settings of:
Fast Length: 12
Slow Length: 26
Signal Line Smoothing: 9
The MACD line and the Signal line are calculated using the ta.macd() function.
RSI Settings:
The RSI (Relative Strength Index) is calculated with a 14-period setting using the ta.rsi() function.
Buy/Sell Conditions:
Buy Signal:
Triggered when the MACD line crosses above the Signal line (Golden Cross).
RSI value is below 50.
Sell Signal:
Triggered when the MACD line crosses below the Signal line (Dead Cross).
RSI value is above 50.
Signal Visualization:
Buy Signals:
Green "BUY" labels are plotted below the price bars where the Buy conditions are met.
Sell Signals:
Red "SELL" labels are plotted above the price bars where the Sell conditions are met.
Chart Timeframe:
While the code itself doesn't enforce a specific timeframe, the name indicates that this indicator is intended to be used on a 1-hour chart.
To use it effectively, apply the script on a 1-hour chart in TradingView.
How It Works:
This indicator combines MACD and RSI to generate Buy/Sell signals:
The MACD identifies potential trend changes or momentum shifts (via crossovers).
The RSI ensures that Buy/Sell signals align with broader momentum (e.g., Buy when RSI < 50 to avoid overbought conditions).
When the defined conditions for Buy or Sell are met, visual signals (labels) are plotted on the chart.
How to Use:
Copy the code into the Pine Script editor in TradingView.
Save and apply the script to your 1-hour chart.
Look for:
"BUY" signals (green): Indicating potential upward trends or buying opportunities.
"SELL" signals (red): Indicating potential downward trends or selling opportunities.
This script is simple and focuses purely on providing actionable Buy/Sell signals based on two powerful indicators, making it ideal for traders who prefer a clean chart without clutter. Let me know if you need further customization!
Estrategia MACD
Combina señales del MACD con gestión de riesgo ajustable. Opera en cruces del MACD con su línea de señal cuando el histograma confirma la dirección.
Características principales:
Entradas: Cruces de líneas MACD con confirmación de histograma
Stop Loss: Mínimos/máximos de X velas previas
Take Profit: Ratio ajustable respecto al SL
Direcciones: Configurable para largos, cortos o ambos
Timeframe: Compatible con cualquier marco temporal
Parámetros personalizables:
Periodos MACD (12, 26, 9)
Velas para SL
Ratio riesgo/beneficio
RSI with price volume by TradifyHere’s your RSI script with price volume, cleaned up and optimized:
Features:
RSI Calculation:
Computes RSI based on the user-defined length and source.
Midline (50) Plot:
A reference line at 50 for better RSI analysis.
Fill Visualization:
Highlights areas above 50 (red) and below 50 (aqua) for quick trend assessment.
Moving Averages:
Includes WMA (21, 5) for strength analysis and EMA (3) for price responsiveness.
If you’d like to add or adjust anything, let me know! 😊🙏
Relative Strength with F&O stocks sector automatic mapping Determine the relative strength of a stock vis-a-vis a larger benchmark. Default is NIFTY50.
Key Features:
Sector Mapping: The script identifies the stock's sector using predefined arrays for sector stocks (e.g., healthcareStocks, energyStocks). It maps the stock to its sector index, like NSE:CNXIT for IT stocks.
Relative Strength Calculation: The RS is calculated by comparing the stock's price movements with its sector index or the default index.
Customizable Options:
Period (length) for RS calculation.
Display options like zero line, reference labels, trend color, etc.
Visual Enhancements:
Trend colors for RS crossovers.
Option to show moving averages of RS or price for confirmation.
note:- original author @bharatTrader
Relative Strength with F&O stocks sector automatic mapping Determine the relative strength of a stock vis-a-vis a larger benchmark. Default is NIFTY50.
Key Features:
Sector Mapping: The script identifies the stock's sector using predefined arrays for sector stocks (e.g., healthcareStocks, energyStocks). It maps the stock to its sector index, like NSE:CNXIT for IT stocks.
Relative Strength Calculation: The RS is calculated by comparing the stock's price movements with its sector index or the default index.
Customizable Options:
Period (length) for RS calculation.
Display options like zero line, reference labels, trend color, etc.
Visual Enhancements:
Trend colors for RS crossovers.
Option to show moving averages of RS or price for confirmation.
note:- original author @bharatTrader
original script :
updated by: @Sheladiya_Aakash , @Vijay0388
Custom RSI Zones by Auto MarketsCustom RSI Zones by Auto Markets is a simple yet powerful tool for traders to monitor overbought and oversold conditions on the Relative Strength Index (RSI). With customizable levels and a clean visual representation, this script is perfect for traders of all skill levels.
Key Features:
• Customizable RSI Length: Adjust the RSI calculation period to fit your strategy.
• Overbought and Oversold Zones: Clearly marked at user-defined levels (default: 70 for overbought, 30 for oversold).
• Clean RSI Plot: Displays the RSI line on your chart for quick decision-making.
• Includes Auto Markets branding, ensuring professional credibility.
How to Use:
1. Set the RSI Length based on your preferred trading timeframe.
2. Customize the Overbought and Oversold Levels to align with your strategy.
3. Look for signals:
• Overbought Zone: RSI above the overbought level may indicate a potential reversal or correction.
• Oversold Zone: RSI below the oversold level may indicate a potential upward move.
About Auto Markets:
Developed by Auto Markets, a trusted name in trading solutions. Visit us at www.automarkets.co.uk for more innovative tools and insights.
Scalping Indicator Postive MarketThis is a scalping indicator that provides buy and sell signal during positive market (MACD>0).
The code is an enhanced version of the scalping indicator by ovelix
Nimu Market on DemandNimu Market On Demand is an innovative tool designed to provide a visual representation of market demand levels on a scale of 1 to 100. This scale is displayed at specific intervals , making it easy for users to understand market demand fluctuations in real time.
To enhance analysis, Nimu Market On Demand also incorporates the Relative Strength Index (RSI) with key thresholds at . RSI is a widely-used technical indicator that measures market strength and momentum, offering insights into overbought (excessive buying) or oversold (excessive selling) conditions.
The combination of the Demand graph and RSI enables users to:
Identify the right time to buy when the RSI falls below 30, signaling an oversold condition.
Determine the optimal time to sell when the RSI rises above 70, indicating an overbought condition.
With an integrated visualization, users can effortlessly observe demand patterns and combine them with RSI signals to make smarter and more strategic trading decisions. This tool is designed to help traders and investors maximize opportunities in a dynamic market environment.
Demo GPT - Adjusted Swing Trading for SBIBuy when the market is oversold (RSI < 40) and the price is near the lower Bollinger Band.
Sell when the market is overbought (RSI > 60) or the price is near the upper Bollinger Band, or after achieving a 2% profit.
Custom Awesome OscillatorIndicator based on Awesome Oscillator. Histogram turns green on RSI overbought conditions and red on oversold conditions. Background is set against Bollinger Bands expansion and contraction. Perhaps it would be better to uncheck the RSI setting.
Relative Strength Index-14 with 60-40 bandChanges are just the RSI BAND Representing 40-60 band instead of 70-30
Relative Strength Index-14 with 60-40 bandChanges are just the RSI BAND Representing 40-60 band instead of 70-30
RSI + ADX <20 By Emanuele SabatinoRSI + ADX <20 By Emanuele Sabatino
Strategia che segnala con dei pallini gialli per situazioni di ipervenduto e quindi segnali long e pallini arancioni per segnali di ipercomprato e segnali short. Tutto questo sempre con adx inferiore a 20
Funziona ancora meglio sui livelli e zone di supporto e resistenza chiave.
RSI + ADX <20 By Emanuele SabatinoRSI + ADX <20 By Emanuele Sabatino
Strategia che segnala con dei pallini gialli per situazioni di ipervenduto e quindi segnali long e pallini arancioni per segnali di ipercomprato e segnali short. Tutto questo sempre con adx inferiore a 20
Funziona ancora meglio sui livelli e zone di supporto e resistenza chiave.