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.
نماذج فنيه
Quick Futures Scalperai algorithms have concocted this script for quick futures trading pair this with my main futures buy sell indicator chart for maximum charitability. cross compatible to different charts.
Dirty Market IndexThis indicator is designed to out an index displaying the level of dirtiness in market.
This level is defined by:
Sum of shadow lengths of last n candles (n is input and user can change it, it's 100 by default)
divided by
Sum of full candle bodies of last n candles (high - low)
This factor indicates how many percents of the market movement has been placed in shadows of candles, the higher this number, the dirtier market would be.
Exponential Top and Bottom FinderAll-in-one indicators that works really great and highly customizable.
MACD with Signals. Non-editable version. NACHOMIXCRYPTODescription of the "MACD with Signals. Non-editable version. NACHOMIXCRYPTO" Indicator
The "MACD with Signals. Non-editable version. NACHOMIXCRYPTO"
is a technical analysis indicator built in Pine Script (version 6) for TradingView. It is based on the traditional Moving Average Convergence Divergence (MACD) indicator but includes additional features such as signal labels on the main chart and two informational tables displayed in a separate window below the price chart (overlay=false). This version is designed to be fully non-editable, meaning users cannot modify its core parameters or visual settings through the input menu. Below is a detailed breakdown of its components, functionality, and purpose:
1. Purpose
This indicator aims to assist traders in identifying potential buy ("LONG") and sell ("SHORT") opportunities by analyzing crossovers between the MACD line and the signal line. It enhances the standard MACD by:
Labeling signals directly on the price chart.
Filtering signals as "TRUE" or "FALSE" based on their position relative to the zero line.
Predicting possible crossovers within the next 4 bars.
Displaying current and predicted signals in two separate tables.
The "non-editable" nature ensures that the indicator's settings (MACD lengths and source) remain fixed and hidden from users, making it a standardized tool for public use without customization options.
2. Components
Fixed Parameters
Fast EMA Length: Set to a fixed value (not visible or editable), representing the shorter-term exponential moving average (EMA).
Slow EMA Length: Set to a fixed value (not visible or editable), representing the longer-term EMA.
Signal Line Length: Set to a fixed value (not visible or editable), determining the smoothing period for the signal line.
MACD Source: Fixed to the closing price (close), not visible or editable in the input menu.
These values are embedded in the code and cannot be altered by users, ensuring consistency in how the MACD is calculated.
Informative Message
A static message appears in the input menu: "This is the public version that does not allow edits or signal modifications." This informs users that no customization is available.
MACD Calculations
MACD Line (macdLine): The difference between the fast EMA and slow EMA.
Signal Line (signalLine): An EMA of the MACD line, smoothed over the fixed signal line length.
Histogram (histogram): The difference between the MACD line and the signal line, visualized as columns.
Zero Line
A horizontal line at 0 (zeroLine) serves as a reference point to distinguish bullish (above 0) and bearish (below 0) conditions.
Slope Calculations
MACD Slope (macdSlope): The change in the MACD line from the previous bar.
Signal Slope (signalSlope): The change in the signal line from the previous bar.
These slopes are used to predict potential crossovers.
Crossover Prediction
Next 4 Bars Prediction (crossInNext4Bars): Estimates if the MACD line and signal line will cross within the next 4 bars based on their current values and slopes.
Signal Conditions
Buy Signal (longCondition): Triggered when the MACD line crosses above the signal line (ta.crossover).
Sell Signal (shortCondition): Triggered when the MACD line crosses below the signal line (ta.crossunder).
Tables
Current Signal Table: Positioned at the bottom-right corner with a blue border, displaying the active signal.
Next Signal Table: Positioned at the top-right corner with an orange border, showing the predicted signal.
Labels
Labels appear on the main price chart at the price level (yloc.price) with fixed styles and colors:
"LONG": Green background, white text, upward arrow style (label.style_label_up).
"SHORT": Red background, white text, downward arrow style (label.style_label_down).
"FALSE.LONG": Aqua background, white text, upward arrow style.
"FALSE.SHORT": Fuchsia background, white text, downward arrow style.
3. Functionality
MACD Calculation:
The indicator calculates the MACD using the fixed fast EMA, slow EMA, and signal line lengths applied to the closing price.
Signal Generation:
Buy Signal ("LONG" or "FALSE.LONG"):
If the MACD line crosses above the signal line:
"LONG" if the MACD line is above the zero line (valid bullish signal).
"FALSE.LONG" if below the zero line (potentially misleading).
Sell Signal ("SHORT" or "FALSE.SHORT"):
If the MACD line crosses below the signal line:
"SHORT" if the MACD line is below the zero line (valid bearish signal).
"FALSE.SHORT" if above the zero line (potentially misleading).
These signals are displayed as labels on the price chart and in the current signal table.
Crossover Prediction:
The indicator analyzes the slopes of the MACD and signal lines to predict if a crossover is likely within 4 bars:
"POSSIBLE: LONG" if the MACD line is trending upward relative to the signal line.
"POSSIBLE: SHORT" if trending downward.
This prediction is shown in the next signal table.
Visualization:
Separate Window:
Histogram: Columns with dynamic colors (dark green/light green above zero, dark red/light red below zero) based on value and trend.
MACD Line: Green line with a thickness of 2.
Signal Line: Red line with a thickness of 2.
Zero Line: Yellow horizontal line at 0.
Tables: Current signal (bottom-right, blue frame) and next signal (top-right, orange frame) with white text and background colors matching the signal type.
Main Chart: Labels indicating "LONG", "SHORT", "FALSE.LONG", or "FALSE.SHORT" at the price level of the triggering bar.
4. Visual Output
Histogram: Green above the zero line, red below, with shades varying based on whether the histogram is increasing or decreasing.
Lines: Green MACD line, red signal line, and yellow zero line.
Labels: Fixed colors and styles on the price chart.
Tables:
Current signal table: Green for "LONG", red for "SHORT", aqua for "FALSE LONG", gray for "NO SIGNAL".
Next signal table: Green for "POSSIBLE: LONG", red for "POSSIBLE: SHORT", gray for "NO SIGNAL".
5. Usage
Target Audience: Traders looking for a simple, pre-configured MACD-based tool to identify entry and exit points without needing to adjust settings.
Trading Style: Suitable for scalping or swing trading, with the added benefit of crossover predictions for proactive decision-making.
Non-editable Design: The fixed parameters and lack of customization ensure consistent behavior across all users, making it ideal for public distribution.
6. Limitations
No Customization: Users cannot adjust MACD lengths, source, colors, or label styles, limiting flexibility.
Fixed Source: Relies solely on closing prices, which may not suit all trading strategies.
Prediction Accuracy: The 4-bar crossover prediction depends on current trends and may not always be reliable in choppy markets.
False Signals: While filtered by the zero line, false signals can still occur in sideways markets.
7. Input Menu
The only visible element in the input menu is the "Information" field with the message: "This is the public version that does not allow edits or signal modifications." No other settings are exposed or adjustable.
In summary, the "MACD with Signals. Non-editable version. NACHOMIXCRYPTO" is a locked-down, user-friendly version of a MACD indicator tailored for public use. It provides clear buy/sell signals, predictive insights, and visual aids through labels and tables, all while maintaining a standardized, non-customizable configuration for simplicity and consistency.
Filtered Swing Pivot S&R )Pivot support and resis🔍 Filtered Swing Pivot S&R - Overview
This indicator identifies and plots tested support and resistance levels using a filtered swing pivot strategy. It focuses on high-probability zones where price has reacted before, helping traders better anticipate future price behavior.
It filters out noise using:
Customizable pivot detection logic
Minimum price level difference
ATR (Average True Range) volatility filter
Confirmation by price retesting the level before plotting
⚙️ Core Logic Explained
✅ 1. Pivot Detection
The script uses Pine Script's built-in ta.pivothigh() and ta.pivotlow() functions to find local highs (potential resistance) and lows (potential support).
Pivot Lookback/Lookahead (pivotLen):
A pivot is confirmed if it's the highest (or lowest) point within a lookback and lookahead range of pivotLen bars.
Higher values = fewer, stronger pivots.
Lower values = more, but potentially noisier levels.
✅ 2. Pending Pivot Confirmation
Once a pivot is detected:
It is not drawn immediately.
The script waits until price re-tests that pivot level. This retest confirms the market "respects" the level.
For example: if price hits a previous high again, it's treated as a valid resistance.
✅ 3. Dual-Level Filtering System
To reduce chart clutter and ignore insignificant levels, two filters are applied:
Fixed Threshold (Minimum Level Difference):
Ensures a new pivot level is not too close to the last one.
ATR-Based Filter:
Dynamically adjusts sensitivity based on current volatility using the formula:
java
Copy
Edit
Minimum distance = ATR × ATR Multiplier
Only pivots that pass both filters are plotted.
✅ 4. Line Drawing
Once a pivot is:
Detected
Retested
Filtered
…a horizontal dashed line is drawn at that level to highlight support or resistance.
Resistance: Red (default)
Support: Green (default)
These lines are:
Dashed for clarity
Extended for X bars into the future (user-defined) for forward visibility
🎛️ Customizable Inputs
Parameter Description
Pivot Lookback/Lookahead Bars to the left and right of a pivot to confirm it
Minimum Level Difference Minimum price difference required between plotted levels
ATR Length Number of bars used in ATR volatility calculation
ATR Multiplier for Pivot Multiplies ATR to determine volatility-based pivot separation
Line Extension (bars) How many future bars the level line will extend for better visibility
Resistance Line Color Color for resistance lines (default: red)
Support Line Color Color for support lines (default: green)
📈 How to Use It
This indicator is ideal for:
Identifying dynamic support & resistance zones that adapt to volatility.
Avoiding false levels by waiting for pivot confirmation.
Visual guidance for entries, exits, stop placements, or take-profits.
🔑 Trade Ideas:
Use support/resistance retests for entry confirmations.
Combine with candlestick patterns or volume spikes near drawn levels.
Use in confluence with trendlines or moving averages.
🚫 What It Does Not Do (By Design)
Does not repaint or remove past levels once confirmed.
Does not include labels or alerts (but can be added).
Does not auto-scale based on timeframes (manual tuning recommended).
🛠️ Possible Enhancements (Optional)
If desired, you could extend the functionality to include:
Labels with “S” / “R”
Alert when a new level is tested or broken
Toggle for support/resistance visibility
Adjustable line width or style
tance indicator
Previous Day H/L with Pivot & S/R LevelsThis script checks Previous Day High & Low and accordingly identifies Pivot, Support & Resistance
Long Short Momentum with Signals
Long and Short momentum
WHEN SHORT MOMENTUM CHANGES 2.0 POINTS and long term changes 5 points on day basis write A for Bullish and B for Bearish on Main Price chart
WHEN SHORT MOMENTUM CHANGES .30 per hour POINTS and long term changes 1 points on 1 hour basis. Put a green dot for Bull and red for bear in short term and for long termRespectively on price chart
TBB-barcountTrades By Bren-barcount: The Ultimate Bar Counter for Both RTH and ETH Traders
After countless hours of development and testing, I'm proud to present the Trades By Bren-barcount - the first truly reliable bar counter that seamlessly works in both Regular Trading Hours (RTH) and Extended Trading Hours (ETH) environments!
The Problem This Solves:
Ever been confused when switching between RTH and ETH? Regular bar counters create total chaos - either counting from 1 at midnight (useless for day traders) or failing to adjust when you switch chart types. This leads to completely different bar numbers for the same price action, making it impossible to keep consistent notes or communicate precise entries/exits with trading partners.
Why This Was Shockingly Difficult to Create:
What seemed like a simple feature turned into a programming odyssey! The challenge was creating a universal counter that works across different timezones, exchanges, and chart types. Pinescript doesn't natively support this functionality, requiring creative session detection techniques and complex logic to ensure the counter always starts at 1 precisely when regular market hours begin - regardless of how many pre-market bars are displayed.
Features That Make This Special:
Simple toggle for RTH-only counting - no complex configuration needed
Visually perfect numbering that starts exactly where the blue/white chart boundary exists
Works in any timezone (perfect for traveling traders!)
Customizable label size, color, and frequency
Maintains perfect count synchronization when sharing charts with trading partners
Why You Need This:
If you've ever been frustrated trying to reference "bar 37" only to realize your trading partner is seeing it as "bar 85" because of different chart settings, this indicator will change your trading communication forever. It creates a universal numbering system that everyone in your trading room can rely on.
Save yourself hours of confusion and missed opportunities. This tiny addition to your chart will become an indispensable part of your daily trading routine!
Created By:
This indicator was developed by Trades By Bren. For more amazing trading tools, strategies and insights, check out the Trades By Bren YouTube channel: youtube.com
TCloud Tilson FutureT-Wave Future – Indicator Description & How to Use
T-Wave Future is a forward-looking trend analysis tool that projects a dynamic cloud based on two customized Tilson Moving Averages:
A Short Tilson MA (default: 4-period, factor 0.38)
A Long Tilson MA (default: 15-period, factor 0.55)
Inspired by the Ichimoku Cloud, this indicator projects the cloud forward in time to provide a smoother, adaptive view of potential market trends and shifts.
🔍 What Makes T-Wave Future Unique?
✅ Uses Tilson Moving Averages, known for their smoothness and responsiveness.
✅ Projects the cloud into the future for advanced trend visualization.
✅ Customizable periods and factors for both lines.
✅ Color-coded cloud to instantly spot trend direction:
Bullish (blue) when Short Tilson > Long Tilson
Bearish (red) when Short Tilson < Long Tilson
🎯 How to Use T-Wave Future
✅ Trend Direction
The cloud color shows the dominant momentum:
Blue cloud: Bullish bias
Red cloud: Bearish bias
The forward projection gives you a visual cue of where the market is likely heading.
🔁 Trend Reversals
A change in cloud color (from red to blue or vice versa) can indicate a possible trend reversal.
Use this as a signal to prepare entries, adjust stop-losses, or scale in/out.
🟩 Entry Strategy
Long entries when price is above the blue cloud and the cloud is rising.
Short entries when price is below the red cloud and the cloud is falling.
🛡️ Dynamic Support/Resistance
The cloud acts as a future support or resistance zone.
Ideal for anticipating price pullbacks or rejections.
⚡ Pro Tips:
Combine with volume, RSI or MACD for confirmation.
Adjust projection length based on your timeframe (e.g. 26 for intraday, 52+ for swing).
Works best in trending markets – avoid relying on it in sideways conditions.
TCloud Future📘 Tcloud Future – Indicator Description & How to Use
Tcloud Future is a trend-based indicator that creates a forward-projected cloud between:
A customizable Exponential Moving Average (EMA)
A dynamic McGinley Moving Average
The cloud is shifted into the future (like the Ichimoku Cloud), giving traders a visual projection of potential trend direction.
🔧 Components:
EMA (default: 19-period) – fast-reacting average to short-term price action
McGinley Dynamic (default: 26-period) – smoother, adaptive average that reacts to volatility
Forward Projection (default: 26 candles) – pushes the cloud into the future to help anticipate trend continuation or reversal
Cloud Color
Green when EMA is above McGinley (bullish bias)
Red when EMA is below McGinley (bearish bias)
🟢 How to Trade with Tcloud Future
✅ Trend Confirmation
Use the cloud color and slope to confirm the current trend.
Green cloud sloping up → bullish momentum
Red cloud sloping down → bearish momentum
🟩 Entry Strategy (Trend-Following)
Go long when price is above the green cloud and the cloud is rising.
Go short when price is below the red cloud and the cloud is falling.
🔁 Cloud Crossovers (Trend Shift)
A color change in the projected cloud can signal a potential trend reversal.
Use this as a heads-up to prepare for position changes or tighten stops.
🛡️ Support/Resistance Zones
The cloud often acts as a dynamic support/resistance zone.
During an uptrend, pullbacks to the top or middle of the green cloud can be good entries.
During a downtrend, rallies into the red cloud can offer shorting opportunities.
🧠 Tips
Combine with RSI, MACD, or Volume for confirmation.
Avoid using it alone in sideways markets — it performs best in trending conditions.
Adjust projection and smoothing settings to fit the asset/timeframe you're trading.
Psychological Levels 25 Gold [UkutaLabs]This indicator is specifically designed to display key psychological levels for Gold (XAUUSD) trading, focusing on increments of $25. It automatically plots major and minor levels, providing traders with clear visual cues for potential support and resistance areas.
Key Features:
25 Dollar Increments: Draws lines at every $25 increment, highlighting significant price levels for Gold.
Major & Minor Levels: Distinguishes between major ($25 increments) and minor (mid-point) levels with customizable colors and styles.
Nearest Century Line: Displays the nearest 25 dollar increment to the current price with a distinct color.
Customizable Appearance: Allows users to adjust line colors, styles (dashed, dotted, solid), and widths to suit their preferences.
Number of Lines: Allows users to set the number of psychological lines to be displayed above and below the current price.
Clear Visuals: Provides clean and easily interpretable lines on the chart.
How to Use:
Add the indicator to your Gold (XAUUSD) chart.
Observe the plotted lines for potential support and resistance areas.
Customize the line colors and styles in the indicator's settings to match your chart theme.
Use these levels in conjunction with other technical analysis tools for informed trading decisions.
Disclaimer:
This indicator is for informational purposes only and should not be considered financial advice. Trading involves risks, and past performance is not indicative of future results. 1 2 Always conduct thorough research and consult with a qualified financial 3 advisor before making any trading decisions.
EMA+EMA+ (Golden & Death Cross Visualizer)
Enhance your chart with intelligent EMA cross detection. This script highlights 50/200 EMA Golden and Death Crosses, with optional filters using RSI and MACD for stronger signal confluence. Smart labels include RSI/MACD values for extra context, and background zones help visualize the significance of each cross. Customize duration, visibility, and filter sensitivity to suit your strategy.
Institutional Entry ZonesThis script is designed to detect buying and selling zones based on liquidity grabs, pivot structures, and VWAP confirmation. It focuses on identifying high-probability reversal points near the extremes of the trading day, where large players are most likely to enter or exit positions.
Breakout Trading Rules📄 Breakout Trading Rules – Confirmed Entry Logic
This open-source indicator helps identify confirmed bullish breakouts using a combination of price action and technical filters. It is designed for traders who prefer rule-based entries and want to visually track confirmation signals on the chart.
🧠 Core Logic
A BUY signal is confirmed only when all of the following conditions are met:
Price breaks above a key breakout level, which can be:
The most recent pivot high (automatically detected), or
A manually set level (if override is enabled).
The breakout is confirmed by two consecutive closes above the level.
Volume is above a reference average (user-defined period).
MACD is bullish (MACD line > signal line).
RSI is above a custom threshold (default is 50).
📊 What the Script Displays
A dynamic horizontal breakout line on the chart (green if price is above, red if below).
A "BUY" label plotted on the candle when all entry conditions are satisfied.
A compact checklist table in the top-right corner showing the real-time status of all entry conditions.
An alert that triggers when the breakout and all confirmations are active.
Option to manually set the breakout level for more control.
⚙️ Inputs You Can Customize
Pivot lookback period
Volume comparison lengths
RSI threshold
Manual override for breakout level
✅ Intended Use
This tool supports users in identifying confirmed breakout entries by combining simple price action with confirmation from volume and momentum indicators. It is most suitable for daily timeframe (1D) setups, but it works on other timeframes as well.
⚠️ Important Notes
This script does not repaint, and all signals are calculated using historical bar closes.
It is not a strategy, but a visual aid for discretionary entries based on clearly defined rules.
No indicator should be used in isolation. Always combine with broader market context and proper risk management.
MA ShiftMultiple Moving Averages combined which works on all time frames, Buy sell signal as per the change in the color of indicator, can be combined with RSI & MACD Leader
Dkoderweb repainting issue fix indicator# Harmonic Pattern Trading Indicator for TradingView
This indicator, called "Dkoderweb repainting issue fix indicator," is designed to identify and trade harmonic chart patterns in financial markets. It uses Fibonacci relationships between price points to detect various patterns like Bat, Butterfly, Gartley, Crab, Shark, and others.
## Key Features:
- **Pattern Recognition**: Automatically identifies over a dozen harmonic patterns including standard and anti-patterns
- **Customizable Settings**: Options to use Heikin Ashi candles and alternate timeframes
- **Fibonacci Levels**: Configurable display of key Fibonacci retracement levels
- **Entry and Exit Signals**: Clear buy/sell signals with visual triangles above/below bars
- **Trade Management**: Automatic take-profit and stop-loss levels based on Fibonacci relationships
- **Visual Aids**: Color-coded backgrounds to highlight active trade zones
- **Alert System**: Customizable alert messages for trade entries and exits
## How It Works:
The indicator uses a zigzag function to identify significant price pivots, then analyzes the relationships between these pivots to detect specific harmonic patterns. When a valid pattern forms and price reaches the entry zone (defined by a Fibonacci level), the indicator generates a trade signal.
Each pattern has specific Fibonacci ratio requirements between its points, and the indicator continuously scans for these relationships. Trade management is handled automatically with predefined take-profit and stop-loss levels.
This version specifically addresses repainting issues that are common in pattern-detection indicators, making it more reliable for both backtesting and live trading.
furs Inside Bar FailureAs it says. If an inside bar breakout fails and closes back inside, target the other side of the Inside Bar.
SMC + ICT Strategy | 5-Min | No Repaint | TP/SL LinesSmc+ Ict clear signal with no repaint also in 5 min perfect for intraday
5ADR @nothingveryrealThis script calculates the average daily range for the last 5 complete days (excluding today) and displays it as on‑chart text. It lets you switch between showing the value as a raw price difference or as pips/points, with an editable pip conversion factor (for example, 10000 for most pairs or 100 for JPY pairs).