Weighted KDE Mode🙏🏻 The ‘ultimate’ typical value estimator, for the highest computational cost @ time complexity O(n^2). I am not afraid to say: this is the last resort BFG9000 you can ‘ever’ get to make dem market demons kneel before y’all
Quickguide
pls read it, you won’t find it anywhere else in open access
When to use:
If current market activity is so crazy || things on your charts are really so bad (contaminated data && (data has very heavy tails || very pronounced peak)), the only option left is to use the peak (mode) of Kernel Density Estimate , instead of median not even mentioning mean. So when WMA won’t help, when WPNR won’t help, you need this thing.
Setting it up:
Interval: choose what u need, you can use usual moving windows, but I also added yearly and session anchors alike in old VWAP (always prefer 24h instead of Session if your plan allows). Other options like cumulative window are also there.
Parameters: this script ain't no joke, it needs time to make calculations, so I added a setting to calculate only for the last N bars (when “starting at bar N” is put on 0). If it’s not zero it acts as a starting point after which the calculations happen (useful for backtesting). Other parameters keep em as they are, keep student5 kernel , turn off appropriate weights if u apply it to other than chart data, on other studies etc.
But instead of listening to me just experiment with parameters and see what they change, would take 5 mins max
Been always saying that VWAP is ish, not time-aware etc, volume info is incorporated in a lil bit wrong way… So I decided not just to fix VWAP (you can do it yourself in 5 mins), but instead to drop there the Ultimate xD typical value estimator that is ever possible to do. Time aware, volume / inferred volume aware, resistant to all kinds of BS. This is your shieldwall.
How it works:
You can easily do a weighted kernel density estimation, in our case including temporal and intensity information while accumulating densities. Here are some details worth mentioning about the thing:
Kernels are raw (not unit variance), that’s easier to work with later.
h_constants for each kernel were calculated ^^ given that ^^ with python mpmath module with high decimal precision.
In bandwidth calculation instead of using empirical standard deviation as a scaler, I use... ta.range(src, len) / math.sqrt(12)
...that takes data range and converts it to standard deviation, assuming data is uniformly distributed. That’s exactly what we need: a scaler that is coherent with the KDE, that has nothing to do with stdevs, as the kernels except for gaussian ones (that we don’t even need to use). More importantly, if u take multiple windows and see over time which distro they approach on the long term, that would be the uniform one (not the normal one as many think). Sometimes windows are multimodal, sometimes Laplace like etc, so in general all together they are uniform ish.
The one and only kernel you really need is Student t with v = 5 , for the use case I highlighted in the first part of the post for TV users. It’s as far as u can get until ish becomes crazy like undefined variance etc. It has the highest kurtosis = 9 of all distros, perfect for the real use case I mentioned. Otherwise, you don’t even need KDE 4 real, but still I included other senseful kernels for comparison or in case I am trippin there.
Btw, don’t believe in all that hype about Epanechnikov kernel which in essence is made from beta distribution with alpha = beta = 2, idk why folk call it with that weird name, it’s beta2 kernel. Yes on papers it really minimises AMISE (that’s how I calculated h constants for all dem kernels in the script), but for really crazy data (proper use case for us), it ain't provides even ‘closely’ compared with student5 kernel. Not much else to add.
Shout out to @RicardoSantos for inspiration, I saw your KDE script a long time ago brotha, finna got my hands on it.
∞
Индикаторы и стратегии
S&P 500 Scalper Pro [Trend + MACD] 5 minfor scalping 5 min S&P on 5 min chart put SL on 20 min ma and take 2:1 risk
The Biz (ADX/DI/RSI Revised)This is an indicator that will help you trade the GEX, showing when price is trending hard, or about to reverse, and will guide you in picking direction and bias. (INDICATOR SLIGHTLY LAGS)
ONLY FOR EUR/USD : EMA9/EMA20 + RSI + MACD + Fibonacci (v6) FOR PAIRS WHICH HAS A MOMENTUM , trade only using manually not algo , use proper RR.
good luck
RSI Golden & Dead Cross AlertRSI 14 Golden And Dead Cross Indicator
It will give you an alert when there are rsi golden and dead cross.
It is a intergated signal: Crossing up and Crossing down of RSI.
BTC / XAU Calculator/Hesaplayıcı
USER GUIDE
BTC/XAU Calculator is a table-based indicator that displays Bitcoin price, Gold price (XAU/USD), and the BTC/XAU ratio simultaneously. It pulls real-time market data and calculates values based on your manual inputs.
⸻
Features
• Automatically fetches live BTCUSD and XAUUSD prices.
• Supports two-way manual calculations:
• BTC price → Ratio calculation
• Ratio → BTC price calculation
• Clear table layout showing Market vs Calculated values.
• Compatible with Binance, OANDA, and all brokers.
⸻
1. Settings
Gold Price (XAU/USD)
• When “Use live XAU price” is enabled, the indicator uses real-time XAU/USD.
• If disabled, you can enter your own gold price manually.
⸻
2. Calculation Modes
A) Calculate BTC from Ratio
BTC = Ratio × Gold price
Example:
XAU = 4200
Ratio = 19.08
→ BTC = 4200 × 19.08 = 80,136 USD
⸻
B) Calculate Ratio from BTC
Ratio = BTC price ÷ Gold price
Example:
BTC = 90,000
XAU = 4250
→ Ratio = 90,000 / 4,250 = 21.18
3. Suggested Uses
• Evaluate BTC as cheap/expensive relative to gold
• BTC target projections based on gold
• Macro hedge and correlation analysis
• BTC/XAU ratio-based scenario modeling
⸻
Notes
• This indicator does not generate trading signals.
• It is intended for numerical comparison and scenario building only.
Source: The design and calculation logic of this indicator were created in collaboration with OpenAI’s ChatGPT model.
Buffett Quality Filter (TTM)//@version=6
indicator("Buffett Quality Filter (TTM)", overlay = true, max_labels_count = 500)
// 1. Get financial data (TTM / FY / FQ)
// EPS (TTM) for P/E
eps = request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE_BASIC", "TTM")
// Profitability & moat (annual stats)
roe = request.financial(syminfo.tickerid, "RETURN_ON_EQUITY", "FY")
roic = request.financial(syminfo.tickerid, "RETURN_ON_INVESTED_CAPITAL", "FY")
// Margins (TTM – rolling 12 months)
grossMargin = request.financial(syminfo.tickerid, "GROSS_MARGIN", "TTM")
netMargin = request.financial(syminfo.tickerid, "NET_MARGIN", "TTM")
// Balance sheet safety (quarterly)
deRatio = request.financial(syminfo.tickerid, "DEBT_TO_EQUITY", "FQ")
currentRat = request.financial(syminfo.tickerid, "CURRENT_RATIO", "FQ")
// Growth (1-year change, TTM)
epsGrowth1Y = request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE_BASIC_ONE_YEAR_GROWTH", "TTM")
revGrowth1Y = request.financial(syminfo.tickerid, "REVENUE_ONE_YEAR_GROWTH", "TTM")
// Free cash flow (TTM) and shares to build FCF per share for P/FCF
fcf = request.financial(syminfo.tickerid, "FREE_CASH_FLOW", "TTM")
sharesOut = request.financial(syminfo.tickerid, "TOTAL_SHARES_OUTSTANDING", "FQ")
fcfPerShare = (not na(fcf) and not na(sharesOut) and sharesOut != 0) ? fcf / sharesOut : na
// 2. Valuation ratios from price
pe = (not na(eps) and eps != 0) ? close / eps : na
pFcf = (not na(fcfPerShare) and fcfPerShare > 0) ? close / fcfPerShare : na
// 3. Thresholds (Buffett-style, adjustable)
minROE = input.float(15.0, "Min ROE %")
minROIC = input.float(12.0, "Min ROIC %")
minGM = input.float(30.0, "Min Gross Margin %")
minNM = input.float(8.0, "Min Net Margin %")
maxDE = input.float(0.7, "Max Debt / Equity")
minCurr = input.float(1.3, "Min Current Ratio")
minEPSG = input.float(8.0, "Min EPS Growth 1Y %")
minREVG = input.float(5.0, "Min Revenue Growth 1Y %")
maxPE = input.float(20.0, "Max P/E")
maxPFCF = input.float(20.0, "Max P/FCF")
// 4. Individual conditions
cROE = not na(roe) and roe > minROE
cROIC = not na(roic) and roic > minROIC
cGM = not na(grossMargin) and grossMargin > minGM
cNM = not na(netMargin) and netMargin > minNM
cDE = not na(deRatio) and deRatio < maxDE
cCurr = not na(currentRat) and currentRat > minCurr
cEPSG = not na(epsGrowth1Y) and epsGrowth1Y > minEPSG
cREVG = not na(revGrowth1Y) and revGrowth1Y > minREVG
cPE = not na(pe) and pe < maxPE
cPFCF = not na(pFcf) and pFcf < maxPFCF
// 5. Composite “Buffett Score” (0–10) – keep it on ONE line to avoid line-continuation errors
score = (cROE ? 1 : 0) + (cROIC ? 1 : 0) + (cGM ? 1 : 0) + (cNM ? 1 : 0) + (cDE ? 1 : 0) + (cCurr ? 1 : 0) + (cEPSG ? 1 : 0) + (cREVG ? 1 : 0) + (cPE ? 1 : 0) + (cPFCF ? 1 : 0)
// Strictness
minScoreForPass = input.int(7, "Min score to pass (0–10)", minval = 1, maxval = 10)
passes = score >= minScoreForPass
// 6. Visuals
bgcolor(passes ? color.new(color.green, 80) : na)
plot(score, "Buffett Score (0–10)", color = color.new(color.blue, 0))
// Info label on last bar
var label infoLabel = na
if barstate.islast
if not na(infoLabel)
label.delete(infoLabel)
infoText = str.format(
"Buffett score: {0} ROE: {1,number,#.0}% | ROIC: {2,number,#.0}% GM: {3,number,#.0}% | NM: {4,number,#.0}% P/E: {5,number,#.0} | P/FCF: {6,number,#.0} D/E: {7,number,#.00} | Curr: {8,number,#.00}",
score, roe, roic, grossMargin, netMargin, pe, pFcf, deRatio, currentRat)
infoLabel := label.new(bar_index, high, infoText,
style = label.style_label_right,
color = color.new(color.black, 0),
textcolor = color.white,
size = size.small)
MTF RSI Stacked + AI + Gradient MTF RSI Stacked + AI + Gradient
Quick-start guide & best-practice rules
What the indicator does
Multi-Time-Frame RSI in one pane
• 10 time-frames (1 m → 1 M) are stacked 100 points apart (0, 100, 200 … 900).
• Each RSI is plotted with a smooth red-yellow-green gradient:
– Red = RSI below 30 (oversold)
– Yellow = RSI near 50
– Green = RSI above 70 (overbought)
• Grey 30-70 bands are drawn for every TF so you can see extremities at a glance.
Built-in AI (KNN) signal
• On every close of the chosen AI-time-frame the script:
– Takes the last 14-period RSI + normalised ATR as “features”
– Compares them to the last N bars (default 1 000)
– Votes of the k = 5 closest neighbours → BUY / SELL / NEUTRAL
• Confidence % is shown in the badge (top-right).
• A thick vertical line (green/red) is printed once when the signal flips.
How to read it
• Gradient colour tells you instantly which TFs are overbought/obove sold.
• When all or most gradients are green → broad momentum up; look for shorts only on lower-TF pullbacks.
• When most are red → broad momentum down; favour longs only on lower-TF bounces.
• Use the AI signal as a confluence filter, not a stand-alone entry:
– If AI = BUY and 3+ higher-TF RSIs just crossed > 50 → consider long.
– If AI = SELL and 3+ higher-TF RSIs just crossed < 50 → consider short.
• Divergences: price makes a higher high but 1 h/4 h RSI (gradient) makes a lower high → possible reversal.
Settings you can tweak
AI timeframe – leave empty = same as chart, or pick a higher TF (e.g. “15” or “60”) to slow the signal down.
Training bars – 500-2 000 is the sweet spot; bigger = slower but more stable.
K neighbours – 3-7; lower = more signals, higher = smoother.
RSI length – 14 is standard; 9 gives earlier turns, 21 gives fewer false swings.
Practical trading workflow
Open the symbol on your execution TF (e.g. 5 m).
Set AI timeframe to 3-5× execution TF (e.g. 15 m or 30 m) so the signal survives market noise.
Wait for AI signal to align with gradient extremes on at least one higher TF.
Enter on the first gradient reversal inside the 30-70 band on the execution TF.
Place stop beyond the swing that caused the gradient flip; target next opposing 70/30 level on the same TF or trail with structure.
Colour cheat-sheet
Bright green → RSI ≥ 70 (overbought)
Bright red → RSI ≤ 30 (oversold)
Muted colours → RSI near 50 (neutral, momentum pause)
That’s it—one pane, ten time-frames, colour-coded extremes and an AI confluence layer.
Keep the chart clean, use price action for precise entries, and let the gradient tell you when the wind is at your back.
Oleg_Aryukov_StrategyTrader Oleg Aryukov's strategy, based on a variety of oscillators, allows him to try to catch reversals in cryptocurrencies.
DIY ZP + Scalps: Multi-System Confirmation & Fast Scalping💡 Overview
This is an advanced, amalgamated trend-following and momentum indicator designed to provide dual-layer signals: a highly Confirmed (Low-Risk) Signal for swing/position trades, and a Fast Scalping Signal for high-frequency entries.
It combines the logic of a multi-indicator confirmation system (derived from "DIY ZP" concepts) with a sensitive momentum crossover system (derived from "Scalp Pro" concepts).
✨ Key Features
Dual-Signal Output: Separates signals into "CONFIRM" (high probability, slow) and "SP Buy/Sell" (high sensitivity, fast).
Multi-Confirmation Engine: The primary "CONFIRM" signals only fire when ALL enabled filtering criteria agree within a user-defined expiry window:
EMA 200 Filter (Trend Direction)
MACD Crossover (Momentum)
Supertrend (Volatility/Trend Structure)
Fast Scalp Pro Momentum: Uses a proprietary, low-latency, zero-lagged filter to generate rapid "SP Buy/Sell" signals for immediate execution.
Integrated Trend Lines: Plots EMA (200), MA (5, 13, 50), and Supertrend on the chart for visual context and trailing stops.
All-in-One Alerts: Features separate alertcondition() calls for Primary, Scalp Pro, and Supertrend Reversal events, making it easy to set up mobile notifications for specific trade styles.
⚙️ How to Use
Select Your Style: Use the input settings to enable/disable the primary filters (EMA, MACD, Supertrend) to customize the confirmation strictness.
CONFIRM LONG/SHORT (Primary Signal): Recommended for swing traders. These signals are delayed but offer higher probability as they satisfy all major trend and momentum conditions.
SP Buy/Sell (Scalp Pro Signal): Recommended for scalpers and day traders. Use this signal to enter early, but manage risk strictly (e.g., using a 1.0 ATR target to move to break-even immediately).
Risk Management: The integrated Supertrend line serves as an excellent dynamic trailing stop loss.
📝 Important Note
The indicator calculates internal momentum lines (Scalp Pro MACD/Signal) with high values to ensure accuracy. These lines are explicitly hidden (display.none) to prevent distortion of your main price chart's overlay.
BTC Strategy Institutional Multi-Factor EngineThis indicator is designed to bring an institutional grade analytical framework to Bitcoin trading by synthesizing technical price action with deeper market drivers such as Open Interest, volume flow, and macro correlations. Unlike standard indicators that often rely on a single metric, this tool employs an ensemble Machine Learning engine that aggregates and weights various factors ranging from momentum and mean reversion to cross-market data to generate high-probability entry signals. To ensure these signals remain robust against typical crypto volatility, the raw data is processed through an adaptive Kalman Filter rather than traditional moving averages, providing a significantly clearer view of the true underlying trend.
What distinguishes this tool is its built in paper trading simulation engine. While it functions technically as an indicator, it actively tracks hypothetical trade execution in the background to display real time performance metrics such as Win Rate, Profit Factor, and Drawdown directly on the dashboard, giving you immediate insight into the strategy's current effectiveness without needing to run a separate backtest. The system also integrates advanced risk management modules, including a Liquidation Cascade detection system that temporarily blocks signals during violent sell-offs to prevent catching "falling knives," as well as dynamic signal thresholds that automatically adjust based on market stress. By further contextualizing price action within the 4-year halving cycle and filtering out low-liquidity weekend noise, this strategy aims to align short-term execution with the broader market regime, offering a complete, data-driven trading system in a single chart overlay.
Session important reference linesThis indicator automatically plots crucial price reference points for the Regular Trading Hours (RTH) session, including Yesterday's High/Low/Close, Session Open, Midpoint, and the Initial Balance (IB) range with its 2x extension .
In the example above the lines are:
Dotted green - Today's open price
Dashed yellow - Today's mid line
Solid yellow - Initial Balance high/low
Dotted yellow - Initial Balance extension
Dotted dark green - Previous session high
Dotted dark red - Previous session low
Dotted orange - Previous session close
Opcje: Sugestia Strike'ów (HV Based)How to interpret this script?
1. Dotted Lines:
Red (Upper): The price level above which the asset is statistically unlikely to rise within X days. This is where you look for a Strike Price to sell a CALL option (Short Call).
Green (Lower): The price level below which the asset is statistically unlikely to fall. This is where you look for a Strike Price to sell a PUT option (Short Put).
2. Sigma Multiplier (Important!):
The default setting is 2.0. This represents 2 Standard Deviations.
In a normal distribution, 2 standard deviations cover approximately 95% of outcomes.
This means you theoretically have a 95% probability that the option will expire worthless (meaning you keep the full premium), but the premium received will be lower.
If you change it to 1.0, you will be closer to the current price = higher premium, but the risk of assignment (exercise) increases to about 32%.
3. DTE (Days to Expiration):
Enter the actual number of days for the option you intend to sell (e.g., 45). The script will calculate where the price might be in 45 days based on current volatility.
RSI < 25 + Price Below 200 SMA (4H) - Text Signal
Price below 200MA on 4hr chart
RSI is below 25 ovsersold
Start buying small positions at every signal
Eventually price will capture the 200MA on 4hr
This will work great for NVDA, AAPL, MSFT, NFLX, PANW, AMZN, PLTR, CRWD and META.
Good for swing trading based on price action, RSI oversold and reversal
Add more on the Pin bar candles on 4hr time frame once the price is oversold.
BankNifty - 2x Nifty Differencedifference between Banknifty near month future - 2x nifty near month future
5 DMA Entry Plus5 DMA Entry Plus - Multi-Strategy Entry Signal Indicator
Overview:
The 5 DMA Entry Plus is a versatile entry signal indicator that combines multiple proven technical analysis methods to identify potential buy opportunities. This indicator is designed to be highly customizable, allowing traders to toggle between different entry strategies or combine them for confluence-based entries.
Key Features:
1. Multiple Entry Strategy Options:
Default Close Above Entry: Triggers when price closes above the 5-day moving average (with optional HMA filter)
Green Wick Candle Signal: Identifies bullish candles where the wick pierces above key moving averages, indicating rejection of lower prices
5DMA Zero/Upslope Entry: Generates signals when the 5DMA is flat or sloping upward, confirming momentum
HMA Cross Entry: Triggers when price crosses above the Hull Moving Average, a responsive momentum indicator
2. Adaptive HMA Filter:
Toggle the HMA (Hull Moving Average) filter on or off to adjust signal sensitivity. When enabled, price must be above both the 5DMA and 20 HMA for confirmation. When disabled, only the 5DMA is required, generating more frequent signals.
3. Smart Reset Logic:
The indicator includes intelligent reset functionality that prevents signal spam. Once an entry signal is generated, no new signals appear until price closes below the moving average(s), ensuring clean, actionable entries without clutter.
4. Visual Components:
5-Day Moving Average (Blue Line): The primary trend reference
20-Period Hull Moving Average (Orange Line): Fast-responding momentum filter
Buy Signals (Green Labels): Clear "Buy" labels appear below candles when entry conditions are met
Built-in Alerts: Set up custom alerts to be notified when entry signals trigger
Customizable Inputs:
Use HMA Filter: Enable/disable the 20 HMA confirmation requirement
Include Green Wick Candle Signal: Toggle wick-based entry detection
Use 5DMA Zero/Upslope Entry: Enable slope-based entry logic
Use HMA Cross Entry: Enable HMA crossover signals
HMA Length: Adjust the Hull Moving Average period (default: 20)
Best Use Cases:
Swing trading on daily and 4-hour timeframes
Identifying pullback entries in uptrends
Combining multiple confirmation signals for high-probability setups
Filtering entries in momentum-based strategies
Strategy Flexibility:
This indicator allows you to use each entry method independently or combine multiple methods for confluence. Test different combinations to find what works best for your trading style and the instruments you trade.
Risk Management Note:
This indicator identifies potential entry points but does not provide exit signals or stop-loss levels. Always use proper risk management and combine with your own exit strategy.
Séparateur H4 & DailyH4 & Daily Separator - TradingView Indicator
This Pine Script v6 indicator draws infinite vertical lines to mark H4 and Daily candle separations on your chart.
Features:
H4 Separations: Marks candles starting at 3am, 7am, 11am, 3pm, 7pm, and 11pm
Daily Separations: Marks candles starting at midnight (00:00)
Fully Customizable:
Toggle H4 and/or Daily lines independently
Choose line color, thickness (1-4), and style (Solid, Dotted, Dashed)
Control the number of visible vertical lines (1-500)
Use Case:
Perfect for traders who want to visualize higher timeframe separations while trading on lower timeframes. Helps identify H4 and Daily candle opens without switching charts.
Installation:
Simply copy the code into TradingView's Pine Editor and add it to your chart. All settings are adjustable in the indicator's settings panel.
SMAs (10,50,100,200) by BenderDescription:
Multi-timeframe Simple Moving Average indicator displaying four popular SMAs (10, 50, 100, 200) commonly used for trend analysis and support/resistance levels. Each SMA is fully customizable with individual settings for period length, data source, timeframe, and color. Perfect for traders who want to view higher timeframe SMAs on lower timeframe charts or combine multiple timeframe analyses in one view.
Key Features:
Four independent SMAs with default periods of 10, 50, 100, and 200
Multi-timeframe capability - view daily SMAs on any chart timeframe
Fully customizable: length, source (close, open, high, low, etc.), timeframe, and color
Toggle each SMA on/off individually
Clean, organized settings menu with grouped parameters
Semi-transparent lines for better chart visibility
Price Channel Breakout Strategy — Long & ShortThis strategy is a dual-direction Price Channel breakout system designed for high-volatility indices such as US30, NAS100, and XAUUSD.
It enters long when price breaks above the highest high of the past N bars, and enters short when price breaks below the lowest low.
A key feature is the use of fixed dollar-based take-profit and stop-loss, making the strategy adaptive across symbols with different tick values.
Core Logic
Long entry when price breaks the N-bar high
Short entry when price breaks the N-bar low
Dollar-based TP and SL (converted to ticks automatically)
Suitable for trending and breakout-friendly markets
Backtest Notes (US30 Example)
Sharpe Ratio: 2.7
Profit Factor: 2.111
Total Return (12-month backtest): +46.89%
Max Drawdown: 0.26%
Trades: 3,666
This strategy performs well in sustained volatility environments and is particularly effective for intraday momentum bursts on US30.
Highlighted Range (3 Sessions)Shows the range of 3 time sessions customizable.
But it's all one color for simplicity.






















