[COG]StochRSI Zenith📊 StochRSI Zenith
This indicator combines the traditional Stochastic RSI with enhanced visualization features and multi-timeframe analysis capabilities. It's designed to provide traders with a comprehensive view of market conditions through various technical components.
🔑 Key Features:
• Advanced StochRSI Implementation
- Customizable RSI and Stochastic calculation periods
- Multiple moving average type options (SMA, EMA, SMMA, LWMA)
- Adjustable signal line parameters
• Visual Enhancement System
- Dynamic wave effect visualization
- Energy field display for momentum visualization
- Customizable color schemes for bullish and bearish signals
- Adaptive transparency settings
• Multi-Timeframe Analysis
- Higher timeframe confirmation
- Synchronized market structure analysis
- Cross-timeframe signal validation
• Divergence Detection
- Automated bullish and bearish divergence identification
- Customizable lookback period
- Clear visual signals for confirmed divergences
• Signal Generation Framework
- Price action confirmation
- SMA-based trend filtering
- Multiple confirmation levels for reduced noise
- Clear entry signals with customizable display options
📈 Technical Components:
1. Core Oscillator
- Base calculation: 13-period RSI (adjustable)
- Stochastic calculation: 8-period (adjustable)
- Signal lines: 5,3 smoothing (adjustable)
2. Visual Systems
- Wave effect with three layers of visualization
- Energy field display with dynamic intensity
- Reference bands at 20/30/50/70/80 levels
3. Confirmation Mechanisms
- SMA trend filter
- Higher timeframe alignment
- Price action validation
- Divergence confirmation
⚙️ Customization Options:
• Visual Parameters
- Wave effect intensity and speed
- Energy field sensitivity
- Color schemes for bullish/bearish signals
- Signal display preferences
• Technical Parameters
- All core calculation periods
- Moving average types
- Divergence detection settings
- Signal confirmation criteria
• Display Settings
- Chart and indicator signal placement
- SMA line visualization
- Background highlighting options
- Label positioning and size
🔍 Technical Implementation:
The indicator combines several advanced techniques to generate signals. Here are key components with code examples:
1. Core StochRSI Calculation:
// Base RSI calculation
rsi = ta.rsi(close, rsi_length)
// StochRSI transformation
stochRSI = ((ta.highest(rsi, stoch_length) - ta.lowest(rsi, stoch_length)) != 0) ?
(100 * (rsi - ta.lowest(rsi, stoch_length))) /
(ta.highest(rsi, stoch_length) - ta.lowest(rsi, stoch_length)) : 0
2. Signal Generation System:
// Core signal conditions
crossover_buy = crossOver(sk, sd, cross_threshold)
valid_buy_zone = sk < 30 and sd < 30
price_within_sma_bands = close <= sma_high and close >= sma_low
// Enhanced signal generation
if crossover_buy and valid_buy_zone and price_within_sma_bands and htf_allows_long
if is_bullish_candle
long_signal := true
else
awaiting_bull_confirmation := true
3. Multi-Timeframe Analysis:
= request.security(syminfo.tickerid, mtf_period,
)
The HTF filter looks at a higher timeframe (default: 4H) to confirm the trend
It only allows:
Long trades when the higher timeframe is bullish
Short trades when the higher timeframe is bearish
📈 Trading Application Guide:
1. Signal Identification
• Oversold Opportunities (< 30 level)
- Look for bullish crosses of K-line above D-line
- Confirm with higher timeframe alignment
- Wait for price action confirmation (bullish candle)
• Overbought Conditions (> 70 level)
- Watch for bearish crosses of K-line below D-line
- Verify higher timeframe condition
- Confirm with bearish price action
2. Divergence Trading
• Bullish Divergence
- Price makes lower lows while indicator makes higher lows
- Most effective when occurring in oversold territory
- Use with support levels for entry timing
• Bearish Divergence
- Price makes higher highs while indicator shows lower highs
- Most reliable in overbought conditions
- Combine with resistance levels
3. Wave Effect Analysis
• Strong Waves
- Multiple wave lines moving in same direction indicate momentum
- Wider wave spread suggests increased volatility
- Use for trend strength confirmation
• Energy Field
- Higher intensity in trading zones suggests stronger moves
- Use for momentum confirmation
- Watch for energy field convergence with price action
The energy field is like a heat map that shows momentum strength
It gets stronger (more visible) when:
Price is in oversold (<30) or overbought (>70) zones
The indicator lines are moving apart quickly
A strong signal is forming
Think of it as a "strength meter" - the more visible the energy field, the stronger the potential move
4. Risk Management Integration
• Entry Confirmation
- Wait for all signal components to align
- Use higher timeframe for trend direction
- Confirm with price action and SMA positions
• Stop Loss Placement
- Consider placing stops beyond recent swing points
- Use ATR for dynamic stop calculation
- Account for market volatility
5. Position Management
• Partial Profit Taking
- Consider scaling out at overbought/oversold levels
- Use wave effect intensity for exit timing
- Monitor energy field for momentum shifts
• Trade Duration
- Short-term: Use primary signals in trading zones
- Swing trades: Focus on divergence signals
- Position trades: Utilize higher timeframe signals
⚠️ Important Usage Notes:
• Avoid:
- Trading against strong trends
- Relying solely on single signals
- Ignoring higher timeframe context
- Over-leveraging based on signals
Remember: This tool is designed to assist in analysis but should never be used as the sole decision-maker for trades. Always maintain proper risk management and combine with other forms of analysis.
Indicadores y estrategias
TASC 2025.03 A New Solution, Removing Moving Average Lag█ OVERVIEW
This script implements a novel technique for removing lag from a moving average, as introduced by John Ehlers in the "A New Solution, Removing Moving Average Lag" article featured in the March 2025 edition of TASC's Traders' Tips .
█ CONCEPTS
In his article, Ehlers explains that the average price in a time series represents a statistical estimate for a block of price values, where the estimate is positioned at the block's center on the time axis. In the case of a simple moving average (SMA), the calculation moves the analyzed block along the time axis and computes an average after each new sample. Because the average's position is at the center of each block, the SMA inherently lags behind price changes by half the data length.
As a solution to removing moving average lag, Ehlers proposes a new projected moving average (PMA) . The PMA smooths price data while maintaining responsiveness by calculating a projection of the average using the data's linear regression slope.
The slope of linear regression on a block of financial time series data can be expressed as the covariance between prices and sample points divided by the variance of the sample points. Ehlers derives the PMA by adding this slope across half the data length to the SMA, creating a first-order prediction that substantially reduces lag:
PMA = SMA + Slope * Length / 2
In addition, the article includes methods for calculating predictions of the PMA and the slope based on second-order and fourth-order differences. The formulas for these predictions are as follows:
PredictPMA = PMA + 0.5 * (Slope - Slope ) * Length
PredictSlope = 1.5 * Slope - 0.5 * Slope
Ehlers suggests that crossings between the predictions and the original values can help traders identify timely buy and sell signals.
█ USAGE
This indicator displays the SMA, PMA, and PMA prediction for a specified series in the main chart pane, and it shows the linear regression slope and prediction in a separate pane. Analyzing the difference between the PMA and SMA can help to identify trends. The differences between PMA or slope and its corresponding prediction can indicate turning points and potential trade opportunities.
The SMA plot uses the chart's foreground color, and the PMA and slope plots are blue by default. The plots of the predictions have a green or red hue to signify direction. Additionally, the indicator fills the space between the SMA and PMA with a green or red color gradient based on their differences:
Users can customize the source series, data length, and plot colors via the inputs in the "Settings/Inputs" tab.
█ NOTES FOR Pine Script® CODERS
The article's code implementation uses a loop to calculate all necessary sums for the slope and SMA calculations. Ported into Pine, the implementation is as follows:
pma(float src, int length) =>
float PMA = 0., float SMA = 0., float Slope = 0.
float Sx = 0.0 , float Sy = 0.0
float Sxx = 0.0 , float Syy = 0.0 , float Sxy = 0.0
for count = 1 to length
float src1 = src
Sx += count
Sy += src
Sxx += count * count
Syy += src1 * src1
Sxy += count * src1
Slope := -(length * Sxy - Sx * Sy) / (length * Sxx - Sx * Sx)
SMA := Sy / length
PMA := SMA + Slope * length / 2
However, loops in Pine can be computationally expensive, and the above loop's runtime scales directly with the specified length. Fortunately, Pine's built-in functions often eliminate the need for loops. This indicator implements the following function, which simplifies the process by using the ta.linreg() and ta.sma() functions to calculate equivalent slope and SMA values efficiently:
pma(float src, int length) =>
float Slope = ta.linreg(src, length, 0) - ta.linreg(src, length, 1)
float SMA = ta.sma(src, length)
float PMA = SMA + Slope * length * 0.5
To learn more about loop elimination in Pine, refer to this section of the User Manual's Profiling and optimization page.
ايجابي بالشموع//@version=5
indicator("Metastock", overlay=true)
// شرط الشراء
buyCondition = open > close and low < low and close > close and close >= open and close <= high and close <= high and close > high
// شرط البيع (عكس شرط الشراء)
sellCondition = open < close and low > low and close < close and close <= open and close >= low and close >= low and close < low
// إضافة ملصق عند تحقق شرط الشراء (أسفل الشمعة)
if buyCondition
label.new(bar_index, low, "ايجابي", color=color.green, textcolor=color.white, style=label.style_label_up, yloc=yloc.belowbar)
// إضافة ملصق عند تحقق شرط البيع (أعلى الشمعة)
if sellCondition
label.new(bar_index, high, "سلبي", color=color.red, textcolor=color.white, style=label.style_label_down, yloc=yloc.abovebar)
Multi-Timeframe Trend StatusThis Multi-Timeframe Trend Status indicator tracks market trends across four timeframes ( by default, 65-minute, 240-minute, daily, and monthly). It uses a Volatility Stop based on the Average True Range (ATR) to determine the trend direction. The ATR is multiplied by a user-adjustable multiplier to create a dynamic buffer zone that filters out market noise.
The indicator tracks the volatility stop and trend direction for each timeframe. In an uptrend, the stop trails below the price, adjusting upward, and signals a downtrend if the price falls below it. In a downtrend, the stop trails above the price, moving down with the market, and signals an uptrend if the price rises above it.
Two input parameters allow for customization:
ATR Length: Defines the period for ATR calculation.
ATR Multiplier: Adjusts the sensitivity of trend changes.
This setup lets traders align short-term decisions with long-term market context and spot potential trading opportunities or reversals.
FVG Reversal SentinelFVG Reversal Sentinel
A Fair Value Gap (FVG) is an area on a price chart where there is a gap between candles. It indicates an imbalance in the market due to rapid price movement. It represents untraded price levels caused by strong buying or selling pressure.
FVGs are crucial in price action trading as they highlight the difference between the current market price of an asset and its fair value. Traders use these gaps to identify potential trading opportunities, as they often indicate areas where the market may correct itself.
This indicator will overlap multiple timeframes FVGs over the current timeframe to help traders anticipate and plan their trades.
Features
Up to 5 different timeframes can be displayed on a chart
Hide the lower timeframes FVGs to get a clear view in a custom timeframe
Configurable colors for bullish and bearish FVGs
Configurable borders for the FVG boxes
Configurable labels for the different timeframes you use
Show or hide mitigated FVGs to declutter the chart
FVGs are going to be displayed only when the candle bar closes
FVGs are going to be mitigated only when the body of the candle closes above or below the FVG area
No repainting
Settings
TIMEFRAMES
This indicator provides the ability to select up to 5 timeframes. These timeframes are based on the trader's timeframes including any custom timeframes.
Select the desired timeframe from the options list
Add the label text you would like to show for the selected timeframe
Check or uncheck the box to display or hide the timeframe from your chart
FVG SETTINGS
Control basic settings for the FVGs
Length of boxes: allows you to select the length of the box that is going to be displayed for the FVGs
Delete boxes after fill?: allows you to show or hide mitigated FVGs on your chart
Hide FVGs lower than enabled timeframes?: allows you to show or hide lower timeframe FVGs on your chart. Example - You are in a 15 minutes timeframe chart, if you choose to hide lower timeframe FVGs you will not be able to see 5 minutes FVG defined in your Timeframes Settings, only 15 minutes or higher timeframe FVGs will be displayed on your chart
BOX VISUALS
Allows you to configure the color and opacity of the bullish and bearish FVGs boxes.
Bullish FVG box color: the color and opacity of the box for the bullish FVGs
Bearish FVG box color: the color and opacity of the box for the bearish FVGs
LABELS VISUALS
Allows you to configure the style of the boxes labels
Bullish FVG labels color: the color for bullish labels
Bearish FVG labels color: the color for bearish labels
Labels size: the size of the text displayed in the labels
Labels position: the position of the label inside the FVGs boxes (right, left or center)
BORDER VISUALS
Allows you to configure the border style of the FVGs boxes
Border width: the width of the border (the thickness)
Bullish FVG border color: the color and the opacity of the bullish box border
Bearish FVG border color: the color and the opacity of the bearish box border
Once desired settings have been achieved, the settings can be saved as default from the bottom left of the indicator settings page for future use.
Dynamic 2025this indicator is use for all members .
this indicator for use scalping.
this indicator for use interaday.
this indicator for use Swing Trading.
this indicator for use investment.
join for more profitable indicator please join me in teligram group
@profitnifty50
AI NEWThese is an gann based indicatore calculate gann levels on current day open and give buy and sell signal alng with gann levels which allow us to see gann levels in chart
Revenue & Profit GrowthA simple yet powerful financial tracker that helps you identify fundamental growth trends by visualizing quarterly and TTM (Trailing Twelve Months) revenue and profit data. The script combines bar and line visualizations with a dynamic growth table to provide comprehensive insights into a company's financial performance at a glance.
A business has many metrics, but revenue and profit growths - I would argue - are the primordial ones.
Why is this unique? It overlays profit and revenues in one graph and provides QoQ and YoY growth rates.
Features
Quarterly performance bars overlaid with TTM trend lines for both revenue and profit metrics
Automatic calculation of Year-over-Year (YoY) and Quarter-over-Quarter (QoQ) growth rates
Color-coded visualization: blue for revenue, green/red for profits based on positive/negative values
Alerts for revenue and profit changes
Multi-Indicator Signals with Selectable Options by DiGetMulti-Indicator Signals with Selectable Options
Script Overview
This Pine Script is a multi-indicator trading strategy designed to generate buy/sell signals based on combinations of popular technical indicators: RSI (Relative Strength Index) , CCI (Commodity Channel Index) , and Stochastic Oscillator . The script allows you to select which combination of signals to display, making it highly customizable and adaptable to different trading styles.
The primary goal of this script is to provide clear and actionable entry/exit points by visualizing buy/sell signals with arrows , labels , and vertical lines directly on the chart. It also includes input validation, dynamic signal plotting, and clutter-free line management to ensure a clean and professional user experience.
Key Features
1. Customizable Signal Types
You can choose from five signal types:
RSI & CCI : Combines RSI and CCI signals for confirmation.
RSI & Stochastic : Combines RSI and Stochastic signals.
CCI & Stochastic : Combines CCI and Stochastic signals.
RSI & CCI & Stochastic : Requires all three indicators to align for a signal.
All Signals : Displays individual signals from each indicator separately.
This flexibility allows you to test and use the combination that works best for your trading strategy.
2. Clear Buy/Sell Indicators
Arrows : Buy signals are marked with upward arrows (green/lime/yellow) below the candles, while sell signals are marked with downward arrows (red/fuchsia/gray) above the candles.
Labels : Each signal is accompanied by a label ("BUY" or "SELL") near the arrow for clarity.
Vertical Lines : A vertical line is drawn at the exact bar where the signal occurs, extending from the low to the high of the candle. This ensures you can pinpoint the exact entry point without ambiguity.
3. Dynamic Overbought/Oversold Levels
You can customize the overbought and oversold levels for each indicator:
RSI: Default values are 70 (overbought) and 30 (oversold).
CCI: Default values are +100 (overbought) and -100 (oversold).
Stochastic: Default values are 80 (overbought) and 20 (oversold).
These levels can be adjusted to suit your trading preferences or market conditions.
4. Input Validation
The script includes built-in validation to ensure that oversold levels are always lower than overbought levels for each indicator. If the inputs are invalid, an error message will appear, preventing incorrect configurations.
5. Clean Chart Design
To avoid clutter, the script dynamically manages vertical lines:
Only the most recent 50 buy/sell lines are displayed. Older lines are automatically deleted to keep the chart clean.
Labels and arrows are placed strategically to avoid overlapping with candles.
6. ATR-Based Offset
The vertical lines and labels are offset using the Average True Range (ATR) to ensure they don’t overlap with the price action. This makes the signals easier to see, especially during volatile market conditions.
7. Scalable and Professional
The script uses arrays to manage multiple vertical lines, ensuring scalability and performance even when many signals are generated.
It adheres to Pine Script v6 standards, ensuring compatibility and reliability.
How It Works
Indicator Calculations :
The script calculates the values of RSI, CCI, and Stochastic Oscillator based on user-defined lengths and smoothing parameters.
It then checks for crossover/crossunder conditions relative to the overbought/oversold levels to generate individual signals.
Combined Signals :
Depending on the selected signal type, the script combines the individual signals logically:
For example, a "RSI & CCI" buy signal requires both RSI and CCI to cross into their respective oversold zones simultaneously.
Signal Plotting :
When a signal is generated, the script:
Plots an arrow (upward for buy, downward for sell) at the corresponding bar.
Adds a label ("BUY" or "SELL") near the arrow for clarity.
Draws a vertical line extending from the low to the high of the candle to mark the exact entry point.
Line Management :
To prevent clutter, the script stores up to 50 vertical lines in arrays (buy_lines and sell_lines). Older lines are automatically deleted when the limit is exceeded.
Why Use This Script?
Versatility : Whether you're a scalper, swing trader, or long-term investor, this script can be tailored to your needs by selecting the appropriate signal type and adjusting the indicator parameters.
Clarity : The combination of arrows, labels, and vertical lines ensures that signals are easy to spot and interpret, even in fast-moving markets.
Customization : With adjustable overbought/oversold levels and multiple signal options, you can fine-tune the script to match your trading strategy.
Professional Design : The script avoids clutter by limiting the number of lines displayed and using ATR-based offsets for better visibility.
How to Use This Script
Add the Script to Your Chart :
Copy and paste the script into the Pine Editor in TradingView.
Save and add it to your chart.
Select Signal Type :
Use the "Signal Type" dropdown menu to choose the combination of indicators you want to use.
Adjust Parameters :
Customize the lengths of RSI, CCI, and Stochastic, as well as their overbought/oversold levels, to match your trading preferences.
Interpret Signals :
Look for green arrows and "BUY" labels for buy signals, and red arrows and "SELL" labels for sell signals.
Vertical lines will help you identify the exact bar where the signal occurred.
Tips for Traders
Backtest Thoroughly : Before using this script in live trading, backtest it on historical data to ensure it aligns with your strategy.
Combine with Other Tools : While this script provides reliable signals, consider combining it with other tools like support/resistance levels or volume analysis for additional confirmation.
Avoid Overloading the Chart : If you notice too many signals, try tightening the overbought/oversold levels or switching to a combined signal type (e.g., "RSI & CCI & Stochastic") for fewer but higher-confidence signals.
Double ZigZag with HHLL – Advanced Versionاین اندیکاتور نسخه بهبودیافتهی Double ZigZag with HHLL است که یک زیگزاگ سوم به آن اضافه شده تا تحلیل روندها دقیقتر شود. در این نسخه، قابلیتهای جدیدی برای شناسایی سقفها و کفهای مهم (HH, LL, LH, HL) و نمایش تغییر جهت روندها وجود دارد.
ویژگیهای جدید در این نسخه:
✅ اضافه شدن زیگزاگ سوم برای دقت بیشتر در تحلیل روند
✅ بهینهسازی تشخیص HH (Higher High) و LL (Lower Low)
✅ بهبود کدنویسی و بهینهسازی پردازش دادهها
✅ تنظیمات پیشرفته برای تغییر رنگ و استایل خطوط زیگزاگ
✅ نمایش بهتر نقاط بازگشتی با Labelهای هوشمند
نحوه استفاده:
این اندیکاتور برای تحلیل روندها و شناسایی نقاط بازگشتی در نمودار استفاده میشود.
کاربران میتوانند دورههای مختلف زیگزاگ را تنظیم کنند تا حرکات قیمت را در تایمفریمهای مختلف بررسی کنند.
برچسبهای HH, LL, LH, HL نقاط مهم بازگشتی را نمایش میدهند.
Double ZigZag with HHLL – Advanced Version
This indicator is an enhanced version of Double ZigZag with HHLL, now featuring a third ZigZag to improve trend analysis accuracy. This version includes improved High-High (HH), Low-Low (LL), Lower-High (LH), and Higher-Low (HL) detection and better visualization of trend direction changes.
New Features in This Version:
✅ Third ZigZag added for more precise trend identification
✅ Improved detection of HH (Higher High) and LL (Lower Low)
✅ Optimized code for better performance and data processing
✅ Advanced customization options for ZigZag colors and styles
✅ Smart labeling of key turning points
How to Use:
This indicator helps analyze trends and identify key reversal points on the chart.
Users can adjust different ZigZag periods to track price movements across various timeframes.
Labels such as HH, LL, LH, HL highlight significant market swings.
スイングハイ/ローの水平線(EMAトリガー)//@version=5
indicator("スイングハイ/ローの水平線(EMAトリガー)", overlay=true, max_lines_count=500)
//─────────────────────────────
//【入力パラメータ】
//─────────────────────────────
pivotPeriod = input.int(title="Pivot期間(左右バー数)", defval=10, minval=1)
emaPeriod = input.int(title="EMA期間", defval=20, minval=1)
lineColorHigh = input.color(title="スイングハイ水平線の色", defval=color.red)
lineColorLow = input.color(title="スイングロー水平線の色", defval=color.green)
lineWidth = input.int(title="水平線の太さ", defval=2, minval=1, maxval=10)
displayBars = input.int(title="表示する過去ローソク足数", defval=200, minval=1)
//─────────────────────────────
//【EMAの計算&プロット】
//─────────────────────────────
emaValue = ta.ema(close, emaPeriod)
plot(emaValue, color=color.orange, title="EMA")
//─────────────────────────────
//【Pivot(スイングハイ/ロー)の検出&マーカー表示】
//─────────────────────────────
pivotHighVal = ta.pivothigh(high, pivotPeriod, pivotPeriod)
pivotLowVal = ta.pivotlow(low, pivotPeriod, pivotPeriod)
plotshape(pivotHighVal, title="スイングハイ", style=shape.triangledown, location=location.abovebar, color=lineColorHigh, size=size.tiny, offset=-pivotPeriod)
plotshape(pivotLowVal, title="スイングロー", style=shape.triangleup, location=location.belowbar, color=lineColorLow, size=size.tiny, offset=-pivotPeriod)
//─────────────────────────────
//【水平線(pivotライン)管理用の配列定義】
//─────────────────────────────
// 各ピボットに対して、作成した水平線オブジェクト、開始バー、ピボット価格、ピボット種類、確定フラグを保持
var line pivotLines = array.new_line()
var int pivotLineBars = array.new_int()
var float pivotLinePrices = array.new_float()
var int pivotLineTypes = array.new_int() // 1: スイングハイ, -1: スイングロー
var bool pivotLineFinaled = array.new_bool() // EMA条件で確定済みかどうか
//─────────────────────────────
//【新たなPivot発生時に水平線を作成】
//─────────────────────────────
if not na(pivotHighVal)
pivotBar = bar_index - pivotPeriod
newLine = line.new(pivotBar, pivotHighVal, pivotBar, pivotHighVal, extend=extend.none, color=lineColorHigh, width=lineWidth)
array.push(pivotLines, newLine)
array.push(pivotLineBars, pivotBar)
array.push(pivotLinePrices, pivotHighVal)
array.push(pivotLineTypes, 1) // 1:スイングハイ
array.push(pivotLineFinaled, false)
if not na(pivotLowVal)
pivotBar = bar_index - pivotPeriod
newLine = line.new(pivotBar, pivotLowVal, pivotBar, pivotLowVal, extend=extend.none, color=lineColorLow, width=lineWidth)
array.push(pivotLines, newLine)
array.push(pivotLineBars, pivotBar)
array.push(pivotLinePrices, pivotLowVal)
array.push(pivotLineTypes, -1) // -1:スイングロー
array.push(pivotLineFinaled, false)
//─────────────────────────────
//【古い水平線の削除:指定過去ローソク足数より前のラインを削除】
//─────────────────────────────
if array.size(pivotLines) > 0
while array.size(pivotLines) > 0 and (bar_index - array.get(pivotLineBars, 0) > displayBars)
line.delete(array.get(pivotLines, 0))
array.remove(pivotLines, 0)
array.remove(pivotLineBars, 0)
array.remove(pivotLinePrices, 0)
array.remove(pivotLineTypes, 0)
array.remove(pivotLineFinaled, 0)
//─────────────────────────────
//【各バーで、未確定の水平線を更新】
//─────────────────────────────
if array.size(pivotLines) > 0
for i = 0 to array.size(pivotLines) - 1
if not array.get(pivotLineFinaled, i)
pivotPrice = array.get(pivotLinePrices, i)
pivotType = array.get(pivotLineTypes, i)
startBar = array.get(pivotLineBars, i)
if bar_index >= startBar
lineObj = array.get(pivotLines, i)
line.set_x2(lineObj, bar_index)
// スイングハイの場合:EMAがピボット価格を上回ったら確定
if pivotType == 1 and emaValue > pivotPrice
line.set_x2(lineObj, bar_index)
array.set(pivotLineFinaled, i, true)
// スイングローの場合:EMAがピボット価格を下回ったら確定
if pivotType == -1 and emaValue < pivotPrice
line.set_x2(lineObj, bar_index)
array.set(pivotLineFinaled, i, true)
Volume Momentum Oscillator (Enhanced)📊 Volume Momentum Oscillator (VMO) — 量能动量振荡器
🔍 介绍
Volume Momentum Oscillator (VMO) 是一款基于成交量变化的动量指标,它通过计算成交量的 短期均线与长期均线的偏离程度,衡量市场活跃度的变化。该指标适用于分析市场趋势的 加速与减弱,帮助交易者捕捉可能的趋势转折点。
📌 计算逻辑
短期成交量均线(默认 14)
长期成交量均线(默认 28)
计算公式:
𝑉𝑀𝑂= (短期成交量均线 − 长期成交量均线)/长期成交量均线 × 100
结果:
VMO > 0 🔼:短期成交量高于长期成交量,市场活跃度增加,可能为上涨信号。
VMO < 0 🔽:短期成交量低于长期成交量,市场活跃度下降,可能为下跌信号。
📊 主要功能
✅ 趋势动量检测 📈📉
✅ 超买/超卖区间提示 🔴🟢
✅ 动态颜色变化,直观显示趋势
✅ 可自定义参数,适配不同市场
🛠️ 参数说明
短期周期 (默认 14): 计算短周期成交量均线的长度
长期周期 (默认 28): 计算长周期成交量均线的长度
超买/超卖区间 (默认 ±10): 设定成交量过热或低迷的界限
颜色变换:
绿色(短期成交量增强)
红色(短期成交量减弱)
背景颜色提示:
进入 超买区(>10) 时,背景变红
进入 超卖区(<-10) 时,背景变绿
📈 交易策略
1️⃣ VMO 上穿 0 轴 ➝ 短期成交量增强,可能是买入信号
2️⃣ VMO 下穿 0 轴 ➝ 短期成交量下降,可能是卖出信号
3️⃣ VMO 高于 +10(超买区) ➝ 市场可能过热,警惕回调风险
4️⃣ VMO 低于 -10(超卖区) ➝ 市场可能超跌,关注反弹机会
📌 建议搭配 RSI、MACD 或趋势指标使用,以提高交易准确性! 🚀
🔗 适用市场
📌 股票 / 期货 / 外汇 / 加密货币(适用于所有基于成交量的市场)
📌 免责声明
本指标仅用于市场分析和学习,不构成任何投资建议。交易者应结合自身策略和市场条件谨慎决策。📢
📊 如果你觉得这个指标有帮助,请点赞 & 收藏!欢迎在评论区交流你的交易经验! 🎯🚀
DCA (CryptoBus)DCA (CryptoBus)
🚀 DCA (CryptoBus) — автоматизированная стратегия усреднения (Dollar-Cost Averaging) для TradingView!
📉 Покупай активы равными частями на падениях и снижай среднюю цену входа.
🔧 Гибкая настройка параметров для адаптации под рынок.
NSE Compact Panel by KGHow It Works
1.Analyzes price action using multiple technical indicators
2.Updates a right-aligned panel with:
a)Current indicator values
b)Bullish/bearish status
c)Visual trend direction cues
3. Designed for quick scanning of market conditions on NSE charts.
4.The Script is for educational purpose only
Opening Range Breakout current day9.30 am breakout
the first 15 minutes = the range
only the current days range is trade
stop at the low / high or range
1 contract
2R TP
IPO Date ScreenerThis script, the IPO Date Screener, allows traders to visually identify stocks that are relatively new, based on the number of bars (days) since their IPO. The user can set a custom threshold for the number of days (bars) after the IPO, and the script will highlight new stocks that fall below that threshold.
Key Features:
Customizable IPO Days Threshold: Set the threshold for considering a stock as "new." Since Pine screener limits number bars to 500, it will work for stocks having trading days below 500 since IPO which almost 2 years.
Column Days since IPO: Sort this column from low to high to see newest to oldest STOCK with 500 days of trading.
Since a watchlist is limited to 1000 stocks, use this pines script to screen stocks within the watch list having trading days below 500 or user can select lower number of days from settings.
This is not helpful to add on chart, this is to use on pine screener as utility.
TSI Long/Short for BTC 2HThe TSI Long/Short for BTC 2H strategy is an advanced trend-following system designed specifically for trading Bitcoin (BTC) on a 2-hour timeframe. It leverages the True Strength Index (TSI) to identify momentum shifts and executes both long and short trades in response to dynamic market conditions.
Unlike traditional moving average-based strategies, this script uses a double-smoothed momentum calculation, enhancing signal accuracy and reducing noise. It incorporates automated position sizing, customizable leverage, and real-time performance tracking, ensuring a structured and adaptable trading approach.
🔹 What Makes This Strategy Unique?
Unlike simple crossover strategies or generic trend-following approaches, this system utilizes a customized True Strength Index (TSI) methodology that dynamically adjusts to market conditions.
🔸 True Strength Index (TSI) Filtering – The script refines the TSI by applying double exponential smoothing, filtering out weak signals and capturing high-confidence momentum shifts.
🔸 Adaptive Entry & Exit Logic – Instead of fixed thresholds, it compares the TSI value against a dynamically determined high/low range from the past 100 bars to confirm trade signals.
🔸 Leverage & Risk Optimization – Position sizing is dynamically adjusted based on account equity and leverage settings, ensuring controlled risk exposure.
🔸 Performance Monitoring System – A built-in performance tracking table allows traders to evaluate monthly and yearly results directly on the chart.
📊 Core Strategy Components
1️⃣ Momentum-Based Trade Execution
The strategy generates long and short trade signals based on the following conditions:
✅ Long Entry Condition – A buy signal is triggered when the TSI crosses above its 100-bar highest value (previously set), confirming bullish momentum.
✅ Short Entry Condition – A sell signal is generated when the TSI crosses below its 100-bar lowest value (previously set), indicating bearish pressure.
Each trade execution is fully automated, reducing emotional decision-making and improving trading discipline.
2️⃣ Position Sizing & Leverage Control
Risk management is a key focus of this strategy:
🔹 Dynamic Position Sizing – The script calculates position size based on:
Account Equity – Ensuring trade sizes adjust dynamically with capital fluctuations.
Leverage Multiplier – Allows traders to customize risk exposure via an adjustable leverage setting.
🔹 No Fixed Stop-Loss – The strategy relies on reversals to exit trades, meaning each position is closed when the opposite signal appears.
This design ensures maximum capital efficiency while adapting to market conditions in real time.
3️⃣ Performance Visualization & Tracking
Understanding historical performance is crucial for refining strategies. The script includes:
📌 Real-Time Trade Markers – Buy and sell signals are visually displayed on the chart for easy reference.
📌 Performance Metrics Table – Tracks monthly and yearly returns in percentage form, helping traders assess profitability over time.
📌 Trade History Visualization – Completed trades are displayed with color-coded boxes (green for long trades, red for short trades), visually representing profit/loss dynamics.
📢 Why Use This Strategy?
✔ Advanced Momentum Detection – Uses a double-smoothed TSI for more accurate trend signals.
✔ Fully Automated Trading – Removes emotional bias and enforces discipline.
✔ Customizable Risk Management – Adjust leverage and position sizing to suit your risk profile.
✔ Comprehensive Performance Tracking – Integrated reporting system provides clear insights into past trades.
This strategy is ideal for Bitcoin traders looking for a structured, high-probability system that adapts to both bullish and bearish trends on the 2-hour timeframe.
📌 How to Use: Simply add the script to your 2H BTC chart, configure your leverage settings, and let the system handle trade execution and tracking! 🚀
Bad resumption from effortThis simple and clear indicator is designed for those of you who trade from levels. I expect a bad resumption of the attacking side at the level. To do this, I need to see the effort (usually a bar with a large spread and volume). We repaint such bars in white. Next, in the body of this bar (from low to high), I want to see bad resumption - a decrease in volumes and spreads of bars. I need to know the size of these bars as a percentage of the price. Instead of a ruler, I use marks above the bars, where the size of such bars is written, if the bar meets the following criteria.
Green bars - from 0 to 0.35%.
Blue bars - from 0.36% to 0.45%.
You can change all the colors in the settings depending on your color scheme.
This indicator does not provide an entry point ))
It simplifies the decision-making process based on a bad resumption from effort.
Good luck!
In Russian -
Этот простой и наглядный индикатор призван для тех из вас, кто торгует от уровней. Я ожидаю на уровне плохое возобновление атакующей стороны. Для этого мне необходимо увидеть усилие (это как правило бар с большим спредеом и объемом). Такие бары мы перекрашиваем в белый цвет. Далее в теле этого бара (от лой до хай) я хочу видеть плохую возобновляемость - снижение объемов и спредов баров. Мне нужно узнать размер этих баров в процентах от цены. Вместо линейки я использую метки над барами, где прописан размер таких баров, если бар соответствуют следующим критериям.
Зеленые бары - от 0 до 0.35%.
Синие бары - от 0.36% до 0.45%.
Все цвета ты можешь изменить в настройках в зависимости от твоей цветовой схемы.
Этот индикатор не дает точки входа ))
Он упрощает процесс принятия решения на основе плохого возобновления от усилия..
Удачи!
sogge333: Price alert every 15 minutes in timeWith this indicator you will be able to get an alarm of the current price of your favorite asset every 15 minutes.
Good for recorgnizing current price action during work or where ever you want to be noticed. Works awesome with your smartwatch 😎
HOW TO:
Go to 15 minutes Chart, than click on 'Add Alert' -> under Condition choose 'sogge333: Price alert every 15 minutes in time'
TROUBLESHOOTING: Sometimes the alert won't work, because of internet connection issues.
Have fun with this and good look for trading!!! 🍀 🤑
Smart ChannelThe "Smart Channel" indicator is designed to dynamically identify and plot price channels on a chart. It uses a statistical approach based on Pearson's correlation coefficient to determine the best-fit channel for both short-term and long-term trends. This allows traders to visualize potential support and resistance levels, identify trend direction, and potentially anticipate breakouts or reversals.
How it Works:
Data Input: The indicator takes a source input (typically the closing price) as the basis for its calculations.
Period Selection: It defines two sets of lookback periods: one for short-term analysis and one for long-term analysis. The code iterates through these periods, calculating a linear regression and standard deviation for each.
Pearson's Correlation: For each period, the indicator calculates Pearson's R, which measures the strength and direction of the linear relationship between price and time. A higher absolute value of Pearson's R indicates a stronger trend.
Best Fit Channel: The indicator identifies the period with the highest Pearson's R for both short-term and long-term and uses the corresponding linear regression parameters (slope and intercept) to define the midline of the channel.
Standard Deviation: The standard deviation of the price data around the regression line is calculated. This is used to define the upper and lower boundaries of the channel. The channel width is controlled by a "Deviation Multiplier" input.
Channel Plotting: The indicator plots the midline, upper boundary, and lower boundary of the channel on the chart. Separate channels are plotted for the short-term and long-term best-fit periods, using different colors for easy visual distinction.
Dynamic Updates: The channel is dynamically updated as new price data becomes available, adjusting to the evolving market trend.
Key Inputs and Settings:
Source: The price data used for calculations (e.g., close, open, high, low, etc.).
Use Long-Term Channel: A boolean input to enable/disable the calculation and plotting of the long-term channel.
Deviation Multiplier: Controls the width of the channel (how many standard deviations away from the midline the boundaries are).
Channel/Midline Colors and Transparency: Customizable colors and transparency levels for the channel lines and fill.
Line Styles: Options for solid, dotted, or dashed lines for the channel boundaries and midline.
Extend Style: How the channel lines should extend (right, both, none, left).
Interpretation and Usage:
Trend Identification: The direction of the midline indicates the prevailing trend. An upward-sloping midline suggests an uptrend, while a downward-sloping midline suggests a downtrend.
Support and Resistance: The upper and lower channel boundaries can act as potential support and resistance levels.
Breakouts: A price move outside of the channel boundaries may signal a potential breakout or reversal.
Overbought/Oversold: Prices touching or exceeding the upper boundary might suggest an overbought condition, while prices touching or exceeding the lower boundary might suggest an oversold condition.
Short-Term vs. Long-Term: Comparing the short-term and long-term channels can provide insights into the overall market context. For example, a short-term uptrend within a long-term downtrend might suggest a potential buying opportunity before the larger trend resumes.
UM-Optimized Linear Regression ChannelDESCRIPTION
This indicator was inspired by Dr. Stoxx at drstoxx.com. Shout out to him and his services for introducing me to this idea. This indicator is a slightly different take on the standard linear regression indicator.
It uses two standard deviations to draw bands and dynamically attempts to best-fit the data lookback period using an R-squared statistical measure. The R-squared value ranges between zero and one with zero being no fit to the data at all and 1 being a 100% match of the data to linear regression line. The R-squared calculation is weighted exponentially to give more weight to the most recent data.
The label provides the number of periods identified as the optimal best-fit period, the type of loopback period determination (Manual or Auto) and the R-squared value (0-100, 100% being a perfect fit). >=90% is a great fit of the data to the regression line. <50% is a difficult fit and more or less considered random data.
The lookback mode can also be set manually and defaults to a value of 100 periods.
DEFAULTS
The defaults are 1.5 and 2.0 for standard deviation. This creates 2 bands above and below the regression line. The default mode for best-fit determination with "Auto" selected in the dropdown. When manual mode is selected, the default is 100. The modes, manual lookback periods, colors, and standard deviations are user-configurable.
HOW TO USE
Overlay this indicator on any chart of any timeframe. Look for turning points at extremes in the upper and lower bands. Look for crossovers of the centerline. Look at the Auto-determination for best fit. Compare this to your favorite Manual mode setting (Manual Mode is set to 100 by default lookback periods.)
When price is at an extreme, look for turnarounds or reversals. Use your favorite indicators, in addition to this indicator, to determine reversals. Try this indicator against your favorite securities and timeframes.
CHART EXAMPLE
The chart I used for an example is the daily chart of IWM. I illustrated the extremes with white text. This is where I consider proactively exiting an existing position and/or begin looking for a reversal.
DINH THANG FOLLOW TREND ### **Ichimoku Cloud (Kumo)**
The **Kumo (Cloud)** in the Ichimoku indicator consists of the **Senkou Span A** and **Senkou Span B** lines. It represents areas of support and resistance, trend direction, and market momentum:
- **Thick Cloud** → Strong support/resistance zone.
- **Thin Cloud** → Weak support/resistance, price may break through easily.
- **Price above Kumo** → Bullish trend.
- **Price below Kumo** → Bearish trend.
- **Price inside Kumo** → Consolidation or indecision.
### **Super Trend**
The **Super Trend** indicator is a trend-following tool that helps traders identify the current trend direction. It is based on the **Average True Range (ATR)** and a multiplier factor:
- **Green line below price** → Uptrend (Buy signal).
- **Red line above price** → Downtrend (Sell signal).
- It works best in trending markets but may give false signals in sideways conditions.
### **SMA 10 & SMA 20**
The **Simple Moving Average (SMA)** smooths out price action and helps identify trend direction:
- **SMA 10** → A short-term moving average, reacts quickly to price changes.
- **SMA 20** → A slightly slower-moving average, offering a broader trend perspective.
- **SMA 10 above SMA 20** → Bullish momentum.
- **SMA 10 below SMA 20** → Bearish momentum.
These indicators can be used together to confirm trends and potential trade signals. 🚀