CRS Table - Select Index to ViewThis indicator calculates and visualizes the Cumulative Relative Strength (CRS) of selected indices or stocks compared to the Nifty 50 Index as a benchmark. It helps traders and investors quickly identify sectoral strength, relative performance, and momentum rotation across the market.
Chỉ báo và chiến lược
V10 REVERSAL {BASHA FX}The V10 SCALPER & REVERSAL By BASHA FX is an advanced trading algorithm designed for intraday scalping with a focus on exhaustion reversal signals. The algorithm combines a powerful Smart Money Concepts (SMC) strategy to identify precise entry and exit points. It integrates customizable features for stop loss, take profit, and the ability to toggle different strategies on and off, allowing users to personalize their trading experience.
Key Features:
Exhaustion Reversal Signals: The algorithm identifies market exhaustion points, generating accurate reversal signals based on price action. This allows for optimal entry points with clear stop loss and take profit levels.
Example of Exhaustion Reversal Signal:
snapshot
Smart Money Concepts (SMC): By incorporating SMC principles, this algorithm enhances its ability to detect market shifts and trends, improving accuracy in entry and exit decisions.
Customizable Settings: The algorithm features easy-to-use toggle buttons, allowing traders to enable or disable specific features. Users can activate or deactivate the exhaustion reversal signals, SMC strategy, and other customizable options to fine-tune their trading approach.
Stop Loss and Take Profit Management: Integrated risk management with user-defined stop loss and take profit levels ensures better control over trade outcomes, based on a customizable risk-to-reward ratio.
Example of a trade with stop loss and take profit:
Why Choose V10 SCALPER & REVERSAL By BASHA FX?
This algorithm is ideal for traders seeking an edge in the market, combining sophisticated market analysis with advanced customization options. Whether you prefer automated trading or manual fine-tuning, V10 SCALPER & REVERSAL By BASHA FX provides the tools you need to execute trades with precision and flexibility.
BankNifty-15min Intraday-High Risk-R-AlgoAI-Final Copy// This script is for educational and informational purposes only.
// It does not constitute financial or investment advice.
// Trading involves substantial risk and may not be suitable for all investors.
// Always do your own research or consult with a licensed financial advisor
// before making any trading or investment decisions.
// The author is not responsible for any losses incurred using this script.
⚡ Overview:
This script is a technical indicator designed for intraday trading on the Bank Nifty future chart using the 15-minute timeframe. It uses a combination of normalized buy and sell pressure along with a Hull Moving Average (HMA) smoothing method and volume-based normalization to detect potential buy and sell signals.
💡 Main Concept:
Buy and Sell Pressure Calculation:
The script calculates:
bp (Buy Pressure): close - low
sp (Sell Pressure): high - close
These values are smoothed using a custom Hull Moving Average (HMA) function, designed to reduce lag and react quicker to price changes compared to traditional moving averages.
📊 Normalized Signals:
Buy and Sell pressures are normalized against their HMA smoothed values.
Volume normalization is also applied to adjust for the effect of market activity on the pressure signals.
📌 Signal Logic:
A Buy Signal is generated when:
Only one signal per day is allowed to avoid signal spamming.
A Sell Signal is generated under the opposite conditions:
One sell signal per day.
🧾 Visual Output:
When a signal is triggered, the script:
Draws a horizontal line at the signal price (with labels like BUY @ or SELL @).
Plots triangle markers on the chart to highlight buy (green) or sell (red) signals.
Deletes or extends lines at the end of each day to maintain visual clarity.
📈 Additional Features:
EMA 50 & EMA 200:
Plots two common Exponential Moving Averages (50-period and 200-period) for trend visualization.
⚠️ Important Notes:
This script is meant for educational and research purposes only.
It is designed for high-risk intraday trading.
Signals are based on historical behavior and should not be treated as financial advice.
No stop-loss or take-profit logic is included — traders should manage risk independently.
✅ Summary:
This indicator offers a simple visual and quantitative approach to spot potential intraday turning points for Bank Nifty future on a 15-minute chart, with clear buy and sell markers. It combines volume, price pressure, and moving average smoothing to filter out random price movements.
RSI + MACD Divergence with Candlestick EntryThis script is for beginner traders who has less fund like 30-50 dollar or something. this indicator is for buy/sell. if you have a 30$-50$ then go for this strategic indicator EASYMARKETS:AUDUSD us your 30$ like this risk 3% of your capital in 1 trade. & in starting use stoploss/take profit like 9-10 pips stoploss, 11-20 take profit for batter risk managment
ALGO MAP TREND FLOWTrack the trend like a pro with algo map trend flow
all you have to do is follow the trends and profit.
watch how the trend flow from bearish to bullish on anytime frame and see the market like never before.
Basis Trade - US Treasury Bonds (CBOT Futures)This script calculates and visualizes the basis trade for US Treasury bonds using CBOT futures data. It supports multiple maturities, including 3M, 2Y, 5Y, 10Y, 20Y, and 30Y, allowing traders to analyze the difference between futures prices and underlying spot rates. The script is designed for seamless integration with TradingView's CBOT futures data, ensuring reliable and actionable insights for bond traders.
Key Features:
Supports 6 bond maturities: 3M, 2Y, 5Y, 10Y, 20Y, and 30Y.
Uses CBOT futures contracts for accurate and real-time data.
Plots the basis trade value with clear visualization and a zero reference line.
Includes error handling to ensure smooth performance even with missing data.
FT-RSISummary of the Custom RSI Indicator Script (For Futu Niuniu Platform):
This Pine Script code implements a triple-period RSI indicator with horizontal reference lines (70, 50, 30) for technical analysis on the Futu Niuniu trading platform.
Key Features:
Multi-period RSI Calculation:
Computes three RSI values using 9, 14, and 22-period lengths to capture short-term, standard, and smoothed momentum signals.
Utilizes the Relative Moving Average (RMA) method for RSI calculation (ta.rma function).
Horizontal Reference Bands:
Upper Band (70): Red dotted line (semi-transparent) to identify overbought conditions.
Middle Band (50): Green dotted line as the neutral equilibrium level.
Lower Band (30): Blue dotted line (semi-transparent) to highlight oversold zones.
Visual Customization:
Distinct colors for each RSI line:
RSI (9): Orange (#F79A00)
RSI (14): Green (#49B50D)
RSI (22): Blue (#5188FF)
All lines have a thickness of 2 pixels for clear visibility.
Platform Compatibility:
This script is designed for Futu Niuniu’s charting system, leveraging Pine Script syntax adaptations supported by the platform. The horizontal bands and multi-period RSI logic help traders analyze trend strength and potential reversal points efficiently.
Note: Ensure Futu Niuniu’s scripting environment supports ta.rma and hline functions for proper execution.
V10 SCALPER [Basha FX]The Mayfair Fx Scalper V10 By BASHA FX is an advanced trading algorithm designed for intraday scalping with a focus on exhaustion reversal signals. The algorithm combines a powerful Smart Money Concepts (SMC) strategy to identify precise entry and exit points. It integrates customizable features for stop loss, take profit, and the ability to toggle different strategies on and off, allowing users to personalize their trading experience.
Key Features:
Exhaustion Reversal Signals: The algorithm identifies market exhaustion points, generating accurate reversal signals based on price action. This allows for optimal entry points with clear stop loss and take profit levels.
Example of Exhaustion Reversal Signal:
snapshot
Smart Money Concepts (SMC): By incorporating SMC principles, this algorithm enhances its ability to detect market shifts and trends, improving accuracy in entry and exit decisions.
ATR Lines - PipsPhantomThis indicator displays the Current ATR (Average True Range) with two customizable EMA lines to track volatility trends. Users can adjust the EMA periods (default: 20 and 50) and colors. Suitable for Forex, Crypto, Gold, and Silver markets.
Usage:
- Adjust EMA periods for faster or slower trend analysis.
- Use on any timeframe to monitor volatility.
2x Marubozu Signal (Wick ≤ 30%)The 2x Marubozu Signal (Wick ≤ 30%) is a powerful, momentum-based price action indicator designed to catch strong bullish or bearish trends early. It scans for two consecutive Marubozu-style candles (where wicks are ≤ 30% of the total candle size) to identify moments of solid conviction from buyers or sellers.
This indicator detects:
Bullish Signal: Two green candles in a row, both with tiny wicks (≤ 30% of total candle size), indicating strong buying pressure and momentum.
Bearish Signal: Two red candles in a row, both with tiny wicks (≤ 30%), signaling dominant selling pressure.
The signal appears on the second candle — confirming the continuation move after initial momentum.
Key Features:
🔍 Wick Ratio Filter: Only triggers if both candles have upper and lower wicks less than or equal to 30% of the full candle range (High - Low).
📈 Visual Signal Arrows:
Green Up Arrow on bullish 2x Marubozu
Red Down Arrow on bearish 2x Marubozu
⚙️ Clean and Lightweight: No lag, perfect for intraday, swing, or trend-based strategies.
🎯 Use Case:
Trend Confirmation: Enter after the second strong Marubozu to ride breakout moves.
Momentum Filter: Combine with your existing strategy to filter only high-conviction price action setups.
Reversal Spotting: Catch reversals at key support/resistance when Marubozus form.
🧠 Pro Tips:
Works best on 15m–1D charts, especially after consolidation.
Combine with support/resistance, volume, or EMA/SMA zones for confirmation.
Avoid overtrading in choppy zones—this is a momentum-only tool.
🚀 Who’s It For?
Price Action Traders
Scalpers & Swing Traders
Trend-followers
Crypto, Forex, Stocks
📌 Author Note:
This indicator was crafted for traders who trust pure candle structure over lagging indicators. If you respect momentum, this is your edge.
ATR Table - PipsPhantom - KhoursandDisplays a customizable table of ATR values across multiple timeframes (Live, 1m, 5m, 15m, 1H, 4H, 1D, 1W) with TP/SL levels.
Features:
- Adjustable table position (top/middle/bottom, left/center/right).
- Custom text colors for 5m and 1H timeframes.
- Supports Forex, Crypto, Gold, and Silver markets.
Usage: Adjust position, colors, and decimal precision in the settings.
3 Consecutive Inside Bars - RSTInside bars are often used to identify potential consolidation periods or breakout setups.
This will provide tight range for 3 consecutive inside bars.
Remember that inside bar patterns are just one tool, and no indicator is perfect. Always use sound risk management.
Safe day trading(15m)This is a trading indicator exclusively for XRP futures in 2025.
It has an average win rate of over 70%, with a total return of 85.77% from January 1 to March 31, 2025.
(With 10x leverage, that's equivalent to 850%.)
- January 2025: 26.82% return
- February 2025: 16.15% return
- March 2025: 31.53% return
Balancelink : Partition Function 1.0This script computes the partition function values 𝑝(𝑛) using Euler’s Pentagonal Number Theorem and displays them in a horizontally wrapped table directly on the chart. The partition function is a classic function in number theory that counts the number of ways an integer 𝑛 can be expressed as a sum of positive integers, disregarding the order of the summands.
Key Features
Efficient Calculation:
The script computes 𝑝(𝑛) for all orders from 0 up to a user-defined maximum (set by the "End Order" input). The recursive computation leverages Euler’s Pentagonal Number Theorem, ensuring the function is calculated correctly for each order.
Display Range Selection:
Users can select a specific range of orders (for example, from 𝑛 = 100 to 𝑛 = 200 to display.) This means you can focus on a particular segment of the partition function results without cluttering the chart.
Horizontally Wrapped Table:
The partition values are organized into a clean, horizontal table with a customizable number of columns per row (default is 20). When the number of values exceeds the maximum columns, the table automatically wraps onto a new set of rows for better readability.
Medium Text Size:
The table cells use a medium (normal) text size for easy viewing and clarity.
How to Use
Inputs:
Start Order (n): The starting index from which you want to display the partition function (default is 100).
End Order (n): The ending index up to which the partition function values will be displayed (default is 200).
Max Columns Per Row: Determines how many results are shown per row before wrapping to the next (default is 20).
Calculation:
The script calculates all 𝑝(𝑛) values from 0 up to the specified "End Order". It then extracts and displays only the values in the chosen range.
Visualization:
The computed values are shown in a neatly arranged table at the top right of your TradingView chart, making it simple to scroll through and inspect the partition function values.
Use Cases
Educational & Research:
Ideal for educators and students exploring concepts of integer partitions and number theory.
Data Analysis & Pattern Recognition:
Useful for those interested in the behavior and growth of partition numbers as 𝑛 increases.
7-Day Narrow Range (NR7)NR7
NR7 stands for "Narrow Range 7." It identifies a day (or bar) with the narrowest trading range of the past seven days.
Traders often watch for NR7 patterns as they can indicate a period of consolidation before a potential breakout. A narrow range suggests that volatility is low, and a breakout could lead to a significant price move.
NR7 signals are often used in conjunction with other technical indicators and analysis techniques.
Remember that NR7 is just one tool, and no indicator is perfect. Always use sound risk management.
CRT-RPSDY*Candle Range Theory (CRT) Indicator with Stop Levels and Trade Management
Overview: This indicator is designed for advanced traders using the Candle Range Theory (CRT) to identify high and low price levels based on a given candle range. It provides a clear visualization of 4H and 1D time frame CRT structures and dynamically adjusts to price movements. The system integrates Stop Levels based on manipulation wicks and offers trade management features, including Stop Loss (SL) levels.
Key Features:
4H and 1D CRT Lines:
The indicator draws CRT levels on the 4-hour (4H) and 1-day (1D) time frames, representing key high and low levels for trade analysis.
Manipulation Wick Stop Levels:
A Stop Level is calculated based on the highest high or lowest low (manipulation wick) of the market. This level is plotted with customizable line thickness and color.
Dynamic Stop Loss Management:
As the price moves, the indicator automatically adjusts the stop levels. The Stop Loss (SL) is dynamically updated to ensure maximum protection as the price action evolves.
Visual Feedback:
The indicator displays RR (Risk/Reward) values at the entry level, showing RR1 and RR2 for position evaluation.
Manual Trade Entry:
Entry models have been removed, allowing the trader to find and set up entry points manually on the chart. The indicator only provides visual reference for trade management once the entry point is identified.
Usage:
Setup: The trader can select the desired timeframes and stop levels through input settings.
Trade Execution: Once a valid entry point is found (manually by the trader), the indicator tracks the price action and updates the stop levels and risk/reward values accordingly.
Stop Levels: Stops are drawn based on the highest and lowest levels of price manipulation wicks in the market, ensuring the trader is protected.
Customization: All graphical elements, including line thickness, color, and text size, are fully customizable.
Conclusion:
This indicator is designed for traders who prefer using Candle Range Theory (CRT) in their strategies and want advanced stop level management with visual feedback to optimize trade entries and exits. It combines CRT analysis with intelligent trade management to offer powerful insights for precision trading.
Relative Strength IndexAdjusted RSI indicator with customizable colors, allowing you to easily change the appearance of bullish and bearish divergences. This version is designed for traders who prefer a more neutral or minimalistic color palette, improving visual clarity without losing key signals. Ideal for cleaner charts and better integration with personalized themes.
Rocket Engulfing Candles🚀 Rocket Engulfing Candles — Bullish & Bearish Detection
This script highlights powerful engulfing candles that resemble rockets — perfect for identifying potential reversals or momentum shifts.
Bullish Rocket (Green Triangle Up)
Fully engulfs the previous candle (higher high, lower low)
Closes higher (bullish body)
Has a longer lower wick (blast-off tail)
Bearish Rocket (Red Triangle Down)
Fully engulfs the previous candle
Closes lower (bearish body)
Has a longer upper wick (crash tail)
These patterns suggest strong buying/selling pressure with possible trend reversals. Ideal for traders looking to spot high-impact candle formations with a visual edge.
Volume in CurrencyIndicator of abnormal volume surges. When there is a surge in average weighted volumes, the indicator highlights the candle in blue.
ICT Liquidity Sweep MAX RETRI (ALERT)Strategy Description: SMC + ICT Reversal Sniper | 5-Min | R2 TP
This strategy applies Smart Money Concepts (SMC) and ICT methodology to identify high-probability reversal trades using a clean, rule-based system designed for the 5-minute timeframe.
⸻
Core Logic:
• Liquidity Sweep: Identifies stop hunts beyond recent swing highs/lows using a configurable lookback window.
• Break of Structure (BOS): Validates a directional shift after the sweep.
• Fixed R2 Risk-Reward: Entry is followed by a 2:1 take-profit target. Stop loss is set at the sweep candle’s high/low.
• No Entry Between 8 PM–12 AM NY Time: Avoids the manipulation-prone and illiquid zone.
• Discreet SL Handling: SL hits close trades silently — no labels or visuals.
⸻
Entry Precision & Timing Notes:
• The strategy may occasionally fire before a confirmed liquidity sweep — this is expected. If a sweep occurs later, you may still re-enter toward equilibrium, with take profit also targeted at equilibrium.
• Alerts or trades that trigger near 9:30 AM NY often align with real direction, but this time can be volatile.
• For more reliable and lower-risk entries, focus on the 1:30 PM to 2:00 PM silver bullet window, which tends to produce cleaner setups with more favorable flow. 🖤
Volume & ATR Projection Tracker w/ Table & Alerts# README: Volume & ATR Projection Tracker (Pine Script Indicator)
## Overview
This Pine Script indicator for TradingView is designed to help traders analyze volume activity and potential short-term price volatility. It plots volume bars, calculates a moving average of volume, highlights unusual volume spikes (differentiating between up and down bars), and projects potential price ranges for upcoming hours based on Average True Range (ATR). It also provides a status table and configurable alerts.
**Disclaimer:** This indicator provides informational analysis and projections based on historical data and volatility. It does **not** provide guaranteed price predictions or financial advice. Trading involves substantial risk. Always do your own research and consult with a qualified financial advisor.
## Features
* **Volume Plotting:** Displays volume as a histogram in a separate panel.
* **Volume Moving Average:** Calculates and plots a configurable MA (SMA, EMA, WMA) of volume.
* **Unusual Volume Detection:** Identifies bars where volume significantly exceeds its moving average (based on a user-defined multiplier).
* **Differentiated Volume Analysis:**
* Colors volume bars differently based on whether unusual volume occurred on an up-bar (Close > Open), down-bar (Close < Open), or neutral bar (Close == Open).
* Plots different spike markers (up/down triangles) on the price chart for unusual volume on up/down bars.
* **ATR Volatility Projections:**
* Calculates the Average True Range (ATR) as a measure of recent volatility.
* Projects a potential price range (Close +/- ATR \* Multiplier) for a specified number of future hours.
* Plots these ranges as dashed lines and labels on the price chart.
* **Important:** These are volatility-based *ranges*, not directional predictions.
* **Status Table:** Displays a concise summary table on the chart including:
* Current Volume Status (Normal, High (Up), High (Down), High (Neut)).
* Current Volume compared to its MA (as a percentage).
* The projected ATR range for the next hour.
* **Configurable Alerts:** Provides alert conditions for:
* Unusual Volume detection.
* Volume crossing above its MA.
* Volume crossing below its MA.
* **Customizable Inputs:** Allows users to configure MA settings, volume threshold, ATR settings, projection hours, trading session times, and colors.
## How it Works
1. **Volume Analysis:**
* Calculates a Moving Average (SMA, EMA, or WMA) of the volume over a specified length (`MA Length`).
* Compares the current bar's volume to this MA. If `Volume > MA * Unusual Vol Multiplier`, the volume is flagged as "unusual".
* Checks if the unusual volume occurred on a bar where `Close > Open` (Up), `Close < Open` (Down), or `Close == Open` (Neutral).
* Colors the volume bars and plots spike markers based on this differentiated status.
2. **ATR Projections:**
* Calculates the ATR over a specified length (`ATR Length`).
* At the start of each hour *within the defined Trading Session*:
* Calculates an upper projection level: `Current Close + (Current ATR * ATR Multiplier)`.
* Calculates a lower projection level: `Current Close - (Current ATR * ATR Multiplier)`.
* Stores these levels for the specified number of `Projection Hours Ahead`.
* Draws dashed lines and labels on the price chart representing these hourly ranges for the future, but only if they are within TradingView's 500-bar drawing limit from the current bar.
3. **Status Table:**
* Updates on the last bar of the chart.
* Displays the current differentiated volume status, the percentage difference between current volume and its MA, and the calculated ATR range for the *next* hour.
4. **Alerts:**
* Uses `alertcondition()` to create trigger conditions based on `unusualVolumeBase`, `vol_cross_above`, and `vol_cross_below`. Users can create alerts based on these conditions in the TradingView UI.
## Input Settings
The indicator settings are organized into groups:
**Group 1: Volume Analysis Settings**
* **MA Length:** (Default: 20) Number of bars for the volume MA calculation.
* **MA Type:** (Default: SMA) Type of moving average (SMA, EMA, WMA).
* **Unusual Vol Multiplier:** (Default: 2.0) Threshold for detecting unusual volume (Volume > MA * Multiplier).
* **Show Volume Spikes:** (Default: true) Toggle visibility of triangle markers on the price chart.
* **Show Volume MA:** (Default: true) Toggle visibility of the MA line on the volume panel.
**Group 2: ATR Projection Settings**
* **ATR Length:** (Default: 14) Number of bars for the ATR calculation.
* **ATR Multiplier:** (Default: 1.5) Factor applied to ATR to determine the projection range width. Higher values create wider ranges.
* **Projection Hours Ahead:** (Default: 8) How many hours forward to calculate and display projections.
* **Show Projections:** (Default: true) Toggle visibility of projection lines and labels on the price chart.
**Group 3: Session & Colors**
* **Trading Session:** (Default: "0930-1600") Defines the hours during which projections are calculated. **Crucial:** Format is HHMM-HHMM based on the exchange timezone (see Timezone Note below).
* **Normal Vol Color:** (Default: blue) Color for volume bars when volume is not unusual.
* **Volume MA Color:** (Default: yellow) Color of the volume MA line.
* **Unusual Vol (Up Bar) Color:** (Default: light green) Color for unusual volume bars where Close > Open.
* **Unusual Vol (Down Bar) Color:** (Default: light red) Color for unusual volume bars where Close < Open.
* **Unusual Vol (Neutral Bar) Color:** (Default: light gray) Color for unusual volume bars where Close == Open.
* **Projection Line Color:** (Default: orange) Color of the dashed projection range lines.
* **Proj Label Bg Color:** (Default: semi-transparent gray) Background color for projection labels.
* **Proj Label Text Color:** (Default: white) Text color for projection labels.
## Timezone Note
The `Trading Session` input relies on a timezone setting within the `is_in_session` function in the code (currently hardcoded to `"UTC-4"` as an example for US Eastern Time). **You may need to edit the script code** to change this timezone string (e.g., `"America/New_York"`, `"Europe/London"`, `"Asia/Tokyo"`) to match the exchange time of the instrument you are trading. Consult Pine Script documentation for valid timezone strings.
## Limitations
* **Drawing Limit:** TradingView limits drawing objects (lines, labels) to a maximum of ~500 bars into the future from the current bar. On lower timeframes, the script automatically stops drawing projections that exceed this limit.
* **Projection vs. Prediction:** The ATR ranges are based on past volatility and are *not* price predictions. The market can easily move outside these projected ranges.
* **Alerts:** Alerts for price crossing the projected future levels are not implemented due to technical complexity in Pine Script.
## Disclaimer
Trading financial markets involves substantial risk of loss and is not suitable for all investors. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, investment advice, trading advice, or any other sort of advice. You should not make any investment decision based solely on the information provided by this indicator. Past performance is not indicative of future results.
Risk-On / Risk-Off MeterThe risk on/off meter helps you assess the market's overall risk sentiment.
Try using it on the VIX daily chart.
The calculation is based on the following values:
Risk-On Assets
spx dax nas100 copper oil audusd nzdusd btc audjpy
Risk-Off Assets
gold usdjpy usdchf vix us02y us10y us30y dxy
Below a calculated value of 25, Risk Of is displayed as being above a value of 65 Risk On. The neutral market phase is in between. The indicator is used purely as a market sentiment indicator and does not provide any trading recommendations.
Yield Curve 1.2Yield Curve is a macroeconomic analysis tool designed to visualize and interpret changes in the shape of government bond yield curves across major economies.
Use it in any 1H Chart
It tracks the difference between 10-year and 2-year government bond yields for key countries (e.g. US, EUR, JPY, AUD, GBP, etc.) and compares the current yield levels to their values recorded every Monday at 2:00 UTC. Based on this comparison, the indicator categorizes the yield curve movement into common market regimes such as:
Bull Flattener
Bear Steepener
Parallel Shift
and others.
Each regime gives insight into how markets are adjusting their expectations for future interest rates, economic growth, or central bank policy.
The indicator presents this analysis in a clear table format, showing:
Current and Monday yields
Yield changes (in basis points)
Yield spread (10Y - 2Y)
Detected regime type
A simplified grade and brief explanation for each case
Color coding is used throughout the table to help visually distinguish between steepening, flattening, and parallel shift scenarios.
BySq - Market PsychologyThe script I provided is a Market Psychology Index indicator for TradingView, which focuses on three key psychological market phases:
FOMO (Fear of Missing Out)
Panic Selling
Reversal
This indicator uses volume, price changes, and specific time periods to gauge market sentiment. Let me break it down:
1. Input Parameters:
FOMO Period: Defines how many bars (candles) the FOMO index will consider for its calculation.
Panic Period: Defines the period to evaluate Panic Selling.
Reversal Period: Defines the period to evaluate potential price reversals.
You can adjust these periods based on your analysis preferences. The default for each period is 14.
2. FOMO Index:
The FOMO Index aims to capture the "fear of missing out" behavior in the market.
It uses volume and price change:
Volume is compared to the Simple Moving Average (SMA) of volume over the specified period.
Price change is calculated as the percentage change in price compared to the previous bar.
If both volume and price change indicate strong upward movement, the FOMO index spikes.
3. Panic Selling Index:
The Panic Selling Index captures when traders are selling out of fear, often in a rapid or irrational way.
Similar to the FOMO Index, it considers volume and price change:
It uses volume and compares it to the SMA of volume for the panic period.
Price change is negative, meaning it considers only price drops.
When there is high volume coupled with significant price drops, it signals panic selling.
4. Reversal Index:
The Reversal Index aims to detect potential trend reversals in the market.
This index also considers volume and price change:
It focuses on upward price movement and compares volume to its SMA.
If there’s strong upward price movement along with increasing volume, it signals the possibility of a price reversal.
5. Graphical Output:
Histograms are drawn on the chart for each of the three indices:
FOMO is shown in green (indicating the presence of FOMO) and red (when the index is low).
Panic Selling is shown in orange.
Reversal is shown in purple.
The Zero Line (horizontal dotted line) helps identify when any of the indices is positive or negative.
6. Labels:
Labels for each index are shown on the chart at the relevant bar when the index spikes.
FOMO is labeled "FOMO" in green when it spikes.
Panic Selling is labeled "Panic Selling" in orange when it spikes.
Reversal is labeled "Reversal" in purple when it spikes.
Additionally, period labels show above the chart, indicating the specific periods (FOMO, Panic, and Reversal periods) currently being applied. This provides clarity on what time frame each index is analyzing.
7. How to Use:
FOMO: High values may indicate that traders are buying out of fear of missing out on a rally, suggesting a potentially overheated market.
Panic Selling: High values could suggest irrational selling behavior or capitulation, potentially marking the bottom of a downtrend.
Reversal: High values signal the potential for a market reversal, where the price could change direction due to increased volume and upward movement.
8. Visual Appearance:
The indicator’s histograms change colors based on the level of market sentiment detected. The color-coded approach provides an easy-to-read visual representation of different psychological phases in the market.
The horizontal zero line allows easy differentiation between positive and negative values.
Summary:
This script combines the psychology of the market (FOMO, Panic Selling, and Reversal) into a set of indicators that help traders identify potential turning points or emotional states in the market. By focusing on volume and price change, the script attempts to give a clear picture of market sentiment and possible future movements.