SENTIMENTSENTIMENT Indicator – User Guide
Summary
The SENTIMENT indicator provides a quick visual reference for current and recent market sentiment. It compares the closing price to a custom sentiment value, which is the average of the 100-period (default) simple moving averages (SMA) of the high and low prices. The indicator displays this information in a color-coded table and plots the difference between price and sentiment as a line on your chart.
How to Use
1. Table Overview
The table appears on your chart in your chosen position.
It displays four rows: the current bar (“Now”) and the previous three bars (“Bar -1”, “Bar -2”, “Bar -3”).
Each row shows:
The bar label (The current bar is live and active, constantly changing)
The closing price for that bar
The difference between the closing price and the sentiment value for that bar
The sentiment difference is color-coded:
Green: Price is above sentiment (bullish)
Red: Price is below sentiment (bearish)
2. Chart Plot
The indicator plots a line showing the difference between the current price and the sentiment value.
When the line is above zero: price is above sentiment (bullish).
When the line is below zero: price is below sentiment (bearish).
3. Settings
Number of Lookback Bars: Adjusts the SMA period for sentiment calculation (default is 100).
Table Position: Choose where to display the table on your chart (e.g., Top Left, Bottom Right).
How to Interpret
Green values in the table or a plot above zero suggest bullish sentiment.
Red values in the table or a plot below zero suggest bearish sentiment.
Use this indicator to quickly assess if the market is trading above or below its recent average sentiment level.
Tips
You can combine the SENTIMENT indicator with other tools or signals for more robust trading decisions.
Adjust the lookback period to suit your trading timeframe and style.
Cicli
EMA10/14/20 Trend Alignment (1st Signal Only)// ╔══════════════════════════════════════════════╗
// ║ M1 Starter Entry 10/14/20 (TH/EN) ║
// ╚══════════════════════════════════════════════╝
//
// 📌 ภาษาไทย:
// ระบบนี้ใช้ EMA 10/14/20 สำหรับจับจุดเข้าไม้ต้นเทรนด์ใน Timeframe M1
// - ออกสัญญาณ Buy เมื่อ EMA เรียงตัว 10 > 14 > 20 และแท่งเทียนยืนเหนือเส้น (โดยไม่แนบเส้นเกินไป)
// - ออกสัญญาณ Sell เมื่อ EMA เรียง 10 < 14 < 20 และแท่งอยู่ใต้เส้นทั้งหมด
// - มีการตรวจสอบระยะห่างระหว่างเส้น เพื่อหลีกเลี่ยงจุดหลอกตอน EMA ชิดกัน
// - สัญญาณออกเฉพาะ “แท่งแรก” หลังเข้าเงื่อนไขเท่านั้น
//
// 📌 English:
// This script detects early trend entries using EMA 10/14/20 on M1 timeframe.
// - Buy signal: When EMA10 > EMA14 > EMA20, and the candle closes above all EMAs
// - Sell signal: When EMA10 < EMA14 < EMA20, and the candle closes below all EMAs
// - Minimum distance between EMAs required to avoid fake signals in flat zones
// - Signals are shown only on the **first candle** that meets all conditions
//
// 🛠 เหมาะกับการใช้คู่กับระบบ MTF หรือแนวรับต้านด้วย
// Created by: คุณซี 💚
NY Close High/Low - UAE Time📌 Indicator Name:
New York Session Close High/Low – UAE Time
📄 Description:
This indicator automatically marks the high and low of the New York trading session closing candle, based on UAE local time (Asia/Dubai).
🕒 Time Logic:
The New York session closes at 5:00 PM EST, which corresponds to 1:00 AM UAE time (next day).
The indicator captures the 12:00 AM to 1:00 AM UAE time candle, which represents the final hour of the New York session.
✅ Features:
Marks the high and low of the NY close candle.
Updates dynamically each day.
Lines are plotted using UAE local time (Asia/Dubai).
Works on most timeframes (recommended: 1H or higher).
📈 Use Cases:
Identify key liquidity zones at the NY session close.
Use as support/resistance or breakout reference.
Combine with your existing trading strategy for precision entries.
Combined Time and Price IndicatorThis is what my brain sees. Time slots for good trading hours will colorize candles, green is above yesterday's highs and within the time slot and red is below yesterday's highs and within the time slot I trade
Combined Time and Price IndicatorThis is my personal chart. Maps out the only good trading times within the day for consistent gains. Also, candles will be red when it's within the time frame I chose and price is below yesterday's highs (for trend), and the candles will turn green if they are within the time slot I chose, and price is above yesterday's highs.
Custom Moving AveragesThis moving average indicator is a combination of EMA 20 SMA 50 EMA 100 sma 200 it is used full of swing traders
Up/Down Volume with Table (High Contrast)Up/Down Volume with Table (High Contrast) — Script Summary & User Guide
Purpose of the Script
This TradingView indicator, Up/Down Volume with Table (High Contrast), visually separates and quantifies up-volume and down-volume for each bar, providing both a color-coded histogram and a dynamic table summarizing the last five bars. The indicator helps traders quickly assess buying and selling pressure, recent volume shifts, and their relationship to price changes, all in a highly readable format.
Key Features
Up/Down Volume Columns:
Green columns represent volume on bars where price closed higher than the previous bar (up volume).
Red columns represent volume on bars where price closed lower than the previous bar (down volume).
Delta Line:
Plots the net difference between up and down volume for each bar.
Green when up-volume exceeds down-volume; red when down-volume dominates.
Interactive Table:
Displays the last five bars, showing up-volume, down-volume, delta, and close price.
Color-coding for quick interpretation.
Table position, decimal places, and timeframe are all user-configurable.
Custom Timeframe Support:
Calculate all values on the chart’s timeframe or a custom timeframe of your choice (e.g., daily, hourly).
High-Contrast Design:
Table and plot colors are chosen for maximum clarity and accessibility.
User Inputs & Configuration
Use custom timeframe:
Toggle between the chart’s timeframe and a user-specified timeframe.
Custom timeframe:
Set the timeframe for calculations if custom mode is enabled (e.g., "D" for daily, "60" for 60 minutes).
Decimal Places:
Choose how many decimal places to display in the table.
Table Location:
Select where the table appears on your chart (e.g., Bottom Right, Top Left, etc.).
How to Use
Add the Script to Your Chart:
Copy and paste the code into a new Pine Script indicator on TradingView.
Add the indicator to your chart.
Configure Inputs:
Open the indicator settings.
Adjust the timeframe, decimal places, and table location as desired.
Read the Table:
The table appears on your chart (location is user-selectable) and displays the following for the last five bars:
Bar: "Now" for the current bar, then "Bar -1", "Bar -2", etc. for previous bars.
Up Vol: Volume on bars where price closed higher than previous bar, shown in black text.
Down Vol: Volume on bars where price closed lower than previous bar, shown in black text.
Delta: Up Vol minus Down Vol, colored green for positive, red for negative, black for zero.
Close: Closing price for each bar, colored green if price increased from previous bar, red if decreased, black if unchanged.
Interpret the Histogram and Lines:
Green Columns:
Represent up-volume. Tall columns indicate strong buying volume.
Red Columns:
Represent down-volume. Tall columns indicate strong selling volume.
Delta Line:
Plotted as a line (not a column), colored green for positive values (more up-volume), red for negative (more down-volume).
Large positive or negative spikes may indicate strong buying or selling pressure, respectively.
How to Interpret the Table
Column Meaning Color Coding
Bar "Now" (current bar), "Bar -1" (previous bar), etc. Black text
Up Vol Volume for bars with higher closes than previous bar Black text
Down Vol Volume for bars with lower closes than previous bar Black text
Delta Up Vol - Down Vol. Green if positive, red if negative, black if zero Green/Red/Black
Close Closing price for the bar. Green if price increased, red if decreased, black if unchanged Green/Red/Black
Green Delta: Indicates net buying pressure for that bar.
Red Delta: Indicates net selling pressure for that bar.
Close Price Color:
Green: Price increased from previous bar.
Red: Price decreased.
Black: No change.
Practical Trading Insights
Consistently Green Delta (Histogram & Table):
Sustained buying pressure; may indicate bullish sentiment or accumulation.
Consistently Red Delta:
Sustained selling pressure; may indicate bearish sentiment or distribution.
Large Up/Down Volume Spikes:
Big green or red columns can signal strong market activity or potential reversals if they occur at trend extremes.
Delta Flipping Colors:
Rapid alternation between green and red deltas may indicate a choppy or indecisive market.
Close Price Color in Table:
Use as a quick confirmation of whether volume surges are pushing price in the expected direction.
Troubleshooting & Notes
No Volume Data Error:
If your symbol doesn’t provide volume data (e.g., some indices or synthetic assets), the script will display an error.
Custom Timeframe:
If using a custom timeframe, ensure your chart supports it and that there is enough data for meaningful calculations.
High-Contrast Table:
Designed for clarity and accessibility, but you can adjust colors in the code if needed for your personal preferences.
Summary Table Legend
Bar Up Vol Down Vol Delta Close
Now ... ... ... ...
Bar-1 ... ... ... ...
... ... ... ... ...
Colors reflect the meaning as described above.
In Summary
This indicator visually and numerically breaks down buying and selling volume, helping you spot shifts in market sentiment, volume surges, and price/volume divergences at a glance.
Use the table for precise recent data, the histogram for overall flow, and the color cues for instant market context.
Stock-Specific SMA200 Volatility NormalizedIt is used for swing treding it is shows for 0 to 100 range for every stock
Momentum Candle ProjectionThis indicator projects future price momentum by calculating a directional vector from recent price movements. It uses a custom implementation of the atan2 function to create a vector average of the last N candles and visualizes this projection as a synthetic future candle.
🔍 What It Does:
✅ Tracks recent momentum using geometric vectors from price change.
✅ Projects a synthetic "momentum candle" one bar ahead, showing anticipated direction and magnitude.
✅ Optionally plots a secondary "future candle" based on a smoothed estimate of projected price vs. real current close.
⚙️ Settings:
Vector Lookback (bars): Controls how many bars are used to calculate the momentum vector.
Projection Length Multiplier: Adjusts how far forward the vector is projected based on its strength.
🟢 How To Use:
Use the lime/red projection candle to anticipate short-term directional bias.
Use the orange/maroon future candle to compare projected continuation vs. current closing price.
Spot early reversals, continuation zones, and momentum decay in real-time.
Gold vs DXYThe 30-day rolling correlation between Gold (XAU/USD) and the US Dollar Index (DXY) shows how closely the two move together — or more often, in opposite directions — over the last 30 trading days. In most market environments, the relationship is pretty straightforward: when the dollar goes up, gold tends to go down, and vice versa. That’s because gold is priced in dollars, so a stronger dollar makes it more expensive for international buyers, which usually softens demand.
But it’s not always that simple. There are times when this inverse correlation breaks down. For example, if real yields (like the US 10-year yield minus inflation expectations) are rising, that can pressure gold even if the dollar is falling — because higher real returns elsewhere make gold less attractive. Another case is when other currencies, like the euro or yen, rally strongly on their own central bank decisions. This can pull DXY lower without necessarily signaling weakness in the U.S. economy — meaning gold might not benefit much.
There are also “risk-on” moments where investors rotate into equities or crypto, selling off both gold and the dollar in favor of yield or momentum. And during periods of crisis or uncertainty, both gold and the dollar can rise together as safe-haven assets, breaking the usual pattern entirely.
That’s why tracking the rolling correlation is helpful. It shows whether the historical relationship between gold and the dollar is still holding — or if we’re entering a different market regime. It’s not about predicting exact price moves, but about understanding the current backdrop. When gold and DXY are moving out of sync as expected, it can support your trade thesis. But when the correlation flattens or flips, it’s often a sign to dig deeper — macro forces may be shifting.
Tageszeit Linien# Custom Time Lines Indicator
**Customizable vertical time markers for precise session tracking**
This Pine Script indicator draws up to three customizable vertical lines at specific times during the trading day, perfect for marking important market sessions, news events, or personal trading schedules.
## Features
- **Three Independent Time Lines**: Each line can be set to any hour and minute
- **Fully Customizable Times**: Set exact times (hours 0-23, minutes 0-59)
- **Individual Colors**: Each line has its own color setting
- **CET/MEZ Timezone**: All times are calculated in Central European Time
- **Adjustable Line Width**: Line thickness from 1-3 pixels
- **Full Chart Extension**: Lines extend across the entire chart height
- **Clean Design**: No price level markers, just clean time divisions
## Default Settings
- **Line 1**: 00:00 CET (Midnight) - Gray
- **Line 2**: 09:00 CET (European Market Open) - Green
- **Line 3**: 15:30 CET (US Market Open) - Red
## Customization Options
Each line can be individually configured:
- **Hour Setting**: 0-23 (24-hour format)
- **Minute Setting**: 0-59
- **Color**: Any color for each line
- **Line Width**: 1-3 pixel thickness
## Usage Examples
Perfect for traders who want to mark:
- Market opening/closing times
- News release schedules
- Personal trading sessions
- Economic calendar events
- Custom time-based strategies
- Multi-timezone trading schedules
## How to Use
1. Add the indicator to your chart
2. Open indicator settings
3. Set your desired times for each line (hour and minute)
4. Choose colors that match your chart theme
5. Adjust line width as needed
All times are automatically converted to CET/MEZ timezone for consistent European trading hours.
Time CyclesThese are ICT market time cycles based on the idea that London starts at 3:30am (EST) and continues until 7am. NYAM is then from 7am-11:30am. NYPM from 11:30-4pm. Each of these sessions is broken into 90minute cycles which are also broken into 30minute cycles.
US Macro Indicators (CPI YoY, PPI YoY, Interest Rate)US Macro Indicators (CPI YoY, PPI YoY, Interest Rate)
This indicator overlays the most important US macroeconomic trends for professional traders and analysts:
CPI YoY (%): Tracks year-over-year change in the Consumer Price Index, the main measure of consumer inflation, and a core focus for Federal Reserve policy.
PPI YoY (%): Shows year-over-year change in the Producer Price Index, often a leading indicator for future consumer inflation and margin pressures.
Fed Funds Rate (%): Plots the US benchmark interest rate, reflecting the real-time stance of US monetary policy.
Additional Features:
Key policy thresholds highlighted:
2% (Fed’s formal inflation target)
1.5% (comfort floor)
3% and 4% (upper risk/watch zones for inflation)
Transparent background shading signals elevated inflation zones for quick visual risk assessment.
Works on all asset charts and timeframes (macro data is monthly).
Why use it?
This tool lets you instantly visualize inflation trends versus policy and spot key macro inflection points for equities, FX, and rates. Perfect for anyone applying macro fundamentals to tactical trading and investment decisions.
SessionsSession 10-12 12-16 1630-1830
Including HOD/LOD for different sessions.
Session 10:00 - 12: 00
Session 12:00 - 16:00
Session 16:30 - 18:30
Step-MA Baseline (with optional smoother)poor man trackline, it uses the ma20 and smooth it out to signal trends
Bitcoin Power Law ModelBitcoin Power Law Model with Cycle Predictions
Scientific Price Modeling for Bitcoin
This indicator implements **Dr. Giovanni Santostasi's Bitcoin Power Law Theory** - a discovery that Bitcoin's price follows mathematical laws similar to natural phenomena. Unlike traditional financial models, this treats Bitcoin as a scale-invariant system that grows predictably over time.
What Makes This Special
Dr. Santostasi, an astrophysicist who studied gravitational waves, discovered that Bitcoin's price forms a perfect straight line when plotted on a log-log scale over its entire 15-year history. This isn't just another technical indicator - it's a fundamental law that has held true through multiple 80%+ crashes and recoveries.
Core Features
Power Law Model
- Orange Line: The power law trajectory showing Bitcoin's long-term growth path
- Yellow Line: Fair value (geometric mean between support and resistance)
- Green/Red Bands: Support and resistance levels that have historically contained price movements
- Band Position %: Shows exactly where price sits within the power law channel (0-100%)
How to Use It
For Long-term Investors
1. Accumulate when price is near the green support line (band position < 20%)
2. Hold when price is between the bands
3. Consider profits when approaching red resistance (band position > 80%)
4. Never panic - the model shows $30K+ is now the permanent floor
Key Metrics to Watch
- **Band Position: <20% = Oversold, >80% = Overbought
- Fair Value: Price above = Overvalued, below = Undervalued
- Support Line: Breaking below suggests model invalidation
Current Cycle Projections
Based on the November 2022 bottom at ~$15,500:
- Cycle Peak: ~$155,000-$230,000 (October 2025)
- Next Bottom: ~$70,000-$100,000 (October 2026)
- Long-term: $1 million by 2033 (power law projection)
Customizable Settings
Model Parameters
- Intercept & Slope: Fine-tune the power law formula
- Band Offsets: Adjust support/resistance distances
Display Options
- Toggle each visual element on/off
- Show/hide future projections
- Enable/disable cycle analysis
- Customize halving markers
Understanding the Math
The model uses the formula: **Price = 10^(A + B × log10(days since genesis))**
Where:
- A = -17.01 (intercept)
- B = 5.82 (slope)
- Days counted from Bitcoin's genesis block (Jan 3, 2009)
This creates parallel support/resistance lines in log-log space that have contained Bitcoin's price for 15+ years.
Important
1.Not Financial Advice: This is a mathematical model, not a guarantee
2. Long-term Focus: Best suited for macro analysis, not day trading
3. Model Limitations: Past performance doesn't ensure future results
4. Volatility Expected: 50-80% drawdowns are normal within the model
Background
Dr. Giovanni Santostasi discovered this model while analyzing Bitcoin through the lens of physics. He found that Bitcoin behaves more like a city or organism than a financial asset, growing according to universal power laws found throughout
9:30 AM Candle MarkerEach day at 9:30 AM, on the 15-minute chart, you’ll see a red vertical line appear exactly on that candle. This makes it super easy to:
Track reactions to market open (if using US stocks).
Anchor your strategy to a consistent time point.
Build routines around a known time.
Bitcoin Stock-to-Flow Model Price Bands# Bitcoin Stock-to-Flow Model Price Bands
Overview
This indicator implements the famous Stock-to-Flow (S2F) model created by PlanB (@100trillionUSD), which uses Bitcoin's scarcity to predict its long-term value. The S2F model has gained significant attention for its historical accuracy in capturing Bitcoin's price movements across multiple market cycles.
What is Stock-to-Flow?
Stock-to-Flow is a ratio that measures scarcity by dividing the current supply (stock) by the annual production (flow). The model suggests that as Bitcoin becomes scarcer through halving events, its value should increase proportionally.
This indicator features:
Dynamic S2F Calculation
- Automatically calculates Bitcoin's current supply based on block height
- Adjusts for halving events (every 210,000 blocks)
- Updates the S2F ratio in real-time
Visual Elements
- Orange Line: S2F model price based on the formula: Price = 0.4 × S2F³
- Confidence Bands: Upper (red) and lower (green) bands showing expected price ranges
- Colored Candles: Green when above model price, red when below
- Info Table: Displays current S2F ratio, model price, actual price, and price multiple
Customizable Parameters
- Model Coefficient: Adjust the multiplier (default: 0.4)
- Model Exponent: Modify the power factor (default: 3.0)
- Band Width: Control confidence band spread (1-5 standard deviations)
- Display Options: Toggle individual elements on/off
Built-in Alerts
- Price crossing above/below S2F model price
- Price exceeding upper/lower confidence bands
How to Use
1. Trend Identification: When price is above the orange S2F line, Bitcoin may be overvalued; below suggests undervaluation
2. Cycle Analysis: The model steps up at each halving, creating distinct price "floors"
3. Risk Management: Use confidence bands to identify extreme deviations from the model
4. Long-term Perspective: Best suited for macro analysis rather than short-term trading
Important to understand:
This is a model, not a guarantee. The S2F model:
- Assumes scarcity is the primary driver of value
- Doesn't account for demand-side factors
- Has shown deviations during certain market conditions
- Should be used alongside other analysis methods
Model Performance
Historically, the S2F model has captured major Bitcoin price movements:
- 2013 Bull Run: Price followed model predictions
- 2017 Peak: Reached model targets
- 2021 Cycle: Initially tracked, then deviated
- 2024-2025: Model suggests $500k-$1M potential
Technical Details
- Uses logarithmic regression similar to the original S2F model
- Accounts for "lost" coins (est. 1M BTC from early mining)
- Implements dynamic supply calculation through halving cycles
- Confidence bands use log-normal distribution
Best Timeframes
- Weekly/Monthly: Ideal for long-term trend analysis
Credits
Based on the Stock-to-Flow model by PlanB (@100trillionUSD)
Original article: "Modeling Bitcoin's Value with Scarcity" (2019)
Multi-School Signal Indicator (Text Only)//@version=5
indicator("Multi-School Signal Indicator (Text Only)", overlay=true)
// === المتوسطات (Trend) ===
maShort = ta.sma(close, 9)
maLong = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
trendUp = maShort > maLong and close > ma200
trendDown = maShort < maLong and close < ma200
// === الزخم (RSI) ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم (Volume) ===
vol = volume
volMA = ta.sma(vol, 20)
volHigh = vol > volMA
// === شموع ابتلاعية ===
bullishEngulf = close < open and close > open and close > open and open < close
bearishEngulf = close > open and close < open and close < open and open > close
// === CHOCH (بسيط) ===
chochUp = close > high and low > low
chochDown = close < low and high < high
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bollingerBreakUp = close > upper
bollingerBreakDown = close < lower
// === دعم ومقاومة ===
support = ta.lowest(close, 20)
resistance = ta.highest(close, 20)
nearSupport = math.abs(close - support) / close < 0.01
nearResistance = math.abs(close - resistance) / close < 0.01
// === فيبوناتشي مبسط ===
fibLevel1 = close >= ta.valuewhen(close > maLong, close * 0.618, 0)
fibLevel2 = close <= ta.valuewhen(close < maLong, close * 0.382, 0)
// === إشارات الدخول ===
buyConditions = trendUp and rsiBull and volHigh and bullishEngulf and chochUp and bollingerBreakUp and nearSupport and fibLevel1
sellConditions = trendDown and rsiBear and volHigh and bearishEngulf and chochDown and bollingerBreakDown and nearResistance and fibLevel2
// === رسم الاختصارات بدون ألوان ===
if buyConditions
label.new(bar_index, low, "BUY", style=label.style_label_up, textcolor=color.black, size=size.small, textalign=text.align_center)
if sellConditions
label.new(bar_index, high, "SELL", style=label.style_label_down, textcolor=color.black, size=size.small, textalign=text.align_center)
Period Separator with DatesSimple period separator with dates. You can customize lines and colours. Feel free to customize and share your thoughts in the comment section. Remember time is the only thing you need to master the markets. Keep your charts clean and enjoy trading! ;)
Goldbach Swing Points [z3nius]This script checks if the swing point's time (hour + minute) is a Goldbach number. Only works on CME futures charts.
Horizontal Grid from Base PriceSupport & Resistance Indicator function
This inductor is designed to analyze the "resistance line" according to the principle of mother fish technique, with the main purpose of:
• Measure the price swing cycle (Price Swing Cycle)
• analyze the standings of a candle to catch the tempo of the trade
• Used as a decision sponsor in conjunction with Price Action and key zones.
⸻
🛠️ Main features
1. Create Automatic Resistance Boundary
• Based on the open price level of the Day (Initial Session Open) bar.
• It's the main reference point for building a price framework.
2. Set the distance around the resistance line.
• like 100 dots/200 dots/custom
• Provides systematic price tracking (Cycle).
3. Number of lines can be set.
• For example, show 3 lines or more of the top-bottom lines as needed.
4. Customize the color and style of the line.
• The line color can be changed, the line will be in dotted line format according to the user's style.
• Day/night support (Dark/Light Theme)
5. Support for use in conjunction with mother fish techniques.
• Use the line as a base to observe whether the "candle stand above or below the line".
• It is used to help see the behavior of "standing", "loosing", or "flow" of prices on the defensive/resistance line.
6. The default is available immediately.
• The default is based on the current Day bar opening price.
• Round distance, e.g. 200 points, top and bottom, with 3 levels of performance