DSS Indicator📌 DSS Indicator – Double Smoothed Stochastic
📌 Name: DSS Indicator – Double Smoothed Stochastic
📌 Author:
📌 Platform: TradingView (Pine Script v5)
📌 Category: Oscillators, Momentum, Smart Money
📌 Description
The DSS (Double Smoothed Stochastic) Indicator is an advanced version of the classic Stochastic Oscillator, applying double smoothing to filter out market noise and generate more precise buy and sell signals.
✅ Key Features:
🔹 Double smoothed stochastic for improved accuracy
🔹 Buy and sell signals displayed as dots (green = buy, red = sell)
🔹 Option to display signals on the price chart and in a separate indicator panel
🔹 Adjustable smoothing period settings
🔹 Ideal for Smart Money and Swing Trading strategies
📌 How to Use?
🔹 Buy Signal (green dot) → When DSS exits the oversold area (<20)
🔹 Sell Signal (red dot) → When DSS exits the overbought area (>80)
🔹 Users can enable/disable signals on the price chart and/or in the indicator panel
💡 Tip: The DSS Indicator works best when combined with other technical analysis tools such as Fibonacci, EMA, MACD, and Smart Money Concepts (SMC).
📌 User Settings
🔸 Period 1 (default 21) – first smoothing
🔸 Period 2 (default 18) – second smoothing
🔸 Show signals on price chart (ON/OFF)
🔸 Show signals in indicator panel (ON/OFF)
👉 Add the DSS Indicator to your TradingView and test it with your strategy! 🚀
Penunjuk dan strategi
Daily Range % with 10-day MAThis indicator graphs the intraday variation of the daily candlestick, showing 5 dma and 20 dma.
Combined RAJSaral RS (NIFTY50, NIFTY · NSE, close, 22, 11, 5, 2, 5, 5, 5, 60)Saral RS (NIFTY50, NIFTY · NSE, close, 22, 11, 5, 2, 5, 5, 5, 60)Saral RS (NIFTY50, NIFTY · NSE, close, 22, 11, 5, 2, 5, 5, 5, 60)Saral RS (NIFTY50, NIFTY · NSE, close, 22, 11, 5, 2, 5, 5, 5, 60)Saral RS (NIFTY50, NIFTY · NSE, close, 22, 11, 5, 2, 5, 5, 5, 60)Saral RS (NIFTY50, NIFTY · NSE, close, 22, 11, 5, 2, 5, 5, 5, 60)
Smart Trend Envelopebased on original and publishing to use the upper and lower values in a strategy
RSI Trendlines [RG]Overview
RSI Trendlines combines the power of automatic trendline detection with the popular Relative Strength Index (RSI) indicator. This tool identifies and plots dynamic support and resistance trendlines directly on the RSI chart, helping you spot potential trend changes and divergences in momentum before they appear in price.
Key Features
Automatically detects and draws trendlines on the RSI indicator
Identifies significant pivot points in RSI momentum
Customizable appearance with adjustable colors and line widths
Built-in alerts for trendline breaks
How It Works
The indicator calculates the standard RSI using your preferred settings
It identifies pivot highs and lows in the RSI using the specified lookback period
Valid trendlines are drawn connecting consecutive pivots
Lines extend until they experience a confirmed break
Customization Options
RSI Parameters: Adjust length and source to your preference
Trendline Settings: Control pivot detection sensitivity and maximum lines
Visual Options: Customize colors, line widths, and optional midline display
Ideal For
Identifying established trends in momentum
Spotting potential RSI divergences early
Timing entries and exits based on momentum shifts
Confirming trend changes with objective trendline breaks
This indicator aims to help traders move beyond static overbought/oversold levels by revealing the dynamic structure of momentum trends and highlighting potential reversals and continuations.
Please don't use this as a buy and sell indicator. Use it to get an idea on the market trend and as an extra confirmation for your trades. Happy Trading :)
Long-Term Trend Exhaustion (Safe Forward Indexing)dojfnbhso what do you wannt me to soauy?
Photograph your local culture, help Wikipedia and win!
Hide
Contents hide
(Top)
Plot
Cast
Reception
Home media
Soundtrack
Sequel
References
External links
Ask Me Anything (film)
Article
Talk
Read
Edit
View history
Tools
Appearance hide
Text
Small
Standard
Large
Width
Standard
Wide
Color (beta)
Automatic
Light
Dark
From Wikipedia, the free encyclopedia
Ask Me Anything
DVD cover
Directed by Allison Burnett
Screenplay by Allison Burnett
Based on Undiscovered Gyrl
by Allison Burnett
Produced by
Lauren Avinoam
Nicholas Emiliani
Lauren Hogarth
Starring
Britt Robertson
Justin Long
Martin Sheen
Christian Slater
Robert Patrick
Max Carver
Cinematography Patrice Lucien Cochet
Edited by Adam Lichtenstein
Music by Jon Ehrlich
Production
companies
Decipher Entertainment
Presque Isle Films
Tait Productions
Distributed by Phase 4 Films
Release dates
April 19, 2014 (NaFF)
December 19, 2014 (United States)
Running time 100 minutes
Country United States
Language English
Budget $950,000
Box office $48,710
Ask Me Anything is a 2014 American drama film written and directed by Allison Burnett, based on his novel Undiscovered Gyrl. The film stars Britt Robertson, Justin Long, Martin Sheen, Christian Slater, Robert Patrick, and Max Carver.
Ask Me Anything had its world premiere at the Nashville Film Festival, before it was released on December 19, 2014, by Phase 4 Films theatrically and via video on demand and other online platforms. The film was released on DVD on March 3, 2015.
Plot
Katie Kampenfelt is an 18-year-old girl, a funny, free-spirited, lost soul who decides to take a year off before attending college. Her guidance counselor suggests she chronicle her feelings and experiences in a diary or blog.
Katie keeps her anonymous blog, called 'Undiscovered Gyrl', regularly updated with mostly sexual adventures. Initially, it's primarily with a 30+ y.o. film guy with a girlfriend, Dan, and with her teenage boyfriend, Rory. She gets a well-paid job in a bookshop with Glen, but her mother makes her quit when her partner discovers through contact with the police that he is a registered sex offender.
Although aware of Dan's impending move, he goes without saying goodbye or arranging for them to stay in contact. Her one girlfriend, Jade, calls her up after being away awhile in Greece, and they go dancing.
Katie gets a new job as a nanny for Paul, a Tufts alum who'd interviewed her for admissions, to look after his newborn. It pays well and includes a car. His wife Margaret shows her everything, and by the end of the week, she meets Paul again as he's been away for work.
Five weeks after Dan moved, Katie gets ahold of him with Jade's help. After they have full-on intercourse, he reveals he's engaged to Martine. Upset upon returning home, Katie finds Rory waiting for her with her mom and her partner Mark. He confronts her, demanding answers as he's been there for over an hour. When Katie tells Rory she's in love with the older Dan, his rage provokes Mark to throw him out.
On New Year's eve, when Katie is told her mom is
NEW VOLUME INDICATOR with STEXPLORERThe NIFTY 50 is an Indian stock market index that represents the float-weighted average of 50 of the largest Indian companies listed on the National Stock Exchange. Nifty 50 is owned and managed by NSE Indices, which is a wholly owned subsidiary of the National Stock Exchange of India.
NEW VOLUME INDICATORThe NIFTY 50 is an Indian stock market index that represents the float-weighted average of 50 of the largest Indian companies listed on the National Stock Exchange. Nifty 50 is owned and managed by NSE Indices, which is a wholly owned subsidiary of the National Stock Exchange of India.
RSI3M3+ v.1.8RSI3M3+ v.1.8 Indicator
This script is an advanced trading indicator based on Walter J. Bressert's cycle analysis methodology, combined with an RSI (Relative Strength Index) variation. Let me break it down and explain how it works.
Core Concepts
The RSI3M3+ indicator combines:
A short-term RSI (3-period)
A 3-period moving average to smooth the RSI
Bressert's cycle analysis principles to identify optimal trading points
RSI3M3+ Indicator VisualizationImage Walter J. Bressert's Cycle Analysis Concepts
Walter Bressert was a pioneer in cycle analysis trading who believed markets move in cyclical patterns that can be measured and predicted. His key principles integrated into this indicator include:
Trading Cycles: Markets move in cycles with measurable time spans from low to low
Timing Bands: Projected periods when the next cyclical low or high is anticipated
Oscillator Use: Using oscillators like RSI to confirm cycle position
Entry/Exit Rules: Specific rules for trade entry and exit based on cycle position
Key Parameters in the Script
Basic RSI Parameters
Required bars: Minimum number of bars needed (default: 20)
Overbought region: RSI level considered overbought (default: 70)
Oversold region: RSI level considered oversold (default: 30)
Bressert-Specific Parameters
Cycle Detection Length: Lookback period for cycle identification (default: 30)
Minimum/Maximum Cycle Length: Expected cycle duration in days (default: 15-30)
Buy Line: Lower threshold for buy signals (default: 40)
Sell Line: Upper threshold for sell signals (default: 60)
How the Indicator Works
RSI3M3 Calculation:
Calculates a 3-period RSI (sRSI)
Smooths it with a 3-period moving average (sMA)
Cycle Detection:
Identifies bottoms: When the RSI is below the buy line (40) and starting to turn up
Identifies tops: When the RSI is above the sell line (60) and starting to turn down
Records these points to calculate cycle lengths
Timing Bands:
Projects when the next cycle bottom or top should occur
Creates visual bands on the chart showing these expected time windows
Signal Generation:
Buy signals occur when the RSI turns up from below the oversold level (30)
Sell signals occur when the RSI turns down from above the overbought level (70)
Enhanced by Bressert's specific timing rules
Bressert's Five Trading Rules (Implemented in the Script)
Cycle Timing: The low must be 15-30 market days from the previous Trading Cycle bottom
Prior Top Validation: A Trading Cycle high must have occurred with the oscillator above 60
Oscillator Behavior: The oscillator must drop below 40 and turn up
Entry Trigger: Entry is triggered by a rise above the price high of the upturn day
Protective Stop: Place stop slightly below the Trading Cycle low (implemented as 99% of bottom price)
How to Use the Indicator
Reading the Chart
Main Plot Area:
Green line: 3-period RSI
Red line: 3-period moving average of the RSI
Horizontal bands: Oversold (30) and Overbought (70) regions
Dotted lines: Buy line (40) and Sell line (60)
Yellow vertical bands: Projected timing windows for next cycle bottom
Signals:
Green up arrows: Buy signals
Red down arrows: Sell signals
Trading Strategy
For Buy Signals:
Wait for the RSI to drop below the buy line (40)
Look for an upturn in the RSI from below this level
Enter the trade when price rises above the high of the upturn day
Place a protective stop at 99% of the Trading Cycle low
For Sell Signals:
Wait for the RSI to rise above the sell line (60)
Look for a downturn in the RSI from above this level
Consider exiting or taking profits when a sell signal appears
Alternative exit: When price moves below the low of the downturn day
Cycle Timing Enhancement:
Pay attention to the yellow timing bands
Signals occurring within these bands have higher probability of success
Signals outside these bands may be less reliable
Practical Tips for Using RSI3M3+
Timeframe Selection:
The indicator works best on daily charts for intermediate-term trading
Can be used on weekly charts for longer-term position trading
On intraday charts, adjust cycle lengths accordingly
Market Applicability:
Works well in trending markets with clear cyclical behavior
Less effective in choppy, non-trending markets
Consider additional indicators for trend confirmation
Parameter Adjustment:
Different markets may have different natural cycle lengths
You may need to adjust the min/max cycle length parameters
Higher volatility markets may need wider overbought/oversold levels
Trade Management:
Enter trades when all Bressert's conditions are met
Use the protective stop as defined (99% of cycle low)
Consider taking partial profits at the projected cycle high timing
Advanced Techniques
Multiple Timeframe Analysis:
Confirm signals with the same indicator on higher timeframes
Enter in the direction of the larger cycle when smaller and larger cycles align
Divergence Detection:
Look for price making new lows while RSI makes higher lows (bullish)
Look for price making new highs while RSI makes lower highs (bearish)
Confluence with Price Action:
Combine with support/resistance levels
Use with candlestick patterns for confirmation
Consider volume confirmation of cycle turns
This RSI3M3+ indicator combines the responsiveness of a short-term RSI with the predictive power of Bressert's cycle analysis, offering traders a sophisticated tool for identifying high-probability trading opportunities based on market cycles and momentum shifts.
THANK YOU FOR PREVIOUS CODER THAT EFFORT TO CREATE THE EARLIER VERSION THAT MAKE WALTER J BRESSERT CONCEPT IN TRADINGVIEW @ADutchTourist
Long Short domThis is Magic Indicator. Providing you Лонг Short Position Dominance. And Background i Show you Quint Trend.
Mr gold ema5 cross ma21ema5 crossover ma21
ema5 white (5days)
ma21 red (1month)
ma50 orange (50days)
ma63 yellow (3month)
ma84 green (4month)
ma200 blue (200days)
EMA Supertrend StrategyAERVA EMA Supertrend Strategy
Original TradingView Script for Trend-following Strategy with Buy/Sell Signals
This strategy uses a combination of Exponential Moving Averages (EMA), Supertrend, and Fibonacci to identify potential Buy and Sell signals. The strategy focuses on detecting price action with two consecutive green candles crossing above the 200 EMA for a buy signal and two consecutive red candles crossing below the 200 EMA for a sell signal.
Key Components:
50 EMA and 200 EMA: Used to identify the trend and signal potential reversals or continuations.
Supertrend: Helps visualize the trend direction and smooths out price movements.
Fibonacci: Adds an additional layer of confluence for trade entries.
Buy Condition: A buy signal is triggered when two consecutive green candles cross above the 200 EMA.
Sell Condition: A sell signal is triggered when two consecutive red candles cross below the 200 EMA.
Features:
Buy/Sell Signals: Clear visual cues on the chart, with arrows and labels marking the entry points.
Supertrend: Displays green/red trends to help confirm the overall market direction.
Fibonacci: Plotting Fibonacci levels to support your decision-making for potential trade setups.
Risk Management & Backtesting: This script supports backtesting within the TradingView environment, and the strategy includes realistic commission and slippage parameters to reflect more accurate trade results.
The script is designed for traders who want a clear and systematic approach to identifying potential trend-following trade opportunities using a combination of classic technical indicators and price action.
Hashtags:
#AERVA #EMA #Supertrend #TradingStrategy #TechnicalAnalysis #TrendFollowing #BuyAndSellSignals #StockTrading #CryptoTrading #ForexTrading #TradingView #Backtesting #MarketTrends #Fibonacci #TechnicalIndicators #PriceAction #SwingTrading #DayTrading #TradingSystem #CustomStrategy #PineScript
Best Asia Range IndicatorUse this to map out the high or low of the day.
if im buying i will wait for a sweep of asia low
if im selling i wait for sweep of asia high
Strategy Stats [presentTrading]Hello! it's another weekend. This tool is a strategy performance analysis tool. Looking at the TradingView community, it seems few creators focus on this aspect. I've intentionally created a shared version. Welcome to share your idea or question on this.
█ Introduction and How it is Different
Strategy Stats is a comprehensive performance analytics framework designed specifically for trading strategies. Unlike standard strategy backtesting tools that simply show cumulative profits, this analytics suite provides real-time, multi-timeframe statistical analysis of your trading performance.
Multi-timeframe analysis: Automatically tracks performance metrics across the most recent time periods (last 7 days, 30 days, 90 days, 1 year, and 4 years)
Advanced statistical measures: Goes beyond basic metrics to include Information Coefficient (IC) and Sortino Ratio
Real-time feedback: Updates performance statistics with each new trade
Visual analytics: Color-coded performance table provides instant visual feedback on strategy health
Integrated risk management: Implements sophisticated take profit mechanisms with 3-step ATR and percentage-based exits
BTCUSD Performance
The table in the upper right corner is a comprehensive performance dashboard showing trading strategy statistics.
Note: While this presentation uses Vegas SuperTrend as the underlying strategy, this is merely an example. The Stats framework can be applied to any trading strategy. The Vegas SuperTrend implementation is included solely to demonstrate how the analytics module integrates with a trading strategy.
⚠️ Timeframe Limitations
Important: TradingView's backtesting engine has a maximum storage limit of 10,000 bars. When using this strategy stats framework on smaller timeframes such as 1-hour or 2-hour charts, you may encounter errors if your backtesting period is too long.
Recommended Timeframe Usage:
Ideal for: 4H, 6H, 8H, Daily charts and above
May cause errors on: 1H, 2H charts spanning multiple years
Not recommended for: Timeframes below 1H with long history
█ Strategy, How it Works: Detailed Explanation
The Strategy Stats framework consists of three primary components: statistical data collection, performance analysis, and visualization.
🔶 Statistical Data Collection
The system maintains several critical data arrays:
equityHistory: Tracks equity curve over time
tradeHistory: Records profit/loss of each trade
predictionSignals: Stores trade direction signals (1 for long, -1 for short)
actualReturns: Records corresponding actual returns from each trade
For each closed trade, the system captures:
float tradePnL = strategy.closedtrades.profit(tradeIndex)
float tradeReturn = strategy.closedtrades.profit_percent(tradeIndex)
int tradeType = entryPrice < exitPrice ? 1 : -1 // Direction
🔶 Performance Metrics Calculation
The framework calculates several key performance metrics:
Information Coefficient (IC):
The correlation between prediction signals and actual returns, measuring forecast skill.
IC = Correlation(predictionSignals, actualReturns)
Where Correlation is the Pearson correlation coefficient:
Correlation(X,Y) = (nΣXY - ΣXY) / √
Sortino Ratio:
Measures risk-adjusted return focusing only on downside risk:
Sortino = (Avg_Return - Risk_Free_Rate) / Downside_Deviation
Where Downside Deviation is:
Downside_Deviation = √
R_i represents individual returns, T is the target return (typically the risk-free rate), and n is the number of observations.
Maximum Drawdown:
Tracks the largest percentage drop from peak to trough:
DD = (Peak_Equity - Trough_Equity) / Peak_Equity * 100
🔶 Time Period Calculation
The system automatically determines the appropriate number of bars to analyze for each timeframe based on the current chart timeframe:
bars_7d = math.max(1, math.round(7 * barsPerDay))
bars_30d = math.max(1, math.round(30 * barsPerDay))
bars_90d = math.max(1, math.round(90 * barsPerDay))
bars_365d = math.max(1, math.round(365 * barsPerDay))
bars_4y = math.max(1, math.round(365 * 4 * barsPerDay))
Where barsPerDay is calculated based on the chart timeframe:
barsPerDay = timeframe.isintraday ?
24 * 60 / math.max(1, (timeframe.in_seconds() / 60)) :
timeframe.isdaily ? 1 :
timeframe.isweekly ? 1/7 :
timeframe.ismonthly ? 1/30 : 0.01
🔶 Visual Representation
The system presents performance data in a color-coded table with intuitive visual indicators:
Green: Excellent performance
Lime: Good performance
Gray: Neutral performance
Orange: Mediocre performance
Red: Poor performance
█ Trade Direction
The Strategy Stats framework supports three trading directions:
Long Only: Only takes long positions when entry conditions are met
Short Only: Only takes short positions when entry conditions are met
Both: Takes both long and short positions depending on market conditions
█ Usage
To effectively use the Strategy Stats framework:
Apply to existing strategies: Add the performance tracking code to any strategy to gain advanced analytics
Monitor multiple timeframes: Use the multi-timeframe analysis to identify performance trends
Evaluate strategy health: Review IC and Sortino ratios to assess predictive power and risk-adjusted returns
Optimize parameters: Use performance data to refine strategy parameters
Compare strategies: Apply the framework to multiple strategies to identify the most effective approach
For best results, allow the strategy to generate sufficient trade history for meaningful statistical analysis (at least 20-30 trades).
█ Default Settings
The default settings have been carefully calibrated for cryptocurrency markets:
Performance Tracking:
Time periods: 7D, 30D, 90D, 1Y, 4Y
Statistical measures: Return, Win%, MaxDD, IC, Sortino Ratio
IC color thresholds: >0.3 (green), >0.1 (lime), <-0.1 (orange), <-0.3 (red)
Sortino color thresholds: >1.0 (green), >0.5 (lime), <0 (red)
Multi-Step Take Profit:
ATR multipliers: 2.618, 5.0, 10.0
Percentage levels: 3%, 8%, 17%
Short multiplier: 1.5x (makes short take profits more aggressive)
Stop loss: 20%
Multi-TF Support LevelsThe Multi-TF Support Levels indicator identifies and displays key support levels based on swing lows across three user-selected timeframes.
How it works:
Input Parameters:
Lookback Period (100) — historical depth to search for swing lows.
Timeframe 1-3 (15, 45, 240) — three timeframes (e.g., 15min, 45min, 4hr).
Logic:
For each timeframe, a swing low is detected: the lowest price within the lookback period that is also lower than the two preceding candles.
Support levels update dynamically when new swing lows are formed.
The most recent levels are plotted as horizontal cross marks (blue, red, green for each timeframe).
Purpose: Visualize significant support zones from multiple timeframes to identify confluent areas for trading decisions.
Индикатор Multi-TF Support Levels (Мультитаймфреймовые уровни поддержки) определяет и отображает ключевые уровни поддержки на основе минимумов свингов (swing lows) на трёх выбранных таймфреймах.
Как работает:
Входные параметры:
Lookback Period (100) — глубина анализа для поиска минимумов.
Timeframe 1-3 (15, 45, 240) — три таймфрейма (например, 15 минут, 45 минут, 4 часа).
Логика:
Для каждого таймфрейма определяется свинг-минимум: цена, которая является самой низкой за период lookback и ниже двух предыдущих свечей.
Уровни поддержки обновляются при появлении новых свинг-минимумов.
Последние актуальные уровни отображаются на графике в виде горизонтальных линий-крестиков (синий, красный, зелёный для каждого таймфрейма).
Цель: Визуализировать значимые уровни поддержки с разных таймфреймов для поиска зон "конфлюэнса".
NIFTY EXPLORER COPYFOR NIFTY 50
The NIFTY 50 is an Indian stock market index that represents the float-weighted average of 50 of the largest Indian companies listed on the National Stock Exchange. Nifty 50 is owned and managed by NSE Indices, which is a wholly owned subsidiary of the National Stock Exchange of India.
Scalping Strategy Signal v2 by [INFINITYTRADER]Overview
This Pine Script (v6) implements a scalping strategy that uses higher timeframe data (default: 4H) to generate entry and exit signals, originally designed for the 15-minute timeframe with an option for 30-minute charts. The "Scalping Strategy Signal v2 by " integrates moving averages, RSI, volume, ATR, and candlestick patterns to identify trading opportunities. It features adjustable risk management with ATR-based stop-loss, take-profit, and trailing stops, plus dynamic position sizing based on user-set capital. Trades trigger only on the higher timeframe candle close (e.g., 4H) to limit activity within the same period. This closed-source script offers a structured scalping approach, blending multiple entry methods and risk controls for adaptability across market conditions.
What Makes It Unique
Unlike typical scalping scripts relying on single-indicator triggers (e.g., RSI alone or basic MA crossovers), this strategy combines four distinct entry methods—standard MA crossovers, RSI-based momentum shifts, trend-following shorts, and candlestick pattern logic—evaluated on a 4H timeframe for confirmation. This multi-layered design, paired with re-entry logic after losses and a mix of manual, ATR-based, and trailing exits, aims to balance trade frequency and reliability. The higher timeframe filter adds precision not commonly found in simpler scalping tools, while the 30-minute option enhances consistency by reducing noise.
How It Works
Timeframe Logic
Runs on a base timeframe (designed for 15-minute charts, with a 30-minute option) while pulling data from a user-chosen higher timeframe (default: 4H) for signal accuracy.
Limits entries to the close of each 4H candle, ensuring one trade per period to avoid over-trading in volatile conditions.
Indicators and Data
Moving Averages : Employs 21-period and 50-period simple moving averages on the higher timeframe to detect trends and signal entries/exits.
Volume : Requires volume to exceed 70% of its 20-period average on the higher timeframe for momentum confirmation.
RSI : Uses a 14-period RSI for overbought/oversold filtering and a 6-period RSI for precise entry timing.
ATR : Applies a 14-period Average True Range on the higher timeframe to set adaptive stop-loss and take-profit levels.
Candlestick Patterns : Analyzes consecutive green or red 4H bars for trend continuation signals.
Why These Indicators
The blend of moving averages, RSI, volume, ATR, and candlestick patterns forms a robust scalping framework. Moving averages establish trend context, RSI filters momentum and avoids extremes, volume confirms market activity, ATR adjusts risk to volatility, and candlestick patterns enhance entry timing with price action insights. Together, they target small, frequent moves in flat or trending markets, with the 4H filter reducing false signals common in lower-timeframe scalping.
Entry Conditions
Four entry methods are evaluated at the 4H candle close:
Standard Long Entry: Price crosses above the 21-period moving average, volume exceeds 70% of its 20-period average, and the 1H 14-period RSI is below 70—confirms uptrend momentum.
Special Long Entry: The 6-period RSI crosses above 23, price is more than 1.5 times the ATR from the 21-period moving average, and price exceeds its prior close—targets oversold bounces with a stop-loss at the 4H candle’s low.
Short Entries:
- RSI-Based: The 6-period RSI crosses below 68 with volume support—catches overbought pullbacks.
- Trend-Based: Price crosses below the 21-period moving average, volume is above 70% of its average, and the 1H 14-period RSI is above 30—confirms downtrends.
Red/Green Bar Logic: Two consecutive green 4H bars for longs or red 4H bars for shorts—uses candlestick patterns for continuation, with a tight stop-loss from the base timeframe candle.
Re-Entry Logic
Long : After a losing special long, triggers when the 6-period RSI crosses 27 and price crosses the 21-period moving average.
Short : After a losing short, triggers when the 6-period RSI crosses 50 and price crosses below the 21-period moving average.
Purpose: Offers recovery opportunities with stricter conditions.
Exit Conditions
Manual Exits: Longs close if the 21-period MA crosses below the 50-period MA or the 1H 14-period RSI exceeds 68; shorts close if the 21-period MA crosses above the 50-period MA or RSI drops below 25.
ATR-Based TP/SL: Stop-loss is entry price ± ATR × 1.5 (default); take-profit is ± ATR × 4 (default), checked at 4H close.
Trailing Stop: Adjusts ±6x ATR from peak/trough, closing if price retraces within 1x ATR.
Special/Tight SL: Special longs exit if price opens below the 4H candle’s low; 4th method entries use the base timeframe candle’s low/high, checked every bar.
Position Sizing
Bases trade value on user-set capital (default: 100 USDT), dividing by the higher timeframe close price for dynamic sizing.
Visualization
Displays a table at the bottom-right with current/previous signals, TP/SL levels, equity, trading pair, and trade size—color-coded for clarity (green for buy, red for sell).
Inputs
Initial Capital (USDT): Sets trade value (default: 100, min: 1).
ATR Stop-Loss Multiplier: Adjusts SL distance (default: 1.5, min: 1).
ATR Take-Profit Multiplier: Adjusts TP distance (default: 4, min: 1).
Higher Timeframe: Selects analysis timeframe (options: 1m, 5m, 15m, 30m, 1H, 4H, D, W; default: 4H).
Usage Notes
Intended Timeframe: Designed for 15-minute charts with 4H confirmation for precision and frequency; 30-minute charts improve consistency by reducing noise.
Backtesting: Adjust ATR multipliers and capital to match your asset’s volatility and risk tolerance.
Risk Management: Combines manual, ATR, and trailing exits—monitor to avoid overexposure.
Limitations: 4H candle-close dependency may delay entries in fast markets; RSI/volume filters can reduce trades in low-momentum periods.
Backtest Observations
Tested on BTC/USDT (4H higher timeframe, default settings: Initial Capital: 100 USDT, ATR SL: 1.5x, ATR TP: 4x) across market conditions, comparing 15-minute and 30-minute charts:
Bull Market (Jul 2023 - Dec 2023):
15-Minute: 277 long, 219 short; Win Rate: 42.74%; P&L: 108%; Drawdown: 1.99%; Profit Factor: 3.074.
30-Minute: 257 long, 215 short; Win Rate: 49.58%; P&L: 116.85%; Drawdown: 2.34%; Profit Factor: 3.14.
Notes: Moving average crossovers and green bar patterns suited this bullish phase; 30-minute improved win rate and P&L by filtering weaker signals.
Bear Market (Jan 2022 - Jun 2022):
15-Minute: 262 long, 211 short; Win Rate: 44.4%; P&L: 239.80%; Drawdown: 3.74%; Profit Factor: 3.419.
30-Minute: 250 long, 200 short; Win Rate: 52.22%; P&L: 258.77%; Drawdown: 5.34%; Profit Factor: 3.461.
Notes: Red bar patterns and RSI shorts thrived in the downtrend; 30-minute cut choppy reversals for better consistency.
Flat Market (Jan 2021 - Jun 2021):
15-Minute: 280 long, 208 short; Win Rate: 51.84%; P&L: 340.33%; Drawdown: 9.59%; Profit Factor: 2.924.
30-Minute: 270 long, 209 short; Win Rate: 55.11%; P&L: 315.42%; Drawdown: 7.21%; Profit Factor: 2.598.
Notes: High trade frequency and P&L showed strength in ranges; 30-minute lowered drawdown for better risk control.
Results reflect historical performance on BTC/USDT with default settings—users should test on their assets and timeframes. Past performance does not guarantee future results and is shared only to illustrate the strategy’s behavior.
Why It Works Well in Flat Markets
A "flat market" lacks strong directional trends, with price oscillating around moving averages, as in Jan 2021 - Jun 2021 for BTC/USDT. This strategy excels here because its crossover-based entries trigger frequently in tight ranges. In trending markets, an exit might not be followed by a new entry without a pullback, but flat markets produce multiple crossovers, enabling more trades. ATR-based TP/SL and trailing stops capture these small swings, while RSI and volume filters ensure momentum, driving high P&L and win rates.
Technical Details
Built in Pine Script v6 for TradingView compatibility.
Prevents overlapping trades with long/short checks.
Handles edge cases like zero division and auto-detects the trading pair’s base currency (e.g., BTC from BTCUSDT).
This strategy suits scalpers seeking structured entries and risk management. Test on 15-minute or 30-minute charts to match your style and market conditions.
Livelli Sessioni Multi-Timeframe (NY Time)📌 This script automatically draws the highest and lowest closing prices from the previous session, based on the active timeframe:
On M15, it calculates the highest and lowest closes of each 6-hour session block (00–06, 06–12, 12–18, 18–00 — New York time).
On H1, it uses the highest and lowest closes of the entire previous day (NY time).
On H4, it uses the highest and lowest closes of the previous week (NY time).
🔁 Levels are only shown during the current session and automatically reset when the session changes.
🧭 All calculations are based on the New York time zone (EST/EDT).
🎯 Designed for traders who focus on clean and reliable reference levels based on price closes rather than wicks — ideal for intraday and swing trading.
📉 Display style: thin black lines, with optional touch markers.
Compatible with Forex, indices, crypto, and more.
🛠️ Created by @bordimichele00
Spent Output Profit Ratio (SOPR) Z-Score | [DeV]SOPR Z-Score
The Spent Output Profit Ratio (SOPR) is an advanced on-chain metric designed to provide deep insights into Bitcoin market dynamics by measuring the ratio between the combined USD value of all Bitcoin outputs spent on a given day and their combined USD value at the time of creation (typically, their purchase price). As a member of the Realized Profit/Loss family of metrics, SOPR offers a window into aggregate seller behavior, effectively representing the USD amount received by sellers divided by the USD amount they originally paid. This indicator enhances this metric by normalizing it into a Z-Score, enabling a statistically robust analysis of market sentiment relative to historical trends, augmented by a suite of customizable features for precision and visualization.
SOPR Settings -
Lookback Length (Default: 150 days): Determines the historical window for calculating the Z-Score’s mean and standard deviation. A longer lookback captures broader market cycles, providing a stable baseline for identifying extreme deviations, which is particularly valuable for long-term strategic analysis.
Smoothing Period (Default: 100 days): Applies an EMA to the raw SOPR, balancing responsiveness to recent changes with noise reduction. This extended smoothing period ensures the indicator focuses on sustained shifts in seller behavior, ideal for institutional-grade trend analysis.
Moving Average Settings -
MA Lookback Length (Default: 90 days): Sets the period for the Z-Score’s moving average, offering a shorter-term trend signal relative to the 150-day Z-Score lookback. This contrast enhances the ability to detect momentum shifts within the broader context.
MA Type (Default: EMA): Provides six moving average types, from the simple SMA to the volume-weighted VWMA. The default EMA strikes an optimal balance between smoothness and responsiveness, while alternatives like HMA (Hull) or VWMA (volume-weighted) allow for specialized applications, such as emphasizing recent price action or incorporating volume dynamics.
Display Settings -
Show Moving Average (Default: True): Toggles the visibility of the Z-Score MA plot, enabling users to focus solely on the raw Z-Score when preferred.
Show Background Colors (Default: True): Activates dynamic background shading, enhancing visual interpretation of market regimes.
Background Color Source (Default: SOPR): Allows users to tie the background color to either the SOPR Z-Score’s midline (reflecting adjustedZScore > 0) or the MA’s trend direction (zScoreMA > zScoreMA ). This dual-source option provides flexibility to align the visual context with the primary analytical focus.
Analytical Applications -
Bear Market Resistance: When the Z-Score approaches or exceeds zero (raw SOPR near 1), it often signals resistance as sellers rush to exit at break-even, a pattern historically observed during downtrends. A rising Z-Score MA crossing zero can confirm this pressure.
Bull Market Support: Conversely, a Z-Score dropping below zero in uptrends indicates reluctance to sell at a loss, forming support as sell pressure diminishes. The MA’s bullish coloring reinforces confirmation of renewed buying interest.
Extreme Deviations: Values significantly above or below zero highlight overbought or oversold conditions, respectively, offering opportunities for contrarian positioning when paired with other on-chain or price-based metrics.
Advanced Momentum Indicators BiasThis script is a versatile tool designed to analyze and display the directional bias of up to 25 technical momentum indicators on a trading chart. It does not overlay on the price chart, instead presenting its results in a separate, customizable table. The table shows whether each selected indicator signals an "up" or "down" trend, with some indicators further categorized by signal strength ("strong" or "weak"). This provides traders with a consolidated view of market momentum and trend direction.
Key Features
1. Indicator Selection and Customization
Supported Indicators: The script allows users to toggle the inclusion of 25 technical indicators:
RSI, MACD, Stochastic, MFI, Williams %R, CCI, ADX, ROC, Momentum, Ichimoku, Parabolic SAR, Aroon, OBV, Chaikin Oscillator, Ultimate Oscillator, Trix, Bull Bear Power, Elder Ray, Gator Oscillator, Keltner Channels, Schaff Trend Cycle, Zig Zag, Donchian Channels, Envelopes, and Fractals.
Customization Options:
Table Position: Choose from top-left, top-right, bottom-left, or bottom-right on the chart.
Colors: Set colors for "up" (e.g., green) and "down" (e.g., red) directions, as well as text color.
Display Toggles: Show/hide the table, individual indicator rows, or a total count row.
2. Advanced Direction Calculation
Oscillator Logic: For indicators like RSI, MACD, and Stochastic (oscillators), the script uses advanced logic to determine direction:
It checks the indicator’s level against a threshold (e.g., 50 for RSI) and its trend (rising or falling).
Possible outcomes:
Strong Up: Above threshold and rising.
Weak Up: Above threshold but falling.
Strong Down: Below threshold and falling.
Weak Down: Below threshold but rising.
Simple Logic: For trend-based indicators (e.g., ADX, Ichimoku, Parabolic SAR), a straightforward "up" or "down" is determined using indicator-specific criteria.
3. Table Display
Structure: The table has two columns:
Indicator Name: Lists the selected indicators.
Direction: Shows "Up" or "Down" with color coding.
Color Coding:
Strong Up: Solid "up" color (e.g., green).
Weak Up: Lighter "up" color.
Strong Down: Solid "down" color (e.g., red).
Weak Down: Lighter "down" color.
Simple indicators (without strength logic) use solid "up" or "down" colors.
Rows: Includes a header row, optional rows for each indicator (if enabled), and an optional total row.
4. Total Count Toggle
Toggle Option: "Use Advanced Counts" switches between two display modes for the total row:
Simple Mode (Off): Shows total "up" and "down" counts (e.g., "5 up, 3 down").
Advanced Mode (On): Breaks down counts into "Strong Up," "Weak Up," "Strong Down," and "Weak Down" (e.g., "Strong Up: 2, Weak Up: 3, Strong Down: 1, Weak Down: 2").
This flexibility caters to traders seeking either a quick summary or detailed insights.
5. Manual Calculations
For indicators not natively supported in Pine Script (e.g., TRIX, OBV, Chaikin Oscillator, Ultimate Oscillator), the script includes manual calculations to ensure full functionality.
How It Works
Direction Calculation:
Each indicator’s direction is computed based on its type (advanced for oscillators, simple for others).
Counters track "up," "down," "strong_up," "weak_up," "strong_down," and "weak_down."
Simple indicators contribute to "strong_up" (for "up") or "strong_down" (for "down") counts.
Table Generation:
The script calculates the number of rows based on included indicators and display options.
It builds the table in the user-specified position, populating it with indicator names and directions.
Colors reflect direction strength, enhancing visual interpretation.
Total Row:
If enabled, the total row reflects either simple or advanced counts, depending on the toggle setting.
Purpose
This script is ideal for traders who want a quick, customizable snapshot of momentum across multiple indicators. By distinguishing between strong and weak signals (for oscillators) and offering both simple and advanced summary options, it supports both high-level trend analysis and detailed market studies. Whether you’re a beginner looking for a basic "up/down" bias or an advanced trader analyzing signal strength, this tool adapts to your needs.
CVD Divergence Insights📘 CVD Divergence Insights – by Colicoid
Pine Script v6 | Volume Delta Divergence Oscillator with Spike Detection
⸻
🔍 Overview
CVD Divergence Insights is a volume-aware oscillator and divergence spike detector that helps you spot smart money activity, absorption, failed pressure, and hidden strength or weakness — even when price action alone gives little away.
It works by comparing normalized Cumulative Volume Delta (CVD) against normalized price movement, and optionally applying a volume-weighting layer to highlight when aggressive participation is truly behind the divergence. The result is a dynamic visual tool that identifies tension in the market, and helps you trade based on how that tension resolves.
⸻
🧠 Core Concept
• When price moves one way and CVD moves another, it reflects imbalance between aggression and result.
• Divergence is not a trigger — it’s a build-up of pressure.
• The real edge lies in the resolution of that pressure.
• Optional volume-weighting helps you ignore noise and focus on high-conviction moves only.
⸻
⚙️ How It Works
1. CVD Calculation
CVD is generated using lower-timeframe delta volume (buy vs. sell pressure), accumulated per bar.
2. Oscillator
A normalized divergence between the smoothed CVD and smoothed price.
3. Volume Weighting (optional)
Emphasizes divergences occurring on higher-than-normal volume, deprioritizes low-volume noise.
4. Signal Line (optional)
A short EMA of the oscillator to help track momentum shifts (hidden by default).
5. Divergence Spikes
Statistical spike detection using standard deviation — green/red dots highlight unusually large divergence activity.
⸻
🎛️ Inputs
Anchor Period
Higher timeframe where the CVD is accumulated and processed.
Lower Timeframe
Optional override for granularity of buy/sell volume data.
SMA Length
Used for smoothing both price and CVD before divergence is calculated.
Volume Weighted?
Enables adaptive weighting based on relative volume size.
Volume Normalization Length
Lookback period used to define what is “normal” volume.
Divergence Spike Threshold
StdDev-based threshold to detect abnormally large divergences.
Signal Line Length
Controls the EMA smoothing of the optional signal line (hidden by default).
⸻
📈 Trade Setup Example: Hidden Bullish Divergence
1. Price forms a higher low, but CVD forms a lower low — hidden bullish divergence.
2. This shows aggressive sellers are trying, but price is resilient — likely absorption.
3. You wait for a "convergent signal bar":
• A bullish candle with strong structure or body
• Confirmed by CVD starting to turn upward
4. That’s your trigger bar — the tension resolves upward.
⸻
🤝 Recommended Pairings
For best results, combine CVD Divergence Insights with the companion script:
🔗 Cumulative Volume Delta Line (also by Colicoid)
This lets you:
• See the raw CVD line and its SMA visually
• Spot standard and hidden divergences in price/CVD directly
• Use the Insights indicator to evaluate divergence quality and flag aggressive bull/bear behavior
• Use the same SMA length on both indicators for alignment
👉 Tip: To save screen space, drag the CVD Line indicator into the same panel as CVD Divergence Insights.
⸻
🧰 Why Use This?
• ✅ Catch absorption setups and failed pressure zones
• ✅ Filter out low-quality divergences using volume context
• ✅ Understand why price is hesitating or breaking out
• ✅ Add smart confirmation to breakout/reversal trades
• ✅ Align your execution with who’s actually in control
⸻
📎 Created by Colicoid
Built in Pine Script v6 for advanced price-volume analysis, with focus on effort vs result, market psychology, and smart money detection.
deepseek Smart RSIFunctions and Uses
Objective Signal Confirmation
This indicator transforms RSI from a subjective judgment tool into a more objective signal confirmation tool.
Reducing False Signals
By using the crossover of RSI_2 and RSI_EMA to confirm trends, it reduces potential false signals that might occur with traditional RSI.
Trading Signal Generation
Buy Signal: RSI_2 crosses above RSI_EMA
Sell Signal: RSI_2 crosses below RSI_EMA
Trend Confirmation: Visually displays the current trend through background colors and candlestick colors
Overbought/Oversold Judgment: Retains the traditional RSI's overbought/oversold area functionality
How to Use
Adding the Indicator
Add this indicator to your chart in TradingView
Parameter Settings
RSI Period 1 (default 14): Main RSI calculation period
RSI Period 2 (default 5): Short period RSI used for signal generation
Exponential Average Period (default 14): RSI_1's EMA period
Overbought/Oversold Values (default 70/30): Traditional RSI overbought/oversold thresholds
Enable Candlestick Trend: Whether to change candlestick colors based on signals
Enable Indicator Background Color: Whether to change background colors based on signals
Signal Interpretation
Green Area (Deep Cyan): Bullish signal, consider buying or holding
Red Area (Magenta): Bearish signal, consider selling or waiting
RSI enters overbought zone (>70): Market may be overheated, watch for potential pullbacks
RSI enters oversold zone (<30): Market may be overcooled, watch for potential rebounds
Setting Alerts
You can set alerts for when RSI_2 crosses RSI_EMA
Use Alt+A shortcut to set alerts
The advantage of this indicator is that it converts subjective judgments into more objective confirmation mechanisms, helping traders avoid making inconsistent decisions due to emotional influences. It's particularly suitable as a confirmation tool for medium to long-term trading strategies.