Breaking Structures (javieresfeliz)This TradingView script is designed to identify market structure changes, using a break of highs and lows approach, as well as technical indicators such as ATR, RSI, and EMAs (Exponential Moving Averages). It is aimed at detecting bullish and bearish trends, signaling possible entry and exit points based on various factors. It also offers additional confirmations to avoid false signals and provides a clear visualization of buy and sell signals.
Main Features:
Indicators Used:
ATR (Average True Range): Used to calculate a volatility range, which helps set stop-loss levels and price targets based on the current market volatility.
EMAs (50 and 200): Exponential Moving Averages (EMAs) are used to determine the short-term and long-term trends. The 50-period EMA is used to identify the short-term trend, while the 200-period EMA is used to identify the long-term trend.
RSI (Relative Strength Index): Used to identify overbought or oversold conditions in the market, providing additional buy or sell signals.
Volume: Used to confirm the validity of a signal. An increase in volume can confirm a structure break and provide more reliability to the signal.
Break of Structure Detection (BOS):
Bullish Break: Generated when the price surpasses previous highs.
Bearish Break: Generated when the price falls below previous lows.
Change of Character (CHOCH):
Bullish Trend: Defined by a close above the open and above the 50 EMA.
Bearish Trend: Defined by a close below the open and below the 50 EMA.
Buy and Sell Conditions:
Buy (Long): Activated when several conditions are met, including a bullish change of character, a bullish structure break, the price closing above the previous value plus a multiple of the ATR, and additional confirmations from RSI and volume.
Sell (Short): Activated when several conditions are met, including a bearish change of character, a bearish structure break, the price closing below the previous value minus a multiple of the ATR, with additional confirmations from RSI and volume.
Entry and Exit Signals:
Long Entry (Buy): Executed when the buy conditions are met.
Short Entry (Sell): Executed when the sell conditions are met.
Position Close: Positions are closed when the price crosses below (for long positions) or above (for short positions) the 50 EMA.
Historical Highs and Lows Lines:
The script draws lines of historical highs and lows from the last 288 and 60 periods to show key support and resistance levels on the chart.
Signal Table Across Multiple Timeframes:
The script displays a table in the top-right corner of the chart with indicators like the EMA trend, RSI value, and MACD histogram for timeframes of 1 minute, 5 minutes, 30 minutes, 1 hour, 4 hours, daily, and weekly.
Precautions:
Does not guarantee profits: Although the script is designed to detect structure breaks and possible trend changes, it does not guarantee 100% profitable signals. The market is always subject to risk and unpredictable volatility.
Requires adjustments for each asset: Parameters such as ATR length and EMA lengths should be adjusted according to the asset being analyzed and market conditions.
Use of additional confirmations: To reduce false signals, the script uses additional confirmations like RSI and volume, but it is always recommended to perform additional analysis before making trading decisions.
Changing trends: The change of character (CHOCH) can be a useful indicator, but it can give false signals in highly volatile markets or during prolonged consolidations.
Relies on historical data: This script relies on historical data to identify highs and lows. It does not consider fundamental events that may significantly impact the market.
Requires constant monitoring: Although the signals are automated, it is important to monitor open positions and make adjustments if market conditions change.
Risk of false signals: In low liquidity markets or consolidations, structure breaks can be false, so it’s recommended to pay attention to any additional confirmation signals or use a proper risk management strategy.
Candlestick analysis
MarketLuminaMarketLumina: A Comprehensive Technical Analysis Tool
MarketLumina is a technical analysis indicator crafted by a team of traders and developers in Germany. Built for TradingView’s Pine Script, it integrates trend visualization, signal generation, and real-time market insights to provide a multifaceted view of market conditions. This tool is designed to support traders in analyzing trends, spotting potential reversals, and evaluating market dynamics across various timeframes.
The best way to get started with MarketLumina is to take your time exploring its wide range of features. Dive in, experiment, and find the 2-3 tools that feel just right for you. Whether you’re a day trader looking for quick signals, a swing trader tracking trends, or an investor watching the bigger picture, MarketLumina lets you pick and choose what works best. Over time, you’ll craft your own unique trading strategy, perfectly tailored to your goals, preferences, and risk tolerance.
Key Features
Fibonacci Trend-Cloud
Displays market direction through Fibonacci-weighted moving averages. The cloud’s color—green (bullish), red (bearish), or yellow (caution)—reflects prevailing conditions, while its width indicates trend intensity.
Advanced Signal System
Generates signals derived from RSI, momentum, volume, money flow, volatility, price action, divergences, specific cloud-interactions, divergences and historical data. Signal categories include strong reversals, potential reversals, short-term tops/bottoms, strong trend, oversold/overbought conditions, exit signals, and money flow strategy triggers.
LuminaPulse – Real-Time Market Insight
A proprietary module that delivers real-time market analysis through a dashboard of six progress bars, each tailored to the symbol and timeframe using a machine learning approach. It screens historical data—key levels, consolidation zones, volatility spikes, and past price reactions—to optimize insights.
Support & Resistance Zones
Highlights critical price levels using volume-weighted historical data and price-action pivot points.
Candlestick-Overlay
Applies color coding to candlesticks—green (bullish), red (bearish), yellow (caution)—to emphasize signal-relevant bars.
Usage Instructions
MarketLumina is intended as a component of a broader analytical framework.
Below are general guidelines for its application:
Multi-Timeframe Analysis
Align signals with trends on higher timeframes for context.
LuminaPulse Interpretation
Evaluate confluence across trend strength, momentum, money flow, and volume to assess market conditions. Additionally, monitor squeeze conditions for potential breakout signals and volatility to gauge market activity.
Trend-Cloud Context
Use the Fibonacci Trend-Cloud’s direction and width as a filter for signal relevance.
Usage Instructions for MarketLumina’s Advanced Signal System
The Advanced Signal System is a core component of MarketLumina, designed to empower traders by generating a variety of signals derived from RSI, momentum, volume, money flow, volatility, divergences, price action, and more. These signals are organized into distinct categories to help you identify key market conditions and uncover potential trading opportunities.
Below is a comprehensive guide to each signal category, including descriptions, interpretations, and practical applications to enhance your trading decisions:
Strong Reversals
Reversal Signals are generated using a complex price action and volatility algorithm, pinpointing significant potential turning points in the market with elevated confidence.
How to Use:
Look for these signals near critical support or resistance levels, especially when supported by the Fibonacci Trend-Cloud or LuminaPulse metrics.
Treat them as powerful reversal cues when they align with overarching market trends or follow prolonged price movements.
Interpretation:
A bullish Reversal signal flags a strong probability of an upward reversal, often in oversold conditions, suggesting a shift to bullish momentum.
A bearish Reversal signal points to a likely downward reversal, typically in overbought scenarios, indicating bearish potential.
Their reliability increases with confluence factors like divergences or a notable shift in money flow.
Potential Reversals
These signals flag possible trend continuation after a pullback based on price action, RSI thresholds and specific trend-cloud interaction, offering early insights with moderate certainty compared to strong reversals.
How to Use:
Use them as preliminary alerts for potential reversals of a pullback continuing its trend, particularly near support or resistance zones.
Validate their strength with additional tools like the Trend-Cloud thickness or LuminaPulse to gauge reliability.
Interpretation:
Bullish potential reversals hint at the onset of an upward move, while bearish ones suggest a downward continuation may be brewing.
Ideal for spotting early opportunities, these signals gain credibility when paired with confirming indicators.
Short-Term Tops/Bottoms
These signals mark temporary price extremes, identifying short-term tops or bottoms within a trend, driven by Multi-RSI algorithms.
How to Use:
In trending markets, leverage these signals to anticipate brief pullbacks or corrections within the dominant direction.
In range-bound markets, use them to pinpoint reversal points within the established range.
Interpretation:
A short-term top indicates a temporary possible high, offering opportunities to lock in profits or brace for a dip.
A short-term bottom suggests a fleeting low, signaling a potential bounce or recovery within the larger trend.
Oversold/Overbought Conditions
This category highlights extreme market states with oversold/overbought conditions, derived from RSI and price action.
How to Use:
In strong trends, these signals affirm the likelihood of potential temporary exhaustion.
In weaker trends, they signal potential exhaustion and could early indicate reversals.
Interpretation:
Oversold signals in strong trends could mark a short-term break or slower trend continuation and should not be interpreted as a reversal signal.
Strong Trend
These signals flag possible trend continuation based on six key metrics—RSI, Money Flow, Momentum, and more—align to confirm robust momentum.
How to Use:
In strong trends, these signals affirm the likelihood of a continuation.
Interpretation:
Strong trend signals could be interpreted as a confirmation of the bullish movement and a possible continuation.
Money Flow Strategy Triggers
Built on money flow analysis, these signals track capital inflows and outflows on multiple timeframes to reveal shifts in buying or selling pressure, offering a window into market sentiment.
How to Use:
Deploy these triggers to refine entry or exit timing, especially when they sync with other signals and the Trend-Cloud’s direction.
Pair them with LuminaPulse’s Money Flow, Momentum and volume sentiment for a deeper understanding of market participation.
Interpretation:
Positive money flow triggers indicate rising buying pressure, often a precursor to upward price action.
Negative money flow triggers signal increasing selling pressure, potentially foreshadowing a downturn.
Their value shines when diverging from price action, exposing hidden strength or weakness in the market.
Usage Instructions for LuminaPulse
LuminaPulse is a standout feature of MarketLumina, delivering real-time insights into market conditions through a sophisticated, machine-learning-driven approach. It analyzes historical data unique to each symbol and timeframe—examining past key levels, consolidation zones, volatility spikes, and price reactions—to create a dashboard of six progress bars.
These bars represent the strength of critical market factors:
Money Flow
Momentum
Volume
Strength (Trend Strength)
Squeeze
Volatility
Each bar is color-coded—green for bullish conditions, red for bearish—and its fill level reflects the factor’s strength relative to historical patterns. A fully loaded bar suggests a high likelihood of a notable price reaction, based on how the market has responded to similar conditions in the past. What makes LuminaPulse unique is its ability to tailor these insights to the specific symbol and timeframe, going beyond raw metrics to show their historical significance.
Additionally, each bar features a "Ghost-Progress" overlay, marking the highest strength level reached in the current trend. This allows you to see whether the current strength is nearing or retreating from recent peaks, adding depth to your analysis.
How to Use LuminaPulse
LuminaPulse is a confirmation tool, not a standalone signal generator. It shines when paired with other MarketLumina features, like the Fibonacci Trend-Cloud or Advanced Signal System, as part of a broader trading strategy.
Here’s how to apply it effectively:
Seek Confluence
Check for alignment across multiple bars. For example, if Money Flow, Momentum, and Volume are all green and highly filled, it could indicate strong bullish potential.
Spot Divergences
Look for mismatches between price action and the bars. If price rises but Momentum weakens, it might hint at a fading trend.
Monitor Squeeze: A fully loaded Squeeze bar signals consolidation and potential volatility ahead. Use other tools to predict the breakout direction.
Assess Volatility: The Volatility bar sets the context—high levels suggest bigger price swings, while low levels indicate a calmer market.
Interpreting Each Progress Bar
1. Money Flow
Measures the strength of money flowing into or out of the market, compared to historical thresholds, key-levels and past price reactions, using a machine learning approach, tailored to the symbol and timeframe. It’s not just the raw money flow index—it’s the likelihood of a price move based on historical similar money flow movements.
How to Use:
Look for a fully loaded bar alongside a strong Momentum bar near key levels or signals.
Watch for a bar switching colors (e.g., red to green) with a robust Momentum bar for potential trend shifts.
Treat it as the fuel behind price moves, not the absolute flow level.
Interpretation:
A fully loaded green bar suggests strong buying pressure; a red bar indicates selling pressure.
Divergence (e.g., price up, Money Flow down) can signal an impending reversal—confirm with other tools.
2. Momentum
Gauges the strength and direction of price momentum, factoring in historical key levels, volatility, and past reactions, optimized by a machine learning approach, tailored to the symbol and timeframe. It reflects momentum’s strength and potential impact, not just its current state.
How to Use:
Pair a fully loaded bar with a strong Money Flow bar near signals or key levels.
A switching bar (e.g., bearish to bullish) with a solid Money Flow bar may hint at a trend change.
View it as the driving force behind price momentum.
Interpretation:
A fully loaded green bar signals powerful upward momentum; a red bar shows downward force.
Divergence from price action (e.g., price down, Momentum up) can be a reversal clue—verify with confluence.
3. Volume
Shows whether volume is pushing price up or down, based on historical patterns and key levels near the current price, tailored to the symbol and timeframe.
How to Use:
Look for a bar over 50% filled, aligned with Money Flow and Momentum, near signals or key levels.
Combine a strong bar with a fully loaded Squeeze bar for breakout potential.
See it as the muscle behind buying or selling pressure.
Interpretation:
A green bar over 50% suggests volume supports upward moves; a red bar indicates downward pressure.
Alignment with other bars near support/resistance can confirm breakouts or rejections.
4. Strength (Trend Strength)
Focuses on the current trend’s robustness, comparing it to historical price movements, trend direction, and volatility. It helps spot pullbacks or early trend-shift warnings.
How to Use:
Watch for a fully loaded bar opposite your trade, paired with weakening Money Flow or Momentum, as an exit cue.
For reversals, confirm a fully loaded bar with at least two other aligned bars.
Use it to gauge the power of short-term price action.
Interpretation:
A fully loaded bar with supporting bars confirms trend strength.
A dropping bar as price tests key levels may signal a pullback or shift—check support/resistance.
5. Squeeze
Highlights consolidation and building pressure from buyers and sellers, suggesting a big move ahead. Its color reflects the trend but isn’t a reliable directional guide.
How to Use:
A fully loaded bar signals an imminent breakout—use other indicators for direction.
Pair with strong Strength and Volume for timing confirmation.
Treat it as a timing tool, not a directional one.
Interpretation:
A fully loaded bar means a significant move is likely, but not where it’s headed.
Use it to prepare for action, not to predict the outcome—direction comes from confluence.
6. Volatility
Measures current volatility relative to historical levels, using a machine learning approach to analyze past volatility and duration patterns specific to the symbol and timeframe. A calm bar might still appear during big swings if that’s normal for the asset or a calm bar could appear after a big move if it's normal for the asset to show single volatility spikes with consolidation afterwards.
How to Use:
Use a high Volatility bar (fully loaded) to favor short-term trades; a low bar (empty) suggests a quieter market.
Pair with Squeeze to anticipate breakout strength.
Adjust your strategy based on the market’s activity level.
Interpretation:
A fully loaded bar signals high volatility and bigger swings; an empty bar indicates low volatility and smaller moves.
Context is key—high volatility for one symbol might be calm for another, based on its history.
Key Features of LuminaPulse
Tailored Insights: Each bar’s strength is customized to the symbol and timeframe’s historical behavior, making it uniquely relevant.
Ghost-Progress: See the peak strength in the current trend, helping you judge if conditions are peaking or fading.
Individual-Adapting Edge: Algorithms adapt to historical data, ensuring insights reflect past reactions, not just current values.
Important Notes
LuminaPulse is a complex, unique tool designed to enhance your analysis, not dictate trades. Its strength lies in its historical context and real-time adaptability, but it’s most effective when combined with other MarketLumina features and your own strategy.
Illustrative Scenarios
Trend Continuation Example
Picture a market where momentum is steadily building. The Fibonacci Trend-Cloud turns red across both the primary and higher timeframes, reflecting a strong bearish direction. As this trend takes shape, reversal or strategy-based signals begin to line up with the cloud’s downward tilt, hinting at sustained weakness. Short-term bottoms and tops might start forming, offering clues about the trend’s rhythm, while a widening cloud could suggest growing confidence in the move. This setup showcases how the indicator can highlight a trend gathering steam, with multiple features reinforcing the direction.
Reversal Example
Imagine a market that’s been rising but approaches a key support zone. Suddenly, strong reversal signals flash on the chart, catching attention near this critical level. Price action starts to stabilize or reject, while LuminaPulse metrics show a subtle uptick in momentum or a shift in volume sentiment. As the market tests this zone, opposing signals fade, and the potential for a downward turn becomes clearer. This scenario illustrates how the indicator’s signals and metrics can converge to spotlight a possible shift in direction.
Pullback Analysis Example
Consider a strong bullish trend unfolding on the higher timeframe, painting a broad picture of upward movement. Zooming into the lower timeframe, a brief retracement emerges, pulling price back toward a support level. Here, strategy-based or reversal signals might pop up, marking this as a key area to watch. LuminaPulse could reveal a slowdown in downward momentum or a tightening of trend strength, suggesting the retracement might be running out of energy. This example demonstrates how the indicator can help dissect a pullback, revealing opportunities within an ongoing trend.
Range-Bound Market Example
Envision a market stuck in a sideways drift, with the Fibonacci Trend-Cloud narrowing and turning yellow—a sign of consolidation. Reversal signals begin appearing near support and resistance zones, hinting at potential bounces within the range. LuminaPulse metrics might spike, showing bursts of volatility or squeeze conditions building up. As price nears these boundaries, the chance of a breakout looms, with retests of the zones offering further clarity. These examples show how MarketLumina’s features—like the cloud’s color and width, signal alignments, and LuminaPulse shifts—can work together to illuminate market dynamics. Whether it’s a trend gaining traction, a reversal brewing, a pullback pausing, or a range tightening, the indicator provides visual and analytical cues to explore. By watching how these elements evolve, you can get a feel for the market’s rhythm and sharpen your understanding of what to look for in different situations.
Legal Notices
MarketLumina is a technical analysis tool, not a substitute for professional financial advice.
Trading carries inherent risks; past performance does not guarantee future outcomes.
All content is provided for educational purposes only and does not constitute trading recommendations. Users bear full responsibility for their trading decisions and are urged to prioritize robust risk management.
Multi-Timeframe Fair Value Gap (FVG)Multi-Timeframe Fair Value Gap (FVG) Indicator
Description
This indicator identifies and displays Fair Value Gaps (FVGs) across multiple timeframes simultaneously. A Fair Value Gap occurs when price moves so quickly that it leaves behind an area where no actual trading has taken place. These areas often act as magnets for price to return to later, making them valuable for traders to identify potential support and resistance zones.
Key features:
·Support for up to 6 different timeframes simultaneously
·Customizable colors for each timeframe
·Option to display middle lines within FVGs
·Automatic FVG mitigation detection (by price or wick)
·Bullish and bearish FVGs clearly distinguished
·Highly customizable appearance
The indicator uses different colors for each timeframe, allowing you to easily distinguish between short-term and long-term FVGs. This makes it an excellent tool for multi-timeframe analysis and for identifying key areas where price might react.
How to Use
Add the indicator to your chart
·Configure the timeframes you want to monitor (default: 5m, 15m, 1h, 4h, Daily, Weekly)
·Customize colors for each timeframe if desired
·Choose between "Close" or "Wick" mitigation method
·Look for areas where multiple FVGs overlap - these often represent stronger zones
The indicator automatically tracks when an FVG has been filled (mitigated) and removes it from the chart. This keeps your analysis clean and focused on active, unfilled gaps that are still likely to affect price.
——————————————————————————————————————————————————————————
该指标可同时识别并显示多个时间周期的公允价值缺口(FVGs)。公允价值缺口发生在价格快速移动时,留下了一个没有实际交易发生的区域。这些区域通常会吸引价格稍后回归,使它们成为交易者识别潜在支撑和阻力区域的有价值工具。
主要特点:
·同时支持多达6个不同的时间周期
·每个时间周期可自定义颜色
·可选显示FVG内的中线
·自动检测FVG的填补(通过收盘价或影线)
·清晰区分看涨和看跌的FVG
·高度可定制的外观
注意:此版本为单次缓解版本,FVG只要被触碰到1次就会被缓解,不会等待fvg完全穿越才缓解
Imbalance(FVG) DetectorImbalance (FVG) Detector
Overview
The Imbalance (FVG) Detector is a technical analysis tool designed to highlight price inefficiencies by identifying Fair Value Gaps (FVGs). These gaps occur when rapid price movement leaves an area with little to no traded volume, which may later act as a zone of interest. The indicator automatically detects and marks these imbalances on the chart, allowing users to observe historical price behavior more effectively.
Key Features
- Automatic Imbalance Detection: Identifies bullish and bearish imbalances based on a structured three-bar price action model.
- Customizable Sensitivity: Users can adjust the minimum imbalance percentage threshold to tailor detection settings to different assets and market conditions.
- Real-time Visualization: Marked imbalances are displayed as colored boxes directly on the chart.
- Dynamic Box Updates: Imbalance zones extend forward in time until price interacts with them.
- Alert System: Users can set alerts for when new imbalances appear or when price tests an existing imbalance.
How It Works
The indicator identifies market imbalances using a three-bar price structure:
- Bullish Imbalance: Occurs when the high of three bars ago is lower than the low of the previous bar, forming a price gap.
- Bearish Imbalance: Occurs when the low of three bars ago is higher than the high of the previous bar, creating a downward gap.
When an imbalance is detected:
- Green Boxes indicate bullish imbalances.
- Red Boxes indicate bearish imbalances.
- Once price interacts with an imbalance, the box fades to gray, marking it as tested.
! Designed for Crypto Markets
This indicator is particularly useful in crypto markets, where frequent volatility can create price inefficiencies. It provides a structured way to visualize gaps in price movement, helping users analyze historical liquidity areas.
Customization Options
- Min Imbalance Percentage Size: Adjusts the sensitivity of the imbalance detection.
- Alerts: Users can enable alerts to stay notified of new or tested imbalances.
Important Notes
- This indicator is a technical analysis tool and does not provide trading signals or financial advice.
- It does not predict future price movement but highlights historical price inefficiencies.
- Always use this tool alongside other market analysis methods and risk management strategies.
EMA Channel Key K-LinesEMA Channel Setup :
Three 32-period EMAs (high, low, close prices)
Visually distinct colors (red, blue, green)
Gray background between high and low EMAs
Key K-line Identification :
For buy signals: Close > highest EMA, K-line height ≥ channel height, body ≥ 2/3 of range
For sell signals: Close < lowest EMA, K-line height ≥ channel height, body ≥ 2/3 of range
Alternating signals only (no consecutive buy/sell signals)
Visual Markers :
Green "BUY" labels below key buy K-lines
Red "SELL" labels above key sell K-lines
Clear channel visualization
Logic Flow :
Tracks last signal direction to prevent consecutive same-type signals
Strict conditions ensure only significant breakouts are marked
All calculations based on your exact specifications
Renko SR VolumeDaily ATR Renko SR Levels with Volume Analysis is a technical indicator that combines Renko-based support/resistance levels with volume analysis. It dynamically calculates Renko boxes using the ATR (Average True Range) of daily data and identifies key price levels. The indicator:
- Uses daily ATR to determine Renko box size.
- Draws support/resistance levels based on Renko price structure.
- Analyzes volume between levels to assess their strength.
- Colors levels based on relative volume activity:
- Red – strongest level (high volume activity).
- Orange – strong level.
- Yellow – moderate level.
- Green – weakest level (low volume activity).
- Detects daily Renko-based trends.
This tool helps traders visualize key price zones with volume confirmation, improving decision-making in trend and range markets.
Renko Flip MarkerThis script shows on chart where Renko bricks flip for candlestick chart. I intended it for candlestick chart, but it seems to work Renko chart too from my testing so far. You may change the Renko size for your own scenario you're trading. Hopefully helps, Thank you.
SCE GANN PredictionsThis is a script designed to give an insight on price direction from being above or below a GANN Value.
What Are GANN Waves?
The SCE GANN Predictions indicator is inspired by the work of W.D. Gann, a renowned trader who believed that price movements follow geometric and mathematical patterns. GANN waves use past price behavior—specifically momentum or "velocity"—to forecast where prices might head next.
How Does the Indicator Work?
Calculating Velocity
The script starts by measuring the "velocity" of price movement over a user-defined lookback period (denoted as n). This velocity is the average difference between the close and open prices over n bars. Think of it as the market’s speed in a given direction.
Predicting the Future Price
Using this velocity, the indicator estimates a future price after a specific time horizon—calculated as n + n*2 bars into the future (e.g., if n = 15, it predicts 45 bars ahead). It scales the velocity by a ratio (Gr) to determine the "end price." This is the raw GANN prediction.
Optimizing the Ratio (Gr)
The key to a good prediction is finding the right Gr. The script tests a range of Gr values (from Gr_min to Gr_max, stepping by Gr_step) and evaluates each one by calculating the sum of squared errors (SSE) between the predicted prices and the actual historical close prices. The Gr with the lowest SSE is deemed "optimal" and used for the final prediction.
Smoothing with an SMA
The raw GANN prediction is then smoothed using a simple moving average (SMA) over the lookback period (n). This SMA is plotted on your chart, serving as a dynamic trend line. The plot’s color changes based on the current price: teal if the close is above the SMA (bullish), and red if below (bearish).
Visuals
This example shows how the value explains price strength and changes color. When the price is above the line, and it’s green, we’re showing an up trend. The opposite is when the price is below the line, and it’s red, showing a down trend.
We can see that there may be moments where price drops under the value for just that one bar.
In scenarios with sideways price action, even though the price crosses, there is no follow through. This is a shortcoming of the overall concept.
Customizable Inputs
Timeframe: Choose the timeframe for analysis (default is 2 minutes).
Show GANN Wave: Toggle the GANN SMA plot on or off (default is true).
Lookback Period (Gn): Set the number of bars for velocity and SMA calculations (default is 15).
Min Ratio (Gr_min): The lower bound for the Gr optimization (default is 0.05).
Max Ratio (Gr_max): The upper bound for Gr (default is 0.2).
Step for Gr (Gr_step): The increment for testing Gr values (default is 0.01).
How to Use SCE GANN Predictions
Trend Direction
The colored SMA provides a quick visual cue. Teal suggests an uptrend, while red hints at a downtrend. Use this to align your trades with the broader momentum.
Crossover Signals
Watch for the close price crossing the GANN SMA. A move above could signal a buy opportunity, while a drop below might indicate a sell. Combine this with other indicators for confirmation.
Fine-Tuning
Experiment with the lookback period (Gn) and Gr range to optimize for your market. Shorter lookbacks might suit fast-moving assets, while longer ones could work for slower trends.
Like any technical tool, SCE GANN Predictions isn’t a crystal ball. It’s based on historical data and mathematical assumptions, so it won’t always be spot-on.
BIX Candle MarkerBIX Candle Marker (by Bogdan Ilie)
"BIX Candle Marker" is a visual indicator designed to automatically mark the High and Low levels of specific candles at user-defined times and sessions directly on the main chart, facilitating easy intraday analysis.
**How does it work?**
- The indicator automatically fetches the High and Low values from a user-specified timeframe and draws horizontal lines at these levels at precise user-defined session times.
- You can configure up to 4 different sessions per trading day, each with its own customizable color and timing.
- Marked levels are automatically reset at the start of each new trading day.
**Customizable Settings:**
- **Timezone Offset:** Adjust the indicator according to your chart's timezone.
- **Candle Time Frame:** Choose the timeframe from which the candle data will be extracted.
- **Marker Length:** Set the length (number of bars) of the displayed horizontal lines.
- **Line Thickness & Style:** Customize the thickness and style of the lines (solid, dotted, dashed).
- **Sessions (1-4):** Independently configure the hour, minute, and color for each of the four possible sessions.
**Suggested Use:**
- Quickly identify intraday support and resistance levels based on key session candles.
- Ideal for breakout and reversal-based trading strategies.
---
**Disclaimer:**
This indicator is intended solely for chart analysis and educational purposes. It does not constitute financial advice. Always use it in conjunction with your personal trading strategy and risk management practices.
Author: Bogdan Ilie
Pine Script Version: v6
License: Mozilla Public License 2.0
---
BIX Candle Marker (by Bogdan Ilie)
"BIX Candle Marker" este un indicator vizual care marchează automat nivelurile High și Low ale lumânărilor specifice din sesiuni predefinite pe graficul principal, facilitând analiza punctelor-cheie intraday.
**Cum funcționează?**
- Indicatorul preia automat nivelurile maxime și minime dintr-un timeframe personalizabil și afișează linii orizontale pentru aceste nivele exact la orele și minutele configurate.
- Permite definirea a până la 4 sesiuni diferite într-o zi, fiecare având culori și setări proprii.
- Liniile marcate se resetează automat la începutul fiecărei zile de tranzacționare.
**Setări personalizabile:**
- **Timezone Offset:** ajustează indicatorul în funcție de fusul orar al graficului.
- **Candle Time Frame:** selectează timeframe-ul din care se vor prelua datele.
- **Marker Length:** stabilește lungimea (numărul de bare) liniilor orizontale afișate.
- **Line Thickness & Style:** grosimea și stilul liniilor pot fi personalizate (solid, punctat, întrerupt).
- **Sesiuni (1-4):** ora, minutul și culoarea fiecărei sesiuni pot fi configurate independent.
**Sugestii de utilizare:**
- Folosește indicatorul pentru a identifica rapid zonele de suport și rezistență create de lumânări-cheie pe parcursul zilei.
- Poate fi util pentru strategii bazate pe breakout sau reversal.
---
**Disclaimer:**
Acest indicator este destinat exclusiv analizei grafice și nu reprezintă sfaturi financiare. Utilizează-l împreună cu propriile strategii și tehnici de gestionare a riscului.
Autor: Bogdan Ilie
Versiune Pine Script: v6
Licență: Mozilla Public License 2.0
Emperor RSI CandleDescription:
The Emperor RSI Candle is a real-time, non-lagging trading indicator that colors candles based on RSI (Relative Strength Index) levels. It offers instant visual feedback on market momentum, making it easy to identify trend strength, overbought/oversold zones, and potential reversals with precision.
Unlike traditional RSI indicators, which display RSI values in a separate panel, Emperor RSI Candle integrates RSI signals directly into the candles, providing a cleaner, more intuitive charting experience. Its multi-timeframe RSI box shows RSI values across different timeframes, offering confluence confirmation for better trade decisions.
🔥 Emperor RSI Candle is original because it includes a multi-timeframe RSI box that displays RSI values from:
1 min → Monthly timeframes simultaneously.
📊 How this is unique:
Traders can instantly compare RSI values across different timeframes.
This helps them spot confluence and divergences, which is not possible with standard RSI indicators.
The multi-timeframe confluence feature makes the indicator highly effective for both short-term and long-term traders.
🚀 What the script does:
Real-time candle coloring based on RSI levels.
Multi-timeframe RSI box for confluence insights.
Customizable RSI settings for adaptability.
How it benefits traders:
Instant visual feedback for momentum and reversals.
No lag signals for precise trading decisions.
Flexible customization for different trading styles.
Unique visual signals:
Green, red, parrot green, and blue candles → Clearly indicating bullish/bearish momentum and overbought/oversold zones.
Multi-timeframe RSI box → For cross-timeframe confluence.
⚡️ 🔥 UNIQUE FEATURES 🔥:
✅ Multi-Timeframe RSI Box:
Displays RSI values from 1 min to monthly timeframes, helping traders confirm confluence across different timeframes.
✅ Fully Customizable RSI Levels & Display:
Modify RSI thresholds, source, and appearance to fit your trading style.
✅ Dynamic Candle Borders for Weak Signals:
Green border → Weak bullishness (RSI between 50-60).
Red border → Weak bearishness (RSI between 40-50).
✅ Lag-Free, Real-Time Accuracy:
No repainting or delay—instant visual signals for accurate decisions.
✅ Scalable for Any Trading Style:
Perfect for both intraday scalping and positional trading.
📊 🔥 HOW IT WORKS 🔥:
The indicator dynamically colors candles based on RSI values, providing real-time visual signals:
🟢 Above 60 RSI → Green candle:
Indicates bullish momentum, signaling potential upward continuation.
🟩 Above 80 RSI → Parrot green candle:
Overbought zone → Possible reversal or profit booking.
🟥 Below 40 RSI → Red candle:
Signals bearish momentum, indicating potential downward continuation.
🔵 Below 20 RSI → Blue candle:
Oversold zone → Possible reversal opportunity.
🔲 Neutral candles:
50-60 RSI → Green border: Weak bullishness.
40-50 RSI → Red border: Weak bearishness.
📊 🔥 MULTI-TIMEFRAME RSI BOX 🔥:
The Emperor RSI Candle includes an RSI box displaying multi-timeframe RSI values from 1 min to monthly. This provides:
✅ Confluence confirmation:
Compare RSI across multiple timeframes to strengthen trade conviction.
✅ Spot divergences:
Identify hidden trends by comparing smaller and larger timeframes.
✅ Validate trade entries/exits:
Use higher timeframe RSI to confirm smaller timeframe signals
⚙️ 🔥 HOW TO USE IT 🔥:
To maximize the accuracy and clarity of Emperor RSI Candle, follow these steps:
🔧 STEP 1: Chart Settings Configuration
Go to Chart Settings → Symbols
Uncheck the following options:
Body
Borders
Wick
✅ This ensures that only the Emperor Candle colors are visible, making the signals clear and distinct.
🔧 STEP 2: Style Settings for Emperor Candle
After applying the Emperor RSI Candle:
Go to Settings → Style tab
Wick section:
Select Color 2 and Color 3 → Set Opacity to 100%.
Border section:
Select Color 2 and Color 3 → Set Opacity to 100%.
✅ This ensures the candles display with full visibility and accurate colors.
⚙️ 🔥 CUSTOMIZATION OPTIONS 🔥:
Emperor RSI Candle offers full flexibility to match your trading style:
✅ RSI Length:
Modify the period used for RSI calculation (default: 10).
✅ Top & Bottom Levels:
Adjust the overbought (default: 80) and oversold (default: 20) thresholds.
✅ Intermediate Levels:
Up Level: Default: 60 → Bullish RSI threshold.
Down Level: Default: 40 → Bearish RSI threshold.
Mid Level: Default: 50 → Neutral zone.
✅ RSI Source:
Select the price source for RSI calculation (Close, Open, High, Low).
✅ RSI Period:
Customize the RSI calculation period (default: 10).
✅ Font Size:
Adjust the RSI box font size for better visibility.
✅ Box Position:
Choose where to display the RSI box:
Top Left / Top Center / Top Right
Bottom Left / Bottom Center / Bottom Right
💡 🔥 HOW IT IMPROVES TRADING 🔥:
✅ Clear trend identification:
Instantly recognize bullish, bearish, or neutral conditions through candle colors.
✅ Precise entries and exits:
Spot overbought and oversold zones with visual clarity.
✅ Multi-timeframe confirmation:
Validate trades with RSI confluence across multiple timeframes.
✅ No lag, real-time accuracy:
Immediate visual signals for faster and more reliable trade decisions.
✅ Customizable settings:
Tailor the indicator to fit your trading strategy and preferences.
✅ Works for all trading styles:
Suitable for scalping, day trading, and swing trading.
🔥How Traders Can Use Emperor RSI Candle for Trading:
🟢 Green Candles (Above 60 RSI) → Bullish Momentum:
Indicates strong upward movement → Ideal for long entries.
Traders can hold until RSI approaches 80 for profit booking.
🟥 Red Candles (Below 40 RSI) → Bearish Momentum:
Signals strong downward movement → Ideal for short trades.
Traders can exit or book profits near RSI 20.
2. Spotting Overbought and Oversold Zones for Reversals:
🟩 Parrot Green Candles (Above 80 RSI) → Overbought Zone:
Indicates potential for reversals or profit booking.
Traders can tighten stop-losses or exit positions.
🔵 Blue Candles (Below 20 RSI) → Oversold Zone:
Signals a potential reversal opportunity.
Traders can look for buy signals with confluence confirmation.
3. Catching Weak Bullish and Bearish Trends with Border Colors:
🟢 Green Border (RSI 50-60) → Weak Bullishness:
Indicates mild upward momentum.
Traders can consider cautious long entries.
🔴 Red Border (RSI 40-50) → Weak Bearishness:
Indicates mild downward pressure.
Traders can consider cautious short entries.
4. Using the RSI Multi-Timeframe Box for Confluence:
✅ Displays RSI values from 1 min to monthly timeframes.
Usage:
Confluence confirmation:
Multiple timeframes showing bullish RSI → Strong uptrend → Reliable buy signals.
Multiple timeframes showing bearish RSI → Strong downtrend → Reliable sell signals.
Spotting divergences:
If lower timeframes are bullish but higher timeframes are bearish, it indicates a potential reversal.
5. Customization Tips for Different Trading Styles:
✅ For Scalping:
Use a smaller RSI period (9-10) for faster signals.
Check the multi-timeframe RSI box to confirm signals quickly.
✅ For Swing Trading:
Use the default RSI period (14-15) for more accurate signals.
Focus on higher timeframes (1 hr, 4 hr, daily) for stronger trend confirmation.
Small Range Stocks (ATR 7)This indicator identifies stocks with a small daily range relative to their ATR(7). It plots a small green tick below candles where the daily range is ≤ 0.9 × ATR(7), helping traders spot consolidation zones for potential breakouts.
Gold Futures vs Spot (Candlestick + Line Overlay)📝 Script Description: Gold Futures vs Spot
This script was developed to compare the price movements between Gold Futures and Spot Gold within a specific time frame. The primary goals of this script are:
To analyze the price spread between Gold Futures and Spot
To identify potential arbitrage opportunities caused by price discrepancies
To assist in decision-making and enhance the accuracy of gold market analysis
🔧 Key Features:
Fetches price data from both Spot and Futures markets (from APIs or chart sources)
Converts and aligns data for direct comparison
Calculates the price spread (Futures - Spot)
Visualizes the spread over time or exports the data for further analysis
📅 Date Created:
🧠 Additional Notes:
This script is ideal for investors, gold traders, or analysts who want to understand the relationship between the Futures and Spot markets—especially during periods of high volatility. Unusual spreads may signal shifts in market sentiment or the actions of institutional players.
Fibonacci Sequence NumbersThe "Fibonacci Sequence Numbers" indicator overlays horizontal lines on a trading chart based on Fibonacci sequence values (0, 34, 55, 89, 144, 233, 377, 610) relative to a user-defined reference price and time. Users can specify the direction ("Above," "Below," or "Both") to plot these levels above and/or below the reference price, with customizable line length, width, and colors for each level (e.g., red for Level 0, blue for 34). A vertical dashed line marks the reference time, while horizontal lines extend rightward, accompanied by labeled annotations shifted slightly left for clear view.
Mickey's BBMickey's BB – Smart Reversal Detector with SL Tracking 🔁
This indicator combines the power of Bollinger Bands with engulfing candle patterns to identify high-probability reversal points.
✅ Buy Signal: Triggered when a red candle touches the lower Bollinger Band and is engulfed by a green candle within the next few candles.
✅ Sell Signal: Triggered when a green candle touches the upper Bollinger Band and is engulfed by a red candle within the next few candles.
✅ Smart Lookahead: Scans up to X candles ahead (user-defined) to confirm engulfing reversals — reducing noise in sideways markets.
✅ Dynamic Stop-Loss & Target: Automatically plots SL/TP levels based on user-defined % thresholds.
✅ SL HIT Labels: Highlights exactly when a stop-loss is breached, giving clear visual feedback on trade failures.
✅ Adaptive Market Filter: Signals are only shown when Bollinger Band width exceeds a minimum threshold — filtering out weak/noise signals in low volatility.
🔍 Ideal for reversal traders, scalpers, and those who love combining price action with volatility-based setups.
🛠️ Customizable Parameters:
SMA Period & Std Dev Multiplier (for BB)
SL/Target % levels
Engulf Lookahead range
Minimum BB width to filter signals
🎯 Build it into your strategy, set alerts, or just use it visually to time your entries and exits with clarity.
Qullamaggie [Modified] | FractalystWhat's the purpose of this strategy?
The strategy aims to identify high-probability breakout setups in trending markets, inspired by Kristjan "Qullamaggie" Kullamägi’s approach.
It focuses on capturing explosive price moves after periods of consolidation, using technical criteria like moving averages, breakouts, trailing stop-loss and momentum confirmation.
Ideal for swing traders seeking to ride strong trends while managing risk.
----
How does the strategy work?
The strategy follows a systematic process to capture high-momentum breakouts:
Pre-Breakout Criteria:
Prior Price Surge: Identifies stocks that have rallied 30-100%+ in recent month(s), signaling strong underlying momentum (per Qullamaggie’s volatility expansion principles).
Consolidation Phase: Looks for a tightening price range (e.g., flag, pennant, or tight base), indicating a potential "coiling" before continuation.
Trend Confirmation: Uses moving averages (e.g., 20/50/200 EMA) to ensure the stock is trading above key averages on the daily chart, confirming an uptrend.
Price Break: Enters when price clears the consolidation high with conviction.
Risk Management:
Initial Stop Loss: Placed below the consolidation low or a recent swing point to limit downside.
Break-Even Adjustment: Moves stop loss to breakeven once the trade reaches 1.5x risk-to-reward (RR), securing a "free trade" while letting winners run.
Trailing Stop (Unique Edge):
Market Structure Trailing: Instead of trailing via moving averages, the stop is dynamically adjusted using structural invalidation level. This adapts to price action, allowing the trade to stay open during volatile retracements while locking in gains as new structure forms.
Why This Matters: Most strategies use rigid trailing stops (e.g., below the 10EMA), which often exit prematurely in choppy markets. By trailing based on structure, this strategy avoids "noise" and captures larger trends, directly boosting overall returns.
----
What markets or timeframes is this suited for?
This is a long-only strategy designed for trending markets, and it performs best in:
Markets: Stocks (especially high-growth, liquid equities), cryptocurrencies (major pairs with strong volatility), commodities (e.g., oil, gold), and futures (index/commodity futures).
Timeframes: Primarily daily charts for swing trades (1-30 day holds), though weekly charts can help confirm broader trends.
Key Advantage: The TradingView script allows instant backtesting with adjustable parameters
You can:
- Test historical performance across multiple markets to identify which assets align best with the strategy.
- Optimize settings (e.g., trailing stop sensitivity, moving averages etc.) to match a market’s volatility profile.
Build a diversified portfolio by filtering for markets that show consistent profitability in backtests.
For example, you might discover cryptos require tighter trailing stops due to volatility, while stocks thrive with wider structural stops. The script automates this analysis, letting you to trade confidently.
----
What indicators or tools does the strategy use?
The strategy combines customizable technical tools with strict anti-lookahead safeguards:
Core Indicators:
Moving Averages: Adjustable periods (e.g., 20/50/200 EMA or SMA) and timeframes (daily/weekly) to confirm trend alignment. Users can test combinations (e.g., 10EMA vs. 20EMA) to optimize for specific markets.
Breakout Parameters:
Consolidation Length: Adjustable window to define the "tightness" of the pre-breakout pattern.
Entry Models: Flexible entry logics (Breakouts and fractals)
Anti-Lookahead Design:
All calculations (e.g., moving averages, consolidation ranges, volume averages) use only closed/confirmed data available at the time of the signal.
----
How do I manage risk with this strategy?
The strategy prioritizes customizable risk controls to align with your trading style and account size:
User-Defined Risk Inputs:
Risk Per Trade: Set a % of Equity (e.g., 1-2%) to determine position size. The strategy auto-calculates shares/contracts to match your selected risk per trade.
Flexibility: Choose between fixed risk or equity-based scaling.
The script adjusts position sizing dynamically based on your selection.
Pyramiding Feature:
Customizable Entries: Adjust the number of pyramiding trades allowed (e.g., 1-3 additional positions) in the strategy settings. Each new entry is triggered only if the prior trade hits its 1.5x RR target and the trend remains intact.
Risk-Scaled Additions: New positions use profits from prior trades, compounding gains without increasing initial risk.
Risk-Free Trade Mechanic:
Once a trade reaches 1.5x RR, the stop loss is moved to breakeven, eliminating downside risk.
The strategy then opens a new position (if pyramiding is enabled) using a portion of the locked-in profit. This "snowballs" winners while keeping total capital exposure stable.
Impact on Net Profit & Drawdown:
Net Profit Boost: Pyramiding lets you ride multi-leg trends aggressively. For example, a 100% runner could generate 2-3x more profit vs. a single-entry approach.
Controlled Drawdowns: Since new positions are funded by profits (not initial capital), max drawdown stays anchored to your original risk per trade (e.g., 1-2% of account). Even if later entries fail, the breakeven stop on prior trades protects overall equity.
Why This Works: Most strategies either over-leverage (increasing drawdowns) or exit too early. By recycling profits into new positions only after securing risk-free capital, this approach mimics hedge fund "scaling in" tactics while staying retail-trader friendly.
----
How does the strategy identify market structure for its trailing stoploss?
The strategy identifies market structure by utilizing an efficient logic with for loops to pinpoint the first swing candle that features a pivot of 2. This marks the beginning of the break of structure, where the market's previous trend or pattern is considered invalidated or changed.
----
What are the underlying calculations?
The underlying calculations involve:
Identifying Swing Points: The strategy looks for swing highs (marked with blue Xs) and swing lows (marked with red Xs). A swing high is identified when a candle's high is higher than the highs of the candles before and after it. Conversely, a swing low is when a candle's low is lower than the lows of the candles before and after it.
Break of Structure (BOS):
Bullish BOS: This occurs when the price breaks above the swing high level of the previous structure, indicating a potential shift to a bullish trend.
Bearish BOS: This happens when the price breaks below the swing low level of the previous structure, signaling a potential shift to a bearish trend.
Structural Liquidity and Invalidation:
Structural Liquidity: After a break of structure, liquidity levels are updated to the first swing high in a bullish BOS or the first swing low in a bearish BOS.
Structural Invalidation: If the price moves back to the level of the first swing low before the bullish BOS or the first swing high before the bearish BOS, it invalidates the break of structure, suggesting a potential reversal or continuation of the previous trend.
This method provides users with a technical approach to filter market regimes, offering an advantage by minimizing the risk of overfitting to historical data, which is often a concern with traditional indicators like moving averages.
By focusing on identifying pivotal swing points and the subsequent breaks of structure, the strategy maintains a balance between sensitivity to market changes and robustness against historical data anomalies, ensuring a more adaptable and potentially more reliable market analysis tool.
----
What entry criteria are used in this script?
The script uses two entry models for trading decisions: BreakOut and Fractal.
Underlying Calculations:
Breakout: The script records the most recent swing high by storing it in a variable. When the price closes above this recorded level, and all other predefined conditions are satisfied, the script triggers a breakout entry. This approach is considered conservative because it waits for the price to confirm a breakout above the previous high before entering a trade. As shown in the image, as soon as the price closes above the new candle (first tick), the long entry gets taken. The stop-loss is initially set and then moved to break-even once the price moves in favor of the trade.
Fractal: This method involves identifying a swing low with a period of 2, which means it looks for a low point where the price is lower than the two candles before and after it. Once this pattern is detected, the script executes the trade. This is an aggressive approach since it doesn't wait for further price confirmation. In the image, this is represented by the 'Fractal 2' label where the script identifies and acts on the swing low pattern.
----
What type of stop-loss identification method are used in this strategy?
This strategy employs two types of stop-loss methods: Initial Stop-loss and Trailing Stop-Loss.
Underlying Calculations:
Initial Stop-loss:
ATR Based: The strategy uses the Average True Range (ATR) to set an initial stop-loss, which helps in accounting for market volatility without predicting price direction.
Calculation:
- First, the True Range (TR) is calculated for each period, which is the greatest of:
- Current Period High - Current Period Low
- Absolute Value of Current Period High - Previous Period Close
- Absolute Value of Current Period Low - Previous Period Close
- The ATR is then the moving average of these TR values over a specified period, typically 14 periods by default. This ATR value can be used to set the stop-loss at a distance from the entry price that reflects the current market volatility.
Swing Low Based:
For this method, the stop-loss is set based on the most recent swing low identified in the market structure analysis. This approach uses the lowest point of the recent price action as a reference for setting the stop-loss.
Trailing Stop-Loss:
The strategy uses structural liquidity and structural invalidation levels across multiple timeframes to adjust the stop-loss once the trade is profitable. This method involves:
Detecting Structural Liquidity: After a break of structure, the liquidity levels are updated to the first swing high in a bullish scenario or the first swing low in a bearish scenario. These levels serve as potential areas where the price might find support or resistance, allowing the stop-loss to trail the price movement.
Detecting Structural Invalidation: If the price returns to the level of the first swing low before a bullish break of structure or the first swing high before a bearish break of structure, it suggests the trend might be reversing or invalidating, prompting the adjustment of the stop-loss to lock in profits or minimize losses.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop. The ATR-based stop-loss adapts to the current market conditions by considering the volatility, ensuring that the stop-loss is not too tight during volatile periods, which could lead to premature exits, nor too loose during calm markets, which might result in larger losses. Similarly, the swing low based stop-loss provides a logical exit point if the market structure changes unfavorably.
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance. This involves backtesting the strategy with different settings for the ATR period, the distance from the swing low, and how the trailing stop-loss reacts to structural liquidity and invalidation levels.
Through this process, you can tailor the strategy to perform optimally in different market environments, ensuring that the stop-loss mechanism supports the trade's longevity while safeguarding against significant drawdowns.
----
What type of break-even method is used in this strategy? What are the underlying calculations?
Moves the initial stop-loss to the entry price when the price reaches a certain RR ratio.
Calculation:
Break-even level = Entry Price + (Initial Risk * RR Ratio)
----
What tables are available in this script?
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades and more.
Total Commission: Displays the cumulative commissions incurred from all trades executed within the selected backtesting window. This value is derived by summing the commission fees for each trade on your chart.
Average Commission: Represents the average commission per trade, calculated by dividing the Total Commission by the total number of closed trades. This metric is crucial for assessing the impact of trading costs on overall profitability.
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most mean-reversion successful strategies have a percent profitability of 40-80% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month and year.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- UI Table: A user-friendly table that allows users to view and save the selected strategy parameters from user inputs. This table enables easy access to key settings and configurations, providing a straightforward solution for saving strategy parameters by simply taking a screenshot with Alt + S or ⌥ + S.
User-input styles and customizations:
Please note that all background colors in the style are disabled by default to enhance visualization.
How to Use This Strategy to Create a Profitable Edge and Systems?
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions/slippage on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker/prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 200 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, and net profit with minimum drawdown.
- Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
What Makes This Strategy Unique?
This strategy combines flexibility, smart risk management, and momentum focus in a way that’s rare and practical:
1. Adapts to Any Market Rhythm
Works on daily, weekly, or intraday charts without code changes.
Uses two entry types: classic breakouts (like trending stocks) or fractal patterns (to avoid false starts).
2. Smarter Stop-Loss System
No rigid rules: Stops adjust based on price structure (e.g., new “higher lows”), not fixed percentages.
Avoids whipsaws: Tightens stops only when the trend strengthens, not in choppy markets.
3. Safe Profit-Boosting Pyramiding
Adds new positions only after prior trades are risk-free (stops moved above breakeven).
Scales up using locked-in profits, not new capital, to grow gains safely.
4. Built-In Momentum Check
Tracks 1/3/6-month price growth to spotlight stocks with strong, lasting momentum.
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
- By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
Price action plus//The system combines the divergence of A/D and OBV with identifying reversal points using Japanese candlestick patterns, creating an enhanced version of price action. This helps investors more easily and accurately recognize reversal patterns in technical analysis.
Divergence of A/D vs. OBV includes:
Positive divergence: Identifies smart money leaving the market.
Negative divergence: Identifies smart money entering the market.
Reversal candlestick patterns include:
Buy signals: Morning Star, Bullish Engulfing, Hammer.
Strong Buy signals: Buy signals + Negative divergence
Sell signals: Evening Star, Bearish Engulfing, Shooting Star.
Strong Sell signals : Sell signals + Positive divergence
//Hope this system will be helpful for you!
Open Price on Selected TimeframeIndicator Name: Open Price on Selected Timeframe
Short Title: Open Price mtf
Type: Technical Indicator
Description:
Open Price on Selected Timeframe is an indicator that displays the Open price of a specific timeframe on your chart, with the ability to dynamically change the color of the open price line based on the change between the current candle's open and the previous candle's open.
Selectable Timeframes: You can choose the timeframe you wish to monitor the Open price of candles, ranging from M1, M5, M15, H1, H4 to D1, and more.
Dynamic Color Change: The Open price line changes to green when the open price of the current candle is higher than the open price of the previous candle, and to red when the open price of the current candle is lower than the open price of the previous candle. This helps users quickly identify trends and market changes.
Features:
Easy Timeframe Selection: Instead of editing the code, users can select the desired timeframe from the TradingView interface via a dropdown.
Dynamic Color Change: The color of the Open price line changes automatically based on whether the open price of the current candle is higher or lower than the previous candle.
Easily Track Open Price Levels: The indicator plots a horizontal line at the Open price of the selected timeframe, making it easy for users to track this important price level.
How to Use:
Select the Timeframe: Users can choose the timeframe they want to track the Open price of the candles.
Interpret the Color Signal: When the open price of the current candle is higher than the open price of the previous candle, the Open price line is colored green, signaling an uptrend. When the open price of the current candle is lower than the open price of the previous candle, the Open price line turns red, signaling a downtrend.
Observe the Open Price Levels: The indicator will draw a horizontal line at the Open price level of the selected timeframe, allowing users to easily monitor this important price.
Benefits:
Enhanced Technical Analysis: The indicator allows you to quickly identify trends and market changes, making it easier to make trading decisions.
User-Friendly: No need to modify the code; simply select your preferred timeframe to start using the indicator.
Disclaimer:
This indicator is not a complete trading signal. It only provides information about the Open price and related trends. Users should combine it with other technical analysis tools to make more informed trading decisions.
Summary:
Open Price on Selected Timeframe is a simple yet powerful indicator that helps you track the Open price on various timeframes with the ability to change colors dynamically, providing a visual representation of the market's trend.
Supply & Demand Zones
_____________________________________________________________________
Supply and Demand Zones
This indicator displays valid Supply and Demand zones on any chart and timeframe, using dynamically updating visuals. Users can see the moment that zones become validated, used, and then invalidated during live sessions. It is sleek, lightweight, and offers a feature-rich settings panel that allows customization of how each element appears and functions. Zones can enhance the probability of successful trades by locating areas that are most likely to contain resting orders of Supply or Demand, which are needed for price reversals.
Disclaimer
____________________
Like all indicators, this can be a valuable tool when incorporated into a comprehensive, risk-based trading system.
Supply and Demand is not the same thing as Support and Resistance.
Trading based on price hitting a zone without understanding which zones are of higher quality and which are of lower quality (only discernible with a trained human eye) will yield poor results.
Supply and Demand works well as a system and even better when added to an existing one. However, like all effective trading techniques, it requires diligent study, practice, and repetition to become proficient. This is an indicator for use with Supply and Demand concepts, not a replacement for learning them.
Features
____________________
Once a valid candle sequence is confirmed, a box will appear that displays the zone over the precise zone range. At 50% zone penetration, a zone becomes used , and at 100% it becomes invalidated . Each of these zone classifications changes the behavior of the zone on the chart immediately. The settings panel offers custom colors for Supply , Demand , Used , and Invalidated zone types.
Borders : The subtle border colors can be changed or hidden.
Boxes or Bases : Advanced users can opt to hide zone boxes and instead display small, subtle tags over base candle groups. This allows for more customizable selection over what is displayed and how.
Max Zones and Hide Invalidated :
There are limitations on how many objects TradingView allows at once. Because of this, once zones go from used to invalidated , they are hidden (deleted) by default. This allows the zones index to be allocated to display more valid , usable zones instead. If a user prefers to keep invalidated zones visible, they can be enabled; however, this will result in showing more recent zones for fewer historical zones.
All zones share one pool, so if you allow fifty max zones, forty-five might be supply while five might be demand on a big sell-off trend. You will always see the most recent zones, regardless of type or status.
It’s up to you how much clutter you want on your screen and how much improved load time you want - but once loaded, zone creation and function are always instantaneous.
Load Time
____________________
Load time refers to the time it takes from when you switch tickers or timeframes before the zones are displayed initially. There is zero lag in the dynamic function and minimal load time, regardless of settings. However, if you are a fine-tuner or multi-screener, the number of Max Zones displayed is the only major variable affecting load time.
I run everything at Max when I develop. When I trade, I run mine at 25 max zones because I change timeframes often and want a very quick display of zones when I do. I have invalidated hidden, and simply enable it if I want to check an old zone. This gives me more zones than I need and reduces the load time to right where I like it.
Thresholds
____________________
It is recommended to leave these as the default.
Base Body Threshold : Determines the maximum ratio of a candle’s body to wick before invalidation. Default (50% or 0.5). A higher number loosens thresholds, resulting in more zones being displayed.
Unrequire 2nd FT if LO is Strong & Strength Multiplier :
The standard logic sequence requires two Follow-Through candles. Under some strong price movement, Leg-Out candles can make an explosive directional move from a base, making a convincing argument for supply and demand perfectly at work, if not for a single Follow-Through candle instead of two.
By enabling this feature, you can tell the script to ignore second Follow-Through candles, if and only if, the Leg-Out candle's range is (Strength) X the base range. exceeds the range of the Base by a factor of X (Strength). ie: At 5x, this would require a Leg-Out range to be 500% the range of the Base.
If enabled and the Leg-Out is not strong enough, the default logic kicks in, and a second follow-through candle will validate the zone as per usual. This loosens thresholds overall and should result in more zones.
Recommended Usage
____________________
Form a thesis using your primary trend trading system (eg: Elliott Wave, Structure Reversal, TheStrat, et al) to identify locations of a pullback for a long or short entry.
Identify a pullback area using your system, then use this indicator to find a high-quality zone on your chosen timeframe.
Once located, draw your own channel over the indicator's zone box. Start on 1m, check for zones, 2m, 3m, and so on. When you see a zone you like, recreate it; thus, when finished, you can see every timeframe’s highest-quality zones that you created, regardless of what timeframe you switch to. Tip: Be selective
To make the process faster, save a channel design in settings for “Demand” and one for “Supply”, then you can quickly get through this process in less than a minute with practice.
Optional: Use additional methods (eg: Fibonacci retracements, Elliott Wave Theory, Anchored VWAPs) to find congruent confirmation.
Version 1.0
____________________
No known bugs remain from the closed beta.
In Development
____________________
Powerful combination zones occur when standard zone sequences are extended with additional levels of demand or supply by adding more conditionals to the state machine logic. Got this mostly working in a dev version and it adds minimal extra resources. Set aside to polish a clean standard 1.0 for release first, but now displaying these extended zones is my top priority for next version.
MTF support is essentially working in a dev copy, but adds resources. Not sure if it is in the spirit of price action being the primary focus of a chart for serious traders, rather than indicators. If there is demand for it, I'll consider it.
Additional Threshold Settings
Thanks!
____________________
Thank you for your interest in my work. This was a personal passion project of mine, and I was delighted it turned out better than I hoped, so I decided to share it. If you have any comments, bugs, or suggestions, please leave them here, or you can find me on Twitter or Discord.
@ ContrarianIRL
Open-source developer for over 25 years
Candle Height & Trend Probability DashboardDescription and Guide
Description:
This Pine Script for TradingView displays a dashboard that calculates the probability of price increases or decreases based on past price movements. It analyzes the last 30 candles (by default) and shows the probabilities for different timeframes (from 1 minute to 1 week). Additionally, it checks volatility using the ATR indicator.
Script Features:
Calculates probabilities of an upward (Up %) or downward (Down %) price move based on past candles.
Displays a dashboard showing probabilities for multiple timeframes.
Color-coded probability display:
Green if the upward probability exceeds a set threshold.
Red if the downward probability exceeds the threshold.
Yellow if neither threshold is exceeded.
Considers volatility using the ATR indicator.
Triggers alerts when probabilities exceed specific values.
How to Use:
Insert the script into TradingView: Copy and paste the script into the Pine Script editor.
Adjust parameters:
lookback: Number of past candles used for calculation (default: 30).
alertThresholdUp & alertThresholdDown: Thresholds for probabilities (default: 51%).
volatilityLength & volatilityThreshold: ATR volatility settings.
dashboardPosition: Choose where the dashboard appears on the chart.
Enable visualization: The dashboard will be displayed over the chart.
Set alerts: The script triggers notifications when probabilities exceed set thresholds.
ICT Order Blocks v2 (Debug)Josh has a very large PP xD
Understanding Order Blocks (OBs) - The ICT Perspective
This document delves into the concept of Order Blocks (OBs) from the perspective of the ICT methodology. It outlines what OBs are, their significance in trading, and how the "ICT Order Blocks v2 (Refined)" indicator functions to identify and visualize these critical price levels. By understanding OBs, traders can better navigate market movements and make informed decisions based on institutional trading behavior.
What is an Order Block (OB)?
Within ICT methodology, an Order Block represents a specific price candle where significant buying or selling interest from institutions (Smart Money) is believed to have occurred. They are potential areas where price might return and react.
Bullish Order Block: Typically the last down-closing candle before a strong, impulsive upward move (displacement). It suggests institutions may have absorbed selling pressure and initiated long positions here.
Bearish Order Block: Typically the last up-closing candle before a strong, impulsive downward move (displacement). It suggests institutions may have distributed long positions or initiated short positions here.
Why are OBs Significant (ICT View)?
Institutional Footprint: They mark potential zones of large order execution.
Support/Resistance: Unmitigated OBs can act as sensitive price levels where reactions are expected. Bullish OBs may provide support; Bearish OBs may provide resistance.
Origin of Moves: They often mark the origin point of significant price swings.
Liquidity Engineering: Institutions might drive price back to OBs to mitigate earlier positions or to engineer liquidity before continuing a move.
Common Refinements
ICT often emphasizes higher probability OBs that are associated with:
Displacement: The move away from the OB is sharp and decisive.
Fair Value Gaps (FVGs): An FVG forming immediately after the OB strengthens its validity.
OB Mitigation: This refers to price returning to the level of the Order Block after its formation. Price might react at the edge (proximal line) or the 50% level (mean threshold) of the OB. An OB is often considered fully mitigated or invalidated if price trades decisively through its entire range, especially with a candle body closing beyond it.
How the "ICT Order Blocks v2 (Refined)" Indicator Works
This indicator automates the detection and visualization of the most recent unmitigated Order Block of each type (Bullish/Bearish), incorporating optional filters.
Detection:
It looks at the relationship between the candle two bars ago ( ), the previous candle ( ), and potentially the current candle ( ).
Bullish OB: Identifies if candle was a down-close (close < open ) AND candle broke above the high of candle (high > high ).
Bearish OB: Identifies if candle was an up-close (close > open ) AND candle broke below the low of candle (low < low ).
Accuracy Filters (Optional Inputs):
These filters help identify potentially higher-probability OBs:
Require Fair Value Gap (FVG)?: If enabled, the indicator checks if an FVG formed immediately after the OB candle ( ). Specifically, it looks for a gap between candle and candle (low > high for Bullish OB confirmation, high < low for Bearish).
Require Strong Close Breakout?: If enabled, it requires the breakout candle ( ) to close beyond the range of the OB candle ( ). (close > high for Bullish, close < low for Bearish). This suggests stronger confirmation.
Storing the Most Recent OB:
When an OB is detected and passes any enabled filters, its details (high, low, formation bar index) are stored. Crucially, this indicator only tracks the single most recent valid unmitigated OB of each type (one Bullish, one Bearish) using var variables. If a newer valid OB forms, it replaces the previously stored one.
Drawing Boxes:
If a valid Bullish OB is being tracked (and Show Bullish OBs is enabled), it draws a box (box.new) using the high and low of the identified OB candle ( ). The same process applies to Bearish OBs (Show Bearish OBs enabled). The boxes automatically extend to the right (extend.right) and their right edge is updated on each new bar (box.set_right) until they are mitigated. Labels ("Bull OB" / "Bear OB") are displayed inside the boxes.
Mitigation & Box Deletion:
The indicator checks if the current closing price (close ) has moved entirely beyond the range of the tracked OB.
Mitigation Rule Used: A Bullish OB is considered mitigated if close < bull_ob_low. A Bearish OB is considered mitigated if close > bear_ob_high. Once an OB is marked as mitigated, the indicator stops tracking it and its corresponding box is automatically deleted (box.delete) from the chart.
This indicator provides a dynamic visualization of the most recent, potentially significant Order Blocks that meet the specified criteria, helping traders identify key areas of interest based on ICT principles.
VVV AB+The VVV AB+ is an indicator that displays information on the chart based on higher time frame candles and their characteristics. The indicator performs the following functions:
Candle Analysis: The indicator calculates the direction and colors (bullish or bearish) of the selected time frame candles and draws a box around the candle body, depending on whether the closing price is higher or lower than the previous candle’s opening price.
Lines: The indicator calculates and displays the median value of the selected candles (the average of the high and low), as well as a simple moving average (SMA), providing additional technical information to the user.
This indicator can be useful for those who focus on analyzing higher time frame candles while visually displaying the candle's direction and other key information, such as the previous day's high/low.
A VVV AB+ egy olyan indikátor, amely a magasabb időkeretű gyertyák és azok jellemzői alapján jelenít meg információkat a grafikonon. Az indikátor az alábbi funkciókat valósítja meg:
Gyertya elemzés: Az indikátor kiszámítja a választható idősíkú gyertyák testének irányát és a színeket (bullish vagy bearish), majd a megfelelő színű dobozt rajzol a gyertya teste köré, attól függően, hogy a záróár magasabb vagy alacsonyabb volt, mint az előző gyertya nyitóára.
Vonalak: Az indikátor kiszámítja és megjeleníti a kiválasztott gyertyák medián értékét (a magas és alacsony átlagát), illetve egy egyszerű mozgóátlagot (SMA), hogy további technikai információkat nyújtson a felhasználónak.
Ez az indikátor hasznos lehet azok számára, akik a magasabb időkeretű gyertyák elemzésére építenek, miközben vizuálisan is megjelenítik a gyertya irányát és más kulcsfontosságú információkat, mint PL előző napi High/Low.
Stop Loss / Take Profit Table// (\_/)
// ( •.•)
// (")_(")
📈 Introducing the Stop Loss / Take Profit Table Indicator! 📈
Enhance your trading strategy with our powerful Stop Loss / Take Profit Table indicator, designed for traders in the Crypto, Stock, and Forex markets. This easy-to-use tool helps you manage risk and maximize profits by clearly displaying your Stop Loss and Take Profit levels based on your trading position.
Key Features:
Custom Asset Types: Choose between Crypto, Stock, or Forex to tailor the indicator to your specific trading style.
Dynamic Stop Loss & Take Profit Calculation: Set your desired Stop Loss percentage, and the indicator will automatically calculate your Stop Loss and two Take Profit levels based on different timeframes (1 min to 240 min).
Position Type Flexibility: Whether you're trading Long or Short, the indicator adjusts the calculations accordingly, providing you with precise price levels for effective risk management.
Visual Representation: Stop Loss and Take Profit levels are marked directly on the chart with distinctive horizontal lines in vibrant colors for easy reference.
Informative Table Display: A dedicated table displayed on the chart shows your asset type, position type, and calculated prices for Stop Loss and Take Profit levels, ensuring you have all critical data at a glance.
Alert Notifications: Stay informed with optional alerts that signal when your Stop Loss or Take Profit levels are hit, allowing you to react swiftly in fast-moving markets.
Why Use This Indicator?
Managing your trades is critical for success in the financial markets. With our Stop Loss / Take Profit Table, you can easily set your parameters and visually track your risk and reward levels, making it a practical addition to any trader's toolkit.
Get started today and take control of your trading strategy! ✨
Happy trading! 📊🚀
Scalping Strategy Signal v2 by [INFINITYTRADER]Overview
This Pine Script (v6) implements a scalping strategy that uses higher timeframe data (default: 4H) to generate entry and exit signals, originally designed for the 15-minute timeframe with an option for 30-minute charts. The "Scalping Strategy Signal v2 by " integrates moving averages, RSI, volume, ATR, and candlestick patterns to identify trading opportunities. It features adjustable risk management with ATR-based stop-loss, take-profit, and trailing stops, plus dynamic position sizing based on user-set capital. Trades trigger only on the higher timeframe candle close (e.g., 4H) to limit activity within the same period. This closed-source script offers a structured scalping approach, blending multiple entry methods and risk controls for adaptability across market conditions.
What Makes It Unique
Unlike typical scalping scripts relying on single-indicator triggers (e.g., RSI alone or basic MA crossovers), this strategy combines four distinct entry methods—standard MA crossovers, RSI-based momentum shifts, trend-following shorts, and candlestick pattern logic—evaluated on a 4H timeframe for confirmation. This multi-layered design, paired with re-entry logic after losses and a mix of manual, ATR-based, and trailing exits, aims to balance trade frequency and reliability. The higher timeframe filter adds precision not commonly found in simpler scalping tools, while the 30-minute option enhances consistency by reducing noise.
How It Works
Timeframe Logic
Runs on a base timeframe (designed for 15-minute charts, with a 30-minute option) while pulling data from a user-chosen higher timeframe (default: 4H) for signal accuracy.
Limits entries to the close of each 4H candle, ensuring one trade per period to avoid over-trading in volatile conditions.
Indicators and Data
Moving Averages : Employs 21-period and 50-period simple moving averages on the higher timeframe to detect trends and signal entries/exits.
Volume : Requires volume to exceed 70% of its 20-period average on the higher timeframe for momentum confirmation.
RSI : Uses a 14-period RSI for overbought/oversold filtering and a 6-period RSI for precise entry timing.
ATR : Applies a 14-period Average True Range on the higher timeframe to set adaptive stop-loss and take-profit levels.
Candlestick Patterns : Analyzes consecutive green or red 4H bars for trend continuation signals.
Why These Indicators
The blend of moving averages, RSI, volume, ATR, and candlestick patterns forms a robust scalping framework. Moving averages establish trend context, RSI filters momentum and avoids extremes, volume confirms market activity, ATR adjusts risk to volatility, and candlestick patterns enhance entry timing with price action insights. Together, they target small, frequent moves in flat or trending markets, with the 4H filter reducing false signals common in lower-timeframe scalping.
Entry Conditions
Four entry methods are evaluated at the 4H candle close:
Standard Long Entry: Price crosses above the 21-period moving average, volume exceeds 70% of its 20-period average, and the 1H 14-period RSI is below 70—confirms uptrend momentum.
Special Long Entry: The 6-period RSI crosses above 23, price is more than 1.5 times the ATR from the 21-period moving average, and price exceeds its prior close—targets oversold bounces with a stop-loss at the 4H candle’s low.
Short Entries:
- RSI-Based: The 6-period RSI crosses below 68 with volume support—catches overbought pullbacks.
- Trend-Based: Price crosses below the 21-period moving average, volume is above 70% of its average, and the 1H 14-period RSI is above 30—confirms downtrends.
Red/Green Bar Logic: Two consecutive green 4H bars for longs or red 4H bars for shorts—uses candlestick patterns for continuation, with a tight stop-loss from the base timeframe candle.
Re-Entry Logic
Long : After a losing special long, triggers when the 6-period RSI crosses 27 and price crosses the 21-period moving average.
Short : After a losing short, triggers when the 6-period RSI crosses 50 and price crosses below the 21-period moving average.
Purpose: Offers recovery opportunities with stricter conditions.
Exit Conditions
Manual Exits: Longs close if the 21-period MA crosses below the 50-period MA or the 1H 14-period RSI exceeds 68; shorts close if the 21-period MA crosses above the 50-period MA or RSI drops below 25.
ATR-Based TP/SL: Stop-loss is entry price ± ATR × 1.5 (default); take-profit is ± ATR × 4 (default), checked at 4H close.
Trailing Stop: Adjusts ±6x ATR from peak/trough, closing if price retraces within 1x ATR.
Special/Tight SL: Special longs exit if price opens below the 4H candle’s low; 4th method entries use the base timeframe candle’s low/high, checked every bar.
Position Sizing
Bases trade value on user-set capital (default: 100 USDT), dividing by the higher timeframe close price for dynamic sizing.
Visualization
Displays a table at the bottom-right with current/previous signals, TP/SL levels, equity, trading pair, and trade size—color-coded for clarity (green for buy, red for sell).
Inputs
Initial Capital (USDT): Sets trade value (default: 100, min: 1).
ATR Stop-Loss Multiplier: Adjusts SL distance (default: 1.5, min: 1).
ATR Take-Profit Multiplier: Adjusts TP distance (default: 4, min: 1).
Higher Timeframe: Selects analysis timeframe (options: 1m, 5m, 15m, 30m, 1H, 4H, D, W; default: 4H).
Usage Notes
Intended Timeframe: Designed for 15-minute charts with 4H confirmation for precision and frequency; 30-minute charts improve consistency by reducing noise.
Backtesting: Adjust ATR multipliers and capital to match your asset’s volatility and risk tolerance.
Risk Management: Combines manual, ATR, and trailing exits—monitor to avoid overexposure.
Limitations: 4H candle-close dependency may delay entries in fast markets; RSI/volume filters can reduce trades in low-momentum periods.
Backtest Observations
Tested on BTC/USDT (4H higher timeframe, default settings: Initial Capital: 100 USDT, ATR SL: 1.5x, ATR TP: 4x) across market conditions, comparing 15-minute and 30-minute charts:
Bull Market (Jul 2023 - Dec 2023):
15-Minute: 277 long, 219 short; Win Rate: 42.74%; P&L: 108%; Drawdown: 1.99%; Profit Factor: 3.074.
30-Minute: 257 long, 215 short; Win Rate: 49.58%; P&L: 116.85%; Drawdown: 2.34%; Profit Factor: 3.14.
Notes: Moving average crossovers and green bar patterns suited this bullish phase; 30-minute improved win rate and P&L by filtering weaker signals.
Bear Market (Jan 2022 - Jun 2022):
15-Minute: 262 long, 211 short; Win Rate: 44.4%; P&L: 239.80%; Drawdown: 3.74%; Profit Factor: 3.419.
30-Minute: 250 long, 200 short; Win Rate: 52.22%; P&L: 258.77%; Drawdown: 5.34%; Profit Factor: 3.461.
Notes: Red bar patterns and RSI shorts thrived in the downtrend; 30-minute cut choppy reversals for better consistency.
Flat Market (Jan 2021 - Jun 2021):
15-Minute: 280 long, 208 short; Win Rate: 51.84%; P&L: 340.33%; Drawdown: 9.59%; Profit Factor: 2.924.
30-Minute: 270 long, 209 short; Win Rate: 55.11%; P&L: 315.42%; Drawdown: 7.21%; Profit Factor: 2.598.
Notes: High trade frequency and P&L showed strength in ranges; 30-minute lowered drawdown for better risk control.
Results reflect historical performance on BTC/USDT with default settings—users should test on their assets and timeframes. Past performance does not guarantee future results and is shared only to illustrate the strategy’s behavior.
Why It Works Well in Flat Markets
A "flat market" lacks strong directional trends, with price oscillating around moving averages, as in Jan 2021 - Jun 2021 for BTC/USDT. This strategy excels here because its crossover-based entries trigger frequently in tight ranges. In trending markets, an exit might not be followed by a new entry without a pullback, but flat markets produce multiple crossovers, enabling more trades. ATR-based TP/SL and trailing stops capture these small swings, while RSI and volume filters ensure momentum, driving high P&L and win rates.
Technical Details
Built in Pine Script v6 for TradingView compatibility.
Prevents overlapping trades with long/short checks.
Handles edge cases like zero division and auto-detects the trading pair’s base currency (e.g., BTC from BTCUSDT).
This strategy suits scalpers seeking structured entries and risk management. Test on 15-minute or 30-minute charts to match your style and market conditions.