J2S Backtest: 123-Stormer StrategyThis backtest presents the 123-Stormer strategy created by trader Alexandre Wolwacz "Stormer". The strategy is advocates and shared by the trader through his YouTube channel without restrictions.
Note :
This is not an investment recommendation. The purpose of this study is only to share knowledge with the community on tradingview.
What is the purpose of the strategy?
The strategy is to buy the 123-Stormer pattern at the bottom of an uptrend and sell the 123-Stormer pattern at the top of a downtrend, aiming for a short stop for a long profit target.
To which timeframe of a chart is it applicable to?
Recommended for weekly and daily charts, as the signals are more reliable, being that strategy a good option for swing and position trading.
What about risk management and success rate?
The profit target is established by the author as being twice the risk assumed. Also according to the author, the strategy is mathematically positive, reaching around 65% of success rate in tradings.
How are the trends identified in this strategy?
Two averages are plotted to indicate the trend, a fast EMA average with an 8-week close and a slow EMA average with an 80-week close.
Uptrend happens whenever the fast EMA is above the slow EMA and prices are above the fast EMA. In this case, we should start looking for a LONG entry based on the signal of the 123-Stromer pattern to buying.
On the other hand, downtrend happens when the fast EMA is below the slow EMA and prices are below the fast EMA. In this case, we should start looking for a SHORT entry based on the signal of the 123-Stromer pattern to selling.
How to identify the 123-Stormer pattern for a LONG entry?
This pattern consists of three candles. The first candle has a higher low than the second candle's low, and the third candle has a higher low than the second candle's low. In this pattern, we will buy as soon as a trade occurs above the third candle's high, placing a stop as soon as a trade occurs below the second candle's low, with profit target twice the risk assumed. In another words, the amplitude of the prices of the three candles from the third candle’s high upwards. (you can use fibonacci extension to determine your stops and profit targets).
Importantly, the low of the three candles must be above the fast EMA average and in an uptrend.
How to identify the 123-Stormer pattern for a SHORT entry?
This pattern consists of three candles. The first candle has a lower high than the second candle's high, and the third candle has a lower high than the second candle's high. In this pattern, we will sell as soon as a trade occurs below the third candle's low, placing a stop as soon as a trade occurs above the second candle's high, with profit target twice the risk assumed. In other words, the amplitude of prices of the three candles from the third candle’s low down (you can use fibonacci extension to determine your stops and profit targets).
Importantly, the high of the three candles must be below the fast average and in a downtrend.
Tips and tricks
According to the author, the best signal for both LONG or SHORT entry is when the third candle is a inside bar of second candle.
Backtest features
Backtest parameters are fully customizable. The user chooses to validate only LONG or SHORT entries, or both. It is also possible to determine the specific time period for running the backtests, as well as setting a threshold in candels for entry by the 123-Stormer pattern.
Furthermore, for validation purposes, you can choose to activate the best signal of the pattern recommended by the author of the strategy, as well as change the values of the EMA averages or even deactivate them.
Final message
Feel free to provide me with any improvement suggestions for the backtest script. Bear in mind, feel free to use the ideas in my script in your studies.
Cerca negli script per "chart"
Lower time frame Intrabar CandlesI was looking for an indicator to show me what a lower time frame is doing at the start, middle, and end of the candle, but I couldn't find one, hench,
I made my own using Tradingview latest capabilities to fetch a lower time frame from a higher time frame chart.
For example, if your chart is 1 hour and this indicator is set to a lower time frame of 15 minutes, then the Start, Middle, or End (Select which in settings) of the 15min candle will be displayed overlaying the 1-hour candle.
This will always show you what the lower time frame candle is currently doing without the need to open an additional lower time frame chart. How cool is that?
Remember to select a lower time frame in the settings than the chart time frame for it to work as expected.
Enjoy :)
-=== Notes ===-
* The lower time frame candles BORDER is set to WHITE by default, however, you can adjust the color of the candle (wicks, body, and border) of the 'LTF Candle' indicator inside its Settings -> Style
* Suitable for candles and designed to work in historical and real time.
* Added optional label to show lower time frame values (can be disabled via indicator settings).
* You can adjust the visuals of the chart candles at Chart Settings -> Symbol -> Body, Borders, or Wicks to visually see better the lower time frame candles.
There is also a similar concept volume-based using histogram, stay tuned.
Like if you like and follow: www.tradingview.com
Magnifying Glass (LTF Candles) by SiddWolf█ OVERVIEW
This indicator displays The Lower TimeFrame Candles in current chart, Like Zooming in on the Candle to see it's Lower TimeFrame Structure. It plots intrabar OHLC data inside a Label along with the volume structure of LTF candle in an eloquent format.
█ QUICK GUIDE
Just apply it to the chart, Hover the mouse on the Label and ta-da you have a Lower Timeframe OHLC candles on your screen. Move the indicator to the top and shrink it all the way up, because all the useful data is inside the label.
Inside the label: The OHLC ltf candles are pretty straightforward. Volume strength of ltf candles is shown at bottom and Volume Profile on the left. Read the Details below for more information.
In the settings, you will find the option to change the UI and can play around with Lower TimeFrame Settings.
█ DETAILS
First of all, I would like to thank the @TradingView team for providing the function to get access to the lower timeframe data. It is because of them that this magical indicator came into existence.
Magnifying Glass indicator displays a Candle's Lower TimeFrame data in Higher timeframe chart. It displays the LTF candles inside a label. It also shows the Volume structure of the lower timeframe candles. Range percentage shown at the bottom is the percentage change between high and low of the current timeframe candle. LTF candle's timeframe is also shown at the bottom on the label.
This indicator is gonna be most useful to the price action traders, which is like every profitable trader.
How this indicator works:
I didn't find any better way to display ltf candles other than labels. Labels are not build for such a complex behaviour, it's a workaround to display this important information.
It gets the lower timeframe information of the candle and uses emojis to display information. The area that is shown, is the range of the current timeframe candle. Range is a difference between high and low of the candle. Range percentage is also shown at the bottom in the label.
I've divided the range area into 20 parts because there are limitation to display data in the labels. Then the code checks out, in what area does the ltf candle body or wick lies, then displays the information using emojis.
The code uses matrix elements for each block and relies heavily on string manipulation. But what I've found most difficult, is managing to fit everything correctly and beautifully so that the view doesn't break.
Volume Structure:
Strength of the Lower TimeFrame Candles is shown at the bottom inside the label. The Higher Volume is shown with the dark shade color and Lower Volume is shown with the light shade. The volume of candles are also ranked, with 1 being the highest volume, so you can see which candle have the maximum to minimum volume. This is pretty important to make a price action analysis of the lower timeframe candles.
Inside the label on the left side you will see the volume profile. As the volume on the bottom shows the strength of each ltf candles, Volume profile on the left shows strength in a particular zone. The Darker the color, the higher the volume in the zone. The Highest volume on the left represents Point of Control (Volume Profile POC) of the candle.
Lower TimeFrame Settings:
There is a limitation for the lowest timeframe you can show for a chart, because there is only so much data you can fit inside a label. A label can show upto 20 blocks of emojis (candle blocks) per row. Magnifying Glass utilizes this behaviour of labels. 16 blocks are used to display ltf candles, 1 for volume profile and two for Open and Close Highlighter.
So for any chart timeframe, ltf candles can be 16th part of htf candle. So 4 hours chart can show as low as 15 minutes of ltf data. I didn't provide the open settings for changing the lower timeframe, as it would give errors in a lot of ways. You can change the timeframe for each chart time from the settings provided.
Limitations:
Like I mentioned earlier, this indicator is a workaround to display ltf candles inside a label. This indicator does not work well on smaller screens. So if you are not able to see the label, zoom out on your browser a bit. Move the indicator to either top or bottom of all indicators and shrink it's space because all details are inside the label.
█ How I use MAGNIFYING GLASS:
This indicator provides you an edge, on top of your existing trading strategy. How you use Magnifying Glass is entirely dependent on your strategy.
I use this indicator to get a broad picture, before getting into a trade. For example I see a Doji or Engulfing or any other famous candlestick pattern on important levels, I hover the mouse on Magnifying Glass, to look for the price action the ltf candles have been through, to make that pattern. I also use it with my "Wick Pressure" indicator, to check price action at wick zones. Whenever I see price touching important supply and demand zones, I check last few candles to read chart like a beautiful price action story.
Also volume is pretty important too. This is what makes Magnifying Glass even better than actual lower timeframe candles. The increasing volume along with up/down trend price shows upward/downward momentum. The sudden burst (peak) in the volume suggests volume climax.
Volume profile on the left can be interpreted as the strength/weakness zones inside a candle. The low volume in a price zone suggests weakness and High volume suggests strength. The Highest volume on the left act as POC for that candle.
Before making any trade, I read the structure of last three or four candles to get the complete price action picture.
█ Conclusion
Magnifying Glass is a well crafted indicator that can be used to track lower timeframe price action. This indicator gives you an edge with the Multi Timeframe Analysis, which I believe is the most important aspect of profitable trading.
~ @SiddWolf
Intraday Power 3 VisualDescription
This indicator draws a dynamic "Open High Low Close" type visual on intraday charts so the trader can easily keep track of the daily/weekly movement. This indicator was inspired by the Inner Circle Trader’s (ICT) “Power 3” concept, which is Accumulation, Manipulation, and Distribution of price on a daily timeframe.
Visual
This indicator plots the chosen timeframes opening price along with a live line for the current price. This makes it very easy to identify the daily/weekly range along it’s open. And the user can combine this indicator with my other indicator “Futures Exchange Sessions” to plot the midnight EST & 8:30 AM EST lines to get a great summation of over night price action.
Inputs and Style
In the Input section the user can dynamically switch between Daily and Weekly timeframes. Built in ability to move the entire Visual to the right makes preventing indicator overlap a breeze. All of the lines can be configured: color, style, and width. Independently toggle ON/OFF the Power 3 labels (Accumulation, Manipulation, Range Extension, Distribution) and can change labels color. The labels dynamically move and switch positions based upon bear or bull daily/weekly range.
Special Notes
The Futures market is open 23/5. It is closed everyday for 1-hour at 5pm EST and closed over the weekends. Because this Intraday Power 3 Visual is drawing in the 'future' on the users TradingView chart, when the visual is close or in a time when the market is closed, the visual doesn't behave properly. This is because TradingView doesn't display times when the Market is closed, thus the drawings cannot be displayed during those times. There is nothing wrong with the script. Please wait until the Market is open and the visual will be drawn normally.
This indicator is intended for use in the Futures Market
Bart Pattern [LuxAlgo]As a sequel to our 'meme indicator' series... The Bart Pattern Detector identifies confirmed regular and inverted Bart patterns using edge detection.
Settings
Median Lookback: Lookback period of the median filter used for the edge detection, with a shorter period allowing to detect shorter-term and less spaced patterns.
Edge Detection Sensitivity: Sensitivity of the edge detection method, with higher values making the method less sensible to edges of low magnitude.
Range To Edges Threshold: Threshold for the range to edges ratio, with lower values detecting Bart patterns with flatter ranges between the edges.
Show Inverted Barts: Show inverted Bart patterns.
Mode: Determines how detected Bart patterns are displayed.
Usage
This indicator can be used to study past Bart patterns and how the market responded to them. Their detection is not done in real-time. Additionally detected edges are used to indicate the current market sentiment.
If you don't want a meme on your chart, you can also use the simple mode - but don't worry, we won't judge you if you don't...
Details
The origins of Bart patterns can be hard to pinpoint but most likely originate from social media around 2018. This pattern has been mostly covered in the cryptocurrency market similarly to how the McDonald's Pattern became a popular meme within the community. See our McDonald's Pattern Indicator that was created by us as our first 'meme indicator' in the series
The Bart pattern as its name suggests occurs when price forms a structure resembling the head of the Simpson character "Bart Simpson". This is characterized by a rectangular structure, which is a sideways market delimited by sharp volatile edges.
The Bart pattern is sometimes traded before completion, waiting for a breakout of a support/resistance located within the sideway part of the pattern.
The cause of this pattern is still discussed by traders, with some attributing it to over-leveraged market participants and while others attributing it to exchanges themselves through spoofing.
Notes
Barts patterns are very volatile structures, characterized by sudden price jumps, be careful when trading them.
Shout to the famous alien @lilmayo and our good pal @scheplick for the suggestion to create this work of art.
And don't forget to eat your shorts.
Symbol ViewerView another symbol!
Symbol Viewer allows you to display a ticker of your choice in an indicator box below your current chart.
You no longer need to split your layout to view 2 (or more) tickers at the same time!
The data from your symbol of choice is accurately displayed and updated live.
STRATEGY R18-F-BTCHi, I'm @SenatorVonShaft
Just finished the strategy "STRATEGY R18-F-BTC" for trading on #bitcoin and other cryptocurrencies.
As any strategy on TradingView, R18 opens Long/Short positions (with no leverage) on certain price points for assets in the chart. But I intentionally make this strategy for Bitcoin . Strategy is effective with 1h chart and it has %36 winning trade ratio for #bitcoin trade. As strategy uses approximately 1/3 ratio of SL/TP levels, gross profit for 1 year backtest is above %200 (I mean above 3x for only BTC )
Strategy is built on combination of:
- MACD
- RSI
- FIBONACCI levels
- BTCUSDT price itself as indicator (for different crypto assets and BTCUSDTPERP trading. You can select different assets you like for indicator (it's BTCUSDT:Binance by default))
I fine-tuned all levels of indicators above accordingly (it has more than 10 variables that effects strategy itself).
You can find out your own strategy levels by adjusting long/short tp&sl variables as well as initial capital ratio variable.
Reverse option open reverse positions of the strategy
Chart Theme - Change Bar and Background Colors using HEX #sAdds aesthetic ability to charts by allowing the trader to change the color of the bars, background, and plots using HEX colors, rather than TradingView's limited color selector box. This makes for easy application of color palettes to charts. The color palettes can be saved as indicators and applied quickly, as desired.
Volume Footprint Anomaly Scanner [PhenLabs]📊 PhenLabs - Volume Footprint Anomaly Scanner (VFAS)
Version: PineScript™ v6
📌 Description
The PhenLabs Volume Footprint Anomaly Scanner (VFAS) is an advanced Pine Script indicator designed to detect and highlight significant imbalances in buying and selling pressure within individual price bars. By analyzing a calculated "Delta" – the net difference between estimated buy and sell volume – and employing statistical Z-score analysis, VFAS pinpoints moments when buying or selling activity becomes unusually dominant. This script was created not in hopes of creating a "Buy and Sell" indicator but rather providing the user with a more in-depth insight into the intrabar volume delta and how it can fluctuate in unusual ways, leading to anomalies that can be capitalized on.
This indicator helps traders identify high-conviction points where strong market participants are active, signaling potential shifts in momentum or continuation of a trend. It aims to provide a clearer understanding of underlying market dynamics, allowing for more informed decision-making in various trading strategies, from identifying entry points to confirming trend strength.
🚀 Points of Innovation
● Z-Score for Delta Analysis : Utilizes statistical Z-scores to objectively identify statistically significant anomalies in buying/selling pressure, moving beyond simple, arbitrary thresholds.
● Dynamic Confidence Scoring : Assigns a multi-star confidence rating (1-4 stars) to each signal, factoring in high volume, trend alignment, and specific confirmation criteria, providing a nuanced view of signal strength.
● Integrated Trend Filtering : Offers an optional Exponential Moving Average (EMA)-based trend filter to ensure signals align with the broader market direction, reducing false positives in ranging markets.
● Strict Confirmation Logic : Implements specific confirmation criteria for higher-confidence signals, including price action and a time-based gap from previous signals, enhancing reliability.
● Intuitive Info Dashboard : Provides a real-time summary of market trend and the latest signal's direction and confidence directly on the chart, streamlining information access.
🔧 Core Components
● Core Delta Engine : Estimates the net buying/selling pressure (bar Delta) by analyzing price movement within each bar relative to volume. It also calculates average volume to identify bars with unusually high activity.
● Anomaly Detection (Z-Score) : Computes the Z-score for the current bar's Delta, indicating how many standard deviations it is from its recent average. This statistical measure is central to identifying significant anomalies.
● Trend Filter : Utilizes a dual Exponential Moving Average (EMA) cross-over system to define the prevailing market trend (uptrend, downtrend, or range), providing contextual awareness.
● Signal Processing & Confidence Algorithm : Evaluates anomaly conditions against trend filters and confirmation rules, then calculates a dynamic confidence score to produce actionable, contextualized signal information.
🔥 Key Features
● Advanced Delta Anomaly Detection : Pinpoints bars with exceptionally high buying or selling pressure, indicating potential institutional activity or strong market conviction.
● Multi-Factor Confidence Scoring : Each signal comes with a 1-4 star rating, clearly communicating its reliability based on high volume, trend alignment, and specific confirmation criteria.
● Optional Trend Alignment : Users can choose to filter signals, so only those aligned with the prevailing EMA-defined trend are displayed, enhancing signal quality.
● Interactive Signal Labels : Displays compact labels on the chart at anomaly points, offering detailed tooltips upon hover, including signal type, direction, confidence, and contextual information.
● Customizable Bar Colors : Visually highlights bars with Delta anomalies, providing an immediate visual cue for strong buying or selling activity.
● Real-time Info Dashboard : A clean, customizable dashboard shows the current market trend and details of the latest detected signal, keeping key information accessible at a glance.
● Configurable Alerts : Set up alerts for bullish or bearish Delta anomalies to receive real-time notifications when significant market pressure shifts occur.
🎨 Visualization
Signal Labels :
* Placed at the top/bottom of anomaly bars, showing a "📈" (bullish) or "📉" (bearish) icon.
* Tooltip: Hovering over a label reveals detailed information: Signal Type (e.g., "Delta Anomaly"), Direction, Confidence (e.g., "★★★☆"), and a descriptive explanation of the anomaly.
* Interpretation: Clearly marks actionable signals and provides deep insights without cluttering the chart, enabling quick assessment of signal strength and context.
● Info Dashboard :
* Located at the top-right of the chart, providing a clean summary.
* Displays: "PhenLabs - VFAS" header, "Market Trend" (Uptrend/Downtrend/Range with color-coded status), and "Direction | Conf." (showing the last signal's direction and star confidence).
* Optional "💡 Hover over signals for details" reminder.
* Interpretation: A concise, real-time summary of the market's pulse and the most recent high-conviction event, helping traders stay informed at a glance.
📖 Usage Guidelines
Setting Categories
⚙️ Core Delta & Volume Engine
● Minimum Volume Lookback (Bars)
○ Default: 9
○ Range: Integer (e.g., 5-50)
○ Description: Defines the number of preceding bars used to calculate the average volume and delta. Bars with volume below this average won't be considered for high-volume signals. A shorter lookback is more reactive to recent changes, while a longer one provides a smoother average.
📈 Anomaly Detection Settings
Delta Z-Score Anomaly Threshold
○ Default: 2.5
○ Range: Float (e.g., 1.0-5.0+)
○ Description: The number of standard deviations from the mean that a bar's delta must exceed to be considered a significant anomaly. A higher threshold means fewer, but potentially stronger, signals. A lower threshold will generate more signals, which might include less significant events. Experiment to find the optimal balance for your trading style.
🔬 Context Filters
Enable Trend Filter
○ Default: False
○ Range: Boolean (True/False)
○ Description: When enabled, signals will only be generated if they align with the current market trend as determined by the EMAs (e.g., only bullish signals in an uptrend, bearish in a downtrend). This helps to filter out counter-trend noise.
● Trend EMA Fast
○ Default: 50
○ Range: Integer (e.g., 10-100)
○ Description: The period for the faster Exponential Moving Average used in the trend filter. In combination with the slow EMA, it defines the trend direction.
● Trend EMA Slow
○ Default: 200
○ Range: Integer (e.g., 100-400)
○ Description: The period for the slower Exponential Moving Average used in the trend filter. The relationship between the fast and slow EMA determines if the market is in an uptrend (fast > slow) or downtrend (fast < slow).
🎨 Visual & UI Settings
● Show Info Dashboard
○ Default: True
○ Range: Boolean (True/False)
○ Description: Toggles the visibility of the dashboard on the chart, which provides a summary of market trend and the last detected signal.
● Show Dashboard Tooltip
○ Default: True
○ Range: Boolean (True/False)
○ Description: Toggles a reminder message in the dashboard to hover over signal labels for more detailed information.
● Show Delta Anomaly Bar Colors
○ Default: True
○ Range: Boolean (True/False)
○ Description: Enables or disables the coloring of bars based on their delta direction and whether they represent a significant anomaly.
● Show Signal Labels
○ Default: True
○ Range: Boolean (True/False)
○ Description: Controls the visibility of the “📈” or “📉” labels that appear on the chart when a delta anomaly signal is generated.
🔔 Alert Settings
Alert on Delta Anomaly
○ Default: True
○ Range: Boolean (True/False)
○ Description: When enabled, this setting allows you to set up alerts in TradingView that will trigger whenever a new bullish or bearish delta anomaly is detected.
✅ Best Use Cases
Early Trend Reversal / Continuation Detection: Identify strong surges of buying/selling pressure at key support/resistance levels that could indicate a reversal or the continuation of a strong move.
● Confirmation of Breakouts: Use high-confidence delta anomalies to confirm the validity of price breakouts, indicating strong conviction behind the move.
● Entry and Exit Points: Pinpoint precise entry opportunities when anomalies align with your trading strategy, or identify potential exhaustion signals for exiting trades.
● Scalping and Day Trading: The indicator’s sensitivity to intraday buying/selling imbalances makes it highly effective for short-term trading strategies.
● Market Sentiment Analysis: Gain a real-time understanding of underlying market sentiment by observing the prevalence and strength of bullish vs. bearish anomalies.
⚠️ Limitations
Estimated Delta: The script uses a simplified method to estimate delta based on bar close relative to its range, not actual order book or footprint data. While effective, it’s an approximation.
● Sensitivity to Z-Score Threshold: The effectiveness heavily relies on the `Delta Z-Score Anomaly Threshold`. Too low, and you’ll get many false positives; too high, and you might miss valid signals.
● Confirmation Criteria: The 4-star confidence level’s “confirmation” relies on specific subsequent bar conditions and previous confirmed signals, which might be too strict or specific for all contexts.
● Requires Context: While powerful, VFAS is best used in conjunction with other technical analysis tools and price action to form a comprehensive trading strategy. It is not a standalone “buy/sell” signal.
💡 What Makes This Unique
Statistical Rigor: The application of Z-score analysis to bar delta provides an objective, statistically-driven way to identify true anomalies, moving beyond arbitrary thresholds.
● Multi-Factor Confidence Scoring: The unique 1-4 star confidence system integrates multiple market dynamics (volume, trend alignment, specific follow-through) into a single, easy-to-interpret rating.
● User-Friendly Design: From the intuitive dashboard to the detailed signal tooltips, the indicator prioritizes clear and accessible information for traders of all experience levels.
🔬 How It Works
1. Bar Delta Calculation:
● The script first estimates the “buy volume” and “sell volume” for each bar. This is done by assuming that volume proportional to the distance from the low to the close represents buying, and volume proportional to the distance from the high to the close represents selling.
● How this contributes: This provides a proxy for the net buying or selling pressure (delta) within that specific price bar, even without access to actual footprint data.
2. Volume & Delta Z-Score Analysis:
● The average volume over a user-defined lookback period is calculated. Bars with volume less than twice this average are generally considered of lower interest.
● The Z-score for the calculated bar delta is computed. The Z-score measures how many standard deviations the current bar’s delta is from its average delta over the `Minimum Volume Lookback` period.
● How this contributes: A high positive Z-score indicates a bullish delta anomaly (significantly more buying than usual), while a high negative Z-score indicates a bearish delta anomaly (significantly more selling than usual). This identifies statistically unusual levels of pressure.
3. Trend Filtering (Optional):
● Two Exponential Moving Averages (Fast and Slow EMA) are used to determine the prevailing market trend. An uptrend is identified when the Fast EMA is above the Slow EMA, and a downtrend when the Fast EMA is below the Slow EMA.
● How this contributes: If enabled, the indicator will only display bullish delta anomalies during an uptrend and bearish delta anomalies during a downtrend, helping to confirm signals within the broader market context and avoid counter-trend signals.
4. Signal Generation & Confidence Scoring:
● When a delta Z-score exceeds the user-defined anomaly threshold, a signal is generated.
● This signal is then passed through a multi-factor confidence algorithm (`f_calculateConfidence`). It awards stars based on: high volume presence, alignment with the overall trend (if enabled), and a fourth star for very strong Z-scores (above 3.0) combined with specific follow-through candle patterns after a cooling-off period from a previous confirmed signal.
● How this contributes: Provides a qualitative rating (1-4 stars) for each anomaly, allowing traders to quickly assess the potential significance and reliability of the signal.
💡 Note:
The PhenLabs Volume Footprint Anomaly Scanner is a powerful analytical tool, but it’s crucial to understand that no indicator guarantees profit. Always backtest and forward-test the indicator settings on your chosen assets and timeframes. Consider integrating VFAS with your existing trading strategy, using its signals as confirmation for entries, exits, or trend bias. The Z-score threshold is highly customizable; lower values will yield more signals (including potential noise), while higher values will provide fewer but potentially higher-conviction signals. Adjust this parameter based on market volatility and your risk tolerance. Remember to combine statistical insights from VFAS with price action, support/resistance levels, and your overall market outlook for optimal results.
Futures Trade Entry Indicator (MTF)Work in Progress with the help of Claude. Not ready for active trading. Public for help improving. This will be a multi-timeframe futures trading indicator with supply/demand zones, Fair Value Gaps (FVGs), and sophisticated entry/exit logic.I've created a comprehensive Pine Script v6 indicator that matches all your specifications! Here's what the script includes:
## **Key Features Implemented:**
### **🔄 Multi-Timeframe Logic**
- **1H Chart Data**: Detects Supply Zones, Demand Zones, and Fair Value Gaps
- **Current Timeframe**: Monitors for re-entry and confirmation signals
### **📊 Zone Detection**
- **Supply Zones**: Identified using pivot highs with configurable strength
- **Demand Zones**: Identified using pivot lows with touch validation
- **Fair Value Gaps**: Both bullish and bearish FVGs detected automatically
- **Auto-Expiry**: Zones expire after 24 hours (configurable)
### **⚡ Entry Logic**
- **Dual Confirmation Required**:
- ✅ Engulfing candle pattern (bullish/bearish)
- ✅ Market structure shift (HH→LL or LL→HH)
- **Zone Re-entry**: Price must be within identified zones/FVGs
### **🎯 Probability System**
- **Smart Scoring**: Based on zone age, strength, and risk/reward ratio
- **Color-Coded**: Green (High), Yellow (Medium), Red (Low)
- **Real-time Calculation**: Updates with each potential entry
### **🎨 Visual Elements**
- **Colored Zones**: Supply (red), Demand (green), FVGs (blue/orange)
- **Entry Labels**: 🟩 LONG / 🟥 SHORT markers
- **Probability Labels**: Display confidence levels
- **Confirmation Shapes**: Triangle indicators for pattern completion
### **⚙️ Manual Controls**
All the requested toggles are available in the settings panel:
- Show/Hide Supply Zones
- Show/Hide Demand Zones
- Show/Hide FVGs
- Show/Hide Labels
- Show/Hide Probability
- Zone strength and expiry settings
- Custom colors for all elements
### **🔔 Alert System**
- Entry opportunity alerts
- Includes probability assessment
- Ticker symbol identification
## **Usage Instructions:**
1. **Apply to 15m chart** for active trading signals
2. **Configure settings** based on your preferences
3. **Set up alerts** for automated notifications
4. **Monitor probability levels** for trade quality assessment
The script automatically handles the complex multi-timeframe analysis while keeping the interface clean and user-friendly. All zones update dynamically and expire appropriately to avoid clutter.
Would you like me to adjust any specific parameters or add additional features?
Multi-Timeframe TrendBelow is a PineScript that calculates the trend for multiple timeframes (5 minutes, 15 minutes, 1 hour, 4 hours, and daily) using the Relative Strength Index (RSI) and Moving Averages (MA) to determine bullish, bearish, or neutral trends. The script displays the trend information on the TradingView chart using a table.
Kalman VWMA For LoopKalman VWMA For Loop Indicator
The Kalman VWMA For Loop indicator is a sophisticated tool designed to smooth price data using a Kalman filter applied to a Volume Weighted Moving Average (VWMA). By combining the VWMA’s volume-weighted price sensitivity with the adaptive noise reduction of a Kalman filter, this indicator provides traders with a robust momentum and trend-following signal. The indicator includes a customizable for-loop mechanism to potentially iterate over a range of calculations or parameters, enhancing flexibility for advanced trading strategies. Visual outputs are plotted to help traders identify trends and potential trading opportunities with reduced noise.
How It Works
VWMA Calculations
Volume Weighted Moving Average (VWMA): Computes a VWMA based on a user-selected price source (default: Close) over a configurable period (default: 14). The VWMA weights price data by trading volume, providing a more accurate representation of market activity compared to a simple moving average.
Kalman Filter Calculation
Kalman Filter: Applies a Kalman filter to the price source to smooth price movements and reduce noise.
The filter uses:
Process Noise: Controls the adaptability of the filter to price changes (default: 0.01).
Measurement Noise: Adjusts sensitivity to price fluctuations (default: 3).
Filter Order (N): Defines the number of states in the Kalman filter (default: 3), allowing for multi-state modeling of price dynamics.
The Kalman filter iteratively predicts and updates the price estimate using state estimates and error covariances stored in arrays. This process minimizes noise while preserving significant price trends.
For-Loop Mechanism
The script includes a for-loop structure with user-defined parameters (from and to_, defaulting to 1 and 25, respectively). While the provided code does not fully implement the for-loop’s functionality, it is intended to allow iterative calculations or parameter sweeps, such as testing multiple periods or thresholds within the specified range. This feature enhances the indicator’s flexibility for optimization or multi-scenario analysis.
Visual Representations
The indicator plots the VWMA as a red line on the chart, providing a clear visual reference for the volume-weighted trend.
The Kalman-filtered price is calculated but not plotted in the provided code. When plotted, it would appear as a smoothed price line, highlighting the underlying trend with reduced noise.
The for-loop parameters suggest potential for additional visual outputs (e.g., multiple VWMA lines or signals) if fully implemented, but the current script only plots the VWMA.
Customization & Parameters
The Kalman VWMA For Loop indicator offers flexible parameters to suit various trading styles:
Moving Average Parameters:
Price Source: Select the input price (default: Close; options: Close, High, Low, Open).
MA Period: Adjust the VWMA calculation period (default: 14).
Kalman Parameters:
Process Noise: Adjusts the filter’s adaptability to price changes (default: 0.01).
Measurement Noise: Controls sensitivity to price fluctuations (default: 3).
Filter Order (N): Sets the number of states for the Kalman filter (default: 3).
For-Loop Parameters:
From: Starting value for the for-loop (default: 1).
To: Ending value for the for-loop (default: 25).
Color Settings: The VWMA is plotted in red, with potential for additional customizable colors if the for-loop is expanded to plot multiple outputs.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies:
Trend Following:
Use the Kalman-filtered price and VWMA to identify the direction and strength of trends, with the smoothed output reducing false signals in volatile markets.
Momentum Trading: The VWMA highlights volume-driven price movements, allowing traders to enter or exit based on momentum shifts.
Parameter Optimization: The for-loop structure (if fully implemented) enables testing multiple VWMA periods or Kalman parameters, aiding in strategy optimization.
Scalping and Swing Trading: Adjust the MA period and Kalman parameters to suit short-term (scalping) or longer-term (swing trading) strategies.
Final Note
The Kalman VWMA For Loop indicator is a powerful tool for traders seeking to combine volume-weighted price analysis with advanced noise reduction via a Kalman filter. Its customizable parameters and potential for iterative calculations through the for-loop make it adaptable to various trading styles. While the for-loop functionality is not fully implemented in the provided code, completing it could enable dynamic parameter testing or signal generation. As with all indicators, backtest thoroughly and integrate into a comprehensive trading strategy for optimal results.
Corys Buy and SellThe Cory’s Buy and Sell indicator is an advanced, all-in-one trading toolkit that combines dynamic trend detection, volatility breakout alerts, and visual EMA strength to help traders confidently identify high-probability buy and sell opportunities.
🔍 Key Features:
Adaptive Supertrend Engine
Powered by a modified Keltner Channel, this trend-following algorithm generates timely BUY 🚀 and SELL 😡 signals based on market momentum and volatility, with adjustable sensitivity and factor settings for full control.
EMA Energy Bands (Optional)
A cascade of 15 EMAs (from 9 to 51 periods) visually maps market energy. Colours shift from green (bullish) to red (bearish), showing short- to medium-term trend strength at a glance.
Trend Catcher Overlay
Highlights major shifts in trend using a fast/slow EMA crossover (10 vs 20 EMA). Bars are coloured to reflect bullish reversals for added confidence.
Pullback Signal Detection
Identifies bullish pullback opportunities when price reclaims key EMA levels after a crossover, marked with a green triangle for entry timing.
Built-in Range Detection System
Automatically highlights price consolidation zones using ATR-based logic. When price breaks above or below the detected range, the zone changes colour (green for breakout up, red for breakdown), helping traders spot breakout opportunities.
Smart Labels & Alerts
Instant BUY/SELL labels on the chart and built-in alert conditions make this indicator suitable for both discretionary and automated trading strategies.
⚙️ Customisable Inputs:
Sensitivity (for trend signals)
EMA Energy toggle
Keltner & ATR Lengths
Range Detection parameters and styling
Best For: Trend traders, breakout traders, and swing traders looking for a clean, powerful overlay that combines momentum, structure, and volatility in one tool.
NY/LDN/TOK Stock Exchange Opening HoursThis indicator displays vertical dotted lines marking the exact opening times of the three major global stock exchanges: New York (NYSE), London (LSE), and Tokyo (TSE). Perfect for traders who need to track market opening sessions across different time zones.
Features:
New York Stock Exchange (NYSE): 9:30 AM EST/EDT
London Stock Exchange (LSE): 8:00 AM GMT/BST
Tokyo Stock Exchange (TSE): 9:00 AM JST
Key Highlights:
✓ Automatic daylight saving time adjustments for NY and London
✓ Individual color customization for each market
✓ Toggle on/off functionality for each exchange
✓ Clean vertical dotted lines (1-pixel width) that extend across the entire chart
✓ Interactive legend in bottom-right corner showing active markets
✓ Weekdays only (Monday-Friday) - no weekend lines
✓ Uses official local time zones for accurate timing
Customizable Settings:
Enable/disable individual exchanges
Custom color selection for each market line
Dynamic legend that shows only enabled markets
Time Zone Handling:
The indicator automatically handles daylight saving time transitions using official time zones:
America/New_York (EST/EDT)
Europe/London (GMT/BST)
Asia/Tokyo (JST - no DST)
Perfect for:
Multi-market traders
Session overlap analysis
Global market timing coordination
Institutional trading schedules
Simply add to your chart and customize colors/visibility in the indicator settings. The legend will automatically update to show your active markets in their respective colors.
Volume in ₹ (Total Traded Value in Crores)vikram dayal volume chart with total traded value in crores
Smart Elliott Wave [The_lurker]🔷 Smart Elliott Wave – موجات إليوت الذكية
A professional indicator for automatically detecting and analyzing Elliott Wave patterns on the chart. Built on classical Elliott Wave theory, it enhances accuracy with dynamic Fibonacci validation and geometric logic—solving the most common issues traders face when applying Elliott Wave manually: complexity, subjectivity, and misinterpretation of corrections.
🎯 Key Features
Smart Elliott Wave offers a layered intelligent system that:
- Automatically detects impulsive and corrective wave structures
- Validates wave formations using Fibonacci rules
- Highlights potential reversal zones (PRZ)
- Sends instant alerts for newly detected patterns
- Supports both bullish and bearish trends
- Includes fully customizable user settings
🧠 Core Concept
The indicator analyzes price movement over time using pivot points (discovered via `ta.pivothigh` and `ta.pivotlow`) to detect wave structures that conform to Elliott Wave sequencing:
- Impulse Wave: 0-1-2-3-4-5
- Simple Correction: ABC
- Complex Correction: WXY
Each structure is validated through a strict set of logical rules combined with Fibonacci ratio checks to ensure pattern integrity and reduce false signals.
🧩 Wave Structure Components
1️⃣ Impulse Waves
- Wave 3 is not the shortest
- Wave 4 does not overlap Wave 1
- Waves 1, 3, and 5 are impulsive; Waves 2 and 4 are corrective
- Fibonacci validation can be applied to Waves 2 and 4 if enabled
2️⃣ Simple Corrections (ABC)
- Wave B partially retraces Wave A
- Wave C completes the structure without invalid overlap
- Fibonacci ratios validate the symmetry of A, B, and C (if enabled)
3️⃣ Complex Corrections (WXY)
- Only used if ABC structure is insufficient
- Requires 6 sequential pivot points: W, X, Y
- W and Y are corrective; X is a linking wave
- Follows both structural and ratio-based validations
📏 Dynamic Fibonacci Validation
When Enable Fibonacci Rules is active:
- Validates against common ratios:
`38.2%`, `50%`, `61.8%`, `78.6%`, `127.2%`, `161.8%`
- Adjustable **Fibonacci Tolerance** allows for controlled deviation
- Patterns are ignored if ratios fall outside the accepted range
🔮 Potential Reversal Zones (PRZ)
- Calculated from the most recent completed impulse wave
- Uses Fibonacci extensions to project PRZ ahead of price
- Customizable visibility and color for each ratio
- Used as dynamic take-profit or stop-loss zones
🖍️ Dual Trend Detection & Wave Coloring
- Supports both bullish and bearish patterns
- Automatic wave coloring for quick visual recognition:
- 🟦 Blue: Bullish waves
- 🟥 Red: Bearish waves
- Optional fill color for correction zones
🔔 Smart Alert System
Instant alerts are triggered when a valid wave pattern is confirmed:
- New impulse wave detected
- ABC correction appears
- Complex WXY correction formed
> Alerts are triggered only after the bar closes to prevent repainting.
⚙️ Indicator Settings
📌 Wave Detection Settings
- Pivot Left Strength: Bars to the left used for pivot detection
- Pivot Right Strength: Bars to the right for confirmation (0 = real-time)
- Enable Fibonacci Rules: Toggle Fibonacci ratio validation
- Fibonacci Tolerance: Allowed deviation in percentage
🎨 Display Settings
- Show Previous Patterns: Toggle between all patterns or only the latest
- Fill correction zones with color
- Customize wave and PRZ color schemes
📉 PRZ Settings
- Show/hide specific Fibonacci ratios
- Customize each PRZ color
- Set maximum bar extension for PRZ display
🔕 Alert Settings
- Enable or disable alerts for each type of pattern
📚 Practical Use Cases
- Daily or intraday price structure analysis
- Combine with RSI, MACD, or momentum indicators
- Filter weak signals using Fibonacci-based pattern validation
- Use PRZ zones as dynamic entry/exit targets
- Learn and reinforce Elliott Wave theory through real-time examples
📝 Important Notes
- Setting `Pivot Right = 0` allows for real-time pattern previews (may repaint)
- Disabling Fibonacci validation increases pattern count but reduces accuracy
- TradingView limits to 500 visual objects (labels, boxes, lines); older patterns may be removed
- PRZ extends up to 100 bars or 0.618 of the previous impulse duration by default
⚠️ Disclaimer:
This indicator is for educational and analytical purposes only. It does not constitute financial, investment, or trading advice. Use it in conjunction with your own strategy and risk management. Neither TradingView nor the developer is liable for any financial decisions or losses.
🔷 Smart Elliott Wave – موجات إليوت الذكية
مؤشر احترافي لرصد وتحليل أنماط موجات إليوت تلقائيًا على الرسم البياني، يعتمد على المبادئ الكلاسيكية للنظرية مع تعزيزها بالتحقق الرياضي والهندسي، ويهدف إلى تجاوز العقبات التي يواجهها معظم المتداولين عند تطبيق موجات إليوت يدويًا، مثل صعوبة التحديد، التقديرات الذاتية، وتشويش التصحيحات.
🎯 ما الذي يميز هذا المؤشر؟
يُقدّم Smart Elliott Wave نظامًا تراكبيًا ذكيًا يقوم بـ:
رصد تلقائي للموجات (الدافعة والتصحيحية)
التحقق من صحة النموذج باستخدام قواعد فيبوناتشي
عرض مناطق الانعكاس المحتملة (PRZ)
توليد تنبيهات لحظية عند تشكّل أنماط جديدة
دعم الاتجاهين (الصاعد والهابط)
واجهة إعدادات مرنة قابلة للتخصيص الكامل
🧠 الفكرة الأساسية
يعتمد المؤشر على تحليل حركة السعر عبر تسلسل زمني من النقاط المحورية (Pivots)، والتي تُكتشف باستخدام دوال مدمجة مثل ta.pivothigh وta.pivotlow. ثم يُبني فوق هذه النقاط نماذج هندسية متوافقة مع تسلسل موجات إليوت:
الموجة الدافعة (Impulse): تسلسل 0-1-2-3-4-5
التصحيح البسيط (ABC)
التصحيح المعقد (WXY)
ويتم التحقق من كل نموذج اعتمادًا على قواعد إليوت + نسب فيبوناتشي، ما يضمن موضوعية التصنيف، ودقة التحديد.
🧩 مكوّنات التحليل:
1️⃣ الموجات الدافعة (Impulse Waves):
يُشترط أن تكون الموجة الثالثة غير الأقصر.
لا تتداخل الموجة الرابعة مع نطاق الموجة الأولى.
تأكيد أن الموجات 1 و3 و5 دافعة، و2 و4 تصحيحية.
يتم التحقق من نسب تصحيح الموجتين 2 و4 حسب قواعد فيبوناتشي عند تفعيلها.
2️⃣ التصحيح البسيط (ABC):
B تصحيح جزئي للموجة A.
C تُكمل الهيكل بدون تداخل مع A.
يتم التحقق من أطوال الموجات وفق نسب فيبوناتشي لضمان التناسق.
3️⃣ التصحيح المعقد (WXY):
لا يتم تفعيله إلا عند فشل ABC في تفسير النمط.
يتطلب 6 نقاط محورية متسلسلة: W, X, Y.
W وY تصحيحيتان، وX رابط مركزي.
يخضع أيضًا لقواعد النسب والتماثل البنائي.
📏 التحقق باستخدام نسب فيبوناتشي:
عند تفعيل خاصية Enable Fibonacci Rules، يتم التحقق الصارم من نسب تصحيح الموجات:
النسب المعتمدة:
38.2%, 50%, 61.8%, 78.6%, 127.2%, 161.8%
إذا لم تكن الموجة ضمن نطاق النسبة + نسبة التسامح (Tolerance)، يتم تجاهل النموذج.
يُستخدم هذا التحقق أيضًا لرسم مناطق الانعكاس المحتملة (PRZ).
🔮 مناطق الانعكاس المحتملة (PRZ)
تُحسب PRZ باستخدام نسب فيبوناتشي انطلاقًا من نهاية آخر موجة دافعة.
تُعرض بشكل مستطيلات شفافة أو ملونة.
يمكن تخصيص كل نسبة لونًا وشكلًا خاصًا.
تُستخدم PRZ كأداة توقع للموجة التالية أو لتحديد أهداف وقف الخسارة وجني الأرباح ديناميكيًا.
🖍️ دعم الاتجاهين وتلوين الموجات:
يدعم المؤشر النماذج الصاعدة والهابطة بشكل تلقائي.
يتم استخدام تلوين بصري لتسهيل التمييز:
الأزرق: للموجات الصاعدة
الأحمر: للموجات الهابطة
لون تعبئة مخصص لمناطق التصحيح
🔔 نظام التنبيهات الذكية
يحتوي المؤشر على تنبيهات تلقائية يتم تفعيلها عند اكتمال أي نمط جديد.
يدعم التنبيهات التالية:
موجة دافعة جديدة
تصحيح بسيط ABC
تصحيح معقد WXY
التنبيهات تُطلق بعد إغلاق الشمعة التي تحقق فيها النموذج (غير فوري Repainting-safe)
⚙️ إعدادات المؤشر
📌 إعدادات تحليل الموجة:
Pivot Left Strength: عدد الأعمدة (bars) إلى اليسار لتحديد الانعكاس
Pivot Right Strength: الأعمدة إلى اليمين لتأكيد الانعكاس (0 يعني تنبؤ لحظي)
Enable Fibonacci Rules: تفعيل/تعطيل التحقق من فيبوناتشي
Fibonacci Tolerance: نسبة التفاوت المقبولة بالنسب المئوية
🎨 إعدادات العرض:
Show Previous Patterns: إظهار كل الأنماط المكتشفة أو آخر نمط فقط
PRZ Settings:
إظهار أو إخفاء نسب معينة
تخصيص الألوان
تحديد امتداد مربع PRZ زمنيًا (Max Bars)
🔕 إعدادات التنبيهات:
تفعيل/تعطيل تنبيه عند كل نمط جديد
📚 حالات الاستخدام العملية:
تحليل الحركة السعرية في بداية كل جلسة
دمج المؤشر مع أدوات مثل RSI أو MACD للحصول على إشارات مركّبة
مراقبة الموجات التوسعية والتصحيحية على فواصل 4H / Daily
استخدام PRZ كأداة لتحديد الأهداف أو وقف الخسارة
التعلم العملي لنظرية إليوت من خلال أمثلة حية
📝 ملاحظات مهمة:
تعيين Pivot Right = 0 يعني نقاط فورية (قد يعاد رسمها لاحقًا)
تعطيل فيبوناتشي يزيد عدد النماذج، لكن قد يُضعف دقتها
TradingView يحد عدد الكائنات المرسومة (Labels, Boxes, Lines) إلى 500، مما قد يؤدي إلى حذف الأنماط الأقدم تلقائيًا
PRZ يمتد افتراضيًا حتى 100 شمعة، أو 0.618 من مدة الموجة الدافعة السابقة
⚠️ إخلاء مسؤولية:
هذا المؤشر لأغراض تعليمية وتحليلية فقط. لا يُمثل نصيحة مالية أو استثمارية أو تداولية. استخدمه بالتزامن مع استراتيجيتك الخاصة وإدارة المخاطر. لا يتحمل TradingView ولا المطور مسؤولية أي قرارات مالية أو خسائر.
Advanced DMA Pattern Detection SystemAdvanced DMA Pattern Detection System with Smart Intelligence
Professional-grade moving average indicator that combines traditional DMA analysis with advanced pattern recognition and probabilistic forecasting.
Core Features:
6 Key DMAs (5, 10, 20, 50, 100, 200) with descriptive labels showing trading purpose
Advanced Pattern Recognition - Detects Institutional Accumulation, Distribution Phases, Bull/Bear Transitions, and Choppy Markets
Probability Engine - Assigns confidence scores (0-100%) with Low/Medium/High classifications
Historical Validation - Tracks success rate of last 20 pattern signals for real performance data
Smart Alert System - Only triggers on significant pattern changes (20%+ probability shifts)
Dual Display System:
Movable Information Table - Shows current pattern, probability, confidence level, success rate, and recommended action
Chart Alerts & Background Colors - Visual confirmation of high-confidence setups (80%+ patterns)
Traditional DMA Labels - Clear identification of each average's trading significance
Complete Customization:
Master on/off controls for entire system
Individual toggles for all components (DMAs, table, alerts, colors)
Adjustable alert sensitivity (Conservative/Medium/Aggressive)
6 table positions to fit any chart layout
Perfect For: Swing traders, position traders, and anyone wanting systematic trend analysis with quantified probability scores rather than subjective interpretation.
Bottom Line: Transforms basic moving averages into an intelligent trading system that tells you exactly what the market structure means and what to do about it.
Common DMAs with LabelsHere's a short description for publishing:
Common Daily Moving Averages (DMA) Indicator with Smart Labels
Displays the most widely-used moving averages that professional traders watch: 5, 10, 20, 50, 100, and 200 DMAs with clear color-coding and descriptive labels.
Key Features:
Smart Labels - Each DMA shows its trading purpose (Day Trading, Swing Trading, Bull/Bear Line, etc.)
Customizable Display - Toggle any DMA on/off individually
Golden/Death Cross Alerts - Optional 50/200 crossover signals
Live Status Table - Shows current DMA values vs price with up/down arrows
Professional Styling - Color-coded lines with appropriate thickness (200 DMA emphasized)
Perfect for:
Multi-timeframe trend analysis
Support/resistance identification
Bull/bear market confirmation
Entry/exit timing
Usage: Add to chart, customize which DMAs to display in settings. Labels appear on the right showing each average's trading significance. Enable the status table for quick price-vs-DMA reference.
Ideal for both beginners learning key moving averages and experienced traders wanting a clean, informative DMA setup.
SMC Core Concepts TradingNexus (BOS, CHoCH, FVG, OB) - Stage 1🔍 SMC Core Concepts TradingNexus – Stage 1 (BOS, CHoCH, FVG, OB)
Smart Money Concepts made visual and accessible.
This indicator helps traders identify key institutional structures such as Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), and Order Blocks (OB) – all automatically detected and visualized on the chart.
✅ Features in Stage 1:
🔹 BOS Detection – Detects bullish and bearish structure breaks based on swing points
🔹 CHoCH Identification – Spots potential change of character after a trend
🔹 Fair Value Gap Zones – Highlights imbalances between candles
🔹 Order Block Zones – Detects key OB zones before strong price moves
🔹 Smart Auto-Cleanup – Automatically removes old boxes to optimize performance
🔹 User Inputs – Configure swing sensitivity and toggle each feature
🧠 Built for Traders Seeking Clarity
This script is ideal for SMC traders who want clear structure-based setups without drawing everything manually. Designed for both scalpers and swing traders who follow institutional logic.
🚀 Stage 2 (Coming Soon):
Liquidity zones (EQH/EQL)
Internal vs. external BOS
Mitigation blocks
Bias detection
Buy/Sell signal system
Smart SL/TP zones
Alerts system
👤 Created by TradingNexus
💬 Open-source & community-driven. Feel free to fork, contribute, or suggest improvements.
xGhozt Pattern StatisticsUnlock the power of candlestick patterns with this comprehensive indicator. It automatically identifies and calculates the historical statistics of popular formations like Large Green/Red, Hammer, Doji, Bullish/Bearish Engulfing patterns.
An insights into each pattern's probability of an 'Up', 'Down', or 'Flat' outcome on the **next bar** and over a user-defined **N subsequent bars**. All statistics are presented in a customizable, interactive table directly on your chart, highlighting the most frequent outcomes. Visual markers are plotted to help you spot patterns instantly.
Impulse Alert - Supply (Sell) [Fixed]🟥 Supply Zone (Sell) – Institutional Order Block Detector
This custom indicator automatically detects valid Supply Zones (Sell Zones) based on Smart Money Concepts and institutional trading behavior.
🔍 How It Works:
Identifies strong bearish impulsive moves after price forms a potential Order Block
Valid supply zones are plotted after:
A valid rally–base–drop or drop–base–drop structure
A shift in structure or clear imbalance is detected
The zone is created from the last bullish candle before a strong bearish engulfing move
Zones remain on chart until price revisits and reacts
📊 Use Case:
Ideal for traders using Smart Money Concepts (SMC), Supply & Demand, or ICT-inspired strategies
Perfect for scalping, day trading, or swing setups
Designed for confluence with HTF bias and LTF execution
⚙️ Features:
Supply Zone auto-plotting
Customizable zone color and opacity
Alerts when price returns to the zone (retest entry opportunity)
🧠 Tip for Best Use:
Use in confluence with:
HTF Supply zones (manual or other indicator)
Market Structure breaks
Fair Value Gaps or Imbalance zones
Strong impulsive moves from HTF to LTF
🔁 Future Additions (Coming Soon):
Demand Zone detection
Zone strength rating system
Refined zone filters (volume, candle size, etc.)
Alerts for mitigation or invalidation
📌 Created by: Rohit Jadhav | Real-time market trader | YT/Insta - @GrowthByTrading
💬 Feedback? Drop a comment or connect via profile for updates and tutorials!
🌊 Reinhart-Rogoff Financial Instability Index (RR-FII)Overview
The Reinhart-Rogoff Financial Instability Index (RR-FII) is a multi-factor indicator that consolidates historical crisis patterns into a single risk score ranging from 0 to 100. Drawing from the extensive research in "This Time is Different: Eight Centuries of Financial Crises" by Carmen M. Reinhart and Kenneth S. Rogoff, the RR-FII translates nearly a millennium of crisis data into practical insights for financial markets.
What It Does
The RR-FII acts like a real-time financial weather forecast by tracking four key stress indicators that historically signal the build-up to major financial crises. Unlike traditional indicators based only on price, it takes a broader view, examining the global market's interconnected conditions to provide a holistic assessment of systemic risk.
The Four Crisis Components
- Capital Flow Stress (Default weight: 25%)
- Data analyzed: Volatility (ATR) and price movements of the selected asset.
- Detects abrupt volatility surges or sharp price falls, which often precede debt defaults due to sudden stops in capital inflow.
- Commodity Cycle (Default weight: 20%)
- Data analyzed: US crude oil prices (customizable).
- Watches for significant declines from recent highs, since commodity price troughs often signal looming crises in emerging markets.
- Currency Crisis (Default weight: 30%)
- Data analyzed: US Dollar Index (DXY, customizable).
- Flags if the currency depreciates by more than 15% in a year, aligning with historical criteria for currency crashes linked to defaults.
- Banking Sector Health (Default weight: 25%)
- Data analyzed: Performance of financial sector ETFs (e.g., XLF) relative to broad market benchmarks (SPY).
- Monitors for underperformance in the financial sector, a strong indicator of broader financial instability.
Risk Scale Interpretation
- 0-20: Safe – Low systemic risk, normal conditions.
- 20-40: Moderate – Some signs of stress, increased caution advised.
- 40-60: Elevated – Multiple risk factors, consider adjusting positions.
- 60-80: High – Significant probability of crisis, implement strong risk controls.
- 80-100: Critical – Several crisis indicators active, exercise maximum caution.
Visual Features
- The main risk line changes color with increasing risk.
- Background colors show different risk zones for quick reference.
- Option to view individual component scores.
- A real-time status table summarizes all component readings.
- Crisis event markers appear when thresholds are breached.
- Customizable alerts notify users of changing risk levels.
How to Use
- Apply as an overlay for broad risk management at the portfolio level.
- Adjust position sizes inversely to the crisis index score.
- Use high index readings as a warning to increase vigilance or reduce exposure.
- Set up alerts for changes in risk levels.
- Analyze using various timeframes; daily and weekly charts yield the best macro insights.
Customizable Settings
- Change the weighting of each crisis factor.
- Switch commodity, currency, banking sector, and benchmark symbols for customized views or regional focus.
- Adjust thresholds and visual settings to match individual risk preferences.
Academic Foundation
Rooted in rigorous analysis of 66 countries and 800 years of data, the RR-FII uses empirically validated relationships and thresholds to assess systemic risk. The indicator embodies key findings: financial crises often follow established patterns, different types of crises frequently coincide, and clear quantitative signals often precede major events.
Best Practices
- Use RR-FII as part of a comprehensive risk management strategy, not as a standalone trading signal.
- Combine with fundamental analysis for complete market insight.
- Monitor for differences between component readings and the overall index.
- Favor higher timeframes for a broader macro view.
- Adjust component importance to suit specific market interests.
Important Disclaimers
- RR-FII assesses risk using patterns from past crises but does not predict future events.
- Historical performance is not a guarantee of future results.
- Always employ proper risk management.
- Consider this tool as one element in a broader analytical toolkit.
- Even with high risk readings, markets may not react immediately.
Technical Requirements
- Compatible with Pine Script v6, suitable for all timeframes and symbols.
- Pulls data automatically for USOIL, DXY, XLF, and SPY.
- Operates without repainting, using only confirmed data.
The RR-FII condenses centuries of financial crisis knowledge into a modern risk management tool, equipping investors and traders with a deeper understanding of when systemic risks are most pronounced.