Vertical Lines at 8AM, 9AM, 8PM & 9PMVertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT. Vertical lines at 8am, 8pm, 9am and 9pm on SGT.
指標和策略
Previous Day O H L C Calculation By Md//@version=6
indicator("Previous Day O H L C Calculation By Md", overlay=true)
// Check if the previous daily candle is green (bullish) or red (bearish)
previousCandleBullish = close > open
previousCandleBearish = close < open
// Calculate the difference for bullish candles: previous day's high minus previous day's open
bullishCalculation = high - open
// Calculate the difference for bearish candles: previous day's low minus previous day's close
bearishCalculation = low - close
// Show the result at the top of the current daily candle if the previous candle was bullish
if previousCandleBullish
label.new(bar_index, high, "Bullish Calc: " + str.tostring(bullishCalculation), color=color.green, textcolor=color.white, style=label.style_label_left, size=size.small)
// Show the result at the bottom of the current daily candle if the previous candle was bearish
if previousCandleBearish
label.new(bar_index, low, "Bearish Calc: " + str.tostring(bearishCalculation), color=color.red, textcolor=color.white, style=label.style_label_left, size=size.small)
SMA Background & Table Indicator# SMA Background & Table Indicator - User Guide
## What is this Indicator?
The **SMA Background & Table Indicator** is a powerful TradingView Pine Script tool that provides instant visual feedback about a stock's position relative to key Simple Moving Averages (SMAs). Instead of cluttering your chart with multiple SMA lines, this indicator uses background colors and a clean table to show you everything you need to know at a glance. You can also set custom time frame for SMA (i.e. Daily chart for SMA calculation) while watching price action in 15 min chart. You will quickly know if SMA200 losses its level on a daily without you having a need to switch back and worth between time frames. A very cool feature.
## Key Features
### 🎨 Smart Background Colors
- **Green Background**: Price is above SMA200 - Bullish trend
- **Red Background**: Price is below SMA200 - Bearish trend
- **Orange Background**: Price is near SMA200 - Caution zone (within 1% threshold)
### 📊 Clean SMA Status Table
Located in the bottom-right corner, showing:
- **SMA5, SMA20, SMA50, SMA100, SMA200** values
- **Color-coded dots** for each SMA:
- 🟢 **Green**: Price is above this SMA (bullish)
- 🟠 **Orange**: Price is close to this SMA (within 0.5%)
- 🔴 **Red**: Price is below this SMA (bearish)
### ⏰ Flexible Timeframe Options
- **Chart Timeframe**: Calculate SMAs from your current chart timeframe
- **Custom Timeframe**: Choose any timeframe (1m, 5m, 1H, 1D, 1W, etc.) for SMA calculations
### 🎨 Full Customization
- **Table Text Size**: Tiny, Small, Normal, Large, or Huge
- **Table Background Color**: Any color you prefer
- **Table Font Color**: Customize text color to match your theme
- **Background Transparency**: Adjust from 0% (opaque) to 100% (transparent)
## How to Use
### Basic Usage
1. **Add the indicator** to any stock chart
2. **Watch the background color** for overall trend direction:
- Green = Bullish (above SMA200)
- Red = Bearish (below SMA200)
- Orange = Neutral/Transition zone
3. **Check the table** for detailed SMA analysis
### Advanced Usage
#### Timeframe Selection
1. Click on the indicator name in the chart
2. Click the **settings gear icon**
3. Enable **"Use Custom Timeframe for SMAs"**
4. Select your preferred **"Custom Timeframe"**
**Example**: You're trading on a 15-minute chart but want to see daily SMA levels:
- Set Custom Timeframe to "1D"
- Now you'll see how the current price relates to daily SMAs while still viewing 15-minute price action
#### Customizing Appearance
In the indicator settings:
- **Table Text Size**: Choose readability preference
- **Table Background Color**: Match your chart theme
- **Table Font Color**: Ensure good contrast
- **Background Transparency**: Balance visibility with chart clarity
## Trading Applications
### Trend Identification
- **Green background** = Look for long opportunities
- **Red background** = Look for short opportunities
- **Orange background** = Wait for clearer direction
### Support/Resistance Levels
- **Green dots** in table = SMAs acting as support
- **Red dots** in table = SMAs acting as resistance
- **Orange dots** = Key levels to watch for breakouts
### Multi-Timeframe Analysis
- Set custom timeframe to higher timeframe (e.g., daily)
- Trade on lower timeframe with higher timeframe SMA context
- Example: Day trading with daily SMA guidance
## Pro Tips
1. **Clean Charts**: This indicator eliminates the need for multiple SMA lines, keeping your chart clean while providing all essential information
2. **Quick Assessment**: One glance tells you the overall trend (background) and detailed SMA relationships (table)
3. **Multi-Timeframe Strategy**: Use daily SMAs on intraday charts for better trend context
4. **Customization**: Adjust colors and transparency to match your trading platform's theme for optimal visibility
5. **Threshold Understanding**:
- Background changes use 1% threshold (reduces noise)
- Table dots use 0.5% threshold (more sensitive)
This indicator transforms complex SMA analysis into simple, actionable visual information - perfect for both beginner and advanced traders!
Mongoose Conflict Risk Radar v1.1 (Separate Panel) description
The Mongoose Capital: Risk Rotation Index is a macro market sentiment tool designed to detect elevated risk conditions by aggregating signals across key asset classes.
This script evaluates trend strength across 8 ETFs representing major risk-on and risk-off flows:
GLD – Gold
VIXY – Volatility
TLT – Long-Term Bonds
SPY – S&P 500
UUP – U.S. Dollar Index
EEM – Emerging Markets
SLV – Silver
FXI – China Large-Cap
Each asset is assigned a binary signal based on price position vs. its 21-period SMA (or a crossover for bonds). The signals are then totaled into a composite Risk Rotation Score, plotted as a bar graph.
How to Use
0–2 = Low risk-on behavior
3–4 = Caution / Mixed regime
5–8 = Elevated conflict or macro stress
Use this as a macro confirmation layer for trend entries, risk reduction, or allocation shifts.
Alerts
Set alerts when the index exceeds 5 to track major rotations into defensive assets.
Morning Structure – Live 30 Min Range📝 Description:
This indicator captures the morning price structure by tracking the high and low during the first 30 minutes after market open (default: 9:30 AM to 10:00 AM, New York time).
🔧 How it works:
At market open, it begins tracking the highest high and lowest low
The high and low lines are dynamic and update in real-time during the first 30 minutes
Once the 30-minute range completes, the lines freeze at their final values
Lines extend horizontally across the rest of the session to mark the "Morning Range"
✅ Key Features:
Tracks live price action during the morning session
Freezes the structure after 30 minutes (or user-defined)
Automatically resets each new trading day
Built-in timezone setting (America/New_York) to align with standard U.S. market hours
Clean visual lines that scroll naturally with the chart
⚙️ Use Cases:
Identify morning breakout zones
Define support and resistance early in the session
Combine with breakout, fade, or range-trading strategies
⚠️ Note:
This version does not include alerts or labels, by design (clean and focused).
Those can be added easily for custom strategies.
RSI, EMA, and SMAit is a script that will add EMA RSI and SMA for you .
its helpful if you don't have a plan .
Thankyou :)
Simple Moving Averageit is a clear script that helps you by telling in lines about where you trend is going it can also be adjusted like EMA and SMA ...
BB-HLThe BB‑HL Indicator is essentially a variation of Bollinger Bands that uses the high‑and‑low range of each bar—instead of the closing price—to calculate volatility bands.
Tradability Score (0-1)What THI measures
Turnover – Daily USD volume ÷ market-cap
Tells you how much of the circulating supply actually changed hands.
Liquidity Pulse – Current volume ÷ 20-day average volume
Shows whether today’s flow is above or below “normal,” hinting at how easy fills will be.
Relative Volatility – ATR(14) ÷ closing price
Captures price range: you need some swing to make day-trades worthwhile.
Each raw value is min-max normalised over a user-set look-back (default 120 bars), scaled to 0-1, then blended with default weights 40 % / 30 % / 30 %.
The final THI score is therefore always between 0 (avoid) and 1 (ideal).
How to read it
THI zone Interpretation Typical action
≥ 0.80 “Hot”—ample volume and movement Size up, consider multiple setups
0.60 – 0.79 Tradable but not perfect Trade, yet tighten risk
0.40 – 0.59 Borderline Only take A-grade signals
< 0.40 Cold / illiquid Skip or scalp tiny size
Dashed guide-lines at 0.80 / 0.60 / 0.40 and color-coded histogram bars make the hot/cold zones obvious at a glance.
Session Overlay [Tokyo, London, NY]This indicator is for Distinguishing between US Tokyo/London sessions we can easily determine each of them with color in background works better on 15 minute to 1 hour time frame.
EMA 21 Distance Hist - Diamonds V2EMA distnce with 8/21 cross . Also shows mometum and 8/21 based Buy or sell
Custom EMA 5 LinesThis is a Pine Script example for 5 EMAs where each EMA can have a customizable length, and each line is set to 1 pixel width:
Moving Average RibbonShowing Multiple Moving Averages (5 MAs) in one 1 indicator. Very useful if you're still using free version of Trading View
Price-EMA Z-Score Backgroundhe “Price‑to‑EMA Z‑Score Background” indicator is designed to give you a clear, visual sense of when price has moved unusually far away from its smoothed trend, and to highlight those moments as potential overextension or mean‑reversion opportunities. Under the hood, it first computes a standard exponential moving average (EMA) of your chosen lookback length, then measures the raw difference between the current close and that EMA on every bar. To make that raw deviation comparable across different markets and timeframes, it converts the series of differences into a z‑score—subtracting the rolling mean of the deviations and dividing by their rolling standard deviation over a second lookback window.
Once you’ve normalized price‑to‑EMA distance into z‑score units, you can set two simple trigger levels: one upper threshold and one lower threshold. Whenever the z‑score climbs above the upper threshold, the chart background glows green, signaling that price is extended far above its EMA (and might be ripe for a pullback). Whenever the z‑score falls below the lower threshold, the background turns red, calling out an equally extreme move below the EMA (and a possible oversold bounce). Between those bands, no shading appears, letting you know price is trading within its “normal” range around the trend.
By adjusting the EMA period, the z‑score lookback, and the two trigger levels, you can dial in early warning signals (e.g. ±1 σ) or wait for very stretched moves (±2 σ or more). Used in concert with your favorite momentum or pattern tools—or even as a standalone visual cue—this simple background‑shading approach makes it easy to spot when a market is running too hot or too cold relative to its own recent average.
Yield Curve Regime Shading with LegendTakes two symbols (e.g. two futures contracts, two FX pairs, etc.) as inputs.
Calculates the “regime” as the sign of the change in their difference over an n‑period lookback.
Lets you choose whether you want to color the bars themselves or shade the background.
How it works
Inputs
symbolA, symbolB: the two tickers you’re comparing.
n: lookback in bars to measure the change in the spread.
mode: pick between “Shading” or “Candle Color”.
Data fetching
We use request.security() to pull each series at the chart’s timeframe.
Regime calculation
spread = priceA – priceB
spreadPrev = ta.valuewhen(not na(spread), spread , 0) (i.e. the spread n bars ago)
If spread > spreadPrev → bullish regime
If spread < spreadPrev → bearish regime
Plotting
Shading: apply bgcolor() in green/red.
Candle Color: use barcolor() to override the bar color.