ATR Trade AssistantA simple assistant that quickly calculates position size for those who use ATR money management rules. Wskaźnik Pine Script®od ShawJT0
Milman's Stablecoin EWSMilman's Stablecoin Early Warning System (EWS) Monitors total stablecoin market cap supply dynamics as a leading indicator of crypto market capitulation. When stablecoin supply contracts — rather than growing or rotating — it signals capital is leaving the crypto ecosystem entirely, not just rotating to safety. Historically, this has preceded major capitulation events by days to weeks. The indicator tracks three escalating warning stages: Stage 1 (Yellow) — Supply growth rate slowing. Earliest signal, potentially months of lead time. Mirrors the 2021 pattern where growth decelerated months before the actual market top. Stage 2 (Orange) — Active contraction confirmed. ROC crosses below the contraction threshold. Mirrors the 2018 pattern where USDT contraction gave approximately one month of warning before capitulation. Stage 3 / Critical (Red + Triangle) — Supply prints a new lower low below the recent swing range. Per the 2022 LUNA precedent, capitulation followed within days of this signal firing. Additional signals: Blue diamonds mark instances where USDC supply leads USDT into a lower low — the pattern observed in 2022 where USDC warned before the broader collapse. A purple background indicates BTC is simultaneously trading below its 100-week moving average, the highest-confidence confluence condition. Settings Parameter -- Default -- Description ROC Period -- 7 days -- Lookback for rate-of-change calculation Lower Low Lookback -- 30 days -- Window for Stage 3 swing low detection Z-Score Lookback -- 90 days -- Normalization window for the main signal line Stage 1 ROC Threshold -- -0.3% -- Growth slowing trigger Stage 2 ROC Threshold-- -1.5% -- Active contraction trigger BTC 100W MA Highlight -- On -- Purple background when BTC below 100-week MA Show USDT/USDC Split -- On -- Plots individual stablecoin ROC lines Notes Best used as confluence alongside existing market structure analysis. Signals are most reliable on the daily timeframe. Historical data prior to 2020 is limited by stablecoin market size and data availability. Not financial advice. Inspired by analysis from Blockchain Backer's January 2026 newsletter on stablecoin supply dynamics.Wskaźnik Pine Script®od Milman7023
Dragon Oscillation Reversal v1 is a range-reversal strategyDragon Oscillation Reversal v1 is a range-reversal strategy designed for sideways and oscillating market conditions. The core idea is simple: The strategy first looks for a flat Bollinger Band basis, which suggests that the market is not strongly trending. After the market enters this flat condition, the strategy waits for price to touch the upper or lower Bollinger Band. Once a valid band touch appears, it opens a configurable signal window and waits for a reversal signal. Supported reversal signals include: - Pinbar - Engulfing pattern - Fractal top / bottom A long setup requires: 1. The Bollinger Band basis to be flat. 2. Price to touch the lower Bollinger Band during the flat condition. 3. A bullish reversal signal to appear within the configured signal window. 4. The distance to the opposite band must provide enough profit potential based on the minimum R filter. A short setup requires: 1. The Bollinger Band basis to be flat. 2. Price to touch the upper Bollinger Band during the flat condition. 3. A bearish reversal signal to appear within the configured signal window. 4. The distance to the opposite band must provide enough profit potential based on the minimum R filter. Risk management: - Position size is calculated from account equity and the selected risk percentage. - Stop-loss is placed beyond the recent reversal extreme with an optional tick offset. - The strategy uses partial profit-taking: - 50% of the position is closed at 2R. - The remaining position targets 4R. - Once price moves 1R in favor of the trade, the stop is moved to breakeven plus a configurable tick offset. - If price reaches the opposite Bollinger Band, the strategy performs an emergency exit. This strategy is designed for range-bound markets. It is not intended for strong trending conditions. Users should test and adjust parameters according to the symbol, timeframe, and market environment. Important: This script is for educational and research purposes only. It does not provide financial advice. Past performance does not guarantee future results. Please use proper risk management and test thoroughly before using it in live trading.Strategia Pine Script®od richardgong19886
Dragon Oscillation Reversal v1 is a range-reversal strategyDragon Oscillation Reversal v1 is a range-reversal strategy designed for sideways and oscillating market conditions. The core idea is simple: The strategy first looks for a flat Bollinger Band basis, which suggests that the market is not strongly trending. After the market enters this flat condition, the strategy waits for price to touch the upper or lower Bollinger Band. Once a valid band touch appears, it opens a configurable signal window and waits for a reversal signal. Supported reversal signals include: - Pinbar - Engulfing pattern - Fractal top / bottom A long setup requires: 1. The Bollinger Band basis to be flat. 2. Price to touch the lower Bollinger Band during the flat condition. 3. A bullish reversal signal to appear within the configured signal window. 4. The distance to the opposite band must provide enough profit potential based on the minimum R filter. A short setup requires: 1. The Bollinger Band basis to be flat. 2. Price to touch the upper Bollinger Band during the flat condition. 3. A bearish reversal signal to appear within the configured signal window. 4. The distance to the opposite band must provide enough profit potential based on the minimum R filter. Risk management: - Position size is calculated from account equity and the selected risk percentage. - Stop-loss is placed beyond the recent reversal extreme with an optional tick offset. - The strategy uses partial profit-taking: - 50% of the position is closed at 2R. - The remaining position targets 4R. - Once price moves 1R in favor of the trade, the stop is moved to breakeven plus a configurable tick offset. - If price reaches the opposite Bollinger Band, the strategy performs an emergency exit. This strategy is designed for range-bound markets. It is not intended for strong trending conditions. Users should test and adjust parameters according to the symbol, timeframe, and market environment. Important: This script is for educational and research purposes only. It does not provide financial advice. Past performance does not guarantee future results. Please use proper risk management and test thoroughly before using it in live trading.Strategia Pine Script®od richardgong198823
Swing Scanner Pro V4 Identifies High-Probability Momentum SetupsThis chart demonstrates signals generated by Swing Scanner Pro V4. The scanner combines trend structure, RSI momentum, volume expansion, ATR volatility, and proximity to 52-week highs. Market regime filters require QQQ to remain above its 200-day moving average and optionally avoid periods of elevated VIX. Qualified setups include ATR-based stop-loss, profit targets, and risk/reward calculations. The goal is to identify momentum stocks with favorable swing-trading characteristics while reducing exposure during unfavorable market conditions.Wskaźnik Pine Script®od rtkaiserbill5
The Alchemy Score Dashboardit rates small caps for wether they might outperform and how likely it is. can click trough your scraeener with this open and it will rate each stock by pulling financial data.Wskaźnik Pine Script®od Swaize2
Momentum Leader ATR Risk MapMomentum Leader ATR Risk Map is a position-management indicator designed to help traders visualize where a leading stock is trading relative to its 50-period SMA and ATR-based extension levels. The goal is not to generate automatic buy or sell signals. Instead, this tool provides a structured risk map for momentum leaders by combining: • ATR extension from a configurable SMA baseline • Positive extension bands for profit-taking and risk management • Negative extension bands for pullback, add-zone, and damage-control reference levels • Relative strength scoring versus a benchmark such as SPY • SMA trend status • Optional liquidity, sector RS, and industry RS filters • Nearest upside and downside map levels shown directly in the table By default, the indicator uses a Daily anchor and 50-period SMA baseline, making it suitable for swing trading and longer-term position management in momentum leaders. A 24-hour / 1440-minute anchor is also available for users who prefer to evaluate instruments with extended-hours or near-24-hour trading behavior. Core Risk Map Levels: Positive Extension Zones: • +2.95x ATR: High-RS leader zone • +4.56x ATR: Super momentum zone • +5.27x ATR: Approximate 2σ risk zone • +7.83x ATR: Approximate 3σ profit zone • +10.00x ATR: Extreme / trail-only zone Negative Extension Zones: • -1.00x ATR: Pullback • -2.00x ATR: Add zone • -3.00x ATR: Deep pullback • -4.56x ATR: Damage control • -5.27x ATR: Washout / reclaim-needed zone The table is designed to answer a few practical questions quickly: • Is the stock still acting like a leader? • Is price extended, normal, or damaged relative to the SMA/ATR map? • Is the SMA trend still constructive? • Is relative strength still intact across multiple lookback windows? • Where is the nearest upside ATR map level? • Where is the nearest downside ATR map level? Relative Strength Logic: The RS Score compares the current symbol against a user-selected benchmark over 21, 63, 126, and 252 anchor bars. A score of 4 of 4 means the symbol is outperforming the benchmark across all four lookback windows. Optional Advanced Inputs: The indicator includes optional sector and industry RS inputs for users who want to manually compare the stock against relevant ETFs such as XLK, SMH, IGV, XBI, XLE, XLF, or other sector/industry proxies. These are turned off by default to keep the tool frictionless. A liquidity filter is also available, but it is turned off by default so the indicator can remain focused on the risk map itself. Credit and Inspiration: This indicator was inspired by concepts shared by several market educators and traders: • Jeff Sun / @jfsrev x.com • @i_manage_risk x.com • StratLab / @StratLaboratory x.com Their publicly shared work on relative strength, momentum leadership, ATR extension frameworks, risk management, and scaling into or out of leaders helped shape the conceptual foundation for this tool. This script is an independent implementation. It is not affiliated with, sponsored by, or endorsed by Jeff Sun, @i_manage_risk, StratLab, or @StratLaboratory, and it is not intended to replicate their complete methodologies. Suggested Use: This indicator is best used as a position-management overlay for stocks that have already been identified as potential leaders through a separate screening process. It can help define areas where the stock may be: • Acting normally within a leadership trend • Becoming extended into profit-taking zones • Pulling back toward constructive support • Losing momentum or entering damage-control territory Important Notes: ATR extension levels are reference zones, not guaranteed targets or support/resistance levels. A stock can remain extended for longer than expected, especially during strong momentum regimes. Conversely, deep pullbacks can signal deterioration rather than opportunity if leadership and trend structure are no longer intact. Use this tool alongside broader market context, earnings risk, volume behavior, trend structure, and personal risk-management rules. This indicator is for educational and informational purposes only and does not constitute financial advice.Wskaźnik Pine Script®od Stereotypical26
Automated Position size calculatorThis is a position size calculator that automatically tracks the current best market price. Its simple to use you just set your account size, max position size and maximum risk percentage per trade. Set your stop loss which can then be dragged on the chart and it will give you a live position size that moves with price. This allows fast traders who get in their trades with market orders to get in with an accurate position once they have defined the stop loss for the trade. This is incredibly efficient compared to any other position size calculations including the standard long and short position tools on trading view you can remove all the noise in the settings and just have you stop loss and take profit lines with the readout of current correct position size. Stop over or under positioning when getting in fast. Wskaźnik Pine Script®od kmandemz911
NTR: NASDAQ M1 - Trend RunnerNASDAQ M1 - MACD Trend Runner is a systematic trend continuation strategy specifically designed and optimized for the NASDAQ index on the 1-minute timeframe. The strategy was developed around a simple observation: Strong directional movements in NASDAQ often emerge after temporary pullbacks toward key moving averages while underlying momentum remains intact. Instead of attempting to predict reversals or market turning points, the objective of this framework is to identify favorable re-entry opportunities within an existing bullish environment and allow winning positions to develop through dynamic trade management. CORE CONCEPT The strategy combines momentum, trend structure, market positioning, and risk control into a single execution model. A valid setup requires: • MACD bullish crossover. • Momentum developing from lower MACD values. • Price trading within a defined proximity to the 200-period moving average. • Positive higher-order trend structure measured through the slope of the 50-period moving average. • Time-of-day filtering to focus on periods of meaningful market participation. This combination seeks to isolate moments where price temporarily retraces into trend support before resuming directional movement. TRADE MANAGEMENT Risk management is based on market structure rather than fixed stop distances. Initial stop placement is determined using recent technical lows, creating a structure-based risk framework that adapts to changing market conditions. Once a position develops sufficient unrealized profit, the strategy transitions into a trailing stop model designed to protect gains while allowing extended trend participation. The goal is not to maximize win rate. The goal is to capture asymmetric reward opportunities where a limited number of successful trades can outweigh multiple small losses. KEY FEATURES • MACD Momentum Confirmation • SMA200 Trend Location Filter • SMA50 Slope Validation • Technical Structure-Based Stop Loss • Dynamic Trailing Stop Management • Session-Based Time Filter • Daily Trade Limitation Logic • Daily Profit Protection Logic • Visual Diagnostic System • Re-entry Detection Framework DESIGN PHILOSOPHY This strategy is intentionally specialized. It was developed, tested, and refined specifically for NASDAQ price behavior on the 1-minute timeframe. While certain concepts may be transferable to other instruments, the framework was not designed as a universal trading system. The primary objective is to exploit recurring short-term trend continuation behavior observed within NASDAQ intraday market structure. DISCLAIMER This strategy is provided for educational and research purposes only. Past performance does not guarantee future results. All trading involves risk, and users should perform their own analysis and validation before applying any strategy in live market conditions. Created by @Peter_n_nStrategia Pine Script®od Peter_n_n39
Risk Controller | MouryaRisk Controller | Mourya - Complete Indicator Guide Overview Risk Controller | Mourya is an institutional-grade, real-time risk management matrix and position layout dashboard built directly onto your chart. Instead of forcing traders to context-switch between spreadsheets and their charting screen, this terminal brings complete mathematical clarity to active position-sizing, trailing stops, real-time tracking, and multi-tier target distributions. Designed for both professional execution and sleek workspace integration, it features absolute flexibility from pure cash or spot accounts to heavily leveraged derivative trades. How to Use (Setup and Workflow) * Apply the indicator to your chart and open the settings menu. * Select your Position Type (Long or Short) and pick your preferred currency symbol from the dropdown menu. * Enter the exact Quantity or Shares you are trading. * Enter your Leverage multiplier. If you are using a standard spot or cash account without leverage, enter 0. * Choose your Brokerage Fee type (Fixed Value or Percentage) and enter the corresponding fee amount so the dashboard can calculate your true net profits. * Enter your total account balance into the Net Cash Available field to enable automatic account risk percentage tracking. * Set your levels visually by clicking the price lines directly on your chart to wake up the TradingView drag handles, then drag your Entry, Stop Loss, and up to 4 Take Profit targets to your desired locations. * If you prefer strict mathematical targets instead of dragging lines, type a value into the Percentage Overrides settings to automatically lock a Take Profit target to an exact asset percentage move. * Customize your workspace by navigating to the Dashboard Settings to move the terminal to any corner of the screen, scale the overall size from tiny to huge, and select custom colors for the header background, header text, and chart lines. * For a quick reset when scanning multiple tickers, open the settings menu, click the Defaults button in the bottom left corner, and select Reset Settings to wipe the board clean back to zero. How it Works (Core Features) * Interactive Chart Synchronization: Bypasses manual price typing by letting you drag and drop your target lines on the live chart. The dashboard matrix instantly recalculates all metrics the moment you release the line. * Live P and L Tracking Module: A dedicated real-time row sits beneath your entry, constantly tracking your exact active Profit and Loss, tick distance, and live Return on Equity (ROE) as the market moves tick-by-tick. * Trailing Stop Loss Support: The mathematical engine adapts instantly. If you drag your Stop Loss line past your Entry price into profit territory, the dashboard flips its internal logic, converting the red loss metrics into secured green profits. * Percentage Overrides: Overrides your manual chart line placement, locking in exact percentage-based profit targets while keeping the Stop Loss manually adjustable. * Dynamic Hide Logic: Automatically collapses and hides Take Profit rows 2, 3, and 4 on your dashboard if you leave their values at zero, keeping your screen clutter-free. * Account Risk Diagnostics: Evaluates your Stop Loss distance against your Net Cash Available to show the exact percentage of your total account at risk. It also flashes a critical margin warning if your required margin exceeds your cash balance. * Margin and Breakeven Engine: Identifies the actual cash margin required to open the position and calculates the exact asset price you need to hit to exit the trade at absolute zero after all entry and exit brokerage fees are deducted. * True Return on Equity (ROE): Scales your return metrics accurately. If you input 0 leverage, it mirrors the raw asset movement. If you input leverage, it calculates the amplified return strictly on your invested margin. * Risk-to-Reward (R:R) Tracking: Instantly evaluates the structural viability of your trade setup by calculating the ratio between your Stop Loss risk and Take Profit 1 potential. * Wick-Sensitive Hit Engine: Mimics real broker limit fills by actively tracking live high and low wicks instead of waiting for a candle to close. The moment a price touches your Stop Loss or Take Profit, the dashboard row flashes in vivid solid colors (Institutional Green for TP, Red for SL) and the chart label flashes yellow. * True Market Context Module: Calculates the exact percentage distance between the real-time live price and critical historical extremes. Includes today's High/Low, a mathematically pure 52-Week High/Low (calculated using exactly 252 trading days to account for weekends and holidays), and the All-Time High/Low. * Context Toggles: Allows you to independently check or uncheck the Day, 52-Week, and All-Time context metrics to save screen space when you do not need them. * Built-in Settings Tooltips: Every single input in the settings menu features an integrated guide next to the small info icon explaining its exact function and mathematical behavior.Wskaźnik Pine Script®od RajMouryaReddy32
Relative Positioning Map█ OVERVIEW A cross-sectional relative-positioning map. It shows where each of up to 20 instruments sits versus a configurable benchmark right now, measured in daily-volatility units of the relative spread and anchored to the current session's open. It is a visualization and decision-support tool for relative momentum, cross-sectional dispersion and mean-reversion attention on a basket that shares one reference — for example semiconductor names against an ETF, or any sector against a broad index. The benchmark is fully configurable, so the same tool works on any universe you want to read against a common index. Because every spread is referenced to the same benchmark and scaled the same way, the curves are directly comparable to one another. █ WHAT IT IS, AND WHAT IT IS NOT It is a relative-momentum and dispersion map, plus optional intraday attention shading. It is not a buy/sell signal generator and not a mean-reversion entry system: the shaded windows are attention zones, and any alert it raises flags a large relative move, not a trade. █ WHAT MAKES IT DIFFERENT Many relative-strength plots normalise a windowed return, such as price now divided by price a fixed number of bars ago. That quantity decays on its own as the lookback rolls past an old move, so the line can fall back toward zero even when price has not reverted at all — the plot and the price disagree. This script avoids that by working on the level of the relative spread rather than on a windowed return, and by anchoring to a static session reference that never chases the level the way a moving average would. █ CONCEPTS For each instrument versus the benchmark: • Relative spread, as a level. s = log( price of instrument / price of benchmark ). It is pulled as a single synthetic ratio series built from the bare tickers. A single series is required because the volatility of a difference carries the cross-covariance of the two legs, which only exists when the ratio is one series. All calculations run at the chosen resolution, which makes the map independent of the chart's own timeframe. • Session anchor. The opening value of the spread is captured at the session open and held fixed for the whole day, resetting each morning. It is static, not a moving average, so it never chases the level. • Positioning value. v = ( spread now minus the opening spread ) divided by the spread's daily volatility. A reading of +2 means the instrument is two daily spread standard deviations above where it opened versus the benchmark; a reading of -5 means it has been five below and stayed there. Persistence is information, not an error: a chronically weak name can legitimately sit near -5 all day. No reversion is implied. • Cross-sectional dispersion bands. At every bar the mean and standard deviation of the values across the whole basket are drawn as envelopes. Wide bands mean high dispersion (names diverging — the classic dispersion-trading backdrop); narrow bands mean the group is moving together. • Benchmark baseline. The benchmark is the zero line by definition. It is drawn as a band tinted by its own short-term trend, so the regime the whole basket is riding is always visible. █ HOW TO USE 1 — Set the Benchmark : the denominator of every spread. Change it to a broad index, a sector ETF, or any instrument. Prefer a bare ticker so the synthetic ratio resolves cleanly. 2 — Fill the Universe slots with up to 20 instruments; leave a slot empty to skip it. 3 — Pick the Resolution : the analysis timeframe that drives the calculations, independent of the chart timeframe. 4 — Read the curves: the top of the pane holds the relative outperformers, the bottom the laggards, scaled in daily spread standard deviations since the open. 5 — Read the dispersion bands for the regime: widening envelopes mean a dispersing basket (the dispersion-trading backdrop); contracting envelopes mean convergence. 6 — Use the grey mean-reversion attention windows as reminders of the times of day you choose to watch for reversion in the spreads. They are visual only; validate any reversion with your own analysis. 7 — Use the mover labels and the ranking table to see which names became extreme or accelerated away from the index, and the daily volatility of each spread for sizing. █ FEATURES • Configurable benchmark and up to 20 instruments, all comparable on one scale. • Chart-timeframe-independent computation through a synthetic ratio evaluated at a chosen resolution. • Cross-sectional dispersion envelopes around the basket mean. • A trend-tinted benchmark baseline. • Two configurable intraday attention windows (mean-reversion zones) plus further session highlights, with timezone and transparency controls. • Mover labels that trigger on extreme positioning OR on acceleration away from zero, with a confirmation requirement, a per-name re-label cooldown, an end-of-session suppression window, and automatic anti-overlap stacking. Historical mover labels are semi-transparent; the live right-margin labels showing the current state are solid. • A ranking table with each name's positioning value and its spread's daily volatility. █ LIMITATIONS • Relative spreads are not guaranteed to mean-revert. Whether a given pair reverts on your timeframe is an empirical question of stationarity and half-life that this tool does not test for you. Treat the shaded windows as attention zones only. • In extended hours the synthetic ratio depends on both legs trading; where one leg is illiquid you will see stepwise or flat segments. That is market microstructure, not a calculation error. • The synthetic ratio is built from bare tickers; an unusual symbol that does not resolve will show no data on that slot. • Higher-timeframe values are requested without lookahead, so historical values are fixed once a bar of the chosen resolution closes; only the currently forming bar updates in real time. This is expected behaviour. █ NOTES This script is a context and visualization tool. It does not place orders, and its alerts are informational rather than trade instructions. Nothing in it constitutes financial advice, and past behaviour visible on the chart does not guarantee future results. ═════════════════════════════════════════════════════════════════════════ Published open-source so the calculations can be inspected and adapted. Reuse is governed by the license shown with the source and by TradingView's House Rules.Wskaźnik Pine Script®od CryptoStatistical116
DCA AccumulatorDCA Accumulator is a portfolio tracking indicator designed to help visualize a dollar-cost averaging plan on the currently selected chart symbol. The script calculates scheduled purchases based on user-defined settings such as total capital, target number of buys, start date, buy frequency, and buy timing. The DCA amount is automatically calculated from the capital deployed divided by the target number of buys. The indicator tracks: * Number of completed buys * Purchase date * Purchase price * Amount invested per buy * Shares accumulated * Total invested capital * Average cost * Current estimated position value * Unrealized profit or loss This tool is intended for planning, tracking, and educational analysis only. It does not generate buy or sell signals, does not predict future price movement, and does not guarantee any outcome. Values are based on chart data and the selected settings, so results may vary depending on symbol, timeframe, available history, and market conditions. Past performance and historical chart behavior do not guarantee future results. This indicator should be used as one part of a broader research and risk management process, not as financial advice or a recommendation to buy, sell, or hold any asset. Wskaźnik Pine Script®od MysticMads2
Asset Class Correlation MatrixAsset Class Correlation Matrix █ OVERVIEW This indicator displays a Pearson correlation matrix for instruments in the asset class of the symbol you are currently viewing. Open a EUR pair and you see the forex matrix. Open gold and you see the metals matrix. Open Bitcoin and you see the crypto matrix. The relevant basket loads automatically, so there is nothing to configure for the common cases. Each cell shows the rolling correlation between two instruments over a lookback period you control. The goal is to make cross-instrument relationships inside an asset class visible at a glance, rather than checking pairs one at a time, or relying on visual comparison. █ AUTOMATIC ASSET CLASS DETECTION The current symbol is matched to a category in three stages: 1. Exact ticker match against the built-in lists below. 2. Name-fragment match for common broker and CFD names. For example XAU and GOLD map to Metals, US500, SP500, NAS100, US100, US30 and DJ30 map to US Indices, DAX, FTSE and NIKKEI map to Global Indices, and WTI, BRENT and NATGAS map to Energy. 3. Asset type fallback using the instrument type, covering crypto, forex, and stocks. If the current symbol is not already part of a built-in list, it is added as the first row and column of the matrix, so the instrument you are on is always included. If no category can be determined, the table shows a short prompt to use the custom symbol list instead of rendering empty. █ BUILT-IN CATEGORIES Forex: 28 majors and crosses across USD, EUR, GBP, JPY, AUD, CAD, CHF and NZD. US Indices: ES, NQ, YM, EMD, RTY. Global Indices: DAX, Euro Stoxx 50, Nikkei, FTSE, ASX 200, Hang Seng. Metals: Gold, Silver, Copper, Platinum, Palladium. Energy: WTI Crude, Natural Gas, Heating Oil, RBOB Gasoline. Agricultural: Corn, Soybeans, Wheat, Soybean Oil, Soybean Meal, Cocoa, Coffee, Sugar, Cotton, Orange Juice. Livestock: Live Cattle, Lean Hogs, Feeder Cattle. Interest Rates: 2Y, 10Y, 30Y US notes, Euro Bund, Euro Buxl. Crypto: BTC, ETH, BCH, LTC. Stocks: SPX, QQQ, AAPL, MSFT, NVDA, AMZN, GOOGL, META, TSLA, AMD. █ READING THE MATRIX Pearson correlation ranges from -1 to +1. Values near +1 mean the two instruments move strongly together. Values near -1 mean they move strongly opposite to each other, which is still a strong relationship, just inverted. Values near 0 mean little to no linear relationship. The strength of a relationship is the distance from zero, in either direction. A reading of -0.9 is just as tight as +0.9. █ COLORS Positive correlation is shown in green, with a stronger shade above the high threshold and a lighter shade above the moderate threshold. Inverse correlation is shown in purple, using the same two strength levels. Everything between the negative and positive moderate threshold is shown as low. All five colors and both thresholds are adjustable in the settings. The thresholds apply symmetrically to positive and inverse values. █ CUSTOM SYMBOL LIST You can override the auto-detected basket with your own comma-separated list of symbols. Spaces are ignored. The custom list is applied only when the current chart symbol is one of the symbols in the list, which keeps the chart instrument anchored in the matrix. You can include an exchange or broker prefix, for example OANDA:EURUSD. A bare ticker such as GBPJPY inherits the current chart prefix. Bare futures contracts such as ES1! resolve on their native exchange. █ SETTINGS Period: lookback in bars for the correlation calculation. Shorter reacts faster and is noisier. Longer is more stable and slower to update. High and Moderate Correlation Thresholds: the cutoffs for the color bands. Colors: the five correlation colors. Symbol List: the optional custom basket. Table Size: text size of the matrix. █ HOW TO USE IT Add the indicator to any chart in a supported asset class. Use it to find pairs that move together or opposite each other, to check diversification across a basket, to spot when a normally correlated pair is diverging, or to choose hedges and pairs-trade candidates. The left column shows the full applied symbol for each row, so you can confirm exactly which feed each value comes from. █ NOTES AND LIMITATIONS Correlation is period-dependent. For tightly linked instruments, a long lookback pushes most values toward the extremes, while a short lookback spreads them out and reacts faster. Choose the period to match the question you are asking. Correlation measures linear co-movement of closing prices on the chart timeframe. It does not imply causation and does not capture non-linear relationships. Broker naming for CFDs varies widely, so some instruments may not auto-detect. When that happens, use the custom symbol list. A maximum of 28 instruments can be loaded in one matrix.Wskaźnik Pine Script®od nilstrades_Zaktualizowano 9
Signal Engine [Backtest]This indicator will work as a strategy tester for any open sourced tradingveiw indicator that produces signals, added a few filters and will build it out more going forward.Wskaźnik Pine Script®od Traderbradg1
Momentum Loss Detector (9/21 MA)Momentum is fading, trim posions. This script uses 9 & 21 day MA. Wskaźnik Pine Script®od michaelcox801
Sector Rotation (Zeiierman)█ Overview Sector Rotation (Zeiierman) is a relative strength rotation tool designed to compare multiple sectors against a selected benchmark and visualize how leadership shifts across the market over time. Instead of viewing sector performance as isolated price charts, the script converts each sector into a normalized RS-Ratio and RS-Momentum reading, then plots them inside a four-quadrant rotation map. The result is a clean visual framework for identifying which sectors are Leading, Weakening, Lagging, or Recovering relative to the broader market. █ How It Works ⚪ Relative Strength Rotation Engine Each sector is measured against a benchmark symbol, such as VTI or SPY, by dividing the sector’s price by the benchmark price. ratio = sc / benchClose This relative strength ratio is normalized into an RS-Ratio value centered around 100. A second momentum calculation measures the rate of change of that RS-Ratio and normalizes it into RS-Momentum, also centered around 100. rsr = 100.0 + (ratio - basis) / sd roc = rsr - rsr rsm = 100.0 + (roc - mb) / msd Together, these two values create the X and Y coordinates for each sector: • RS-Ratio above 100 → relative strength is above average • RS-Ratio below 100 → relative strength is below average • RS-Momentum above 100 → relative momentum is improving • RS-Momentum below 100 → relative momentum is weakening ⚪ Four-Quadrant Rotation Map The chart is divided into four market rotation phases: phase(float x, float y) => x >= 100 and y >= 100 ? "Leading" : x < 100 and y >= 100 ? "Recovering" : x < 100 and y < 100 ? "Lagging" : "Weakening" • Leading → strong relative strength and rising momentum • Weakening → strong relative strength but falling momentum • Lagging → weak relative strength and falling momentum • Recovering → weak relative strength but improving momentum This allows traders to quickly understand where each sector currently sits in the rotation cycle. ⚪ Sector Trails and Movement Directio n Each sector keeps a synchronized historical trail of recent RS-Ratio and RS-Momentum points. ax.unshift(x) ay.unshift(y) if ax.size() > tailLen ax.pop() ay.pop() The newest point is displayed as the sector head marker, while older points form a fading tail behind it. This makes it easier to see not only where a sector is now, but also how it has been rotating over recent samples. The table also shows each sector’s current heading, such as RS improving, RS weakening, momentum rising, or momentum falling. dx = ax.get(0) - ax.get(1) dy = ay.get(0) - ay.get(1) ⚪ Top-Ranked Sector Filtering The script includes an optional ranking system that can display only the most important sector rotations. Sectors can be ranked by: • Fastest movement • Movement toward Leading • Movement toward Recovering • Movement toward Lagging • Movement toward Weakening score(array ax, array ay) => rankMode == "Fastest movement" ? speed(ax, ay) : target(ax, ay, rankMode) When enabled, only the top-ranked sectors are shown on the chart and in the table, helping reduce clutter and focus attention on the most actionable rotations. selected(int id, bool en) => en and ( not useRanking or rankOf(id) <= topRankN ) █ How to Use ⚪ Identify Sector Leadership Look for sectors positioned in the Leading quadrant. These sectors have both strong relative strength and improving momentum compared to the benchmark. Sectors moving into Leading from Recovering can signal early leadership development. ⚪ Watch Weakening Sectors Sectors in the Weakening quadrant still have above-average relative strength, but their momentum is declining. This can indicate that prior leaders are beginning to lose strength. ⚪ Track Recovering Rotations Sectors in the Recovering quadrant have below-average relative strength but improving momentum. These areas may represent early rotation opportunities before relative strength fully turns positive. ⚪ Avoid or Monitor Lagging Sectors Sectors in the Lagging quadrant show both weak relative strength and weak momentum. These sectors are typically underperforming the benchmark and may remain weak until momentum begins to improve. ⚪ Example: Ranked by Fastest Movement In this example, the ranking mode is set to Fastest Movement with Only Show Top Ranked enabled and Top X = 5. The indicator measures how quickly each sector is moving through the rotation cycle by comparing the change in its RS-Ratio and RS-Momentum values between samples. Sectors with the largest movement are ranked highest and displayed on the chart. As a result, only the five sectors showing the strongest relative movement are visible. In this case, all five sectors are positioned inside the Recovering quadrant, indicating that relative momentum has turned positive while relative strength remains slightly below average. The upward and rightward trajectory of the trails suggests these sectors are improving versus the benchmark and may continue rotating toward the Leading quadrant if current momentum persists. ⚪ Example: Top 5 Sectors Ranked Toward Leading In this example, the ranking mode is set to Toward Leading with Only Show Top Ranked enabled and Top X = 5. Rather than ranking sectors by raw speed, the indicator prioritizes sectors moving most directly toward the Leading quadrant, where both relative strength and relative momentum are above the 100 baseline. Technology currently holds the highest rank, as it has already entered the Leading quadrant with both RS-Ratio and RS-Momentum above 100. Its trail shows a strong and sustained rotation from weaker relative conditions into market leadership, making it the strongest candidate according to the selected ranking method. Discretionary and Financials are positioned inside the Recovering quadrant. Although they have not yet reached leadership status, their improving momentum and trajectory toward the upper-right portion of the chart suggest continued relative improvement versus the benchmark. Meanwhile, Staples and Real Estate remain in the Lagging quadrant. However, they are still included in the ranking because their recent movement is directed toward the Leading quadrant, indicating potential early-stage rotation despite their current relative weakness. This ranking mode is particularly useful for identifying sectors that are not necessarily the strongest today, but are showing the most meaningful progress toward future leadership. By focusing on directional rotation rather than speed alone, traders can often spot emerging leaders before they fully establish themselves in the Leading quadrant. ⚪ Example: Top 5 Sectors Ranked Toward Recovering In this example, the ranking mode is set to Toward Recovering with Only Show Top Ranked enabled and Top X = 5. This ranking method prioritizes sectors moving most directly toward the Recovering quadrant, where relative strength remains below average but relative momentum is improving. The goal is to identify sectors that may be emerging from periods of relative underperformance and beginning a new rotation cycle. Communication Services holds the highest rank in this example. Its trail shows a strong upward movement from the Lagging quadrant into Recovering, indicating a significant improvement in relative momentum while still trading below the relative strength baseline. Consumer Staples and Real Estate also display characteristics of sectors transitioning toward recovery. Their recent movement suggests momentum is improving despite their relative strength remaining below average. Technology appears in the Leading quadrant, while Energy remains in Lagging. Although they occupy different quadrants, both are included because their recent directional movement aligns with the path toward the Recovering quadrant based on the ranking algorithm. This ranking mode is particularly useful for traders seeking early rotation opportunities. Rather than focusing on sectors that are already leading, it highlights areas of the market where momentum is beginning to improve and where relative strength may eventually follow if the recovery continues. ⚪ Example: Top 5 Sectors Ranked Toward Lagging In this example, the ranking mode is set to Toward Lagging with Only Show Top Ranked enabled and Top X = 5. This ranking method prioritizes sectors moving most directly toward the Lagging quadrant, where both relative strength and relative momentum fall below the 100 baseline. It helps identify sectors that are losing leadership, weakening relative to the benchmark, or entering periods of sustained underperformance. Technology and Health Care are currently positioned inside the Weakening quadrant. Both sectors still maintain above-average relative strength, but their declining momentum suggests they are rotating away from leadership and moving closer toward Lagging conditions. Meanwhile, Staples, Utilities, and Real Estate remain within the Recovering quadrant. Although momentum is still positive, their relative strength remains below average. Their inclusion in the ranking reflects the direction of their recent movement rather than their current location, indicating they are rotating toward weaker relative conditions. The trails highlight this transition clearly, with several sectors showing movement away from stronger quadrants and toward areas associated with declining performance. This ranking mode is useful for identifying sectors that may be losing institutional sponsorship, weakening relative to the broader market, or approaching the later stages of the relative strength cycle. Traders can use it to spot deteriorating leadership and monitor sectors that may continue underperforming if current trends persist. ⚪ Example: Top 5 Sectors Ranked Toward Weakening In this example, the ranking mode is set to Toward Weakening with Only Show Top Ranked enabled and Top X = 5. This ranking method prioritizes sectors moving most directly toward the Weakening quadrant, where relative strength remains above average but relative momentum has begun to deteriorate. These sectors often represent former leaders that are losing momentum before potentially transitioning into the Lagging quadrant. Technology holds the highest rank in this example. While its relative strength remains above the 100 baseline, its momentum has fallen below 100, placing it firmly inside the Weakening quadrant. Its recent trail illustrates a loss of momentum despite previously strong relative performance, making it a textbook example of a sector rotating away from leadership. Health Care remains in the Leading quadrant but is also ranked highly because its recent movement is directed toward Weakening. Although it continues to outperform the benchmark, the decline in momentum suggests its leadership position may be starting to fade. Materials is already positioned within the Weakening quadrant, while Energy and Real Estate remain in Recovering. Their inclusion reflects the direction of their recent movement rather than their current location, indicating they are rotating toward conditions associated with weakening relative performance. This ranking mode is useful for identifying sectors that may be nearing the end of their leadership cycle. Traders often monitor these sectors for signs of continued momentum deterioration, profit-taking activity, or a potential transition into the Lagging quadrant if relative strength begins to weaken further. █ Settings Benchmark: Selects the symbol each sector is compared against. Calculation Timeframe: Defines the timeframe used for all relative strength and momentum calculations. RS-Ratio Lookback: Controls the normalization period for relative strength. RS-Momentum Lookback: Controls how quickly momentum responds to changes in RS-Ratio. Tail Length: Sets how many historical samples are shown behind each sector. Sample Every N Bars: Controls how frequently new trail points are recorded. Show Sector Table: Shows or hides the summary table with phase, heading, RS, and momentum values. Only Show Top Ranked: Enables filtering so only the strongest ranked sectors are displayed. Top X: Defines how many ranked sectors remain visible. Rank By: Selects how sectors are ranked, either by speed or movement toward a selected quadrant. Sector Inputs: Allows each sector to be enabled, disabled, customized, or replaced with another symbol. Canvas Width: Controls the horizontal size of the rotation map. Canvas Height: Controls the vertical size of the rotation map. Symmetric Bounds Around 100: Keeps the chart balanced around the 100 baseline. Minimum Axis Span: Prevents small movements from being visually exaggerated. ----------------- Disclaimer The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information. All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs. Wskaźnik Pine Script®od Zeiierman77313
NSE Index Membership Checker (Option B parser)Finds the stock is part of which index Each stock is looked at nifty indices pre coded and uses it as referential to form a table. easier to know if the stock is part of large/mid/small/microcap/sectoral index etcWskaźnik Pine Script®od jiteshdembla0
FX Position Size Calculator: Risk-Based Lot SizingEvery blown forex account has the same root cause: position size was too big for the stop loss. This indicator fixes that in one drag. HOW IT WORKS 1. Set your account balance, account currency, and risk % (default 1%) 2. Click on the chart to drop the Entry line, then drag it to your planned entry 3. Click again to drop the Stop Loss line, drag it to your planned stop 4. (Optional) Add a Take Profit line for instant Reward:Risk The info table updates live with: • Lot Size (the headline number) • Units and Micro Lots • Stop distance in pips • Risk in your account currency • Reward:Risk ratio and potential reward ACCOUNT CURRENCY CONVERSION Supports USD, EUR, GBP, AUD, CAD, JPY, and CHF accounts. The indicator pulls the live cross rate from your broker so pip value is always converted correctly, no manual maths, no spreadsheet, no copy-paste between tabs. COVERAGE Forex majors and minors (any pair where the quote currency is one of the seven majors above). Indices, metals, and crypto are not supported, a warning shows if you load it on a non FX symbol. WHY THIS EXISTS Most "position size calculators" on TradingView require you to type the stop in pips. That's the slow part, you have to switch to a measuring tool, count, switch back, type. This one reads the stop straight off the chart, so a full risk, managed setup takes about three seconds. The web version at fxsizecalc.com adds prop firm presets (FTMO, MyForexFunds, FundedNext, etc.) that respect each firm's daily and overall drawdown rules, handy if you're trading a funded account and one bad sizing decision ends the challenge. OPEN SOURCE & FREE The source is fully open, fork it, modify it, build on it. If you want a feature added, drop a comment. Trade safe.Wskaźnik Pine Script®od alexis-jZaktualizowano 7
Best Position Size CalculatorBEST POSITION SIZE CALCULATOR (PINE SCRIPT V6) OVERVIEW: Most traders fail not because of poor entries, but due to terrible risk management. Standard position size calculators are static, rigid, and tedious to use. The Best Position Size Calculator is a dynamic, institutional-grade risk management dashboard built directly into your chart. Instead of just multiplying a percentage by your account balance, this script dynamically optimizes your share size based on live market volatility, broad market conditions, liquidity depth, and execution environments. It serves as an ultimate Go/No-Go gauge for entering trades safely. WHAT THE SCRIPT DOES: The indicator calculates the exact number of shares or contracts to purchase based on your personalized account settings. It visually displays this data in a clean, customizable on-screen dashboard. Beyond simple calculations, the script acts as an automated defensive filter. If market conditions are highly dangerous (parabolic extensions, extreme overbought levels, dry liquidity, or a broken macro trend), the calculator will dynamically lock execution and flag a warning directly on your table, preventing you from taking high-risk setups. HOW IT DOES IT (THE CORE ENGINE): This script features a multi-layered calculation engine across several parameters: Flexible Risk Architectures: You can determine your risk per share using six distinct methodologies: 1. LOD (Low of Day): Dynamically calculates risk based on the current session's low. 2. % of Account: A fixed percentage layout. 3. Volatility Matrix: Uses four specialized volatility tools across multi-timeframe structures (ATR, ADR, qADR, or StDev). Progressive Risk Scaling: It pulls data from a major reference index (like NASDAQ:QQQ) and tracks its Z-score. When the broader market is healthy, it securely scales your risk up (up to 4x base risk); when the broad market is hostile, it dials your risk back down. Smart Rounding Logic: Instead of suggesting fractional shares for large accounts (like buying 4,532.12 shares), the script uses an advanced tiered system to floor shares logically based on block size (rounding to the nearest 10, 50, 100, or 1000 shares dynamically). Defensive Filtering Matrix: The script checks five separate conditions before displaying a size: 1. Liquidity Filter: Assesses average daily dollar volume to protect you from illiquid slippage. 2. Volume Cap Filter: Limits total share size to a maximum percentage of the daily average volume so your order doesn't disrupt the book. 3. Parabolic Filter: Flags when daily and weekly RSIs are simultaneously overextended (above or equal to 80). 4. Z' Trend and Overbought Filters: Maps out the asset's current Z-Score profile (Hostile, Weak, Neutral, Strong, or Overbought). 5. Long-Term Trend Filter: Utilizes a Weekly Rate of Change (ROC 50) filter to verify macro market direction. HOW TO USE IT: 1. Input Your Metrics: Open the settings panel and enter your total Account Size, Base Risk %, and Max Position Size boundaries. 2. Select Your Sizing Method: Choose how you plan to manage stops (such as placing stops under the Low of Day or wrapping it around an ATR multiple). 3. Read the Dashboard: - Blue text indicates a healthy environment with your optimal share size calculated. - Orange text indicates that your size was safely capped to protect you from illiquidity or excessive capital concentration. - Red or Gray text warnings (like Overbought, Low Liquidity, or wROC less than 0) warn you that a filter has triggered, notifying you to skip the trade or exercise extreme caution. WHY THIS SCRIPT IS TRULY ORIGINAL: Traditional position sizing scripts are blind. They treat a trade the exact same way during a roaring bull market as they do in a choppy bear market, or on a highly liquid stock versus an illiquid micro-cap. This script is unique because it introduces dynamic adaptability and defensive restrictions. It combines cross-asset index tracking (Progressive Risk) with localized volatility indicators, then routes the output through institutional volume-cap guardrails and smart rounding. It is not just a calculator; it is an automated risk manager that scales your position size up when odds are in your favor and freezes entry sizes when market conditions turn toxic. IMPORTANT NOTICE AND RISK DISCLAIMER: This tool is designed strictly for informational and educational purposes. Every effort has been made to ensure the mathematical calculations within this Pine Script are correct, robust, and functional. However, software errors, data feed latencies, and market anomalies can occur. Trading financial markets involves substantial risk of loss. Utilizing this script does not guarantee profitability or protection against loss. If you execute a trade and lose money, it is entirely your responsibility. The author assumes no financial liability for any losses, missed opportunities, or damages incurred from the use of this indicator. Always cross-verify position sizes manually before committing capital. Use at your own discretion.Wskaźnik Pine Script®od weeklystockchartsZaktualizowano 2
STOP ATR Classic Long & ShortSTOP ATR Classic Long & Short Professional ATR-based stop management indicator designed for traders who use volatility-driven risk control. This indicator automatically calculates dynamic STOP LONG and STOP SHORT levels using the Average True Range (ATR), helping traders identify adaptive stop-loss zones based on real market volatility. Features Dynamic ATR-based stop levels Separate STOP LONG and STOP SHORT projections Clean dotted-line visualization Real-time volatility measurement Built-in information panel displaying: Current ATR value STOP LONG level STOP SHORT level Adjustable table position Inputs ATR Period ATR Multiplier Table Position How It Works The indicator uses the ATR to calculate adaptive stop zones: STOP LONG → Positioned below price for long trade protection STOP SHORT → Positioned above price for short trade protection As market volatility expands or contracts, stop levels automatically adjust to current conditions. Best Use Cases Risk management Swing trading Intraday trading Trend-following systems Volatility-based stop placement Compatible with all markets and timeframes: Forex Crypto Stocks Futures Indices Notes This indicator does not provide buy or sell signals. It is designed as a professional trade management and stop placement tool. © 2026 Ronald Sena. All rights reserved.Wskaźnik Pine Script®od Ronald_Sena2
R:R Levels просто 3 горизонтальні лінії TP на графіку, нічого зайвого!Created a file, read a fileCreated a file, read a fileВсе максимально чисто — тільки лінії: 🔵 Вхід 🟠 SL — пунктир 1:1 — тонка лінія 🟢 1:2 — товста 🟠 1:3 — точковаWskaźnik Pine Script®od arsq12
Position CalculatorВсі параметри (вхід, SL, маржа, плече, депозит) змінюєш через Settings індикатора — не треба лізти в код.Wskaźnik Pine Script®od arsq6
Position Size Calculator (For Breakout/Pullback Immediate Entry)This is a trading script designed specifically for swing traders who use the Low of the Day (LOD) as their stop loss — a strategy employed by legendary traders such as Oliver Kell, Maggie, and many other professional market operators. The core purpose of this script is to deliver instant and accurate share quantity calculations at the exact moment of a breakout or pullback entry. It eliminates time-consuming manual calculations, allowing you to execute your orders quickly and avoid missing the optimal entry price as the stock price often surges within minutes. The script is self-explanatory. Shares to buy = Risk per Trade / Difference to LOD. If it shows "BAD", it means either Difference to LOD > half of ATR or 5%Wskaźnik Pine Script®od lianson23115