Dynamic DCA Envelope – Beta V1.1Dynamic DCA Envelope-Beta V1.1 is a preview version of a Dollar-Cost Averaging (DCA) strategy designed for trending or volatile markets.
-Long Positions Only
-Intended for Cryptocurrency, but can be used in any market
-1 and 4 hour timeframe
-Average Commissions 0.1%-0.3% per trade (Cryptocurrency)
What it does:
This strategy identifies buying opportunities when price closes below a dynamic envelope (based on EMA). After 3 consecutive closes below the lower envelope, the system arms a buy condition. A DCA buy-in is triggered when price bounces by a configurable percentage from the trailing low. The strategy supports up to 3 buy-ins, each equally sized, and closes the entire position at a fixed take profit or stop loss.
How it works:
-Entry logic is based on price deviation from an EMA envelope
-Waits for 3 closes below the envelope to detect weakness
-Uses bounce percentage from the lowest point to trigger each buy
-Includes cooldown logic between buys to avoid clustering
-All positions are closed when TP or SL is hit
How to use it:
-Use on trending assets with volatility (e.g., crypto, tech stocks)
-Adjust inputs to match asset behavior:
-EMA Length
-Envelope Offset %
-Bounce % (Trailing DCA)
-Take Profit / Stop Loss
-View strategy performance in the Strategy Tester tab
What’s unique:
Unlike most DCA scripts that immediately average down, this version includes:
-Trigger logic requiring multiple closes below trend
-Bounce-based entry to avoid catching a falling knife
-Cooldown resets to prevent overtrading
-A true entry–wait–buy–reset loop mimicking disciplined execution
*This is a beta version intended as a preview. A full Pro version is in development, which includes:
-SmartScaling logic
-Trailing take profit
-Multi-symbol scanning
-Backtest range limits
-Risk-adjusted filtering
Bantlar ve Kanallar
Mayfair Reversal Change✅ Mayfair Reversal Change — By EastWave Capital
Description:
The Mayfair Reversal Change indicator is a tool designed to help traders identify potential market turning points using Stochastic Oscillator behavior and filtered price action logic. It acts as a reversal signal filter and is particularly effective when the market is overextended (overbought/oversold) and about to revert from exhaustion zones.
🔍 How It Works:
This script monitors the Stochastic %K and %D crossovers and adds a custom logic layer to filter only high-quality reversal points:
Stochastic Filter Conditions:
Uses smoothed stochastic settings:
%K smoothing = 3
%D smoothing = 3
Only shows signals after %K crosses back below 80 (for Sell) or above 20 (for Buy)
This prevents signals from appearing too early during an active overbought or oversold phase.
Directional Confirmation Logic:
Bullish signal is printed only when %K re-enters below 20 after a confirmed stochastic crossover.
Bearish signal appears only when %K re-enters above 80.
This reduces false signals that occur during continued trending moves.
Toggle Switch:
A user-toggle input is included to enable or disable the reversal filter logic.
This gives flexibility for traders who want to test signals with or without the stochastic condition.
📈 How to Use:
Timeframes: Recommended for 5M, 15M, and 30M
Markets: Compatible with any market — FX, Gold, Indices, Crypto
Entry Approach:
Wait for signal after price has reached a potential extreme area.
Confirm with chart structure, support/resistance, or SMC zone.
Enter on confirmation, placing stop loss beyond the swing high/low.
Combine with trendline breaks or price imbalances (FVG) for extra confluence.
Can be used in combination with the Mayfair FX Scalper script for dual-layer confirmation.
⚠️ Important Notes:
Signals are visual only and should be confirmed with proper strategy.
This indicator does not execute or manage trades automatically.
Designed to assist with reversal setups but should not be used in isolation.
Always manage risk, use SL/TP, and avoid over-leveraging.
Mayfair Fx Scalper✅ Mayfair FX Scalper — By EastWave Capital
The Mayfair FX Scalper is a precision-focused, closed-source indicator designed for short-term intraday trading, particularly scalping on lower timeframes such as 1-minute, 3-minute, and 5-minute charts. This tool is developed by EastWave Capital and is based on a combination of Relative Strength Index (RSI) extremes and specific candlestick structure patterns to detect potential exhaustion and reversal points in the market.
🔍 How It Works:
The algorithm operates by evaluating three core elements:
RSI Extremes:
RSI is calculated using default settings.
Buy signals are considered only when the RSI on the previous candle is below 22 (oversold), and the current candle is bullish, while the previous one was bearish.
Sell signals are considered when the RSI on the previous candle is above 78 (overbought), and the current candle is bearish, while the previous one was bullish.
Candle Confirmation Logic:
The system waits for candle confirmation (e.g., shift in bullish/bearish structure) rather than triggering signals based on RSI alone.
This avoids false triggers in strong trends and filters weak entries.
SL/TP Estimation (Visual):
While not automatically placing orders, the indicator can optionally display lines or small labels showing a Stop Loss at the previous swing high/low (±0.5) and TP levels at 1R, 2R, and 3R based on that stop.
These visual aids help traders plan risk/reward and exits manually.
📈 How to Use:
Timeframes: Best suited for 1M, 3M, and 5M charts
Markets: Works well on Gold (XAU/USD), Forex majors, Indices, and Crypto
Session: Performs best during high volatility sessions (London & NY)
Use Case:
Wait for a signal label to appear after a clear momentum move.
Confirm price action and trend context.
Use provided visual SL/TP labels or apply your manual RR planning.
Combine with structure breaks, FVG zones, or liquidity sweeps for confluence.
⚠️ Important Notes:
This indicator does not repaint.
No automatic trades are executed. Signals are visual.
Not intended for use in isolation; best when combined with proper trade management and confirmation tools.
Past performance does not guarantee future results. Always manage risk appropriately
Mohammad - Auto TrendLinesMohammad - Auto TrendLines
Overview
An advanced automatic trendline detection system that identifies and draws both major and minor trendlines based on pivot highs and lows. This indicator uses sophisticated algorithms to detect market structure and automatically plot relevant trendlines, helping traders identify key support and resistance levels without manual chart analysis.
Key Features
Automatic Detection: Identifies pivot points and connects them to form trendlines without manual intervention
Multi-Level Analysis: Distinguishes between Major and Minor trendlines, both External and Internal
Smart Validation: Only draws trendlines that haven't been violated by price action
Comprehensive Alerts: 16 different alert conditions for breaks and reactions to trendlines
Fully Customizable: Complete control over colors, styles, widths, and display preferences for each trendline type
How It Works
The indicator uses a ZigZag algorithm with configurable pivot periods to identify significant highs and lows. It then connects these points to form trendlines, validating them against historical price action to ensure they remain relevant. The system categorizes trendlines into Major/Minor and External/Internal based on their significance in the market structure.
Use Cases
This indicator is particularly useful for:
Identifying trend continuations and potential reversals
Finding optimal entry and exit points based on trendline breaks
Setting stop-loss levels using trendline support/resistance
Confirming trade setups with multiple timeframe analysis
Automating trendline detection for systematic trading strategies
Settings/Parameters
Pivot Period: Controls the sensitivity of pivot detection (default: 5)
Display Options: Toggle visibility for each of the 8 trendline types
Style Customization: Adjust color, line style, width, and extension for each trendline
Alert Configuration: Enable/disable alerts for breaks and reactions to each trendline type
Delete Previous: Option to remove old trendlines when new ones are formed
How to Use
Add the indicator to your chart and adjust the Pivot Period based on your trading timeframe
Configure which trendline types you want to display (Major/Minor, External/Internal, Up/Down)
Set up alerts for the specific trendline interactions you want to monitor
Look for price reactions at trendlines for potential trade entries
Use trendline breaks as confirmation for trend changes
Signals
Break Alerts: Triggered when price closes beyond a trendline
React Alerts: Triggered when price touches but respects a trendline
Major External: Most significant trendlines based on major pivot points
Major Internal: Secondary major trendlines within the trend structure
Minor External: Short-term trendlines for intraday movements
Minor Internal: Smallest scale trendlines for precise entries
Trendline Types Explained
Up Trendlines: Connect ascending lows, act as support
Down Trendlines: Connect descending highs, act as resistance
External: Connect the outermost pivots
Internal: Connect pivots within the major structure
Best Timeframes
Works effectively on all timeframes:
Scalping: 1m, 5m, 15m charts
Day Trading: 15m, 1H, 4H charts
Swing Trading: 4H, Daily, Weekly charts
Position Trading: Daily, Weekly, Monthly charts
Important Notes
The indicator repaints trendlines as new pivots form - this is by design to maintain accuracy
Historical trendlines that have been broken are automatically extended to show past levels
Use multiple timeframe analysis for best results
Combine with other indicators for trade confirmation
Always use proper risk management
Alert Integration
This indicator uses the TradingFinder Alert Library for enhanced alert functionality, providing detailed notifications for all trendline interactions.
Version History
v6: Current version with full alert integration and enhanced trendline validation
Disclaimer: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management when trading.
Note: This is an overlay indicator that draws directly on your price chart. Ensure you have sufficient chart history loaded for optimal performance.
adc pivotstest╔═════════════════════════════════════════════════════════════════╗
║ PIVOTS MULTI TF BODO ║
║ ║
║ © 2025 Your Name or Username ║
║ Version: 1.0 ║
║ ║
║ Description: ║
║ This script plots Traditional Pivot Points (PP, S1–S3, R1–R3) ║
║ based on a user-selected timeframe (Daily, Weekly, Monthly). ║
║ It includes optional labels and extended line settings. ║
║ ║
║ How to Use: ║
║ – Add the indicator to your chart ║
║ – Select your pivot timeframe (D/W/M) in settings ║
║ – Toggle label visibility and line extensions as needed ║
║ ║
║ Contac ║
║ Redistribution is not allowed without permission. ║
║ ║
║ For educational purposes only. Trade responsibly. ║
╚═════════════════════════════════════════════════════════════════╝
WaveTrend LazyBear + BUY/SELL Labels (Custom Color)WaveTrend LazyBear + BUY/SELL Labels (Custom Color)
ZigZag Volume Profile [ChartPrime]⯁ OVERVIEW
ZigZag Volume Profile combines swing structure with volume analytics by plotting a ZigZag of major price swings and overlaying a detailed volume profile around each swing. At the end of each swing, it highlights the Point of Control (POC) — the price level with the highest traded volume — and extends it forward to identify key areas of potential support or resistance.
⯁ KEY FEATURES
ZigZag Swing Detection:
Automatically detects swing highs and lows based on a user-defined length, creating clean visual segments of market structure.
These segments act as boundaries for volume profile calculations.
swingHigh = ta.highest(swingLength)
swingLow = ta.lowest(swingLength)
ZigZag Channel Visualization:
The ZigZag structure is connected with sloped lines, forming a visual “channel” of the price movement.
The ZigZag can optionally, scaled by ATR.
Volume Profile Around Each Swing:
For every completed swing (high to low or low to high), the indicator constructs a full volume profile using user-defined bin counts.
It scans volume across price levels in the swing and plots histogram-style bins using a gradient color to indicate volume magnitude.
Dynamic Bin Width and Slope Adjustment:
Bins are distributed across a vertical ATR-based range, and their width is adjusted based on the percentage of total swing volume.
The volume fill direction is adapted to the swing’s slope for visually aligned plotting.
POC Detection and Extension:
The highest volume bin in each swing is identified as the Point of Control (POC).
This level is plotted with a thicker line and extended horizontally into the future as a key reaction level.
Automatic POC Expiry on Price Interaction:
POC lines are continuously extended unless breached by price.
When price crosses the POC level, the extension is terminated — signaling that the level may have been absorbed.
Clean Volume Bin Visualization:
Bin colors range from green (low volume) to blue (higher volume), with the POC always marked in red by default for easy identification.
Volume percentages are optionally labeled at each bin level.
Flexible Swing Profile Parameters:
Users can control:
Number of volume bins
Bin width
Channel width (ATR factor)
Visibility of the swing channel or POC lines
Efficient Memory Handling:
Old POC lines and volume profiles are automatically removed from memory after a threshold to keep charts clean and performant.
⯁ USAGE
Use ZigZag swings to define market structure visually.
Analyze volume profile around each swing to understand where most trading activity occurred.
Use POC extensions as dynamic support/resistance zones for entries, stops, or take-profits.
Watch for price interaction with extended POC lines — breaks may suggest absorbed liquidity or breakout potential.
Use the ATR-based channel width to adapt profiles based on market volatility.
⯁ CONCLUSION
ZigZag Volume Profile offers a powerful fusion of structure and volume. By plotting detailed volume profiles over each price swing and extending the POC as actionable S/R levels, this tool provides deep insight into market participation zones — giving traders a tactical edge in both ranging and trending environments.
Weekly + Daily Levels, Asia Range, US Settle This Pine Script—"Weekly Daily Levels Asia Range US Settle"—was originally designed for Forex trading, and has since been successfully adapted to Bitcoin and crypto markets. It maps out institutional key levels and session-based price zones, providing a clean, structured framework for intraday and swing trading.
🔧 Key Levels & Logic
🟢 1. Weekly Levels
Captures High, Low, and Midpoint (50%) of the previous trading week
Reset every Sunday at 5:00 PM New York time (17:00 ET)
Helps identify macro structure, liquidity zones, and weekly bias
🟠 2. Daily Levels
Captures High, Low, and Midpoint (50%) of the previous trading day
Resets daily at 5:00 PM New York time (17:00 ET)
Ideal for short-term support/resistance and mean-reversion zones
🔵 3. Asia Session Range
Captures High, Low, and Midpoint from 8:00 PM to 3:00 AM NY time (20:00–03:00 ET)
Frequently acts as a pre-breakout base for London or US session volatility
🔷 4. US Settle (Friday Only)
Captures the midpoint of the final 15-minute candle on Friday at 4:45 PM New York time (16:45 ET)
Draws a box (high-low) and midline to mark this institutional closing price
Useful for gap-fills, mean-reversion, and weekend-to-Monday setups
📊 Recommended Pairing for Trend Trading
To reduce noise and filter false signals, it’s highly advised to combine this level-based framework with:
✅ Exponential Moving Averages (EMA)
Use the 20, 50, 200, and 800 EMAs
For trend following:
Price above 20/50/200 = bullish alignment
Price below 20/50/200 = bearish alignment
800 EMA can act as macro-level magnet/support
✅ PVRSA Volume (Price-Volume-Support-Analysis)
Helps detect volume anomalies and distinguish real breakouts from false moves
Pay attention to climactic volume, stopping volume, and smart money footprints during key level interactions
Combining EMA structure and PVRSA volume with this script’s levels provides a robust trend-trading strategy, avoiding common traps from random level retests or low-volume breakouts.
🚀 Why This Works for Bitcoin
BTC respects session-defined highs/lows similar to forex
Price reacts strongly to Asia range breaks, NY opens, and weekly levels
The US settle level on Friday adds institutional context often ignored in crypto
Pairing it with volume + trend structure improves timing and accuracy
⚙️ Technical Features
Uses request.security() to pull data from a configurable low timeframe (default: 1m)
Fully customizable: colors, line widths, extension lengths
Intelligent label grouping for overlapping levels
Designed for precision on 15-minute or lower timeframes
✅ Best Used For
Intraday reversals and breakouts
Trend trading with EMA alignment
London and NY session range plays
Weekend price planning using US settle mid
Volume confirmation using PVRSA
Dolphin 3penggunaan FCPO
DISCLAIMER:
This script is provided for **educational and informational purposes only**.
It is **not intended as financial advice** or a recommendation to buy or sell any asset.
Use at your own risk. Past performance does not guarantee future results.
Always do your own research or consult a licensed financial advisor before making trading decisions.
Bollinger Levels Table - Horizontal Support ZonesBollinger Levels Table - Horizontal Support Zones Indicator (with Customizable Options)
The "Bollinger Levels Table - Horizontal Support Zones" indicator is a comprehensive tool designed to help you identify potential support areas on your chart using moving averages and Bollinger Bands. The indicator displays an organized table of key price levels and draws horizontal lines on the chart, providing clear visibility of potential support zones.
What Does This Indicator Do?
This indicator aims to simplify support analysis by consolidating and displaying significant price levels derived from three different Bollinger Band settings: BB10, BB20, and BB50. It calculates both the Mid-line (Basis) and the Lower Band for each of these settings.
Furthermore, the indicator automatically arranges these levels from highest to lowest in an easy-to-read table, assigning a "Payment" label to each level. These "Payments" are simply labels to help you track the levels in descending order.
How Does This Indicator Work?
Bollinger Band Calculations: The indicator uses the standard Bollinger Band formula:
Mid-line (Basis): A Simple Moving Average (SMA) of the closing price over a specified period.
Standard Deviation (Dev): The standard deviation of the closing price over the same period, multiplied by a Multiplier.
Lower Band: The Mid-line minus the Standard Deviation.
These calculations are applied to three different periods: 10, 20, and 50, providing a variety of potential support levels based on different timeframes. You can adjust the values for these lengths (10, 20, 50) and the Multiplier through the indicator's settings.
Table Construction: A dynamic table is created on the chart (which can be positioned in the top or bottom right corner based on the current price's position). This table displays:
Indicator: The name of the Bollinger Band level (e.g., BB10 Mid, BB20 Lower).
Price: The exact price value of that level.
Payments: A label indicating the level's order in the table.
Level Ordering: All calculated levels are dynamically sorted from highest to lowest to present them in a logical order within the table.
Horizontal Line Plotting: Horizontal lines are drawn on the chart for each selected level, providing a visual representation of the potential support areas. These lines are colored black and have a consistent width for easy identification.
How to Use This Indicator:
This indicator is intended to provide potential entry points or accumulation zones for trades, especially for traders employing Dollar-Cost Averaging (DCA) strategies or building positions in stages. The levels displayed in the table and on the chart can represent potential support levels where one might consider initiating or adding to a position.
In the indicator's settings, you'll find important options:
Multiplier: Controls the width of the Bollinger Bands (default 2.0).
BB Lengths: Allows you to adjust the periods for the moving averages (default 20, 50, 10).
Visible Levels: This is the new feature! Here, you can select which levels you wish to see in the table and on the chart. Simply check or uncheck the boxes next to each level (BB10 Mid, BB10 Lower, and so on) to customize the indicator's display according to your strategy and needs.
Underlying Concepts:
This indicator is based on the principle that Bollinger Bands can act as dynamic support and resistance zones.
Mid-line (SMA): Often functions as a medium-term support or resistance.
Lower Band: Typically indicates that the price is relatively low and may find support, making it a potential area for buying or starting to build a position.
By combining different Bollinger Band timeframes (10, 20, 50), the indicator gives you a multi-timeframe perspective on support areas, helping you identify the most relevant levels for your strategy.
Note: While the indicator provides "Payments" for the levels, this is purely a sequential labeling within the table to assist your position-building strategy. There is no actual payment functionality associated with this indicator.
Candle Channel█ OVERVIEW
The "Candle Channel" indicator is a versatile technical analysis tool that plots a price channel based on the Simple Moving Average (SMA) of candlestick midpoints. The channel bands, calculated based on candlestick volatility, form dynamic support and resistance levels that adapt to price movements. The script generates signals for reversals from the bands and SMA breakouts, making it useful for both short-term and long-term traders. By adjusting the SMA length, the channel can vary in nature—from a wide channel encapsulating price movement to narrower support/resistance or trend-following bands. The channel width can be further customized using a scaling parameter, allowing adaptation to different trading styles and markets.
█ MECHANISM
Band Calculation
The indicator is based on the following calculations:
Candlestick Midpoint: Calculated as the arithmetic average of the candle’s high and low prices: (high + low) / 2.
Simple Moving Average (SMA): The average of candlestick midpoints over a specified length (default: 20 candles), forming the channel’s centerline.
Average Candle Height: Calculated as the average difference between the high and low prices (high - low) over the same SMA length, serving as a measure of market volatility.
Band Scaling: The user specifies a percentage of the average candle height (default: 200%), which is multiplied by the average height to create an offset. The upper band is SMA + offset, and the lower band is SMA - offset.Example: For an average candle height of 10 points and 200% scaling, the offset is 20 points, meaning the bands are ±20 points from the SMA.
Channel Characteristics: The SMA length determines the channel’s dynamics. Shorter SMA values (10–30) create a wide channel that contains price movement, ideal for scalping or short-term trading. Longer SMA values (above 30, e.g., 50–100) transform the channel into narrower support/resistance or trend-following bands, suitable for longer-term analysis. Band scaling further adjusts the channel width to match market volatility.
Signals
Reversal from Bands: Signals are generated when the price closes outside the band (above the upper or below the lower) and then returns to the channel, indicating a potential trend reversal.
SMA Breakout: Signals are generated when the price crosses the SMA upward (bullish signal) or downward (bearish signal), suggesting potential trend changes.
Visualization
Centerline: The SMA of candlestick midpoints, displayed as a thin line.
Channel Bands: Upper and lower channel boundaries, with customizable colors.
Fill: Options include a gradient (smooth color transition between bands) or solid color. The fill can also be disabled for greater clarity.
█ FEATURES AND SETTINGS
SMA Length: Determines the moving average period (default: 20). Values of 10–30 are suitable for a wide channel containing price movement, ideal for short-term timeframes. Longer values (e.g., 50–100) create narrower support/resistance or trend-following bands, better suited for higher timeframes.
Band Scaling: Percentage of the average candle height (default: 200%). Adjusts the channel width to match market volatility—smaller values (e.g., 50–100%) for narrower bands, larger values (e.g., 200–300%) for wider channels.
Fill Type: Gradient, solid, or no fill, allowing customization to user preferences.
Colors: Options to change the colors of bands, fill, and signals for better readability.
Signals: Options to enable/disable reversal signals from bands and SMA breakout signals.
█ HOW TO USE
Add the script to your chart in TradingView by clicking "Add to Chart" in the Pine Editor.
Adjust input parameters in the script settings:
SMA Length: Set to 10–30 for a wide channel containing price movement, suitable for scalping or short-term trading. Set above 30 (e.g., 50–100) for narrower support/resistance or trend-following bands.
Band Scaling: Adjust the channel width to market volatility. Smaller values (50–100%) for tighter support/resistance bands, larger values (200–300%) for wider channels containing price movement.
Fill Type and Colors: Choose a gradient for aesthetics or a solid fill for clarity.
Analyze signals:
Reversal Signals: Triangles above (bearish) or below (bullish) candles indicate potential reversal points.
SMA Breakout Signals: Circles above (bearish) or below (bullish) candles indicate trend changes.
Test the indicator on different instruments and timeframes to find optimal settings for your trading style.
█ LIMITATIONS
The indicator may generate false signals in highly volatile or consolidating markets.
On low-liquidity charts (e.g., exotic currency pairs), the bands may be less reliable.
Effectiveness depends on properly matching parameters to the market and timeframe.
EMA9/EMA50 Cross Alert (2H Only)התראה לקרוס של ממוצע נא אקספוננציאלי 9 ו 50 ל 2 הכיוונים בטיים פרם של שעתיים.
Alert for a collapse of the 9 and 50 exponential moving averages in both directions on a two-hour time frame.
LLW Trading indicatorLLW Trading indicator is a indicator focus on trading between EMA Line, Support and Resistance and Signal Box.
⚡ LLW Trading indicator⚡ LLW Trading indicator focus on EMA,Support and Resistance and Signal Box to optimize the entry.
COT INDEX
// Users & Producers: Commercial Positions
// Large Specs (Hedge Fonds): Non-commercial Positions
// Retail: Non-reportable Positions
//@version=5
int weeks = input.int(26, "Number of weeks", minval=1)
int upperExtreme = input.int(80, "Upper Threshold in %", minval=50)
int lowerExtreme = input.int(20, "Lower Threshold in %", minval=1)
bool hideCurrentWeek = input(true, "Hide the current week until market close")
bool markExtremes = input(false, "Mark long and short extremes")
bool showSmallSpecs = input(true, "Show small speculators index")
bool showProducers = input(true, "Show producers index")
bool showLargeSpecs = input(true, "Show large speculators index")
indicator("COT INDEX", shorttitle="COT INDEX", format=format.percent, precision=0)
import TradingView/LibraryCOT/2 as cot
// Function to fix some symbols.
var string Root_Symbol = syminfo.root
var string CFTC_Code_fixed = cot.convertRootToCOTCode("Auto")
if Root_Symbol == "HG"
CFTC_Code_fixed := "085692"
else if Root_Symbol == "LBR"
CFTC_Code_fixed := "058644"
// Function to request COT data for Futures only.
dataRequest(metricName, isLong) =>
tickerId = cot.COTTickerid('Legacy', CFTC_Code_fixed, false, metricName, isLong ? "Long" : "Short", "All")
value = request.security(tickerId, "1D", close, ignore_invalid_symbol = true)
if barstate.islastconfirmedhistory and na(value)
runtime.error("Could not find relevant COT data based on the current symbol.")
value
// Function to calculate net long positions.
netLongCommercialPositions() =>
commercialLong = dataRequest("Commercial Positions", true)
commercialShort = dataRequest("Commercial Positions", false)
commercialLong - commercialShort
netLongLargePositions() =>
largeSpecsLong = dataRequest("Noncommercial Positions", true)
largeSpecsShort = dataRequest("Noncommercial Positions", false)
largeSpecsLong - largeSpecsShort
netLongSmallPositions() =>
smallSpecsLong = dataRequest("Nonreportable Positions", true)
smallSpecsShort = dataRequest("Nonreportable Positions", false)
smallSpecsLong - smallSpecsShort
calcIndex(netPos) =>
minNetPos = ta.lowest(netPos, weeks)
maxNetPos = ta.highest(netPos, weeks)
if maxNetPos != minNetPos
100 * (netPos - minNetPos) / (maxNetPos - minNetPos)
else
na
// Calculate the Commercials Position Index.
commercialsIndex = calcIndex(netLongCommercialPositions())
largeSpecsIndex = calcIndex(netLongLargePositions())
smallSpecsIndex = calcIndex(netLongSmallPositions())
// Conditional logic based on user input
plotValueCommercials = hideCurrentWeek ? (timenow >= time_close ? commercialsIndex : na) : (showProducers ? commercialsIndex : na)
plotValueLarge = hideCurrentWeek ? (timenow >= time_close ? largeSpecsIndex : na) : (showLargeSpecs ? largeSpecsIndex : na)
plotValueSmall = hideCurrentWeek ? (timenow >= time_close ? smallSpecsIndex : na) : (showSmallSpecs ? smallSpecsIndex : na)
// Plot the index and horizontal lines
plot(plotValueCommercials, "Commercials", color=color.blue, style=plot.style_line, linewidth=2)
plot(plotValueLarge, "Large Speculators", color=color.red, style=plot.style_line, linewidth=1)
plot(plotValueSmall, "Small Speculators", color=color.green, style=plot.style_line, linewidth=1)
hline(upperExtreme, "Upper Threshold", color=color.green, linestyle=hline.style_solid, linewidth=1)
hline(lowerExtreme, "Lower Threshold", color=color.red, linestyle=hline.style_solid, linewidth=1)
/// Marking extremes with background color
bgcolor(markExtremes and (commercialsIndex >= upperExtreme or largeSpecsIndex >= upperExtreme or smallSpecsIndex >= upperExtreme) ? color.new(color.gray, 90) : na, title="Upper Threshold")
bgcolor(markExtremes and (commercialsIndex <= lowerExtreme or largeSpecsIndex <= lowerExtreme or smallSpecsIndex <= lowerExtreme) ? color.new(color.gray, 90) : na, title="Lower Threshold")
Bollinger Bands + LWMA + EMA ComboThe BBMA strategy from Omaly Ally, this contains all the MA 5/ 10 high and MA 5/ 10 low, it also has EMA 50, 100 and 200
The Real DealThis strategy uses a closed source 3 EMA band, as well as a few other closed source indicators that I prefer no to mention right now. Play with it and tell me what you think. The stock settings are definitely not what I use.
Josh SMC Key Features of Josh SMC
✅ Automatically detects Order Blocks (OB) — both Bullish and Bearish
✅ Accurately identifies Fair Value Gaps (FVG) and tracks whether they are “filled” or not
✅ Detects Change of Character (CHOCH) to signal potential trend reversals
✅ Analyzes price structure in real-time based on Smart Money Concepts
✅ Beginner-friendly, yet powerful for advanced traders
✅ Customizable zone colors and number of OB/FVG displays
✅ Works on all timeframes from 1-minute and up
📌 What You’ll Gain from Using Josh SMC
🔺 Spot potential reversal zones before the crowd
🔻 Avoid chasing fake trends and getting trapped
🎯 Plan your entries and exits with OB and FVG precision
🚫 Eliminate guesswork from your analysis
🚀 Trade with confidence and structure — like smart money does
🔍 Who Is This For?
Traders who follow Smart Money Concepts (SMC), ICT, or Price Action
Anyone seeking high-quality entry/exit zones
Traders who want to understand how institutions move the market
Adam Mancini ES Game Plan LevelsThis script plots Support & Resistance levels from Adam Mancini's newsletter.
You can copy and paste levels from Adam's Newsletter to Indicator settings.
You can also add custom text after the support level. For e.g 6550 : Your custom text
Bollinger Bands SMA 20_2 StrategyMean reversion strategy using Bollinger Bands (20-period SMA with 2.0 standard deviation bands).
Trade Triggers:
🟢 BUY SIGNAL:
When: Price crosses above the lower Bollinger Band
Logic: Price has hit oversold territory and is bouncing back
Action: Places a long position with stop at the lower band
🔴 SELL SIGNAL:
When: Price crosses below the upper Bollinger Band
Logic: Price has hit overbought territory and is pulling back
Action: Places a short position with stop at the upper band
HTF Candles and Regression Channel [100Zabaan]🟢🟢 HTF Candles and Regression Channel 🟢🟢
🟡 Overview
This is a powerful multi-timeframe analysis tool designed to help traders understand the overall market context and structure at a glance. It provides a comprehensive view of the price trend across multiple timeframes, from long-term (weekly) to short-term (one-minute), all simultaneously on a single chart.
This tool assists your market analysis in two primary ways:
Displaying recent candles from higher timeframes to quickly grasp the strength, momentum, and overall trend context on different scales.
Displaying automatic linear regression channels to visually identify the direction, slope, and strength of the trend in your selected time periods.
🟡 Key Features
1. Multi-Timeframe Candle Viewer
In a separate pane below the main chart, this indicator displays the last N candles (adjustable number) from various timeframes (Weekly, Daily, 4-Hour, etc.).
This feature allows you to easily compare the trend strength and volatility across different timeframes and assess the current price position within the context of larger trends.
For instance, if you set the number of candles to 50, you can simultaneously monitor the last 50 candles from various timeframes like weekly, daily, 4-hour, 1-hour, 15-minute, 5-minute, and 1-minute, all within a dedicated pane.
Additionally, descriptive labels guide you, indicating the time period covered by each timeframe's set of candles.
Robust and Optimized Data-Fetching Mechanism: To render the candles, the indicator uses box and line objects and fetches data from multiple timeframes. The data-fetching engine has been specifically designed for high stability and performance. This allows you to reliably view a large number of candles from high timeframes (e.g., 60 weekly candles) even while on a very low timeframe like the one-minute chart, without encountering common historical data loading errors.
2. Automatic Linear Regression Channels
The indicator automatically plots linear regression channels for various time periods directly on your main price chart. This allows you to examine the price trend's path across different timeframes.
For better readability, the labels and their corresponding regression channels for each timeframe are color-coordinated.
Key Difference: Unlike standard tools that often focus on the closing price “Close”, this indicator uses the average price of a candle “OHLC4” to calculate the central regression line. The advantage of this approach is a more balanced and stable representation of the trend, which is less affected by sharp price fluctuations within a single candle.
Furthermore, the upper and lower channel boundaries are drawn based on a fraction of the period's maximum volatility, rather than the standard deviation, leading to a channel that adapts more effectively to the actual price action.
🟡 How to Use & Input Settings
Add the indicator to your chart
Go to the indicator's settings
In the Inputs tab, adjust the values according to your strategy:
Number of Candles to Display: Specify the number of recent candles to show in the bottom pane.
Show Time Period Labels: Toggle the visibility of labels that show the time span covered by each timeframe.
Show Regression Channels: Toggle the visibility of the regression channels on the main chart.
Timeframe Selection: Choose which timeframes you want to be displayed.
Style Settings: Configure the color and thickness of the regression lines to match their labels.
🟡 Important Notes & Limitations
No Repainting: This indicator is designed to be non-repainting. The values displayed are fixed once a candle closes. (Note: The values on the current, real-time candle will update until it closes).
Compatibility: This indicator is compatible with all symbols but is designed for optimal performance on timeframes lower than Daily.
Chart Timeframe Dependency: The indicator automatically hides timeframes in the bottom pane that are smaller than your current chart's timeframe. To view all possible resolutions, set your chart to the 1-minute timeframe.
Time Period Display Precision: The labels indicating the time duration (e.g., "1.2 years") may show approximate values due to rounding and are not intended to be perfectly precise.
Note Regarding the Source Code: The core logic of this indicator, especially the proprietary formulas used, is the result of personal research and development. To preserve this unique methodology and ensure its integrity for future developments, this version is released as closed-source. However, we have made every effort to fully and transparently describe the indicator's logic and operational process in the explanations.
🔴 Disclaimer
This indicator is provided for educational, informational, and analytical purposes only and should not be considered as financial advice or a definitive signal for buying or selling. Past performance is not indicative of future results. All investment and trading activities involve risk, and the user is solely responsible for any profits or losses. Please conduct your own research and consult with a qualified financial advisor before making any financial decisions.
🔴 Developers: Mr. Mohammad sanaei
⭐️⭐️ Feel free to share your feedback in the comments ⭐️⭐️
این اندیکاتور یک ابزار تحلیلی چند-زمانی قدرتمند است که به معاملهگران کمک میکند تا با یک نگاه، زمینه و ساختار کلی بازار را درک کرده و دیدی جامعی از روند قیمت و تایمفریمهای بلندمدت (هفتگی) تا کوتاهمدت (یک دقیقه)، به طور همزمان روی یک نمودار به دست آورند.
این ابزار از دو طریق به شما در تحلیل بازار کمک میکند:
نمایش کندلهای اخیر تایمفریمهای بالاتر برای درک سریع قدرت، مومنتوم و بررسی کلی روند در مقیاسهای مختلف.
نمایش کانال رگرسیون خطی خودکار برای تشخیص بصری جهت، شیب و قدرت روند در بازههای زمانی منتخب شما.
🔴 توسعه دهندگان: محمد ثنائی
⭐️⭐️ لطفاً نظرات خود را در کامنتها با ما در میان بگذارید; از خواندن بازخوردهای شما خوشحال میشویم. ⭐️⭐️