Moving Average Exponential//@version=5
indicator("ETH Scalping Strategy", overlay=true)
// Define the short-term and medium-term EMAs
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
// Define RSI
rsi = ta.rsi(close, 14)
// Define Buy and Sell conditions
buyCondition = ta.crossover(ema9, ema21) and rsi > 50
sellCondition = ta.crossunder(ema9, ema21) and rsi < 50
// Plot the EMAs on the chart
plot(ema9, color=color.green, title="EMA 9", linewidth=2)
plot(ema21, color=color.red, title="EMA 21", linewidth=2)
// Plot buy/sell signals as arrows on the chart
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
// Generate alerts based on buy/sell conditions
alertcondition(buyCondition, title="Buy Signal", message="ETH Buy Signal: EMA9 crossed above EMA21 and RSI > 50")
alertcondition(sellCondition, title="Sell Signal", message="ETH Sell Signal: EMA9 crossed below EMA21 and RSI < 50")
Индикаторы и стратегии
trade bang mongIndicator Name:
🔺 Key Swing Zones Based on Breakouts (Line-Based)
Short Description:
This indicator automatically detects and visualizes key swing highs and lows based on the principle of candle close breaking the wick of the previous candle, then classifies the current market trend as uptrend, downtrend, or neutral. It draws horizontal lines representing key zones and adds visual labels to help traders analyze market structure more clearly.
Vùng đỉnh đáy chính theo phá vỡ (dùng line)Indicator Name:
🔺 Key Swing Zones Based on Breakouts (Line-Based)
Short Description:
This indicator automatically detects and visualizes key swing highs and lows based on the principle of candle close breaking the wick of the previous candle, then classifies the current market trend as uptrend, downtrend, or neutral. It draws horizontal lines representing key zones and adds visual labels to help traders analyze market structure more clearly.
How It Works:
🔹 Reversal Signal Logic:
In an uptrend, if a candle closes below the previous candle's low, it marks a swing low.
In a downtrend, if a candle closes above the previous candle's high, it marks a swing high.
🔹 Structure Break Detection:
Price breaking above a key high → confirms an uptrend.
Price breaking below a key low → confirms a downtrend.
If price breaks a zone but doesn't form a new high/low → switches to neutral.
🔹 Visual Display:
Draws two horizontal lines: one at the key high, one at the key low.
Adds labels "Key High" or "Key Low" at the breakout points.
Zone color representation:
🟢 Green = Uptrend
🔴 Red = Downtrend
⚪ White = Neutral
Price × Volume Momentum (FSTO / RSI / Avg)decided to combine my PXVS and PXVR in to one script. user has the option to use FSTO, RSI, or the average between the two oscillators.
the oscillator components have been modified to range from -100 to +100 to express directional magnitude.
volume remains 0 to 100, so it can function as a direction-neutral amplifier.
The result is a bi-directional composite oscillator that:
>> Emphasizes congruent signals (e.g., strong price direction with strong volume).
>> Minimizes misleading or incongruent signals from high volume paired with neutral or conflicting price movement.
Ideal for identifying high-conviction breakouts and momentum divergences with volume support.
RSI EMA9 + WMA45The Relative Strength Index (RSI) is one of the most popular momentum oscillators used by traders. It's so widely adopted that every charting software package and professional trading system worldwide includes it as a core indicator. Not only is this indicator included in every charting package, but it's also highly likely to be part of the default settings in every system.
doublepattern_dachengLibrary "doublepattern_dacheng"
f_detect_top_bottom(x, sig, color_green, color_red, var_sequence, state)
Parameters:
x (int)
sig (bool)
color_green (color)
color_red (color)
var_sequence (array)
state (TopBottomState)
store
Fields:
dir (series int)
n (series int)
y (series float)
TopBottomState
Fields:
lpt (series int)
prev_lpt (series int)
pph (series float)
ppl (series float)
cpph (series float)
cppl (series float)
ln (series int)
hn (series int)
awaiting_DBC (series int)
awaiting_DTC (series int)
tthresh (series float)
bthresh (series float)
自定义类型定义说明(Type Definitions)
该库定义了三个核心类型(type),用于结构化处理双顶双底形态识别逻辑:
This library defines three custom types to structurally manage double top/bottom pattern detection logic:
store
TopBottomState
f_detect_top_bottom() 函数
// 引入库(请将 {version_code} 替换为具体版本号)
// Import the library (replace {version_code} with the actual version code)
import dachengsuper/doublepattern_dacheng/{version_code} as dp
// ====================== 以下为 M 顶 和 W 底 的检测 开始 ====================
// ====================== Start of M Top and W Bottom Detection ====================
// 用一个 store 类型的动态数组 sequence 保存最近的枢轴点(最多 3 个)
// A dynamic array of type `store` to store recent pivot points (up to 3 points)
var dp.store sequence = array.new()
// 初始化状态对象,用于跟踪当前和历史的顶部/底部状态
// Initialize a TopBottomState object to track current and historical top/bottom state
var dp.TopBottomState state = dp.TopBottomState.new(0, 0, na, na, na, na, na, na, 0, 0, 0.0, 0.0)
// 调用检测函数:检测是否形成了 M 顶 或 W 底
// Call the detection function to check for M Top or W Bottom patterns
= dp.f_detect_top_bottom(x, sig, green, red, sequence, state)
// ====================== M 顶 和 W 底 的检测 结束 ====================
// ====================== End of M Top and W Bottom Detection ====================
// 当 DTC 为 true 时,表示检测到双顶形态
// When DTC is true, it indicates a double top pattern is detected
// 当 DBC 为 true 时,表示检测到双底形态
// When DBC is true, it indicates a double bottom pattern is detected
// 示例:如果需要发送 webhook 信号,请加上 `barstate.isconfirmed` 判断,这样就不会重绘
// Example: To send a webhook signal, use `DTC and barstate.isconfirmed` to avoid repainting
Engulfing Swing Low Strategy Indicatorcisd with fvg entry model on the 1min this will help with finding the swing low and helping those struggling.
RSI- RSI 8 Level Indicator
- Finally, The Bullish and Bearish 8 Level Power Zone indicator with alerts on each level!
Customize the colors however you like and remember if you need to set alerts you can also do that in the alerts section of the indicator. Just make sure what level the alert is for, and always look out for regular divergence, hidden divergence, and exaggerated divergence using this indicator that goes along with the power zones. :)
- RSI Strategy
Trading Bullish & Bearish Power Zones using regular divergence, hidden divergence, and exaggerated divergence.
P.s.
90, 80, 50, 40 Bullish Power Zones in green
65, 55, 30, 20 Bearish Power Zones in red
Capital Risk OptimizerCapital Risk Optimizer 🛡️
The Capital Risk Optimizer is an educational tool designed to help traders study capital efficiency, risk management, and scaling strategies when using leverage.
This script calculates and visualizes essential metrics for managing leveraged positions, including:
Entry Price – The current market price.
Stop Loss Level – Automatically derived using the 30-bar lowest low minus 1 ATR (default: 14-period ATR), an approach designed to create a dynamic, volatility-adjusted stop loss.
Stop Loss Distance (%) – The percentage distance between entry and stop.
Maximum Safe Leverage – The highest leverage allowable without risking liquidation before your stop is reached.
Margin Required – The amount of collateral necessary to support the desired position size at the calculated leverage.
Position Size – The configurable notional value of your trade.
These outputs are presented in a clean, customizable table overlay so you can quickly understand how position sizing, volatility, and leverage interact.
By default, the script uses a 14-period ATR combined with the lowest low of the past 30 bars, providing an optimal balance between sensitivity and noise for defining stop placement. This methodology helps traders account for market volatility in a systematic way.
The Capital Risk Optimizer is particularly useful as a portfolio management tool, supporting traders who want to study how to scale into positions using risk-adjusted sizing and capital efficiency principles. It pairs best with backtested strategies, and does not directly produce signals of any kind.
How to Use:
Set your desired position size.
Adjust the ATR and lookback settings to fine-tune stop loss placement.
Study the resulting leverage and margin requirements in real time.
Use this information to simulate and visualize potential trade scenarios and capital allocation models.
Disclaimer:
This script is provided for educational and informational purposes only. It does not constitute financial advice and should not be relied upon for live trading decisions. Always do your own research and consult with a qualified professional before making any trading or investment decisions.
Objective Congestion Zones (Price Density)Automatically calculates congestion zones on multiple timezones and can be modified to add more zones
Smooth MTF CloudsThe smoothness of the "clouds" in the script you provided comes from the combination of plotting moving averages (typically EMA or SMA) and using the fill() function to visually create smooth, overlapping areas between two lines. Additionally, EMAs naturally create smoother curves as they respond to price changes in a lagged, less abrupt way compared to traditional plots.
Zero Clutter Scalper (ZCS) 🔒//@version=5
indicator("Zero Clutter Scalper (ZCS) 🔒", overlay=true)
// ==== SETTINGS ====
length = input.int(14, title="Momentum Length")
threshold = input.float(5, title="Momentum Threshold")
showSignals = input.bool(true, title="Show Buy/Sell Signals")
enableAlerts = input.bool(true, title="Enable Alerts")
// ==== MOMENTUM CALC ====
mom = close - close
mom_smooth = ta.ema(mom, 5)
// ==== PRICE ACTION CONFIRMATION ====
bullCandle = close > open and close > high
bearCandle = close < open and close < low
// ==== CONDITIONS ====
buyCond = mom_smooth > threshold and bullCandle
sellCond = mom_smooth < -threshold and bearCandle
// ==== PLOTTING ====
plotshape(showSignals and buyCond ? low : na, title="Buy Signal", location=location.belowbar, color=color.lime, style=shape.labelup, text="BUY")
plotshape(showSignals and sellCond ? high : na, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// ==== ALERTS ====
alertcondition(buyCond and enableAlerts, title="ZCS Buy Alert", message="ZCS Buy Signal on {{ticker}} ({{interval}})")
alertcondition(sellCond and enableAlerts, title="ZCS Sell Alert", message="ZCS Sell Signal on {{ticker}} ({{interval}})")
Key Levels - SubyMap key levels such as prior day close, 1 week high, 1 week low, prior day high, prior day low, current high and current low.
VWMA + ML RSI StrategyVWMA + ML RSI Strategy
This strategy combines the power of Volume-Weighted Moving Average (VWMA) with a Machine Learning-enhanced RSI to generate high-probability long entries.
✅ Buy Logic:
A buy signal is triggered when:
The candle closes above the VWMA
The ML RSI (smoothed using advanced moving averages) is above 60
If only one of the above conditions is met, the strategy waits for the second to confirm before entering.
❌ Sell Logic:
The position is closed when:
The candle closes below the VWMA, and
The ML RSI falls below 40
🎯 Risk Management:
Take Profit: 1.5% above entry
Stop Loss: 1.5% below entry
🤖 ML RSI Explanation:
The ML RSI is a refined version of the traditional RSI using smoothing techniques (like ALMA, EMA, etc.) to reduce noise and enhance responsiveness to price action. It helps filter out weak signals and improves trend confirmation.
🔧 Customization:
Adjustable VWMA length
Configurable ML RSI smoothing method, length, and ALMA sigma
Thresholds for entry/exit RSI levels
DIP BUYING by HAZEREAL BUY THE DIP - Educational Price Movement Indicator
This technical indicator is designed for educational purposes to help traders identify potential price reversal opportunities in equity markets, particularly focusing on NASDAQ-100 index tracking instruments and technology sector ETFs.
Key Features:
Monitors price movements relative to recent highs over customizable lookback periods
Identifies two distinct price decline thresholds: standard (5%+) and extreme (12.3%+)
Visual signals with triangular markers and background color zones
Real-time data table showing current metrics and status
Customizable alert system with webhook-ready JSON formatting
Clean overlay design that doesn't obstruct price action
How It Works:
The indicator tracks the highest price within a specified lookback period and calculates the percentage decline from that high. When price drops below the minimum threshold, it generates visual buy signals. The extreme threshold triggers enhanced alerts for more significant market movements.
Best Use Cases:
Educational analysis of market volatility patterns
Identifying potential support levels during market corrections
Studying historical price behavior around significant declines
Risk management and position sizing education
Important Note: This is a technical analysis tool for educational purposes only. All trading decisions should be based on comprehensive analysis and appropriate risk management. Past performance does not guarantee future results.
ICT Daily BiasSimple indicator for Daily Chart using ICT principles to suggest Reversal or Continuation, with next day suggested Draw on Liquidity.
USAGE: In AM session, go into 1m chart / Replay mode and back up to 11:59pm of prior trading day for projected draw on liquidity for current day trading session.
PRO Investing - ATR Quant.algo by proinvesting.coATR Quant.algo by PROInvesting.co
A powerful and visually intuitive trend-following system designed to capture high-momentum moves and avoid market chop.
Quant.algo combines a dynamic trend-following EMA with multi-level ATR volatility zones to provide a complete trading framework with clear entry signals, stop-loss levels, and take-profit targets.
Key Features:
Dynamic Trend EMA: A thick baseline that turns Green for uptrends and Red for downtrends. Only trade in the direction of the trend.
Multi-Level ATR Zones: Automatically adapting channels that define ideal zones for entries, stops, and profit-taking.
Volatility Filter: A smart filter that tints the background when volatility is expanding, helping you avoid sideways markets and only trade when the market is ready to move.
Pullback Entry Signals: Clear BUY and SELL arrows appear after a pullback to the EMA, providing high-probability entry points.
Simple Trading Rules:
Go LONG: When the baseline is Green, wait for a Green BUY arrow, and aim for the upper TP Zone. Place your stop below the orange Stop Zone line.
Go SHORT: When the baseline is Red, wait for a Red SELL arrow, and aim for the lower TP Zone. Place your stop above the orange Stop Zone line.
Best For:
Traders: Swing Traders & Position Traders.
Timeframes: 4-Hour (H4) and Daily (D1).
Assets: Trending markets (Indices, Forex, Crypto).
Relative Strength Suite [BLC]📊 Relative Strength Suite
A powerful, all-in-one relative strength toolkit for traders and analysts. Whether you're a trend follower, momentum trader, or sector rotator, this script gives you the flexibility to analyze and screen assets using three distinct RS methodologies—all in one clean interface.
🔍 What It Does
Flexible Relative Strength allows you to compare any asset to a benchmark (like SP:SPX , NASDAQ:QQQ , AMEX:IWM , etc.) using one of four modes:
📈 Relative Strength – Classic price ratio comparison
📘 Dorsey Relative Strength – Smoothed trend-based RS using EMA
📒 Mansfield Relative Strength – Momentum-based RS normalized to its own average
🧮 Screener Mode – Load Indicator into Pine Screener to see all 3 values.
🛠️ Key Features & Settings
🧩 Relative Strength
Comparison Symbol: Select the ticker you want to use as a benchmark.
Highlights new highs/lows in Relative Strength with dynamic line coloring:
🟢 Green = New high (outperformance)
🔴 Red = New low (underperformance)
Optional moving average overlay (SMA, EMA, WMA, HMA) for trend smoothing.
✅ Use Case: Identify when a stock is gaining strength relative to the market or sector.
📘 2. Dorsey RS (Smoothed Trend)
Uses an EMA of the RS ratio to smooth out noise.
Rising Dorsey RS = consistent outperformance.
Falling Dorsey RS = consistent underperformance.
✅ Use Case: Spot long-term relative trends regardless of price volatility.
📒 3. Mansfield RS (Performance Momentum)
Compares RS ratio to its own long-term SMA (default 200).
Values above 0 = outperforming the benchmark.
Values below 0 = underperforming.
✅ Use Case: Ideal for momentum traders and Stan Weinstein-style stage analysis.
🧮 4. Screener Mode
Not for use on your chart. This is only to use in TradingView's Pine Screener.
Displays all three RS lines simultaneously.
Includes all 3 modes to act as screener signals
🛠️How to Use Screener Mode
Add this indicator to your favorites list.
Open Pine Screener and select this indicator.
Select your timeframe.
Click Settings & Change Strength Type to Screener > Click Apply
Hit Scan!
New High Low Signal: Finds stocks making a new RS high (1) or low (-1) over your lookback period.
Dorsey Trend Signal: Finds stocks where the smoothed RS trend is rising (1) or falling (-1).
Mansfield Zone Signal: Finds stocks where momentum is in the positive zone (1) or negative zone (-1)
✅ Use Case: Quickly scan multiple assets for relative strength breakouts, trend shifts, or momentum zones.
🧪 Pro Tip
Combine this indicator with volume, price structure, or moving averages to confirm breakouts and trend strength. Use Screener Mode on a watchlist to identify top RS candidates in seconds.
To clean up your screener table, click the column settings icon ( ⋮ ) and uncheck any columns you don't need to see. You can still filter by them even if they are hidden.
📝 Credits & Notes
Inspired by classic RS methods (including Dorsey and Mansfield).
Final, production-ready version with tooltips, labels, and screener outputs.
For educational and informational purposes—always test before live trading!
Let me know if you see any bugs, miscalculations, or any features you'd like to see added to it!
Williams Alligator Price vs Jaw StrategyWilliams Alligator using Price crossing over Jaw to go long and Price crossing under Jaw to close
Floor and Roof Indicator with SignalsFloor and Roof Indicator with Trading Signals
A comprehensive support and resistance indicator that identifies premium and discount zones with automated signal generation.
Key Features:
Dynamic Support/Resistance Zones: Calculates floor (support) and roof (resistance) levels using price action and volatility
Premium/Discount Zone Identification: Highlights areas where price may find resistance or support
Customizable Signal Frequency: Control how often signals are displayed (every Nth occurrence)
Visual Signal Table: Optional table showing the last 5 long and short signal prices
Multiple Timeframe Compatibility: Works across all timeframes
Technical Details:
Uses ATR-based calculations for dynamic zone width adjustment
Combines Bollinger Bands with highest/lowest price analysis
Smoothing options for cleaner signal generation
Fully customizable colors and display options
How to Use:
Floor Zones (Blue): Potential support areas where long positions may be considered
Roof Zones (Pink): Potential resistance areas where short positions may be considered
Signal Crosses: Visual markers when price interacts with key levels
Signal Table: Track recent signal prices for analysis
Settings:
Length: Period for calculations (default: 200)
Smooth: Smoothing factor for cleaner signals
Zone Width: Adjust the thickness of support/resistance zones
Signal Frequency: Control signal display frequency
Visual Options: Customize colors and table position
Alerts Available:
Long signal alerts when price touches discount zones
Short signal alerts when price reaches premium zones
Educational Purpose: This indicator is designed to help traders identify potential support and resistance areas. Always combine with proper risk management and additional analysis.
This description focuses on the technical aspects and educational value while avoiding any language that could be interpreted as financial advice or guaranteed profits.
Micro Trend Start Signal (Up & Down)To compliment fast trends in the market, this strategy should be tried and tested on the 1 minute strategy. The 2nd alerts work also very well.
(STC) with Buy/Sell
PS! This is ment to be used as compliment and confirmation for indicator "UT Bot + LinReg Candles (Dual Sensitivity) by PDK1977
Schaff Trend Cycle (STC) Oscillator with Buy/Sell Signals
The Schaff Trend Cycle (STC) is a fast and reliable oscillator developed by Doug Schaff, designed to improve on traditional cycle indicators like MACD and Stochastic. The STC indicator helps you identify trend direction, potential reversals, and entry/exit points with greater speed and accuracy.
Key Features:
Clear, Color-Coded Line: The STC line turns green when rising and red when falling, making trend changes easy to spot.
Buy/Sell Signals:
Buy: When the STC line crosses up over the 25 level, a green triangle appears, suggesting bullish momentum.
Sell: When the STC line crosses down under the 75 level, a red triangle appears, highlighting potential bearish momentum.
Levels: 25 and 75 are highlighted to mark overbought and oversold regions.
Separate Pane: Designed to be displayed in its own subwindow below the main chart, keeping your price action clean and uncluttered.
How to Use:
Buy Signal: Watch for the STC to cross above 25 for possible long entries.
Sell Signal: Watch for the STC to cross below 75 for possible short entries.
The indicator works on all timeframes and is suitable for trending markets, swing trading, and scalping strategies.
Tip: Combine STC signals with other trend or volume indicators for added confirmation and more robust trading decisions.
Candlesticks MTF + Prev Daily RangeCandlesticks MTF + Previous Daily Range
This TradingView script displays higher timeframe candlesticks on a lower timeframe chart and optionally projects the previous day's high, low, and close levels. The user can define the timeframe from which the candles are taken, typically a higher timeframe like daily. A specified number of historical candles are drawn on the chart using boxes for candle bodies and lines for wicks. The color of each candle indicates its direction: bullish candles use a "long" color (default teal), and bearish candles use a "short" color (default red).
An optional feature allows the projection of the previous daily range. When enabled, the script draws horizontal lines extending across the chart to mark the high, low, and close of the second most recent higher timeframe candle. These lines are color-coded for easy visual identification and can help identify potential support and resistance zones.
All visual elements, including the number of candles, their width, and the colors of candles and projection lines, can be customized through the settings. The script dynamically updates in real time, clearing outdated boxes and lines to avoid visual clutter. This makes it a useful tool for traders who want to incorporate multi-timeframe analysis and key price levels directly into their intraday charting.