Phân tích Xu hướng
GOD MODE HUNT v2.0 — SCREENER ULTIME 2025test screener pour détecter les crypto basée sur des règles strict
Daily EMA TrendThis show whether price is above or below the set DAILY EMAs that you set. Default is 200, 100, 50 & 20.
Fibonacci Projection with Volume & Delta Profile (Zeiierman)█ Overview
Fibonacci Projection with Volume & Delta Profile (Zeiierman) blends classic Fibonacci swing analysis with modern volume-flow reading to create a unified, projection-based market framework. The indicator automatically detects the latest swing high and swing low, builds a complete Fibonacci structure, and then projects future extension targets with clear visual pathways.
What makes this tool unique is the integration of two volume-based systems directly into the Fibonacci structure. A Fib-aligned Volume Profile shows how bullish and bearish volume accumulated inside the swing range, while a separate Delta Profile reveals the imbalance of buy–sell pressure inside each Fibonacci interval. Together, these elements transform the standard Fibonacci tool into a multi-dimensional structural and volume-flow map.
█ How It Works
The indicator first detects the most recent swing high and swing low using the Period setting. That swing defines the Fibonacci range, from which the script draws retracement levels (0.236–0.786) and builds a forward projection path using the chosen Projection Level and a 1.272 extension.
Along this path, it draws projection lines, target boxes, and percentage labels that show how far each projected leg extends relative to the previous one.
Inside the same swing range, the script builds a Fib-based Volume Profile by splitting price into rows and assigning each bar’s volume as bullish (close > open) or bearish (close ≤ open). On top of that, it calculates a Volume Delta Profile between each pair of fib levels, showing whether buyers or sellers dominated that band and how strong that imbalance was.
█ How to Use
This tool helps traders quickly understand market structure and where the price may be heading next. The projection engine shows the most likely future targets, highlights strong or weak legs in the move, and updates automatically whenever a new swing forms. This ensures you always see the most relevant and up-to-date projection path.
The Fib Volume Profile shows where volume supported the move and where it did not. Thick bullish buckets reveal zones where buyers stepped in aggressively, often becoming retestable support. Thick bearish buckets highlight zones of resistance or rejection, particularly useful if projected levels align with prior liquidity.
The Delta Profile adds a second dimension to volume reading by showing where buy–sell pressure was truly imbalanced. A projected Fibonacci target that aligns with a strong bullish delta, for example, may suggest continuation. A projection into a band dominated by bearish delta may warn of reversal or hesitation.
█ Settings
Period – bars used to determine swing high/low
Projection Level – chosen Fib ratio for projection path
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
CCI Threshold HistogramSynopsis
The Custom CCI Indicator by Simon20cent enhances traditional CCI analysis with adjustable smoothing and a momentum-based histogram. The histogram highlights key thresholds, turning green above +100 and red below –100 to clearly identify strong bullish or bearish momentum. Both the CCI and smoothed CCI lines can be toggled for a cleaner view, making this tool effective for spotting momentum shifts, breakout conditions, and potential entry zones with improved clarity.
HTF Manipulation Swing Points [Pogiest]General
HTF Manipulation Swing Points plots out relevant swings on the higher timeframes selected and draws a horizontal line anchored from the extremes of the swing point. These are important levels traders can look to base entries off of. This indicator is designed to track higher timeframe swing points on a lower timeframe. It will detect a sweep (Manipulation) or a breakout/breakdown (Failure to Manipulate) based on the higher timeframe candle close.
Usage
Depending on how the higher timeframe candles engage the relevant swing points, it can assist traders on bias and direction given the higher timeframe order-flow, lower timeframe order-flow, zones, levels, etc. Manipulation of swing points can potentially signal the start of a reversal or retracement. Failure to Manipulate swing points can potentially signal continuation of the higher timeframe current trend. It is up to the trader to gauge the price action at these levels.
How the Indicator works
1. Lines (Not engaged) - Plots out line from higher timeframe swing points and extends to the right.
2. Manipulation (M) - M label will be plotted on the swing point line that has been engaged. For example, if 1 hour timeframe was selected in settings and the 1 hour swing point line is plotted on the chart, the indicator will track the first one hour candle to engage the line and wait for the 1 hour engaging candle to close before marking it out as a Manipulation label. It is deemed to be manipulation if the 1 hour candle sweeps the level and closes back into the range.
3. Failure to Manipulate (FTM) - FTM label functions the same as Manipulation in which it waits for the swing point line to be engaged in order for a label to be printed. However, if the price does not sweep the swing point, breaks through, and closes beyond the level then it would be deemed a "Failure to Manipulate".
Note: The timeframe selected in settings will match the engaging candle. For instance, if a 4 hour timeframe is selected, the next 4 hour candle that engages the swing point level will need to close before it displays a label. In addition, this indicator is designed to view on lower timeframes with higher timeframe swing points selected in Settings.
Settings
Timeframes:
1. Choose up to two timeframes for swing point levels.
2. Adjust Pivot lookback.
3. Option to change high and low line color, line style, and line width.
Timeframe Manipulation Labels:
4. Show/hide labels.
5. Option to adjust offset of labels horizontally/vertically for each high or low line.
6. Option to change label colors, label size, and text color.
Line Tags:
7. Show/hide line end tags.
8. Option to change tag size and tag color.
9. Adjust offset of tags.
Overlap Detection:
10. Adjust overlap threshold percentage.
11. Adjust label shift amount (for when labels are overlapping each other).
Alerts:
12. Option to enable/disable all alerts. Select different alerts for each timeframe (i.e. manipulate alert or failure to manipulate alert).
Risk Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. All trading and investment decisions remain solely the responsibility of the user.
Trading involves a high degree of risk, and past performance is not indicative of future results.
Always conduct your own research and consult with a qualified financial professional before making any trading decisions.
By using this indicator, users acknowledge they understand these risks and accept full responsibility for their trading decisions and outcomes.
APLAPL (Adaptive Power Line) is an adaptive trend channel indicator based on the energy distribution within a price range. It utilizes the highest and lowest prices over a specific period, constructing three core structures through a combination of different exponential weights: the upper band (In Up), the lower band (In Dn), and the middle band (Mid). Unlike traditional channels, APL does not directly use linear averages but instead employs a power-weighted approach, allowing it to more accurately reflect the strength of price movements within a range.
The upper band emphasizes the weight of the highest price, more closely reflecting upward price momentum; the lower band emphasizes the weight of the lowest price, used to depict downward pressure; and the middle band, as the geometric median, reflects the equilibrium point and true center of the price range. This structure maintains smoothness while quickly adapting to fluctuations.
The three structural lines of APL can be used to identify trend direction, determine support and resistance levels, and observe the degree of price deviation within the range. When the price approaches or breaks through the upper band, it signifies increased upward momentum; approaching the lower band reflects dominant downward momentum; and fluctuations around the middle band indicate a balanced oscillation within the range. APL is simple yet effective, and is a highly applicable auxiliary tool for locating trend rhythms and range energy.
3-Daumen-RegelThis indicator evaluates three key market conditions and summarizes them in a compact table using simple thumbs-up / thumbs-down signals. It’s designed specifically for daily timeframes and helps you quickly assess whether a market is showing technical strength or weakness.
The Three Checks
Price Above the 200-Day SMA
Indicates the long-term trend direction. A thumbs-up means the price is trading above the 200-day moving average.
Positive Performance During the First 5 Trading Days of the Year (YTD Start)
Measures early-year strength. If not enough bars are available, a warning is shown.
Price Above the YTD Level
Compares the current price to the first trading day’s close of the year.
Color Coding for Instant Clarity
Green: Condition met
Red: Condition not met
This creates a compact “thumbs check” that gives you a quick read on the market’s technical health.
Note
The indicator is intended for daily charts. A message appears if a different timeframe is used.
US Sessions R4D1🇬🇧 English
US Sessions R4D1 - Market Session Highlighter
Visualize US market sessions directly on your chart with beautiful color overlays and an interactive dashboard.
🎯 FEATURES:
- Automatic session detection based on New York time
- Color-coded background for each session
- Session start labels with customizable size
- Real-time dashboard showing current session status
- Fully customizable colors and settings
📊 SESSIONS:
- 🌙 Premarket: 4:00-9:30 NY
- 🔔 US Open: 9:30-11:30 NY (Power Hour!)
- 🍔 Lunch: 11:30-13:30 NY (Low Volume)
- 📈 Afternoon: 13:30-16:00 NY
- 🌃 After Hours: 16:00-20:00 NY
⚙️ SETTINGS:
- Toggle each session on/off
- Customize all colors
- Label size: tiny to huge
- Dashboard position: any corner
- Show/hide labels and dashboard
Perfect for day traders who want to track market sessions at a glance. Know exactly when the US market opens, when volume typically drops during lunch, and when the afternoon push begins.
Works on all timeframes and instruments.
GENESIS DHANUS A clean, non-repainting trend-following signal indicator.
Buy signals appear when:
• Fast EMA (9) crosses above Slow EMA (21)
• RSI > 50 (bullish momentum)
• Previous bar volume > 1.5× 20-period average
• Price is above the current Heikin-Ashi "trend level"
Sell signals use the exact opposite conditions.
All conditions use confirmed data only (no future leak, no repainting).
Perfect for swing trading and alert setups on any timeframe.
Features:
- Large clear arrows with text
- Optional light background coloring
- Precise alert conditions
- EMA lines can be toggled
100% Pine Script v5 – open source and free.
SuperTrend Oscillator [ChartPrime]⯁ OVERVIEW
The SuperTrend Oscillator is a hybrid momentum–trend indicator that transforms the classic SuperTrend into a full-strength oscillator.
Instead of simply plotting SuperTrend direction on the chart, this tool measures the distance between price and SuperTrend, normalizes it by volatility, and converts it into a dynamic oscillator that highlights trend strength, momentum extremes, and high-precision reversal points.
⯁ CONCEPTS
SuperTrend Engine: The indicator extracts the SuperTrend baseline and direction using ATR-based volatility. This acts as the core structure from which the oscillator is built.
Volatility-Adjusted Oscillation: (close − SuperTrend) is divided by ATR to standardize momentum across all markets and timeframes.
Adaptive Oscillator Types: The signal can be transformed using HMA, EMA, or SMA smoothing for varying responsiveness.
Momentum Extremes: Values above +1.7 or below −1.7 signal stretched price conditions where reversals are more likely.
Reversal Logic: The oscillator compares its current value with its value three bars ago. Large positive or negative pivots indicate momentum shifts.
⯁ FEATURES
Trend-Colored SuperTrend Line
The SuperTrend line shifts color based on direction, giving immediate context for oscillator readings.
Full Oscillator Transformation
Converts price–SuperTrend distance into a normalized oscillator, showing when momentum is expanding, contracting, or reaching exhaustion.
Gradient Momentum Coloring
The oscillator line and candles are colored using a two-sided gradient:
• Red tones for bearish momentum
• Orange/cream tones for bullish momentum
• Gray tones for low momentum
This makes strength visually intuitive.
Extreme Zones (±1.7 Bands)
Built-in upper and lower thresholds highlight zones where price is statistically overextended.
Dual Fill Layers
The area above/below zero is filled in different colors to emphasize bullish or bearish oscillator regime.
Reversal Diamonds
The script highlights significant reversals when:
• Momentum shifts downward from high values (bearish pivot)
• Momentum shifts upward from deep lows (bullish pivot)
These diamonds help pinpoint exhaustion-based turning points.
⯁ HOW TO USE
Identify Trend Strength:
A rising oscillator above 0 confirms bullish SuperTrend conditions; falling below 0 confirms bearish ones.
Spot Momentum Extremes:
Readings above +1.7 or below −1.7 often signal overextended price moves.
Use Reversal Diamonds as Pivot Alerts:
Diamond markers indicate high-probability turning points when momentum sharply reverses from extreme zones.
Confirm Trend Shifts with Color Changes:
Candle and oscillator colors shift based on momentum direction, providing clean visual alignment with SuperTrend direction.
Combine with Structure or OB Zones:
Reversal signals become more reliable when they occur at key S/R, order blocks, or liquidity sweeps.
⯁ CONCLUSION
The SuperTrend Oscillator modernizes the SuperTrend by transforming it into a volatility-aware oscillator with clear reversal markers, trend coloring, and momentum normalization.
This tool is ideal for traders who want both trend context and precise timing signals, blending SuperTrend’s reliability with the dynamics of a professional-grade momentum oscillator.
Combined Up down with volumeIndicates the day with a purple dot where price moved up or down by 5% or more
Psychologische LevelPSYCHOLOGICAL LEVELS INDICATOR FOR FOREX
This professional indicator automatically visualizes all important psychological price levels on Forex charts. Psychological levels are price zones where traders frequently react, as humans tend to gravitate toward round numbers.
MAIN FEATURES:
Automatic Level Detection: The indicator calculates and draws all relevant psychological levels based on the current currency pair
Visual Zones: Each level is displayed with a solid center line and a colored zone
Forex-Optimized: Automatically accounts for JPY pairs (0.01 pip) and standard pairs (0.0001 pip)
Fully Customizable: Colors, zone width, and line thickness can be individually adjusted
LEVEL TYPES:
00/000 Levels (e.g., 1.1000, 1.1100, 1.2000)
The most important psychological barriers
Traders frequently place stop-loss and take-profit orders at these levels
Strong support and resistance zones
50 Levels (e.g., 1.1050, 1.1150, 1.2050)
Secondary psychological levels
Located exactly midway between 00-levels
Important intermediate zones for profit-taking
25/75 Levels (e.g., 1.1025, 1.1075, 1.2025)
Optional activation for more detailed analysis
Quartile levels for more precise zones
Useful for scalping and short-term strategies
CONFIGURATION OPTIONS:
Zone Width in Pips: Determines the width of the colored zone around the center line (Default: 5 pips)
Zone Color: Fill color of the psychological zones (adjustable transparency)
Line Color: Color of the solid center lines
Line Width: Thickness of the center lines (1-5 pixels)
Level Selection: Individual selection of which level types to display
TRADING APPLICATIONS:
✓ Identification of potential support and resistance zones
✓ Placement of stop-loss and take-profit orders
✓ Recognition of price rejection zones
✓ Support for breakout strategies
✓ Enhanced risk management
✓ Optimization of entry and exit points
SPECIAL FEATURES:
Levels extend across the entire chart (extend.both)
Automatic adjustment to all Forex pairs
Optimized performance through intelligent calculation
Clean design without cluttered chart display
Compatible with all timeframes
SUITABLE FOR:
This indicator is suitable for day traders, swing traders, scalpers, and long-term Forex investors who want to incorporate psychological price levels into their trading strategy.
Lowest Point in Last 66 Days DistanceSimple script which plots the distance of price from its last 66 days low
Price Volume Trend to buyThis indicator use PVT (price volume tendency) as background whith colors and labels to smart indicate if you are on buyer or seller scenario
Humontre - One signal - One direction - No noiseClean trend-following band
Delivers one high-conviction entry per trend change
Zero repaint · Minimal lag
Best performance observed on 4H and higher timeframes
Works on all markets (crypto · forex · indices)
Use at own risk.
Smart Donchian Channel Hariss 3691. The Donchian Channel is a trend-following indicator. It’s primarily used to identify volatility, breakouts, and price trends.
The channel is composed of three lines:
Upper Band: The highest high over a specified period (e.g., 20 bars).
Lower Band: The lowest low over the same period.
Middle Line (optional): The average of the upper and lower bands.
2. How the Donchian Channel Detects Price Momentum
The Donchian Channel is based on price extremes, which inherently reflects momentum and market sentiments.
Price Above Midline / Upper Band: Indicates strong bullish momentum. Buyers are dominating, pushing price toward new highs.
Price Below Midline / Lower Band: Indicates strong bearish momentum. Sellers are in control, pushing price toward new lows.
Price Touching the Bands:
Upper band breakout: A potential continuation of an uptrend or trend initiation.
Lower band breakout: A potential continuation of a downtrend or trend initiation.
Bounce from the bands: Signals potential reversals or retracements.
Essentially, the Donchian Channel acts as a dynamic support and resistance level.
3. Interpreting Market Conditions
Trending Markets:
Price moves along or breaks out from the upper/lower band. Donchian Channel expands as volatility increases. Breakouts from the channel often indicate continuation of the trend.
Sideways/Range-Bound Markets:
Price oscillates between upper and lower bands. Channel width narrows. Bounces from upper/lower bands may produce false signals unless filtered by volume or trend indicators.
4. Trading Applications
Breakout Strategy:
Buy when price closes above the upper band.
Sell when price closes below the lower band.
Useful for trend-following systems.
Reversal/Bounce Strategy:
Buy when price bounces from the lower band.
Sell when price rejects the upper band.
How this indicator has been designed to reduce false signals:
Buy signal fires when price bounces from the lower band with high volume (1.5), bullish RSI and DMI/ADX.
Sell signal fires when price reverses from upper band with high volume (1.5) with bearish RSI and DMI/ADX.
One can change the RSI and RVOL setting according to trading style and class assets being traded.
Trading With this Indicator:
Buy when the signal is fired to buy, place Stop Loss just below the low of last candle and take profit @1.5 or 2 times of stop loss.
Sell when the signal is fired to sell, place stop loss just above the high of the last candle and take profit @1.5 or 2 times of stop loss.
It is to note that, this indicator is a trend following indicator, so be with the trend will avoid missing out trend following levels or early exit.
INMERESHINMERESH (INTRADAY MEAN REVERSION SHORT) – First 5-Minute EMA Breakdown Highlight
This indicator is designed to highlight bearish candles on the 5-minute chart that close below the 5-minute 6 EMA, providing a clear visual representation of the first EMA breakdown after short-term bullish activity.
Key Features:
Highlights the first bearish candle that closes below the 5-minute 6 EMA after prior conditions are met.
Only triggers after sufficient prior closes above the 5-minute 6 EMA, helping to visually potentially identify the transition from short-term bullish to bearish momentum.
Incorporates MACD (6, 20, 9) prior bearish check — the signal occurs only if the MACD was bearish in prior bars, giving context to the breakdown.
Candle filtering based on body characteristics:
Weak bearish closes are prioritized, based on body size relative to the total candle range.
Close position within the candle range is considered to focus on meaningful bearish closes.
Highlights only the first breakdown candle after the conditions are met, preventing repeated signals during ongoing downtrends.
Visual customization: background color highlights the signal candle for easy identification.
Inputs / Configurable Options:
EMA length for 5-minute chart
Number of bars to check for prior closes above EMA
Minimum prior closes above EMA required
Lookback bars for prior MACD bearish condition
Candle body filtering thresholds
Option to show or hide background highlight
Use case:
This tool is primarily a visual aid for analyzing 5-minute price action relative to short-term EMA and MACD conditions, emphasizing the initial bearish shift after short-term bullish activity.
Manual Pivot Plotter//================================================================================
//📌 Manual Pivot Plotter (P, R1–R3, S1–S3)
//📈 Pine Script v6
//
//This script allows the user to manually input Pivot levels (P), Resistance levels
//(R1, R2, R3), and Support levels (S1, S2, S3). Each line starts at the beginning
//of the new trading day (detected at 00:00 UTC+8) and extends only a limited
//distance into the future (default: 3 bars).
//
//Features:
//✔ Manual pivot, support, and resistance level inputs
//✔ Lines refresh automatically at each new day (00:00 UTC+8)
//✔ Lines extend only a few bars ahead (not full chart)
//✔ Clean label placement slightly below line and near line end
//✔ No repainting, memory-safe line handling
//✔ Smooth intraday updates when values are edited
//
//This tool is ideal for traders who manually calculate or import pivot levels and
//prefer clean, minimal, non-intrusive visual levels on the chart.
//================================================================================
Session Opening Range Breakout (ORBO)This strategy automates a classic Opening Range Breakout (ORBO) approach: it builds a price range for the first minutes after the market opens, then looks for strong breakouts above or below that range to catch early directional moves.
Concept
The idea behind ORBO is simple:
The first minutes after the session open are often highly informative.
Price forms an “opening range” that acts as a mini support/resistance zone.
A clean breakout beyond this zone can lead to high-momentum moves.
This script turns that logic into a fully backtestable strategy in TradingView.
How the strategy works
Opening Range Session
Default session: 09:30–09:50 (exchange time)
During this window, the script tracks:
orHigh → highest high within the session
orLow → lowest low within the session
This forms your Opening Range for the day.
Breakout Logic (after the window ends)
Once the defined session ends:
Long Entry:
If the close crosses above the Opening Range High (orHigh),
→ strategy.entry("OR Long", strategy.long) is triggered.
Short Entry:
If the close crosses below the Opening Range Low (orLow),
→ strategy.entry("OR Short", strategy.short) is triggered.
Only one opening range per day is considered, which keeps the logic clean and easy to interpret.
Daily Reset
At the start of a new trading day, the script resets:
orHigh := na
orLow := na
A fresh Opening Range is then built using the next session’s 09:30–09:50 candles.
This ensures entries are always based on today’s structure, not yesterday’s.
Visuals & Inputs
Inputs:
Opening range session → default: "0930-0950"
Show OR levels → toggle visibility of OR High / Low lines
Fill range body → optional shaded zone between OR High and OR Low
Chart visuals:
A green line marks the Opening Range High.
A red line marks the Opening Range Low.
Optional yellow fill highlights the entire OR zone.
Background shading during the session shows when the range is currently being built.
These visuals make it easy to see:
Where the OR sits relative to current price
How clean / noisy the breakout was
How often price respects or rejects the opening zone
Backtesting & Optimization
Because this is written as a strategy():
You can use TradingView’s Strategy Tester to view:
Win rate
Net profit
Drawdown
Profit factor
Equity curve
Ideas to experiment with:
Change the session window (e.g., 09:15–09:45, 10:00–10:30)
Apply to different:
Markets: indices, FX, crypto, stocks
Timeframes: 1m / 5m / 15m
Add your own:
Stop Loss & Take Profit levels
Time filters (only trade certain days / times)
Volatility filters (e.g., ATR, range size thresholds)
Higher-timeframe trend filter (e.g., only take longs above 200 EMA)
Pure FVG [Textbook]1. The Core Concept
This is not a standard "show all gaps" indicator. It is a specific entry signal generator based on Smart Money Concepts (SMC).
It focuses on Consequent Encroachment (The 50% Level). The underlying principle is that a Fair Value Gap (FVG) represents a market inefficiency where opposing traders are trapped. When price retraces at least 50% back into this gap, it creates pressure as these trapped positions look to exit—either through stop-losses or position reversal. This makes the gap most likely to act as a reversal zone.
2. How It Works (The Lifecycle)
The indicator logic follows a strict sequence of events. A signal is generated only if all conditions are met in order:
-- Phase 1: Identification (The Fresh Gap)
The script scans for the classic 3-candle FVG pattern (where the 1st and 3rd candles do not overlap).
Visual: It draws a box (Green for Bullish, Red for Bearish) extending to the right.
The 50% Line: A dashed line is drawn through the center of the gap.
-- Phase 2: Mitigation (The Gray Zone)
This is the critical filter. The indicator waits for a candle to CLOSE past the 50% dashed line.
Once this happens, the gap is considered "Deeply Mitigated."
Visual: The box changes color to Gray. This tells the trader: "Price is deep in the zone, watch for a reaction."
-- Phase 3: The Signal (Rejection)
Once the box is Gray, the script watches for a "Rejection Candle."
Bullish Scenario: Price is deep in the gap (Gray). The script waits for a candle to close higher than it opened (a green candle).
Bearish Scenario: Price is deep in the gap (Gray). The script waits for a candle to close lower than it opened (a red candle).
Visual: A Triangle Label (▲ or ▼) appears, signaling an entry.
-- Phase 4: Invalidation
If the price closes completely past the far edge of the box (the Stop Loss level), the box is deleted immediately.
3. Key Options
These are the most important settings for the user:
-- Min Gap Size (%):
Filters out "noise." It ensures the script ignores tiny, insignificant gaps that are less than X% in height.
-- Max Visible Gaps:
Keeps your chart clean. It limits how many open boxes can be on the screen at once (e.g., only show the last 3 unclosed gaps).
-- Show Signal History Only:
Feature Highlight: When enabled, this hides all the "noise" of open or failed gaps. It only draws the boxes that successfully produced a Rejection Signal in the past.
AliceTears GridAliceTears Grid is a customizable Mean Reversion system designed to capitalize on market volatility during specific trading sessions. Unlike standard grid bots that place blind limit orders, this strategy establishes a daily or session-based "Baseline" and looks for price over-extensions to fade the move back to the mean.
This strategy is best suited for ranging markets (sideways accumulation) or specific forex sessions (e.g., Asian Session or NY/London overlap) where price tends to revert to the opening price.
🛠 How It Works
1. The Baseline & Grid Generation At the start of every session (or the daily open), the script records the Open price. It then projects visual grid lines above and below this price based on your Step % input.
Example: If the Open is $100 and Step is 1%, lines are drawn at $101, $102, $99, $98, etc.
2. Entry Logic: Reversal Mode This script features a "Reversal Mode" (enabled by default) to filter out "falling knives."
Standard Grid: Buys immediately when price touches the line.
AliceTears Logic: Waits for the price to breach a grid level and then close back inside towards the mean. This confirms a potential rejection of that level before entering.
3. Exit Logic
Target Profit: The primary target is the previous grid level (Mean Reversion).
Trailing Stop: If the price continues moving in your favor, a trailing stop activates to maximize the run.
Stop Loss: A manual percentage-based stop loss is available to prevent deep drawdowns in trending markets.
⚙️ Key Features
Visual Grid: Automatically draws entry levels on the chart for the current session, helping you visualize where the "math" is waiting for price.
Timezone & Session Control: Includes a custom Timezone Offset tool. You can trade specific hours (e.g., 09:30–16:00) regardless of your chart's UTC setting.
Grid Management: Independent logic for Long and Short grids with pyramiding capabilities.
Safety Filters: Options to force-close trades at the end of the session to avoid overnight gaps.
⚠️ Risk Warning
Please Read Before Using: This is a Counter-Trend / Grid Strategy.
Pros: High win rate in sideways/ranging markets.
Cons: In strong trending markets (parabolic pumps or crashes), this strategy will add to losing positions ("catch a falling knife").
Recommendation: Always use the Stop Loss and Date Filter inputs. Do not run this on highly volatile assets without strict risk management parameters.
Settings Guide
Entry Reversal Mode: Keep checked for safer entries. Uncheck for aggressive limit-order style execution.
Grid Step (%): The distance between lines. For Forex, use lower values (0.1% - 0.5%). For Crypto, use higher values (1.0% - 3.0%).
UTC Offset: Adjust this to align the Session Hours with your target market (e.g., -5 for New York).
This script is open source. Feel free to use it for educational purposes or modify it to fit your trading style.
Weighted KDE Mode🙏🏻 The ‘ultimate’ typical value estimator, for the highest computational cost @ time complexity O(n^2). I am not afraid to say: this is the last resort BFG9000 you can ‘ever’ get to make dem market demons kneel before y’all
Quickguide
pls read it, you won’t find it anywhere else in open access
When to use:
If current market activity is so crazy || things on your charts are really so bad (contaminated data && (data has very heavy tails || very pronounced peak)), the only option left is to use the peak (mode) of Kernel Density Estimate , instead of median not even mentioning mean. So when WMA won’t help, when WPNR won’t help, you need this thing.
Setting it up:
Interval: choose what u need, you can use usual moving windows, but I also added yearly and session anchors alike in old VWAP (always prefer 24h instead of Session if your plan allows). Other options like cumulative window are also there.
Parameters: this script ain't no joke, it needs time to make calculations, so I added a setting to calculate only for the last N bars (when “starting at bar N” is put on 0). If it’s not zero it acts as a starting point after which the calculations happen (useful for backtesting). Other parameters keep em as they are, keep student5 kernel , turn off appropriate weights if u apply it to other than chart data, on other studies etc.
But instead of listening to me just experiment with parameters and see what they change, would take 5 mins max
Been always saying that VWAP is ish, not time-aware etc, volume info is incorporated in a lil bit wrong way… So I decided not just to fix VWAP (you can do it yourself in 5 mins), but instead to drop there the Ultimate xD typical value estimator that is ever possible to do. Time aware, volume / inferred volume aware, resistant to all kinds of BS. This is your shieldwall.
How it works:
You can easily do a weighted kernel density estimation, in our case including temporal and intensity information while accumulating densities. Here are some details worth mentioning about the thing:
Kernels are raw (not unit variance), that’s easier to work with later.
h_constants for each kernel were calculated ^^ given that ^^ with python mpmath module with high decimal precision.
In bandwidth calculation instead of using empirical standard deviation as a scaler, I use... ta.range(src, len) / math.sqrt(12)
...that takes data range and converts it to standard deviation, assuming data is uniformly distributed. That’s exactly what we need: a scaler that is coherent with the KDE, that has nothing to do with stdevs, as the kernels except for gaussian ones (that we don’t even need to use). More importantly, if u take multiple windows and see over time which distro they approach on the long term, that would be the uniform one (not the normal one as many think). Sometimes windows are multimodal, sometimes Laplace like etc, so in general all together they are uniform ish.
The one and only kernel you really need is Student t with v = 5 , for the use case I highlighted in the first part of the post for TV users. It’s as far as u can get until ish becomes crazy like undefined variance etc. It has the highest kurtosis = 9 of all distros, perfect for the real use case I mentioned. Otherwise, you don’t even need KDE 4 real, but still I included other senseful kernels for comparison or in case I am trippin there.
Btw, don’t believe in all that hype about Epanechnikov kernel which in essence is made from beta distribution with alpha = beta = 2, idk why folk call it with that weird name, it’s beta2 kernel. Yes on papers it really minimises AMISE (that’s how I calculated h constants for all dem kernels in the script), but for really crazy data (proper use case for us), it ain't provides even ‘closely’ compared with student5 kernel. Not much else to add.
Shout out to @RicardoSantos for inspiration, I saw your KDE script a long time ago brotha, finna got my hands on it.
∞






















