Custom Stochastic Momentum Index (SMI)📊 Custom Stochastic Momentum Index (SMI)
Custom Stochastic Momentum Index (SMI) is a refined momentum oscillator designed to identify trend strength, reversals, and overbought/oversold conditions with higher accuracy than traditional stochastic indicators.
This version gives traders full control over smoothing and signal calculation, making it suitable for intraday, swing, and positional trading across all markets.
🔹 Key Features
Fully customizable %K Length
Adjustable %K Smoothing and Double Smoothing
Configurable %D Period
User-selectable %D Moving Average Type
SMA
EMA
WMA
RMA
Fixed and proven levels:
Overbought: +40
Oversold: −40
Automatic shaded zones above overbought and below oversold levels
Clear K–D crossover labels for precise entry and exit timing
Clean, non-repainting logic
📈 How to Use
Bullish Setup
Look for %K crossing above %D near or below −40
Bearish Setup
Look for %K crossing below %D near or above +40
Trend Confirmation
Trade crossovers in the direction of the higher-timeframe trend
Works best when combined with:
Price Action
Support & Resistance
Market Structure / SMC concepts
🎯 Best For
Intraday traders
Swing traders
Momentum-based strategies
Confirmation with structure or breakout systems
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
It does not provide financial advice. Always use proper risk management.
Göstergeler ve stratejiler
US Stock Market Performance by Sector[Dots3Red]This indicator displays the annual performance of the U.S. stock market by sector.
Selected major sectors
IND – Industrials
TECH – Technology
HTH – Healthcare
FIN – Financials
COMM – Communication Services
CONSCYC – Consumer Cyclical
CONSSTAP – Consumer Staples
ENERGY – Energy
REAL ESTATE – Real Estate
BASMAT – Basic Materials
The data is presented in a table below the main chart.
Green cell — the sector was bullish during that year
Red cell — the sector was bearish during that year
The table automatically sorts sectors by performance, placing the best-performing sector at the top for each year.
NOTE:
Annual performance is calculated starting from 2020 by default (arbitrarily chosen) and can be adjusted by the user.
PRO AI SUPER TREND JEETUNSE ENGINEIts super super super trend on the tradingview one of the best money making indicator
SMC Precision Master# SMC Precision Master - Professional Smart Money Analysis
## Overview
SMC Precision Master combines Smart Money Concepts (SMC) methodology with institutional trading tools to create a multi-factor confluence system for discretionary trading. This indicator integrates Order Blocks, Fair Value Gaps, Premium/Discount zones, Market Structure, Ichimoku Cloud, Fibonacci retracements, and Previous Day levels into a unified analytical framework.
---
## Why This Combination? (Mashup Justification)
**The Problem with Single Indicators:**
- Order Blocks alone may trigger in Premium zones (low probability buy zones)
- Fair Value Gaps without supply/demand context lack directional bias
- Premium/Discount zones alone don't provide precise entry levels
- Market Structure can break repeatedly in ranging conditions
**The Solution - Multi-Factor Confluence:**
This mashup creates a **filtering system** where multiple independent factors must align before highlighting high-probability setups. Each component validates the others:
1. **Market Structure** (BOS/MSS/CHoCH) → Determines allowed trade direction
2. **Premium/Discount Zones** → Validates institutional buy/sell context
3. **Order Blocks + FVG** → Identifies precise entry zones with overlap
4. **Fibonacci OTE** → Targets the 61.8-78.6% optimal entry range
5. **Ichimoku Cloud** → Confirms higher timeframe trend alignment
6. **Previous Day Levels** → Adds ICT reference points for bias
**Result:** The indicator only shows high-confluence setups where 3-5 factors simultaneously confirm, significantly reducing false signals compared to using components separately.
---
## How It Works - Technical Methodology
### Order Block Detection (3-Criteria System)
**Criterion 1 - Pattern:**
- Bullish OB: Bearish candle (close < open) before upward impulse
- Bearish OB: Bullish candle (close > open) before downward impulse
**Criterion 2 - Impulse Validation:**
- Standard Mode: Impulse high > OB high (bullish) or low < OB low (bearish)
- Strict Mode: Impulse must fully engulf OB candle
**Criterion 3 - Volatility Filter:**
Displacement = |Impulse Close - OB extremity|
Minimum Required = ATR(14) × Multiplier (default 0.5)
Valid if: Displacement ≥ Minimum
**Mitigation:** OBs tracked until price reaches 50% midpoint (Close or Wick-based).
---
### Fair Value Gap Calculation
**Detection Logic:**
Bullish FVG:
Gap = Current Low - High
Valid if: Gap > ATR(14) × 0.3 AND no candle overlap
Bearish FVG:
Gap = Low - Current High
Valid if: Gap > ATR(14) × 0.3 AND no candle overlap
**Visualization:** 13 layered boxes per FVG to emphasize liquidity void depth.
**Mitigation:** FVG removed when price fully crosses the gap zone.
---
### Premium/Discount Zones
**Calculation:**
Range Source (configurable):
Daily: request.security("D", high/low)
Weekly: request.security("W", high/low)
Monthly: request.security("M", high/low)
Trailing: Updates on each BOS
5-Zone Fibonacci Mode:
Strong Premium: 78.6% - 100%
Premium: 61.8% - 78.6% (OTE zone)
Equilibrium: 38.2% - 61.8%
Discount: 23.6% - 38.2%
Strong Discount: 0% - 23.6%
**Purpose:** Institutional context - buy in Discount, sell in Premium.
---
### Market Structure (BOS/MSS/CHoCH)
**Logic:**
Swing Detection: ta.pivothigh/pivotlow with adjustable length (default 10)
BOS (Break of Structure):
Price breaks last swing high in uptrend = continuation
Price breaks last swing low in downtrend = continuation
MSS (Market Structure Shift):
BOS occurs opposite to current trend = reversal signal
CHoCH (Change of Character):
Price touches but doesn't break previous swing = early warning
---
### Ichimoku Cloud (Multi-Timeframe)
**Calculation:**
Tenkan = (9-high + 9-low) / 2
Kijun = (26-high + 26-low) / 2
Senkou A = (Tenkan + Kijun) / 2
Senkou B = (52-high + 52-low) / 2
MTF: request.security() for higher timeframe if specified
Cloud color: Green if Senkou A ≥ B, Red otherwise
**Filter:** Price above cloud = bullish, below = bearish, in cloud = neutral.
---
### Fibonacci Auto-Retracement
**Method:**
SwingHigh = ta.highest(high, 80)
SwingLow = ta.lowest(low, 80)
Range = SwingHigh - SwingLow
Levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
OTE Zone Box: 61.8% - 78.6% projected forward
---
### Previous Day Levels (ICT)
**Calculation:**
PDH = request.security("D", high, lookahead=on)
PDL = request.security("D", low, lookahead=on)
PDM = (PDH + PDL) / 2
Daily Bias:
Close > PDM = Bullish
Close < PDM = Bearish
Break PDH/PDL = Strong bias confirmation
---
## Dashboard - Real-Time Confluence Tracking
Displays current market state:
- **Trend:** Current structure (Bullish/Bearish/Neutral)
- **HTF Bias:** Higher timeframe direction
- **OB:** Active Order Block status
- **FVG:** Active Fair Value Gap status
- **OB+FVG:** Confluence confirmation (✓ = overlap)
- **P/D Zone:** Current Premium/Discount position
- **Fib OTE:** Inside 61.8-78.6% zone or not
- **Daily Bias:** ICT daily directional bias
- **RSI(14):** Oversold/Neutral/Overbought
- **Ichimoku:** Price position vs cloud
---
## How to Use
### Trading Workflow
**1. Market Context (Dashboard Check)**
- Identify trend direction (Trend + HTF Bias)
- Check Premium/Discount position
- Verify daily bias alignment
**2. Zone Identification**
- Locate active Order Blocks matching trend
- Check for FVG overlap (OB+FVG = ✓)
- Verify zone is in correct P/D area (LONG = Discount, SHORT = Premium)
**3. Entry Confirmation**
- Price enters identified OB zone
- Preferably within Fibonacci OTE zone
- Ichimoku cloud alignment (if enabled)
- Structure break in entry direction
**4. Risk Management**
- Stop: Outside OB zone + buffer
- Target: Opposite P/D zone or next OB
- Risk: 1-2% per trade maximum
---
## Settings Adjustment by Timeframe
**M1-M5 Scalping:**
- Swing Length: 5-7
- OB Filter: ATR 0.3x
- P/D Mode: Daily Range
**M15-H1 Day Trading:**
- Swing Length: 10 (default)
- OB Filter: ATR 0.5x (default)
- P/D Mode: Daily Range
**H4-D1 Swing Trading:**
- Swing Length: 15-20
- OB Filter: ATR 0.7-1.0x
- P/D Mode: Weekly/Monthly Range
---
## Key Features
✅ Anti-repaint: All signals confirmed on bar close
✅ Configurable filters: ATR/CMR for OB validation
✅ Multi-mode P/D: Daily/Weekly/Monthly/Trailing
✅ MTF Ichimoku: Use higher timeframe cloud on lower TF
✅ Complete alerts: BOS, OB formation, CHoCH
✅ Memory management: Auto-cleanup of old zones
---
## Important Notes
- This is an analytical tool, not a signal generator
- Requires understanding of SMC concepts
- Always use proper risk management
- Backtest before live trading
- No indicator guarantees profits
---
## Technical Specifications
- Pine Script™ v6
- Overlay: Yes
- Max Boxes: 500 | Max Lines: 150 | Max Labels: 150
- Repainting: No (barstate.isconfirmed)
---
© 2025-2026
Adaptive Regime Master: The Dual-Engine FrameworkAdaptive Regime Master: The Dual-Engine Framework
Overview
The Adaptive Regime Master: The Dual-Engine Framework is a sophisticated technical analysis tool designed to solve the "Indicator Paradox"—the reality that trend-following tools fail in sideways markets, and mean-reversion tools fail in strong trends.
Instead of forcing a single mathematical model onto an ever-changing market, this framework utilizes a Master Switch logic. It continuously analyzes market volatility and directional strength to dynamically toggle between two specialized trading engines. By identifying the current "Market Regime," the indicator automatically reconfigures its visual interface and signal logic to match the environment.
The Dual-Engine Architecture
The framework operates on a logic-gate system powered by the Average Directional Index (ADX) :
1. The Momentum Engine (Trendy Regime):
Activation: Triggered when ADX rises above the 25 threshold, signaling a confirmed trend.
Logic: Utilizes a combination of Exponential Moving Averages (EMA) for trend-following and MACD Histogram for momentum confirmation.
Visuals: The chart de-clutters to show only the EMA trend-line and momentum-based signals.
2. The Mean-Reversion Engine (Choppy Regime):
Activation: Triggered when ADX falls below 25, signaling a range-bound or consolidating market.
Logic: Switches to Bollinger Bands and the Relative Strength Index (RSI) to identify overextended price action at the range extremes.
Visuals: The EMA disappears, and the chart displays Bollinger Bands to help users visualize the "value area" and potential reversal zones.
Key Features
Alternating Signal Logic: Built-in state management ensures that signals always alternate (Buy → Sell → Buy). This prevents "signal clustering" and provides a clean, actionable roadmap for the user.
Dynamic ATR-Based Protection: The indicator calculates Stop Loss (SL) and Take Profit (TP) levels using the Average True Range (ATR) . Crucially, the multipliers adjust based on the regime: wider stops for volatile trends and tighter stops for quiet ranges.
Intrabar Execution Guard: To prevent "false exits," the framework includes a calculation safeguard that prevents SL/TP triggers on the same candle as the entry, ensuring the trade has room to breathe.
Real-Time Regime Dashboard: An on-chart table provides an immediate summary of the current ADX value, the active engine mode, and the current position status.
Visual Regime Indicator: Background color changes dynamically—Blue for Trend Mode, Orange for Range Mode.
Comprehensive Alert System: Built-in alerts for Long Entry, Short Entry, TP Hit, and SL Hit events.
How to Use
Identify the Background: A Blue background indicates the Momentum Engine is active; an Orange background indicates the Mean-Reversion Engine is active.
Execution: Follow the BUY and SELL labels. The framework handles the logic of whether it is a "breakout" or a "reversal" based on the active engine.
Risk Management: Once a signal appears, Red (SL) and Lime (TP) crosses will appear on the chart. These are your mathematical boundaries for the trade.
The Exit: The position is considered closed when price hits the SL/TP markers (indicated by orange/yellow crosses) or when an opposing signal is generated.
Monitor the Dashboard: Use the top-right table to track the current regime, ADX value, active mode, and position status in real-time.
Input Parameters
ADX Length: Period for ADX calculation (default: 14)
ADX Smoothing: Smoothing period for ADX (default: 14)
ADX Trend Threshold: Threshold to distinguish trend from range (default: 25)
EMA Length: Period for the Exponential Moving Average (default: 20)
BB Length: Period for Bollinger Bands (default: 20)
BB Multiplier: Standard deviation multiplier for Bollinger Bands (default: 2.0)
RSI Length: Period for RSI calculation (default: 14)
ATR Length: Period for Average True Range (default: 14)
ATR Mult (Trend): ATR multiplier for stop loss in trend mode (default: 1.5)
ATR Mult (Range): ATR multiplier for stop loss in range mode (default: 0.8)
Min SL % (of price): Minimum stop loss as percentage of price (default: 0.5%)
Pros and Cons
Pros:
Versatility: Performs in all market conditions, reducing the need for multiple separate indicators.
Reduced Fakeouts: Filters out "trend signals" during flat markets and "reversal signals" during parabolic moves.
Visual Clarity: Only shows the indicators relevant to the current market state, reducing cognitive load and chart clutter.
Automated Risk-Reward: Automatically plots 1:2 Risk-Reward levels based on current volatility.
Professional-Grade Logic: Implements state management to prevent signal conflicts and ensure clean alternating entries.
Multi-Timeframe Compatibility: Works on any timeframe, though optimized for intraday and swing trading.
Cons:
Lagging Nature: Like all ADX-based systems, there is a slight lag when the market transitions from a range to a trend.
Threshold Sensitivity: The default ADX threshold of 25 may need tuning for extremely low-volatility assets or different timeframes.
Not a "Holy Grail": While it filters many bad trades, sudden fundamental news or black swan events can still bypass technical logic.
Requires Discipline: Users must follow the signals and respect the SL/TP levels for the framework to be effective.
Learning Curve: New users may need time to understand the regime-switching concept and trust the automated logic.
Why Use This Framework?
Most traders lose money because they apply the wrong tool to the wrong market. They use RSI to "sell the top" of a breakout, or use Moving Averages to "buy the dip" in a sideways grind. The Adaptive Regime Master removes the emotional guesswork by mathematically defining the market state and forcing the strategy to adapt.
This is a professional-grade framework for traders who value:
Logic over emotion
Discipline over impulse
Chart cleanliness over indicator overload
Adaptive systems over static strategies
Whether you're a scalper, day trader, or swing trader, this framework provides a systematic approach to reading market conditions and executing high-probability setups with predefined risk management.
Best Practices
Never forget to adjust Stop Loss and Take Profit level related to the interval you (will) use. (Default parameters are optimized for 60m)
Always backtest the indicator on your specific asset and timeframe before live trading
Adjust the ADX threshold based on the volatility characteristics of your market
Use the framework in conjunction with proper position sizing and account risk management
Pay attention to the regime dashboard—avoid forcing trades when the market is transitioning between regimes
Set up alerts for all signal types to avoid missing opportunities
Consider fundamental analysis and news events alongside technical signals
Detailed Disclaimer
FINANCIAL RISK WARNING:
Trading foreign exchange, stocks, indices, cryptocurrencies, and commodities on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in any financial instrument, you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment; therefore, you should not invest money that you cannot afford to lose.
NO INVESTMENT ADVICE:
The "Adaptive Regime Master: The Dual-Engine Framework" is an educational tool designed to assist in technical analysis. It does not constitute investment advice, financial advice, trading advice, or a recommendation to buy or sell any security or financial instrument. All content provided by this indicator is for informational and educational purposes only.
PAST PERFORMANCE:
Past performance is not indicative of future results. Hypothetical or simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading and may not be impacted by brokerage and other slippage fees. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight.
NO GUARANTEE:
No representation is being made that any account will or is likely to achieve profits or losses similar to those shown in any backtests or forward tests. The author and developers of this indicator make no warranties, expressed or implied, regarding the accuracy, completeness, or reliability of the information provided.
USER RESPONSIBILITY:
Users should perform their own due diligence and test the logic on a demo or paper trading account before applying it to live capital. You are solely responsible for your own investment and trading decisions. The author and developers assume no responsibility for any financial losses, damages, or adverse consequences incurred through the use of this tool.
ACCEPTANCE OF TERMS:
Use of this indicator constitutes acceptance of these terms and acknowledgment that you understand the risks involved in trading financial instruments.
REGULATORY NOTICE:
This indicator is not affiliated with, endorsed by, or approved by any financial regulatory authority. Always consult with a licensed financial advisor before making investment decisions.
200 EMA Scalping 1 MinuteOnly Scalping in 1 Minute Super accurate, low faults, Strict rule based management, in Nifty 50
asia range baskets as an indicatorasia range baskets as an indicator. you can see all the baskets or remove them to filter out noise
tunnel of 5 as an indicatorthis is the tunnel of 5 concept but in an indicator format that can selectively tracks baskets. but can reduce to 2 pairs.
200 EMA Scalping 1 Minute (Only Nifty 1 Min Scalping)Only for scalping in 1 minute timeframe in Nifty 50.
Sharpe Ratio [Alpha Extract]A sophisticated risk-adjusted return measurement system that calculates annualized Sharpe Ratio with dynamic color-coded visualization distinguishing return quality across positive and negative performance regimes. Utilizing rolling period calculations with smoothed moving average comparison, this indicator delivers institutional-grade performance assessment with overbought/oversold threshold detection for extreme risk-adjusted return conditions. The system's four-tier color classification combined with histogram fills and background highlighting provides comprehensive visual feedback on whether current returns justify their volatility risk across varying market cycles.
🔶 Advanced Sharpe Ratio Calculation Engine
Implements classic Sharpe Ratio methodology measuring mean daily return divided by return standard deviation with annualization factor for consistent interpretation. The system calculates daily percentage returns, computes rolling mean and standard deviation over configurable periods, applies square root of 365 scaling for annualized comparison, and generates unbounded ratio values where higher positive readings indicate superior risk-adjusted performance.
// Core Sharpe Ratio Framework
Daily_Return = close / close - 1
Mean_Return = ta.sma(Daily_Return, Period)
StdDev_Return = ta.stdev(Daily_Return, Period)
Sharpe_Ratio = (Mean_Return / StdDev_Return) * sqrt(365)
🔶 Dynamic Four-Tier Color Classification
Features sophisticated color logic distinguishing between strong positive returns (green), weakening positive returns (yellow), weakening negative returns (orange), and strong negative returns (red) based on relationship to smoothed average. The system compares current Sharpe against SMA-smoothed baseline, applying green when positive and accelerating, yellow when positive but decelerating, orange when negative but improving, and red when negative and deteriorating for nuanced regime assessment.
🔶 Smoothed Baseline Comparison Framework
Implements SMA smoothing of Sharpe Ratio with configurable period to establish momentum reference line for trend determination within risk-adjusted returns. The system calculates simple moving average of raw Sharpe values, uses this smoothed line as directional benchmark, and determines whether current risk-adjusted performance is strengthening or weakening relative to recent average for color classification logic.
🔶 Extreme Threshold Detection System
Provides overbought and oversold level identification with configurable upper and lower bounds marking exceptional risk-adjusted return extremes. The system defaults to +4.3 for overbought threshold (extremely favorable risk-return profile) and -2.3 for oversold threshold (severely unfavorable risk-return profile), applying dashed horizontal reference lines and background highlighting when Sharpe breaches these statistical extremes requiring attention.
🔶 Histogram Fill Visualization Architecture
Creates gradient-filled histogram between Sharpe Ratio line and zero baseline using dynamic color matching with 30% transparency for intuitive positive/negative return distinction. The system fills area above zero with bullish colors (green/yellow) and below zero with bearish colors (orange/red), providing immediate visual confirmation of whether returns are compensating for volatility risk or destroying risk-adjusted value.
🔶 Background Zone Highlighting Framework
Implements subtle background coloring when Sharpe enters extreme overbought or oversold zones, alerting traders to statistically significant risk-adjusted return conditions. The system applies semi-transparent red background when ratio exceeds +4.3 (exceptionally strong risk-adjusted returns potentially unsustainable) and green background when below -2.3 (severely poor risk-adjusted returns potentially reversionary), creating visual alerts without obscuring price action.
🔶 Annualization Methodology Integration
Utilizes standard square root of time scaling (sqrt(365)) to convert rolling period Sharpe calculations into annualized format for cross-temporal comparison. The system applies this mathematical transformation ensuring Sharpe values represent expected annual risk-adjusted returns regardless of calculation period length, enabling consistent interpretation whether using 100-day or 200-day rolling windows.
🔶 Zero-Line Reference System
Provides critical zero-line plot serving as boundary between positive risk-adjusted returns (capital allocation justified by return/risk profile) and negative risk-adjusted returns (strategy destroying value on risk-adjusted basis). The system emphasizes this threshold as decision point where values above zero suggest continuation while values below zero indicate reconsideration of exposure.
🔶 Momentum-Based Color
Transitions Implements intelligent color switching logic that considers both absolute Sharpe value and its momentum relative to smoothed average, creating four distinct regimes for granular performance assessment. The system enables identification of bullish acceleration (green), bullish deceleration (yellow), bearish improvement (orange), and bearish acceleration (red) for nuanced position management beyond simple positive/negative classification.
🔶 Configurable Period Optimization
Features adjustable calculation period and smoothing length enabling optimization across different trading timeframes and volatility regimes. The system defaults to 150-period calculation (approximately 6-7 months of daily data) with 30-period smoothing, but allows customization from short-term tactical assessment to long-term strategic evaluation based on investment horizon and strategy requirements.
🔶 Performance Optimization Framework
Employs efficient rolling calculations with streamlined daily return processing and optimized standard deviation computation for smooth real-time updates. The system includes minimal computational overhead through single-pass mean and variance calculations, enabling consistent performance across extended historical periods while maintaining accuracy of risk-adjusted return measurements.
This indicator delivers sophisticated risk-adjusted return analysis through classic Sharpe Ratio methodology with enhanced visual classification distinguishing return quality and momentum. Unlike simple return-focused indicators, Sharpe Ratio penalizes volatility ensuring traders evaluate whether returns justify the risk undertaken. The system's four-tier color coding, smoothed baseline comparison, and extreme threshold detection make it essential for portfolio managers and systematic traders seeking objective performance assessment beyond raw price gains. High positive Sharpe values indicate efficient return generation relative to volatility risk, while negative values signal value destruction on risk-adjusted basis requiring strategy reassessment. The indicator excels at identifying periods when risk-taking is rewarded (green zones) versus periods when volatility exceeds returns (red zones) across cryptocurrency, forex, and equity markets for optimal capital allocation decisions.
Weekday open ConnectorIndicator connecting open candles between 2 days of the week. For example if you want to see weekend price action, in setting you select Saturday and Monday. Connected lines are red if Saturday opened higher than Monday, green in opposite case.
Position Size FTWhy you should use this indicator:
It gives you the exact position size in seconds, based on your equity, your risk %, and your real stop location, so you don’t guess.
It keeps your risk consistent even when the stop is wider or tighter, so one “normal” trade can’t become a big loss.
It blocks stupid mistakes like reusing the last size, moving the stop, or oversizing when you feel confident.
It makes drawdown control automatic: drop from 1% to 0.5% or 0.25% and the tool enforces it without you negotiating with yourself.
This tool is your “no excuses” position sizer.
You tell it your account size and how much you’re willing to lose on one trade. Then, for every chart, it calculates the position size that matches your stop distance. So your risk stays the same even when the stop is wide or tight.
If you use it on every chart, you stop doing the two things that destroy accounts: guessing size and oversizing.
Account Equity ($)
Set this to your current account value. Update it at least once a week, or after a big win or loss. If this number is wrong, every size it prints will be wrong.
Risk per Trade (%)
This is the percent you are willing to lose if the stop gets hit.
My recommendation if you trade my system
0.25% if you’re new, or if you’re not consistent yet. This keeps you alive while you learn.
0.5% as your normal size when you’re trading well.
1% only when your account is at an all time high and the market is clean.
0.25% when you are in a drawdown (especially if you are down more than 10%) and the market feels messy.
Max Position Size (%)
This is a safety cap. Even if the math says you can take a huge position, the tool will limit it.
I recommend 25%.
It stops you from loading too much into one trade, especially on tight stops where position size can explode.
LOD/HOD Lookback Bars
This tells the tool which low or high to use for the stop reference.
Use 1 if you are using the current day Low of Day or High of Day.
Use 2 if you are using the previous day Low of Day or High of Day.
If you switch between those two in your strategy, you should switch this setting to match the setup. Otherwise the sizing will be off.
Table Position, Text Size, Text Color
This is just display.
Pick a corner that doesn’t block your chart.
Keep Text Size on Normal.
Use black text if your chart background is light, and white text if your background is dark.
My clean default setup
Account Equity = your real number
Risk per Trade = 0.5%
Max Position Size = 25%
Lookback Bars = 1 most of the time, 2 when the setup calls for previous day levels
Table Position = anywhere you like, keep it out of the way
The simple rule
If the tool is on the chart, sizing becomes automatic. If sizing is automatic, discipline gets easier. And if discipline gets easier, you stop donating money to the market.
Relative Strength Scatter PlotThis is a modication to the indicator ably coded by LOAMEX but with some minor modifications and uses Australian Stock Exchange indices instead of US. This makes it easier for those to use in other countries becasue it has the template for adding indices and the benchmark.
Refer to the LOAMEX indicator for information or the text in this open source pinescript.
The plot shows the relative strength of various indices to a benchmark index, in this case, the ASX XJO200. Indices or sectors located close to the top right hand quadrant are showing the best out performance and thus make up the best source to create your watchlist.
Similarly, you can put stocks in your portfolio into the indicator and see which ones are closest to the upper right of the plot. Those residing in the bottom left quadrant need to be pruned from your portfolio or watched more carefully with closer stop losses.
Strategy2.0 H4 Only + Volume FightStrategy2.0 H4 Only + Volume Fight is a trend-following indicator designed for H4 timeframe trading. It works consistently and correctly on any chart timeframe, while all calculations and signals remain strictly anchored to H4.
The indicator uses a three-layer entry filtering system. A trade is triggered only when all conditions are met simultaneously. The core idea is to enter the market only during confirmed trends and at the moment when real volume appears, avoiding flat markets and false moves.
The first condition is the trend direction defined by the main MACD (12, 26, 9) calculated on the H4 timeframe. Values above zero indicate a bullish trend, while values below zero indicate a bearish trend.
The second condition is momentum confirmation using a fast MACD (3, 7, 9), also calculated on H4. When the fast MACD moves against the main MACD, the market is considered to be in a preparation phase. Entry is allowed only when both MACDs are aligned in the same direction.
The third and key condition is the Volume Fight filter. This component analyzes the balance between bullish and bearish volume and highlights active and inactive market phases. Gray zones represent the absence of volume and market interest — trades are strictly forbidden in these areas. A signal appears only when the market exits a gray zone and volume confirms the movement.
Additionally, a liquidity filter based on 24-hour USD volume is used to exclude low-liquidity instruments. The volume is calculated strictly on the daily timeframe and does not depend on the current chart timeframe.
An optional correlation filter with a selected instrument (for example, BTC) is available to avoid excessive market dependency and duplicate exposure. Specific instruments can be excluded from correlation checks if needed.
All signals are strictly tied to the H4 timeframe. Switching to lower timeframes does not increase the number of signals. Repeated signals in the same direction are blocked until the main MACD changes its trend.
The indicator visually highlights market phases: green candles represent confirmed bullish trends, red candles represent confirmed bearish trends, and gray candles indicate the preparation phase. BUY and SELL signals appear on the next candle after confirmation, eliminating repainting.
This indicator is intended for swing and position trading and does not constitute financial advice.
SMA Cross Counter - MTF SmoothTitle Idea
SMA Cross Counter - MTF Smooth (Find the 50-Bar Sweet Spot)
Description
Overview
This indicator tracks and displays the number of bars elapsed since the current 20SMA crossed the Higher Timeframe (HTF) 20SMA. By quantifying the "age" of a trend, it is designed to help traders identify high-probability pullbacks with objective precision.
Strategy: The 50-Bar Sweet Spot
This script is built around a specific tactical observation:
The Target: A "One-Cushion Granville Setup" occurring approximately 50 bars after the crossover is often a high-probability "Sweet Spot." At this stage, the trend is usually well-established but still possesses significant momentum.
The Edge: By monitoring the counter in the bottom-right corner, you can move away from subjective "feel" and objectively judge the trend's maturity. It helps you avoid the high volatility of an early cross and the exhaustion risks of a late-stage trend (e.g., over 100 bars).
Key Features
Automatic MTF Selection The reference timeframe updates automatically as you switch charts.
1m chart → 5m SMA
5m chart → 30m (or 15m) SMA
15m chart → 1h SMA
Daily chart → Weekly SMA, and so on.
Smooth MTF Visualization Eliminates the "stepped/staircase" effect common in MTF indicators. It connects higher-TF data points with smooth, diagonal lines, maintaining a clean chart and showing the true slope of the trend.
Real-Time Bar Counter Resets to "0" at the exact moment of a crossover and increments by 1 with every new bar.
Settings
5m Chart Reference: Choose between 30m or 15m as the HTF source when trading on a 5m chart.
SMA Period: Defaults to 20, but fully adjustable to fit your specific strategy.
タイトル案
SMA Cross Counter - MTF Smooth (50本目のスイートスポット判定)
説明文(日本語)
概要
このインジケーターは、現在の20SMAが上位足の20SMAと交差してからの「経過バー数」をリアルタイムでカウントし、右下のテーブルに表示します。 単なるクロスの確認ではなく、トレンドの「経過時間」を数値化することで、押し目買い・戻り売りの精度を極限まで高めるために開発されました。
戦略:50本目のスイートスポット
本インジケーターは、以下のトレード理論をベースに設計されています。
狙い目: SMA同士がクロスしてから50本程度経過したタイミングでの「ワンクッショングランビル」は、トレンドの勢いが安定し、かつ伸び代が最も残されている**「スイートスポット」**となる可能性が高い。
メリット: 右下のカウンターを見るだけで、感覚に頼らず「今がトレンドの何合目か」を客観的に判断できます。クロス直後の不安定な時期や、100本を超えたトレンド終盤の失速リスクを避けるのに有効です。
主な機能
自動タイムフレーム選定 (Auto-MTF) チャートの時間軸を切り替えるだけで、表示中の足に合わせて最適な上位足を自動選択します。(例:5分足なら30分足SMA、15分足なら1時間足SMAなど)
滑らかな上位足ライン MTF特有の「階段状のギザギザ」を排除。上位足の確定値を直線で結ぶため、チャートを美しく保ちつつ、正確なトレンドの傾きを確認できます。
リアルタイム・カウンター SMAがクロスした瞬間に「0」へリセット。以降、1本ごとに加算されます。
設定項目
5分足チャート時の参照先: 上位足を「30分」にするか「15分」にするかを切り替え可能。
SMA期間: デフォルトは20。ご自身の手法に合わせて調整してください。
HTF Flip Close Levels, Daily Weekly Monthly TASHTF Flip Close Levels (D/W/M) — Support & Resistance Tool
This indicator automatically plots Daily, Weekly, and Monthly support & resistance levels based on higher-timeframe candle close behaviour.
🔹 What this tool does
The script detects HTF momentum flips using closed candles only:
Support is created when:
A red candle is followed by a green candle
The level is drawn at the close of the red candle
Resistance is created when:
A green candle is followed by a red candle
The level is drawn at the close of the green candle
This creates objective, rule-based horizontal levels derived purely from price behavior, not indicators.
🔹 Features
✅ Plots Daily, Weekly, and Monthly levels simultaneously
✅ Works on any timeframe (1m, 5m, 1H, Daily, Weekly, etc.)
✅ Keeps full historical levels, not just the most recent ones
✅ Optional auto-hide tapped levels (when price touches them)
✅ Tap detection:
Wick touch
or Close cross/touch
✅ Levels are always based on HTF candle closes, never wicks
✅ Designed to stay consistent across timeframe changes
🔹 How to use it (IMPORTANT)
This indicator:
❌ Does NOT predict market direction
❌ Does NOT generate buy/sell signals
❌ Does NOT tell you when to enter or exit
It is a context & confluence tool.
You should use these levels together with:
Market structure
Trend analysis
Volume / orderflow / CVD
Your own entry model
Your own risk management
Think of these levels as areas of interest, not automatic trade signals.
🔹 Best use cases
Confluence with:
Local support/resistance
VWAP / Anchored VWAP
Range highs/lows
Liquidity zones
Reversal or continuation patterns
Identifying:
HTF reaction zones
Decision points
Areas where other traders are likely watching
⚠️ Disclaimer
This indicator is a technical analysis tool only.
It is NOT financial advice.
It does NOT guarantee profits.
All trading decisions and risk are your responsibility.
Use it as part of a complete trading system, not as a standalone strategy.
PEGY RatioThe basic metrics that all indicators descend from are for each bar the Open, High, Low, Close and Volume where the Close is often noted as Price. Then the Price/Earnings ratio entered trading. Price/Earnings is often noted as P/E ratio or PE.
The first major formalisation and widespread use of the P/E ratio came in 1934, when Benjamin Graham and David Dodd introduced it in their landmark book "Security Analysis". Their work established the P/E ratio as a core tool in fundamental analysis and value investing.
Graham’s influence was profound: he used the P/E ratio to help investors judge whether a stock was overpriced or underpriced, and his teachings shaped generations of value investors, including Warren Buffett.
The P/E ratio evolved into modern variants like forward P/E and Shiller CAPE.
There’s no single P/E cutoff that definitively marks a “growth” or “income” stock, but investors commonly treat P/E below about 10–15 as value/income oriented and P/E above about 20–25 as growth oriented. It is important to watch the P/E trend. If the P/E is a low value and reducing in value, then the company may be failing, and it is not good to invest in.
P/E is a relative signal, not an absolute rule. A high P/E usually means the market expects above average future earnings growth; a low P/E often signals lower growth expectations, higher current yield, or elevated risk. Benchmarks vary by sector and cycle: what’s “high” for utilities is low for software. Historical market averages (e.g., S&P 500) help frame whether a multiple is elevated or depressed.
The next step was the PEG ratio which was first introduced in 1969 by Mario Farina, who described it in his book "A Beginner’s Guide to Successful Investing in the Stock Market".
The concept later gained widespread popularity thanks to Peter Lynch, who championed it in his 1989 bestseller "One Up on Wall Street", arguing that a “fairly priced” company tends to have a PEG of about 1. Over 1 is overpriced and below is a bargain.
Later the PEGY ratio, a variation of the PEG ratio that added dividend yield into the valuation came into prominence so that mature, dividend paying companies are treated “fairly” . The PEGY ratio emerged in the 1990s as analysts and portfolio managers began adapting the PEG ratio for dividend paying companies. The concept is a natural extension of Peter Lynch’s PEG logic: If growth matters, and dividends matter, combine them into one valuation metric.
PEGY (Price/Earnings Growth% and Dividend Yield) is a straightforward modification of the PEG ratio that adds dividend yield to the growth term so that mature, dividend paying companies aren’t penalized by low growth rates alone. The formula is typically written as:
PEGY=(Price/Earnings)/(Earnings growth %+Dividend yield%)
Peter Lynch (One Up on Wall Street, 1989) is the most cited printed source that describes a dividend adjusted PEG concept and applies it as a practical screening rule for investors. PEGY is in Chapter “Some Fabulous Numbers”.
If earnings are negative, then the PEGY ratio will be negative, and it is best to invest in companies that make money. That is, positive PEGY ratio.
The PEGY ratio can have different ratios depending upon whether historical data is used (Mario Farina preference) or whether forward looking earnings (Peter Lynch preference) is used in the calculations.
Enough for the history lesson. You can quickly go through your watchlist and determine which stocks have a PEGY Ratio from 0 to 1 and eliminate the others. Then whittle down that list to find stocks travelling from bottom left to upper right on the page. Use any other indicators on that reduced list that your tradng plan uses and there you have your list of stocks in which to invest.
STOCHRSI+WRsotch RSI indicator
WR indicator
2 in 1
use this indicator
we can see stoch RSI and WR% on 1 chart
stoch RSI above 0 , 0 to 100
WR% under 0, -100 to 0
if price on the uptrend
when stoch RSI below 20 , better buy
WR% below -80, better buy
if price is downtrend
when stoch RSI above 80 , better sell
WR% above -20, better sell
UTC+7 Time Highlight// // Input
// session1 = input.session("0600-0601", "Time Slot 1 (UTC+7)")
// session2 = input.session("0800-0801", "Time Slot 2 (UTC+7)")
[RoyalNeuron] Supertrend [Medusa v1.0]Hey everyone, 👋
This is Medusa Supertrend v1.0.
Proper Supertrend logic using ATR with trend continuation rules.
Optimized default settings for BTC 30 minute charts, but fully adjustable to you liking.
Optional BUY and SELL labels only when the trend actually flips
Soft trend highlighting so you can see regime shifts without blinding your chart
Quick way to use it:
Green Supertrend with bullish fill means bias stays long and you look for continuation setups
Red Supertrend with bearish fill means bias stays defensive or short.
BUY and SELL labels mark trend changes.
It works best when combined with momentum or volume tools like WidowMaker to time entries with the trend instead of fighting it.
Use it, break it, tell me what you’d improve. More Medusa iterations and free tools coming.
Cheers,
RoyalNeuron 👑
Supertrend, Trend, ATR, Directional Bias, Buy Sell, Bitcoin, BTC, Clean Charts. Free, Alerts
Real RSI/threshold = input.float(80, title = "rsi above")
// condition = rsi60 > threshold
// barcolor(condition ? color.purple : na)
// bgcolor(condition ? color.new(color.purple, 80) : na, force_overlay = true)
[CT] MoBo BandsThis script is the TradingView Pine Script version of MoBo Bands, the Momentum Breakout indicator, and the original creator credited in the code is NPR21, who also notes it was based on an original Thinkorswim concept and then modified and converted to Pine Script by NPR21.
At its core, MoBo Bands is a volatility envelope built from a simple moving average and standard deviation, but it’s not meant to be used like a normal Bollinger Band “touch = reversal” tool. It’s designed to identify when price has pushed far enough away from its recent average to qualify as a breakout regime, and then to keep you biased in that regime until a true opposite breakout occurs. The indicator calculates a midline using a simple moving average of your chosen price source over the selected length. It then measures how spread out price has been over that same lookback using standard deviation. From there it builds an upper and lower band by taking the midline and adding or subtracting a user-defined multiple of standard deviation. In this script those multipliers are “Num Dev Up” and “Num Dev Down.” They default to ±0.8, which is tighter than traditional Bollinger settings, meaning the bands are closer to price and the indicator is more willing to declare a breakout state. The “Displace” input simply shifts the plotted bands forward or backward by bars for visual alignment; functionally, the breakout comparisons are being made against the displaced band values, so if you use displacement you are intentionally changing where signals occur in time.
The key concept in MoBo is that it separates “where price is right now” from “what state we are in.” First it assigns a raw status called MoboStatus: if the close is above the upper band it becomes bullish breakout state, if the close is below the lower band it becomes bearish breakout state, and if the close is between the bands it is neutral. If the script stopped there, you’d only see signals on the exact bars that closed outside the bands. Instead, it adds a second layer called BreakStatus, which is a persistent regime variable. BreakStatus changes only when a true breakout happens, and it does not reset to neutral when price returns inside the bands. That is the entire purpose of the “recursion” line: once BreakStatus flips bullish, it stays bullish through the inside-band chop until a bearish breakout flips it the other way, and vice versa. This is why the band colors and the band fill behave the way they do. When BreakStatus is bullish, the bands plot green and the filled area between them is green. When BreakStatus is bearish, the bands plot red and the fill becomes red. If price is simply oscillating inside the bands, BreakStatus stays whatever it last was, which is the whole “stay with the breakout bias” philosophy.
Because of that design, the most straightforward way to trade it is to treat MoBo as a regime/bias indicator first, and an entry tool second. A bullish regime begins when you get a bullish breakout condition, meaning you had a close above the upper band and BreakStatus flips to bullish. In this script that flip is also where the “Break Out” arrow prints. That event is telling you volatility expansion has pushed price into an upside breakout state, so your default expectation becomes continuation or at least holding above the midline with higher odds of higher highs. A common execution approach is to take the breakout as your initial trigger, then use the band structure to manage the trade: if you want a more aggressive style, you enter on the breakout bar close or on the next bar if it confirms. If you want a more conservative style, you wait for the first pullback after the breakout and enter when price holds above the midline or reclaims the upper band area. Your risk can be framed in a few ways depending on instrument and timeframe: the most “indicator-pure” protective logic is that the bullish regime is invalidated only when price later breaks below the lower band and flips BreakStatus bearish. That is a very wide stop concept, but it reflects the indicator’s intent to ride trends. A tighter, more practical stop for active trading is to use the midline or a recent swing low as the risk point while still respecting the MoBo bias; the idea is you are using MoBo to keep you from fading the move, while your stop is based on structure rather than waiting for a full opposite breakout.
A bearish regime is the exact mirror. It begins when a close is below the lower band and BreakStatus flips bearish, which is when the red “Break Down” arrow prints. From that point, you treat rallies into the midline/band area as potential short opportunities as long as the regime remains bearish. More aggressive traders will short the initial breakdown; more conservative traders wait for a bounce that fails back below the midline or for a retest of the lower band zone. Exits can be handled either as “regime exits,” meaning you hold until BreakStatus flips the other way, or as “trade exits,” meaning you scale or exit into targets while staying aligned with the regime until it ends. On trend days, the regime exit can keep you in the move much longer than typical oscillators. On choppy days, a tighter risk plan is needed because a tight band setting can flip more often.
The candle coloring addition you asked for simply mirrors the fill state so you can read the regime without looking at the bands. When the fill is green (BreakStatus bullish), the candles are tinted green; when the fill is red (BreakStatus bearish), the candles are tinted red; when neither fill is active, it leaves the candles unchanged. This doesn’t change the logic or signals, it just makes the “state” visually obvious.
Where traders usually get the most out of MoBo is by using it in the context it was designed for: volatility expansion and trend participation. If you try to trade it like a mean-reversion Bollinger Band system, you’ll often do the opposite of what it’s signaling. Here, a close outside the band is not “overbought/oversold,” it’s the condition that defines a breakout regime. The best trades tend to come when the breakout occurs in alignment with a higher-timeframe trend or after a compression period, because the band break is then capturing a genuine shift in volatility and direction. If you want it to trigger fewer, higher-quality regimes, increase the length and/or increase the deviation multipliers, because that widens the envelope and demands a more significant move to flip state. If you want earlier, more frequent signals, reduce the length and/or reduce the multipliers, understanding you’ll also increase whipsaw risk.
MNQ 10R Scalper - FinalTop. Scalper. Strat 10r chart v1 ready set go
Top. Scalper. Strat 10r chart v1 ready set go






















