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
Ciclos
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.
PMO + Daily SMA(55)PMO + Daily SMA(55)
This script plots the Price Momentum Oscillator (PMO) using the classic DecisionPoint methodology, along with its signal line and the 55-period Simple Moving Average (SMA) of the daily PMO.
PMO is a smoothed momentum indicator that measures the rate of change and helps identify trend direction and strength. The signal line is an EMA of the PMO, commonly used for crossover signals.
The 55-period SMA of the daily PMO is added as a longer-term trend filter. It remains based on daily data, even when applied to intraday charts, making it useful for aligning lower timeframe trades with higher timeframe momentum.
Ideal for swing and position traders looking to combine short-term momentum with broader trend context.
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.
Psychological Levels 25 Gold [UkutaLabs]Here's a description you can use when publishing your "Psychological Levels 25 Gold " indicator on TradingView:
Title: Psychological Levels 25 Gold
Description:
"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. Always conduct thorough research and consult with a qualified financial advisor before making any trading decisions.
Goichi Hosoda TheoryGreetings to traders. I offer you an indicator for trading according to the Ichimoku Kinho Hyo trading system. This indicator determines possible time cycles of price reversal and expected asset price values based on the theory of waves and time cycles by Goichi Hosoda.
The indicator contains classic price levels N, V, E and NT, and is supplemented with intermediate levels V+E, V+N, N+NT and x2, x3, x4 for levels V and E, which are used in cases where the wave does not contain corrections and there is no possibility to update the impulse-corrective wave.
A function for counting bars from points A B and C has also been added.
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).
m7sere signalsbye and sell signals for London session only
.
.
,
,
,
,
,
,
,
,
bye and sell signals for London session only
Enhanced Bollinger Bands (EBB) + Dyn. Fun# Enhanced Bollinger Bands (EBB) + Dynamic Fun Character for TradingView
**Author:** Gemini AI (Conceptualized by a Senior SWE/FinAnalyst Persona)
**Date:** 2025-04-09
**Version:** 1.4
## Overview
This TradingView Pine Script indicator provides a significantly enhanced version of the standard Bollinger Bands (BB) combined with a fun, dynamic character element for at-a-glance visualization of the current price action.
It offers greater flexibility in calculating the Bollinger Bands by allowing user selection of the Moving Average type and price source. Additionally, it includes visual aids like volatility squeeze highlighting, band filling, and band cross labels, along with configurable alerts.
The unique "Dynamic Fun Character" feature displays an emoji next to the current real-time candle, changing its expression based on the candle's direction (up, down, or neutral), providing an intuitive visual cue for market sentiment on the very latest bar.
## Core Concepts
* **Bollinger Bands (BB):** A volatility indicator consisting of:
* **Basis Line:** A moving average (SMA, EMA, etc.) representing the middle price range.
* **Upper Band:** Basis Line + (Standard Deviations * Multiplier).
* **Lower Band:** Basis Line - (Standard Deviations * Multiplier).
* The bands widen during high volatility and narrow ("squeeze") during low volatility. Price tends to stay within the bands most of the time.
* **Average True Range (ATR):** A measure of market volatility. Used in this script to dynamically position the character label vertically and to determine the threshold for a "neutral" candle.
## Features
### Enhanced Bollinger Bands
1. **Selectable Moving Average Type:** Choose the MA type for the Basis Line:
* `SMA` (Simple Moving Average - Default)
* `EMA` (Exponential Moving Average - More weight to recent prices)
* `WMA` (Weighted Moving Average - Linear weight to recent prices)
* `HMA` (Hull Moving Average - Aims for less lag, smoother)
* `VWMA` (Volume Weighted Moving Average - Weights price by volume)
2. **Selectable Price Source:** Calculate bands based on various price points:
* `close` (Default)
* `high`, `low`, `open`
* `hl2` ( (high + low) / 2 )
* `hlc3` ( (high + low + close) / 3 )
* `ohlc4` ( (open + high + low + close) / 4 )
3. **Volatility Squeeze Highlight:** Automatically highlights the chart background (default: gray) when bandwidth (relative width of the bands) reaches a low point over a user-defined lookback period. Squeezes often precede significant price moves.
4. **Band Fill:** Optionally fills the area between the upper and lower bands with a semi-transparent color for better visualization of the volatility channel.
5. **Band Cross Labels:** Displays small triangles (▲ for up-cross, ▼ for down-cross) when the price closes outside the upper or lower band, highlighting potential breakout or reversal signals.
6. **Band Cross Alerts:** Configurable TradingView alerts can be triggered when the price crosses above the upper band or below the lower band.
7. **Bandwidth & %B Calculations:** The script calculates Bandwidth (`(Upper - Lower) / Basis`) and %B (`(Price - Lower) / (Upper - Lower)`) internally. While not plotted separately, these values are used for features like the squeeze detection and could potentially be used for strategy development.
### Dynamic Fun Character
1. **Sentiment Visualization:** Displays an emoji character next to the **current, real-time candle only**.
2. **Dynamic Expression:** The emoji changes based on the candle's formation:
* **😀 (Happy):** Candle is Green (`close > open`).
* **😞 (Sad):** Candle is Red (`close < open`).
* **😑 (Neutral):** Candle body (`abs(close - open)`) is very small compared to the Average True Range (ATR). Indicates low momentum or indecision for that specific bar.
3. **Adaptive Neutral Threshold:** The threshold for displaying the neutral face (😑) is based on a user-defined fraction of the current ATR, making it adaptive to market volatility.
4. **Customizable Appearance:**
* Position (X/Y Offset from the current candle).
* Size (Tiny, Small, Normal, Large, Huge - Default: Huge).
* Background Color (Default: Black).
* Text/Emoji Color (Default: White).
5. **Dynamic Tooltip:** Hovering over the character provides a simple text description of the current candle state ("Moving Up!", "Moving Down!", "Not much action.").
## How to Use / Interpretation
* **Volatility:** Watch the **band width**. Narrowing bands (especially with **Squeeze Highlights**) indicate consolidation and potential energy buildup for a larger move. Widening bands show increased volatility.
* **Trend Following:** In strong trends, prices may "walk the band" (consistently touch or slightly exceed the upper/lower band). The **Basis Line** often acts as dynamic support/resistance.
* **Mean Reversion Signals:** Price touching an outer band *without* extreme volatility *might* suggest an overbought/oversold state, potentially leading to a move back towards the **Basis Line**. Confirm with other factors.
* **Breakouts/Reversals:** Price closing outside the bands (indicated by **Cross Labels** and potentially **Alerts**), especially after a **Squeeze**, can signal the start of a new move. Look for confirmation (e.g., volume).
* **Dynamic Character:** Use the character for a quick visual check of the **current real-time candle's sentiment**. Is the latest price action bullish (😀), bearish (😞), or indecisive (😑)?
* **Context is Key:** **Never** rely on this indicator alone. Combine its signals with price action analysis, chart patterns, volume, other indicators (RSI, MACD, etc.), and robust risk management strategies.
## How to Add to TradingView
1. Open your TradingView chart.
2. Click on the "Pine Editor" tab at the bottom panel.
3. Copy the entire script code (`.pine` file content).
4. Paste the code into the Pine Editor, replacing any existing content.
5. Click "Add to Chart".
6. Adjust parameters via the indicator's "Settings" cog icon if needed.
## Input Parameters
Parameters can be adjusted in the indicator settings window.
### Moving Average Settings
* **Price Source:** (`srcInput`, Default: `close`) - Selects the price data source for all calculations.
* **BB Length:** (`lenInput`, Default: `20`) - Lookback period for MA and Standard Deviation.
* **MA Type:** (`maTypeInput`, Default: `SMA`) - Type of Moving Average for the Basis Line.
* **StdDev Multiplier:** (`multInput`, Default: `2.0`) - Multiplier for the Standard Deviation to set band width.
### Visual Settings
* **Show Band Fill:** (`showFillInput`, Default: `true`) - Toggles the color fill between bands.
* **Fill Color:** (`fillColorInput`, Default: `Blue, 85% transparency`) - Color for the band fill.
* **Upper Band:** (`upperColorInput`, Default: `Teal`) - Color of the upper band line.
* **Basis Line:** (`basisColorInput`, Default: `Orange`) - Color of the middle basis line.
* **Lower Band:** (`lowerColorInput`, Default: `Teal`) - Color of the lower band line.
### Volatility Squeeze Settings
* **Highlight Squeezes:** (`showSqueezeInput`, Default: `true`) - Toggles the background highlight during squeezes.
* **Squeeze Lookback:** (`squeezeLookbackInput`, Default: `50`) - How many bars back to check for the lowest bandwidth to define a squeeze.
* **Squeeze Color:** (`squeezeColorInput`, Default: `Gray, 80% transparency`) - Background color during a squeeze.
### On-Chart Labels
* **Show Band Cross Labels:** (`showLabelsInput`, Default: `true`) - Toggles the ▲/▼ labels on band crosses.
* **Label Size:** (`labelSizeInput`, Default: `Small`) - Size of the ▲/▼ cross labels.
* **Up-Cross Label Color:** (`upCrossColorInput`, Default: `Green`) - Color for the ▲ label.
* **Down-Cross Label Color:** (`dnCrossColorInput`, Default: `Red`) - Color for the ▼ label.
### Alert Settings
* **Alert on Upper Band Cross:** (`alertCrossUpperInput`, Default: `false`) - Enable condition for alerts when price crosses above the upper band.
* **Alert on Lower Band Cross:** (`alertCrossLowerInput`, Default: `false`) - Enable condition for alerts when price crosses below the lower band.
### Fun Character Settings
* **Show Dynamic Character:** (`showCartoonInput`, Default: `true`) - Toggles the dynamic emoji character on/off.
* **Neutral Threshold (ATR Fraction):** (`littleMoveThresholdInput`, Default: `0.15`) - If candle body size < (this fraction * ATR), show Neutral face (😑).
* **Character X Offset (Bars):** (`cartoonXOffsetInput`, Default: `2`) - Horizontal offset (in bars) from the current candle.
* **Character Y Offset (ATR):** (`cartoonYOffsetMultInput`, Default: `0.5`) - Vertical offset (as a multiple of ATR) from the current candle's high.
* **Character Size:** (`cartoonSizeInput`, Default: `Huge`) - Size of the emoji character.
* **Character BG Color:** (`cartoonColorInput`, Default: `Black`) - Background color of the character label.
* **Character Text Color:** (`cartoonTextColorInput`, Default: `White`) - Color of the emoji text itself.
## Changelog
* **v1.4 (2025-04-09):** Replaced blinking character logic with dynamic face based on candle movement (Up 😀 / Down 😞 / Neutral 😑). Added ATR-based threshold input for neutral state.
* **v1.3 (2025-04-09):** Increased default character size to `size.huge`.
* **v1.2 (2025-04-09):** Changed default character background color to black and text color to white for better contrast.
* **v1.1 (2025-04-09):** Added optional blinking cartoon character next to the current candle.
* **v1.0 (2025-04-09):** Initial release - Enhanced Bollinger Bands with selectable MA/Source, squeeze highlighting, band fill, cross labels, and alerts.
## Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. Trading financial markets involves significant risk, and you could lose your capital. Always perform your own due diligence and consult with a qualified financial advisor before making any trading decisions. Past performance is not indicative of future results. The author is not responsible for any trading losses incurred using this indicator.
Larsson Line Replica (Yellow = Bullish, Blue = Bearish)📘 Interpretation with Flipped Colors
🟨 Yellow Zones – Bullish Trend
• Signals uptrend confirmation.
• SMMA(15) > SMMA(29) indicates upward momentum.
• Ideal for:
• Holding or adding to long positions
• Buying pullbacks within or near the band
• Ignoring short setups on lower timeframes unless reversal signals show up
🟦 Blue Zones – Bearish Trend
• SMMA(15) < SMMA(29) confirms a downtrend.
• Useful for:
• Risk-off posture: take profits, reduce exposure
• Considering short trades
• Waiting out until trend flips yellow again before longing
🩶 Gray Zones – Transition / Unclear
• Represents possible trend change or indecision.
• Appears around crossovers.
• Great time to be cautious — wait for confirmation (either yellow or blue)
• Often coincides with low-volatility consolidation zones or false breakouts
📊 Timeframe Interpretation Tips (with Updated Colors)
🕰️ Weekly – Macro Regime Filter
• 🟨 Yellow = Swing longs allowed
• 🟦 Blue = Risk-off, short setups more reliable
• Use this timeframe as your macro bias anchor
• Combine with higher timeframe market structure, moving averages, or on-chain trends
⸻
📅 Daily – Tactical Entry & Position Management
• Use the slope of the bands for early momentum detection
• 🟦 Blue to Yellow flips = potential trend reversal to the upside → re-enter longs, cut shorts
• 🟨 Yellow to Blue flips = trend weakness or downtrend return → consider profit-taking or short setups
• Great timeframe for:
• Refining entries
• Managing exits
• Spotting trend shifts before weekly confirms
⸻
⏱ Lower Timeframes (4H, 1H) – Execution
• Treat the band like a dynamic trend channel
• Enter trades in direction of the current color:
• 🟨 Yellow → Buy pullbacks to the midline
• 🟦 Blue → Sell bounces into the midline
• Avoid trading against the band unless clear structure or divergence forms
• Pair with RSI/MACD for confluence
Mercury Venus Conjunction Sextiles 2019-2026How to Use It and What It Means Astrologically
How to Use the Script in TradingView
This Pine Script, called "Mercury Venus Aspects 2019–2026," is made to highlight the dates of Mercury-Venus conjunctions (0°) and sextiles (60°) from 2019 to 2026 on TradingView charts. Here's how to use it:
click “Add to Chart.” It will apply to any chart you have open—stocks, forex, crypto, etc.
Customize the Display
You can turn on/off the visibility of conjunctions and sextiles using checkboxes under "Inputs" in the settings.
You can also adjust the label size (small, normal, large, or huge) for better readability on your chart.
What You’ll See on the Chart
Conjunctions appear as blue shaded zones with labels like “C1,” “C2,” etc. These mark dates when Mercury and Venus are at the same degree.
Sextiles show up in orange with labels like “S1,” “S2,” marking when they’re about 60° apart.
Each event spans a 2-day window (one day before and after the exact aspect).
How to Use It Practically
You can overlay the script on market charts to look for any patterns between these planetary aspects and price movements.
You can also use it to plan personal or financial activities, since these aspects often affect communication, money, and relationships.
What to Keep in Mind
Dates are approximate and based on average planetary cycles (Mercury: ~88 days, Venus: ~225 days). For exact timing, use an ephemeris.
Only conjunctions and sextiles are shown. Oppositions, squares, and trines aren’t included because Mercury and Venus never get far enough apart (more than 75°).
This script is great for astrologers, traders, and enthusiasts who want to see Mercury-Venus aspects directly on their charts and explore their possible effects.
Astrological Meaning of Mercury-Venus Aspects
What Mercury and Venus Represent
Mercury rules communication, thinking, technology, travel, and trade. In global events (mundane astrology), it affects media, markets, and movement of information.
Venus is about love, beauty, money, and pleasure. It influences relationships, aesthetics, and finance. In the world stage, it’s linked to luxury, art, fashion, and economic balance.
When Mercury and Venus form aspects (like conjunctions or sextiles), their energies mix in helpful ways that can affect people and events.
Conjunction (0°) – Mercury and Venus Together
These two planets are in the same sign and degree, so their qualities merge.
For people:
Positive: Smooth communication, charm, creativity, and better relationships. Great for romance, art, and social interaction.
Negative: Too much focus on appearances, sweet talk, or pleasure can cloud judgment. Decisions may lack depth.
For the economy:
Positive: Boosts in media, entertainment, fashion, and tech. Good for trade, deals, and optimism in financial markets.
Negative: Risk of overspending or unrealistic expectations. May cause small market bubbles or misleading hype.
Sextile (60°) – Mercury and Venus in Harmony
These two planets are two signs apart, creating a smooth, supportive energy.
For people:
Positive: Easy conversations, creative teamwork, small financial wins, and pleasant social experiences.
Negative: Energy is mild, so opportunities might be missed if not acted on. People may avoid hard decisions.
For the economy:
Positive: Gradual improvements in areas like marketing, social media, hospitality, and design. Good for diplomacy.
Negative: Lack of strong initiative could limit bigger gains. Minor missteps are possible due to a laid-back attitude.
General Effects
These aspects are mostly beneficial. They support creativity, financial thinking, and social harmony.
Downsides: Conjunctions may lead to overindulgence or shallow choices, while sextiles may cause missed chances due to low energy.
These aspects rarely cause major economic shifts on their own but can amplify trends depending on other planetary influences (like Saturn or Uranus).
Zodiac Sign Influence
Fire signs (Aries, Leo, Sagittarius): Bold communication, energetic spending, gains in media or entertainment.
Earth signs (Taurus, Virgo, Capricorn): Practical results, stable finances, growth in real-world assets like property or food.
Air signs (Gemini, Libra, Aquarius): Intellectual growth, tech innovation, and social ideas flourish.
Water signs (Cancer, Scorpio, Pisces): Emotional depth in conversations, artistic growth, and financial sensitivity.
Mercury-Venus aspects are gentle but helpful. They combine logic (Mercury) with emotion and value (Venus). They’re good times for love, communication, and money—but their benefits depend on how we use the energy. This script lets you easily track these moments on a chart and explore how they might align with real-life trends or decisions.
Disclaimer: This script and its interpretations are for informational and educational purposes only. They do not constitute financial, trading, or professional astrological advice. Always conduct your own research and consult qualified professionals before making any financial or personal decisions. Use at your own discretion.
MACD - salThis indicator chooses a 15-minute frame if the person chose 30 minutes with the SAR indicator, and if he chose 15 minutes, it takes 5 minutes.
[Forexroboot super scalper v1]this indicator trade on crypto and forex
trade on any time frame
enjoyed
inst: Forexroboot
ما
forexroboot
ForexRobootthis indicator trade on crypto and forex
trade on neo usdt winrate 100%
trade on btc usdt winrate 90%
trade on cardano usdt winrate 90%
trade on floki usdt winrate 90%
and very coin other
enjoyed
inst: Forexroboot
ما
forexroboot
ForexRobootthis indicator trade on crypto and forex
trade on neo usdt winrate 100%
trade on btc usdt winrate 90%
trade on cardano usdt winrate 90%
trade on floki usdt winrate 90%
and very coin other
enjoyed
inst: Forexroboot
ما
forexroboot
forexroboot Hunter Premiumthis indicator trade on crypto and forex
trade on any time frame
enjoyed
inst: Forexroboot
ما
forexroboot
forexroboot Hunter Premiumthis indicator trade on crypto and forex
trade on any time frame
enjoyed
inst: Forexroboot
ما
forexroboot
GannLvlSHGann Indicator created to display the Support and Resistances levels on Chart based on study of WD Gann
Stochastic Order Flow Momentum [ScorsoneEnterprises]This indicator implements a stochastic model of order flow using the Ornstein-Uhlenbeck (OU) process, combined with a Kalman filter to smooth momentum signals. It is designed to capture the dynamic momentum of volume delta, representing the net buying or selling pressure per bar, and highlight potential shifts in market direction. The volume delta data is sourced from TradingView’s built-in functionality:
www.tradingview.com
For a deeper dive into stochastic processes like the Ornstein-Uhlenbeck model in financial contexts, see these research articles: arxiv.org and arxiv.org
The SOFM tool aims to reveal the momentum and acceleration of order flow, modeled as a mean-reverting stochastic process. In markets, order flow often oscillates around a baseline, with bursts of buying or selling pressure that eventually fade—similar to how physical systems return to equilibrium. The OU process captures this behavior, while the Kalman filter refines the signal by filtering noise. Parameters theta (mean reversion rate), mu (mean level), and sigma (volatility) are estimated by minimizing a squared-error objective function using gradient descent, ensuring adaptability to real-time market conditions.
How It Works
The script combines a stochastic model with signal processing. Here’s a breakdown of the key components, including the OU equation and supporting functions.
// Ornstein-Uhlenbeck model for volume delta
ou_model(params, v_t, lkb) =>
theta = clamp(array.get(params, 0), 0.01, 1.0)
mu = clamp(array.get(params, 1), -100.0, 100.0)
sigma = clamp(array.get(params, 2), 0.01, 100.0)
error = 0.0
v_pred = array.new(lkb, 0.0)
array.set(v_pred, 0, array.get(v_t, 0))
for i = 1 to lkb - 1
v_prev = array.get(v_pred, i - 1)
v_curr = array.get(v_t, i)
// Discretized OU: v_t = v_{t-1} + theta * (mu - v_{t-1}) + sigma * noise
v_next = v_prev + theta * (mu - v_prev)
array.set(v_pred, i, v_next)
v_curr_clean = na(v_curr) ? 0 : v_curr
v_pred_clean = na(v_next) ? 0 : v_next
error := error + math.pow(v_curr_clean - v_pred_clean, 2)
error
The ou_model function implements a discretized Ornstein-Uhlenbeck process:
v_t = v_{t-1} + theta (mu - v_{t-1})
The model predicts volume delta (v_t) based on its previous value, adjusted by the mean-reverting term theta (mu - v_{t-1}), with sigma representing the volatility of random shocks (approximated in the Kalman filter).
Parameters Explained
The parameters theta, mu, and sigma represent distinct aspects of order flow dynamics:
Theta:
Definition: The mean reversion rate, controlling how quickly volume delta returns to its mean (mu). Constrained between 0.01 and 1.0 (e.g., clamp(array.get(params, 0), 0.01, 1.0)).
Interpretation: A higher theta indicates faster reversion (short-lived momentum), while a lower theta suggests persistent trends. Initial value is 0.1 in init_params.
In the Code: In ou_model, theta scales the pull toward \mu, influencing the predicted v_t.
Mu:
Definition: The long-term mean of volume delta, representing the equilibrium level of net buying/selling pressure. Constrained between -100.0 and 100.0 (e.g., clamp(array.get(params, 1), -100.0, 100.0)).
Interpretation: A positive mu suggests a bullish bias, while a negative mu indicates bearish pressure. Initial value is 0.0 in init_params.
In the Code: In ou_model, mu is the target level that v_t reverts to over time.
Sigma:
Definition: The volatility of volume delta, capturing the magnitude of random fluctuations. Constrained between 0.01 and 100.0 (e.g., clamp(array.get(params, 2), 0.01, 100.0)).
Interpretation: A higher sigma reflects choppier, noisier order flow, while a lower sigma indicates smoother behavior. Initial value is 0.1 in init_params.
In the Code: In the Kalman filter, sigma contributes to the error term, adjusting the smoothing process.
Summary:
theta: Speed of mean reversion (how fast momentum fades).
mu: Baseline order flow level (bullish or bearish bias).
sigma: Noise level (variability in order flow).
Other Parts of the Script
Clamp
A utility function to constrain parameters, preventing extreme values that could destabilize the model.
ObjectiveFunc
Defines the objective function (sum of squared errors) to minimize during parameter optimization. It compares the OU model’s predicted volume delta to observed data, returning a float to be minimized.
How It Works: Calls ou_model to generate predictions, computes the squared error for each timestep, and sums it. Used in optimization to assess parameter fit.
FiniteDifferenceGradient
Calculates the gradient of the objective function using finite differences. Think of it as finding the "slope" of the error surface for each parameter. It nudges each parameter (theta, mu, sigma) by a small amount (epsilon) and measures the change in error, returning an array of gradients.
Minimize
Performs gradient descent to optimize parameters. It iteratively adjusts theta, mu, and sigma by stepping down the "hill" of the error surface, using the gradients from FiniteDifferenceGradient. Stops when the gradient norm falls below a tolerance (0.001) or after 20 iterations.
Kalman Filter
Smooths the OU-modeled volume delta to extract momentum. It uses the optimized theta, mu, and sigma to predict the next state, then corrects it with observed data via the Kalman gain. The result is a cleaner momentum signal.
Applied
After initializing parameters (theta = 0.1, mu = 0.0, sigma = 0.1), the script optimizes them using volume delta data over the lookback period. The optimized parameters feed into the Kalman filter, producing a smoothed momentum array. The average momentum and its rate of change (acceleration) are calculated, though only momentum is plotted by default.
A rising momentum suggests increasing buying or selling pressure, while a flattening or reversing momentum indicates fading activity. Acceleration (not plotted here) could highlight rapid shifts.
Tool Examples
The SOFM indicator provides a dynamic view of order flow momentum, useful for spotting directional shifts or consolidation.
Low Time Frame Example: On a 5-minute chart of SEED_ALEXDRAYM_SHORTINTEREST2:NQ , a rising momentum above zero with a lookback of 5 might signal building buying pressure, while a drop below zero suggests selling dominance. Crossings of the zero line can mark transitions, though the focus is on trend strength rather than frequent crossovers.
High Time Frame Example: On a daily chart of NYSE:VST , a sustained positive momentum could confirm a bullish trend, while a sharp decline might warn of exhaustion. The mean-reverting nature of the OU process helps filter out noise on longer scales. It doesn’t make the most sense to use this on a high timeframe with what our data is.
Choppy Markets: When momentum oscillates near zero, it signals indecision or low conviction, helping traders avoid whipsaws. Larger deviations from zero suggest stronger directional moves to act on, this is on $STT.
Inputs
Lookback: Users can set the lookback period (default 5) to adjust the sensitivity of the OU model and Kalman filter. Shorter lookbacks react faster but may be noisier; longer lookbacks smooth more but lag slightly.
The user can also specify the timeframe they want the volume delta from. There is a default way to lower and expand the time frame based on the one we are looking at, but users have the flexibility.
No indicator is 100% accurate, and SOFM is no exception. It’s an estimation tool, blending stochastic modeling with signal processing to provide a leading view of order flow momentum. Use it alongside price action, support/resistance, and your own discretion for best results. I encourage comments and constructive criticism.
Advanced Multi-Symbol Analyzer by Babak SoltanparastAdvanced Multi-Symbol Analyzer by Babak Soltanparast