Luxmi AI Directional Option Buying (Long Only)Introduction:
"Option premium charts typically exhibit a predisposition towards bearish sentiment in higher timeframes"
In the dynamic world of options trading, navigating through the complexities of market trends and price movements is essential for making informed decisions. Among the arsenal of tools available to traders, option premium charts stand out as a pivotal source of insight, particularly in higher timeframes. However, their inherent bearish inclination in such timeframes necessitates a keen eye for identifying bullish pullbacks, especially in lower timeframes, to optimize buying strategies effectively.
Understanding the interplay between different data points becomes paramount in this endeavor. Traders embark on a journey of analysis, delving into metrics such as Implementation Shortfall, the performance of underlying index constituents, and bullish trends observed in lower timeframes like the 1-minute and 3-minute charts. These data points serve as guiding beacons, illuminating potential opportunities amidst the market's ever-shifting landscape.
Using this indicator, we will dissect the significance of option premium charts and their nuanced portrayal of market sentiment. Furthermore, we will unveil the art of discerning bullish pullbacks in lower timeframes, leveraging a multifaceted approach that amalgamates quantitative analysis with qualitative insights. Through this holistic perspective, traders can refine their decision-making processes, striving towards efficiency and efficacy in their options trading endeavors.
Major Features:
Implementation Shortfall (IS) Candles:
Working Principle:
TWAP (Time-Weighted Average Price) and EMA (Exponential Moving Average) are both commonly used in calculating Implementation Shortfall, a metric that measures the difference between the actual execution price of a trade and the benchmark price.
TWAP calculates the average price of a security over a specified time period, giving equal weight to each interval. On the other hand, EMA places more weight on recent prices, making it more responsive to current market conditions.
To calculate Implementation Shortfall using TWAP, the difference between the average execution price and the benchmark price is determined over the trading period. Similarly, with EMA, the difference is calculated using the exponential moving average price instead of a simple average.
By employing TWAP and EMA, traders can gauge the effectiveness of their trading strategies and identify areas for improvement in executing trades relative to a benchmark.
Benefits of using Implementation Shortfall:
By visualizing the implementation shortfall and its comparison with the EMA on the chart, traders can quickly assess whether current trading activity is deviating from recent trends.
Green bars suggest potential buying opportunities or bullish sentiment, while red bars suggest potential selling opportunities or bearish sentiment.
Traders can use this visualization to make more informed decisions about their trading strategies, such as adjusting position sizes, entering or exiting trades, or managing risk based on the observed deviations from the moving average.
How to use this feature:
This feature calculates Implementation Shortfall (IS) and visually represents it by coloring the candles in either bullish (green) or bearish (red) hues. This color-coding system provides traders with a quick and intuitive way to assess market sentiment and potential entry points. Specifically, a long entry is signaled when both the candle color and the trend cloud color align as green, indicating a bullish market outlook. This integrated approach enables traders to make informed decisions, leveraging IS insights alongside visual cues for more effective trading strategies.
Micro Trend Candles:
Working Principle:
This feature begins by initializing variables to determine trend channel width and track price movements. Average True Range (ATR) is then calculated to measure market volatility, influencing the channel's size. Highs and lows are identified within a specified range, and trends are assessed based on price breaches, with potential changes signaled accordingly. The price channel is continually updated to adapt to market shifts, and arrows are placed to indicate potential entry points. Colors are assigned to represent bullish and bearish trends, dynamically adjusting based on current market conditions. Finally, candles on the chart are colored to visually depict the identified micro trend, offering traders an intuitive way to interpret market sentiment and potential entry opportunities.
Benefits of using Micro Trend Candles:
Traders can use these identified micro trends to spot potential short-term trading opportunities. For example:
Trend Following: Traders may decide to enter trades aligned with the prevailing micro trend. If the candles are consistently colored in a certain direction, traders may consider entering positions in that direction.
Reversals: Conversely, if the script signals a potential reversal by changing the candle colors, traders may anticipate trend reversals and adjust their trading strategies accordingly. For instance, they might close existing positions or enter new positions in anticipation of a trend reversal.
It's important to note that these micro trends are short-term in nature and may not always align with broader market trends. Therefore, traders utilizing this script should consider their trading timeframes and adjust their strategies accordingly.
How to use this feature:
This feature assigns colors to candles to represent bullish and bearish trends, with adjustments made based on current market conditions. Green candles accompanied by a green trend cloud signal a potential long entry, while red candles suggest caution, indicating a bearish trend. This visual representation allows traders to interpret market sentiment intuitively, identifying optimal entry points and exercising caution during potential downtrends.
Scalping Candles (Inspired by Elliott Wave):
Working Principle:
This feature draws inspiration from the Elliot Wave method, utilizing technical analysis techniques to discern potential market trends and sentiment shifts. It begins by calculating the variance between two Exponential Moving Averages (EMAs) of closing prices, mimicking Elliot Wave's focus on wave and trend analysis. The shorter-term EMA captures immediate price momentum, while the longer-term EMA reflects broader market trends. A smoother Exponential Moving Average (EMA) line, derived from the difference between these EMAs, aids in identifying short-term trend shifts or momentum reversals.
Benefits of using Scalping Candles Inspired by Elliott Wave:
The Elliott Wave principle is a form of technical analysis that attempts to predict future price movements by identifying patterns in market charts. It suggests that markets move in repetitive waves or cycles, and traders can potentially profit by recognizing these patterns.
While this script does not explicitly analyze Elliot Wave patterns, it is inspired by the principle's emphasis on trend analysis and market sentiment. By calculating and visualizing the difference between EMAs and assigning colors to candles based on this analysis, the script aims to provide traders with insights into potential market sentiment shifts, which can align with the broader philosophy of Elliott Wave analysis.
How to use this feature:
Candlestick colors are assigned based on the relationship between the EMA line and the variance. When the variance is below or equal to the EMA line, candles are colored red, suggesting a bearish sentiment. Conversely, when the variance is above the EMA line, candles are tinted green, indicating a bullish outlook. Though not explicitly analyzing Elliot Wave patterns, the script aligns with its principles of trend analysis and market sentiment interpretation. By offering visual cues on sentiment shifts, it provides traders with insights into potential trading opportunities, echoing Elliot Wave's emphasis on pattern recognition and trend analysis.
Volume Candles:
Working Principle:
This feature introduces a custom volume calculation method tailored for bullish and bearish bars, enabling a granular analysis of volume dynamics specific to different price movements. By summing volumes over specified periods for bullish and bearish bars, traders gain insights into the intensity of buying and selling pressures during these periods, facilitating a deeper understanding of market sentiment. Subsequently, the script computes the net volume, revealing the overall balance between buying and selling pressures. Positive net volume signifies prevailing bullish sentiment, while negative net volume indicates bearish sentiment.
Benefits of Using Volume candles:
Enhanced Volume Analysis: Traders gain a deeper understanding of volume dynamics specific to bullish and bearish price movements, allowing them to assess the intensity of buying and selling pressures with greater precision.
Insight into Market Sentiment: By computing net volume and analyzing its relationship with the Exponential Moving Average (EMA), traders obtain valuable insights into prevailing market sentiment. This helps in identifying potential shifts in sentiment and anticipating market movements.
Visual Representation of Sentiment: The color-coded candle bodies based on volume dynamics provide traders with a visual representation of market sentiment. This intuitive visualization helps in quickly interpreting sentiment shifts and making timely trading decisions.
How to use this feature:
This visual representation allows traders to quickly interpret market sentiment based on volume dynamics. Green candles indicate potential bullish sentiment, while red candles suggest bearish sentiment. The color-coded candle bodies help traders identify shifts in market sentiment and make informed trading decisions.
Smart Sentimeter Candles:
Working Principle:
The "Smart Sentimeter Candles" feature is a tool designed for market sentiment analysis using technical indicators. It begins by defining stock symbols from various sectors, allowing traders to select specific indices for sentiment analysis. The script then calculates the difference between two Exponential Moving Averages (EMAs) of the High-Low midpoint, capturing short-term momentum changes in the market. It computes the difference between current and previous values to capture momentum shifts over time.
Additionally, it calculates the Exponential Moving Average (EMA) of this difference to provide a smoothed representation of the prevailing trend in market momentum. Another EMA of this difference is calculated to offer an alternative perspective on longer-term momentum trends. Bar colors are determined based on the difference between current and previous values, with bullish and bearish sentiment represented by custom colors. Finally, sentiment candles are visualized on the chart, providing traders with a clear representation of market sentiment changes.
Benefits of Using Sentimeter Candles:
By analyzing index constituents, traders gain insights into the individual stocks that collectively influence the index's performance. This understanding is crucial for trading options as it helps traders tailor their strategies to specific sectors or stocks within the index.
Sector-Specific Analysis: Traders can focus on specific sectors by selecting relevant indices for sentiment analysis.
Momentum Identification: The script identifies short-term momentum changes in the market, aiding traders in spotting potential trend reversals or continuations.
Clear Visualization: Sentiment candles visually represent market sentiment changes, making it easier for traders to interpret and act upon sentiment trends.
How to use this feature:
Select Indices: Toggle the inputs to choose which indices (e.g., NIFTY, BANKNIFTY, FINNIFTY) to analyze.
Interpret Sentiment Candles: Monitor the color of sentiment candles on the chart. Green candles indicate bullish sentiment, while red candles suggest bearish sentiment.
Observe Momentum Changes: Pay attention to momentum changes identified by the difference between EMAs and their respective EMAs. Increasing bullish momentum may present buying opportunities, while increasing bearish momentum could signal potential sell-offs.
Trend Cloud:
Working Principle:
The script utilizes the Relative Strength Index (RSI) to assess market momentum, identifying bullish and bearish phases based on RSI readings. It calculates two boolean variables, bullmove and bearmove, which signal shifts in momentum direction by considering changes in the Exponential Moving Average (EMA) of the closing price. When RSI indicates bullish momentum and the closing price's EMA exhibits positive changes, bullmove is triggered, signifying the start of a bullish phase. Conversely, when RSI suggests bearish momentum and the closing price's EMA shows negative changes, bearmove is activated, marking the beginning of a bearish phase. This systematic approach helps in understanding the current trend of the price. The script visually emphasizes these phases on the chart using plot shape markers, providing traders with clear indications of trend shifts.
Benefits of Using Trend Cloud:
Comprehensive Momentum Assessment: The script offers a holistic view of market momentum by incorporating RSI readings and changes in the closing price's EMA, enabling traders to identify both bullish and bearish phases effectively.
Structured Trend Recognition: With the calculation of boolean variables, the script provides a structured approach to recognizing shifts in momentum direction, enhancing traders' ability to interpret market dynamics.
Visual Clarity: Plotshape markers visually highlight the start and end of bullish and bearish phases on the chart, facilitating easy identification of trend shifts and helping traders to stay informed.
Prompt Response: Traders can promptly react to changing market conditions as the script triggers alerts when bullish or bearish phases begin, allowing them to seize potential trading opportunities swiftly.
Informed Decision-Making: By integrating various indicators and visual cues, the script enables traders to make well-informed decisions and adapt their strategies according to prevailing market sentiment, ultimately enhancing their trading performance.
How to use this feature:
The most effective way to maximize the benefits of this feature is to use it in conjunction with other key indicators and visual cues. By combining the color-coded clouds, which indicate bullish and bearish sentiment, with other features such as IS candles, microtrend candles, volume candles, and sentimeter candles, traders can gain a comprehensive understanding of market dynamics. For instance, aligning the color of the clouds with the trend direction indicated by IS candles, microtrend candles, and sentimeter candles can provide confirmation of trend strength or potential reversals.
Furthermore, traders can leverage the trend cloud as a trailing stop-loss tool for long entries, enhancing risk management strategies. By adjusting the stop-loss level based on the color of the cloud, traders can trail their positions to capture potential profits while minimizing losses. For long entries, maintaining the position as long as the cloud remains green can help traders stay aligned with the prevailing bullish sentiment. Conversely, a shift in color from green to red serves as a signal to exit the position, indicating a potential reversal in market sentiment and minimizing potential losses. This integration of the trend cloud as a trailing stop-loss mechanism adds an additional layer of risk management to trading strategies, increasing the likelihood of successful trades while reducing exposure to adverse market movements.
Moreover, the red cloud serves as an indicator of decay in option premiums and potential theta effect, particularly relevant for options traders. When the cloud turns red, it suggests a decline in option prices and an increase in theta decay, highlighting the importance of managing options positions accordingly. Traders may consider adjusting their options strategies, such as rolling positions or closing out contracts, to mitigate the impact of theta decay and preserve capital. By incorporating this insight into options pricing dynamics, traders can make more informed decisions about their options trades.
Scalping Opportunities (UpArrow and DownArrow):
Working Principle:
The feature calculates candlestick values based on the open, high, low, and close prices of each bar. By comparing these derived candlestick values, it determines whether the current candlestick is bullish or bearish. Additionally, it signals when there is a change in the color (bullish or bearish) of the derived candlesticks compared to the previous bar, enabling traders to identify potential shifts in market sentiment. This is a long only strategy, hence the signals are plotted only when the Trend Cloud is Green (Bullish).
Benefits of using UpArrow and DownArrow:
Clear Visualization: By employing color-coded candlesticks, the script offers traders a visually intuitive representation of market sentiment, enabling quick interpretation of prevailing conditions.
Signal Identification: Its capability to detect shifts in market sentiment serves as a valuable tool for identifying potential trading opportunities, facilitating timely decision-making and execution.
Long-Only Strategy: The script selectively plots signals only when the trend cloud is green, aligning with a bullish bias and enabling traders to focus on long positions during favorable market conditions.
Up arrows indicate potential long entry points, complementing the bullish bias of the trend cloud. Conversely, down arrows signify an active pullback in progress, signaling caution and prompting traders to refrain from entering long positions during such periods.
How to use this feature:
Confirmation: Confirm bullish market conditions with the Trend Cloud indicator. Ensure alignment between trend cloud signals, candlestick colors, and arrow indicators for confident trading decisions.
Entry Signals: Look for buy signals within a green trend cloud, indicated by bullish candlestick color changes and up arrows, suggesting potential long entry points aligned with the prevailing bullish sentiment.
Wait Signals: Exercise caution when encountering down arrows, which signify wait signals or active pullbacks in progress. Avoid entering long positions during these periods to avoid potential losses.
Exit Strategy: Use trend cloud color changes as signals to exit long positions. When the trend cloud shifts color, consider closing out long positions to lock in profits or minimize losses.
Profit Management: It's important to book or lock in some profits early on in option buying. Consider taking partial profits when the trade is in your favor and trail the remaining position to maximize gains on favorable trades.
Risk Management: Implement stop-loss orders or trailing stops to manage risk effectively. Exit positions promptly if sentiment shifts or if price movements deviate from the established trend, safeguarding capital.
Up and Down Signals:
Working Principle:
This feature calculates Trailing Stoploss (TSL) using the Average True Range (ATR) to dynamically adjust the stop level based on price movements. It generates buy signals when the price crosses above the trailing stop and sell signals when it crosses below. These signals are plotted on the chart and trigger alerts, signaling potential trading opportunities. Additionally, the script selectively plots Up and Down signals only when the Implementation Shortfall Calculation identifies scalp opportunities, independent of the prevailing price trend.
Benefits of using Up and Down Signals:
Trailing Stoploss: The script employs an ATR-based trailing stop, allowing traders to adjust stop levels dynamically in response to changing market conditions, thereby maximizing profit potential and minimizing losses.
Clear Signal Generation: Buy and sell signals are generated based on price interactions with the trailing stop, providing clear indications of entry and exit points for traders to act upon.
Alert Notifications: The script triggers alerts when buy or sell signals are generated, ensuring traders remain informed of potential trading opportunities even when not actively monitoring the charts.
Scalping Opportunities: By incorporating Implementation Shortfall Calculation, the script identifies scalp opportunities, enabling traders to capitalize on short-term price movements irrespective of the prevailing trend.
How to use this feature:
Signal Interpretation: Interpret Up signals as opportunities to enter long positions when the price crosses above the trailing stop, and Down signals as cues to exit.
Alert Monitoring: Pay attention to alert notifications triggered by the script, indicating potential trading opportunities based on signal generation.
Scalping Strategy: When Up and Down signals are plotted alongside scalp opportunities identified by the Implementation Shortfall Calculation, consider scalping trades aligned with these signals for short-term profit-taking, regardless of the overall market trend.
Consideration of Trend Cloud: Remember that this feature does not account for the underlying trend provided by the Trend Cloud feature. Consequently, the take profit levels generated by the trailing stop may be smaller than those derived from trend-following strategies. It's advisable to supplement this feature with additional trend analysis to optimize profit-taking levels and enhance overall trading performance.
Chart Timeframe Support and Resistance:
Working Principle:
This feature serves to identify and visualize support and resistance levels on the chart, primarily based on the chosen Chart Timeframe (CTF). It allows users to specify parameters such as the number of bars considered on the left and right sides of each pivot point, as well as line width and label color. Moreover, users have the option to enable or disable the display of these levels. By utilizing functions to calculate pivot highs and lows within the specified timeframe, the script determines the highest high and lowest low surrounding each pivot point.
Additionally, it defines functions to create lines and labels for each detected support and resistance level. Notably, this feature incorporates a trading method that emphasizes the concept of resistance turning into support after breakouts, thereby providing valuable insights for traders employing such strategies. These lines are drawn on the chart, with colors indicating whether the level is above or below the current close price, aiding traders in visualizing key levels and making informed trading decisions.
Benefits of Chart Timeframe Support and Resistance:
Identification of Price Levels: Support and resistance levels help traders identify significant price levels where buying (support) and selling (resistance) pressure may intensify. These levels are often formed based on historical price movements and are regarded as areas of interest for traders.
Decision Making: Support and resistance levels assist traders in making informed trading decisions. By observing price reactions near these levels, traders can gauge market sentiment and adjust their strategies accordingly. For example, traders may choose to enter or exit positions, set stop-loss orders, or take profit targets based on price behavior around these levels.
Risk Management: Support and resistance levels aid in risk management by providing reference points for setting stop-loss orders. Traders often place stop-loss orders below support levels for long positions and above resistance levels for short positions to limit potential losses if the market moves against them.
How to use this feature:
Planning Long Positions: When considering long positions, it's advantageous to strategize when the price is in proximity to a support level identified by the script. This suggests a potential area of buying interest where traders may expect a bounce or reversal in price. Additionally, confirm the bullish bias by ensuring that the trend cloud is green, indicating favorable market conditions for long trades.
Waiting for Breakout: If long signals are generated near resistance levels detected by the script, exercise patience and wait for a breakout above the resistance. A breakout above resistance signifies potential strength in the upward momentum and may present a more opportune moment to enter long positions. This approach aligns with trading methodologies that emphasize confirmation of bullish momentum before initiating trades.
Settings:
The Index Constituent Analysis setting empowers users to input the constituents of a specific index, facilitating the analysis of market sentiments based on the performance of these individual components. An index serves as a statistical measure of changes in a portfolio of securities representing a particular market or sector, with constituents representing the individual assets or securities comprising the index.
By providing the constituent list, users gain insights into market sentiments by observing how each constituent performs within the broader index. This analysis aids traders and investors in understanding the underlying dynamics driving the index's movements, identifying trends or anomalies, and making informed decisions regarding their investment strategies.
This setting empowers users to customize their analysis based on specific indexes relevant to their trading or investment objectives, whether tracking a benchmark index, sector-specific index, or custom index. Analyzing constituent performance offers a valuable tool for market assessment and decision-making.
Example: BankNifty Index and Its Constituents
Illustratively, the BankNifty index represents the performance of the banking sector in India and includes major banks and financial institutions listed on the National Stock Exchange of India (NSE). Prominent constituents of the BankNifty index include:
State Bank of India (SBIN)
HDFC Bank
ICICI Bank
Kotak Mahindra Bank
Axis Bank
IndusInd Bank
Punjab National Bank (PNB)
Yes Bank
Federal Bank
IDFC First Bank
By utilizing the Index Constituent Analysis setting and inputting these constituent stocks of the BankNifty index, traders and investors can assess the individual performance of these banking stocks within the broader banking sector index. This analysis enables them to gauge market sentiments, identify trends, and make well-informed decisions regarding their trading or investment strategies in the banking sector.
Example: NAS100 Index and Its Constituents
Similarly, the NAS100 index, known as the NASDAQ-100, tracks the performance of the largest non-financial companies listed on the NASDAQ stock exchange. Prominent constituents of the NAS100 index include technology and consumer discretionary stocks such as:
Apple Inc. (AAPL)
Microsoft Corporation (MSFT)
Amazon.com Inc. (AMZN)
Alphabet Inc. (GOOGL)
Facebook Inc. (FB)
Tesla Inc. (TSLA)
NVIDIA Corporation (NVDA)
PayPal Holdings Inc. (PYPL)
Netflix Inc. (NFLX)
Adobe Inc. (ADBE)
By inputting these constituent stocks of the NAS100 index into the Index Constituent Analysis setting, traders and investors can analyze the individual performance of these technology and consumer discretionary stocks within the broader NASDAQ-100 index. This analysis facilitates the evaluation of market sentiments, identification of trends, and informed decision-making regarding trading or investment strategies in the technology and consumer sectors.
Example: FTSE 100 Index and Its Constituents
The FTSE 100 index represents the performance of the 100 largest companies listed on the London Stock Exchange (LSE) by market capitalization. Some notable constituents of the FTSE 100 index include:
HSBC Holdings plc
BP plc
GlaxoSmithKline plc
Unilever plc
Royal Dutch Shell plc
AstraZeneca plc
Diageo plc
Rio Tinto plc
British American Tobacco plc
Reckitt Benckiser Group plc
By inputting these constituent stocks of the FTSE 100 index into the Index Constituent Analysis setting, traders and investors can analyze the individual performance of these diverse companies within the broader UK market index. This analysis facilitates the evaluation of market sentiments, identification of trends, and informed decision-making regarding trading or investment strategies in the UK market.
This comprehensive approach enables users to dissect index performance effectively, providing valuable insights for investors and traders across different markets and sectors.
Index Selection - Index Selection allows traders to specify the index for Sentimeter calculations, enabling customization for Call and Put Option charts corresponding to the chosen index.
Support and Resistance Levels - Set the left and right bars to consider pivot high and low to draw Support and resistance lines. Linewidth setting to help increase the width of the Support and Resistance lines. Label Color to change the color of the labels.
Style Section Colors to allow users to customize the color scheme to their liking.
Komut dosyalarını "scalping" için ara
AI Strat ATR Dinamico + ADX + Trend Adaptivo (No Repaint)Below is a fully self-contained, English-language description of every input, function, and logical block inside the “AI Strat ATR Dinamico + ADX + Trend Adaptivo (No Repaint)” indicator. You can copy and paste this into TradingView’s “Description” field when you publish, without exposing any Pine code.
---
## Indicator Name and Purpose
**Name (Short Title):**
AI Strat Adaptive v3 (NoRepaint)
**Overview:**
This indicator combines multiple technical tools—RSI, EMA, ATR (with a dynamic multiplier), ADX/DI, and an “AI‐style” scoring mechanism—to generate trend-filtered and reversal signals. It also optionally confirms signals on a higher timeframe, dynamically adjusts its sensitivity based on volatility, and plots intrabar stop‐loss (SL) and take‐profit (TP) levels derived from ATR. Special care has been taken to ensure that no signals “repaint” (i.e., once drawn on a closed bar, they never disappear or shift).
---
## 1. Main Inputs
All of the inputs appear in the Settings dialog for the published indicator. Below is a detailed explanation of each input, grouped by logical category.
### A. RSI & EMA Base Parameters
1. **RSI Length (Base)**
* **Input type:** Integer (default 14)
* **Description:** Number of bars used to calculate the Relative Strength Index (RSI). A shorter RSI reacts more quickly to price changes; a longer RSI is smoother.
2. **RSI Overbought Threshold**
* **Input type:** Integer (default 60)
* **Description:** If the RSI value rises above this level, it contributes a “sell” signal component. You can adjust this (e.g., 70) to make your system more conservative.
3. **RSI Oversold Threshold**
* **Input type:** Integer (default 40)
* **Description:** If the RSI falls below this level, it contributes a “buy” signal component. Raising this threshold (e.g., 50) makes the strategy more aggressive in seeking reversals.
4. **EMA Length (Base)**
* **Input type:** Integer (default 20)
* **Description:** Number of bars for the Exponential Moving Average (EMA). A shorter EMA will produce more frequent crossovers, a longer EMA is smoother.
### B. ATR & Volatility Filter Parameters
5. **ATR Length (Base)**
* **Input type:** Integer (default 14)
* **Description:** Number of bars to calculate Average True Range (ATR). The ATR is used both for measuring volatility and for dynamic SL/TP levels.
6. **ATR SMA Length**
* **Input type:** Integer (default 50)
* **Description:** Number of bars to compute a Simple Moving Average of the ATR itself. This gives a baseline of “normal” volatility. If ATR rises significantly above this SMA, the indicator treats the market as “high volatility.”
7. **ATR Multiplier Base**
* **Input type:** Float (default 1.2, step 0.1)
* **Description:** Base multiplier for ATR when filtering for volatility. The actual threshold is computed as `ATR_SMA × (ATR_Multiplier Base) × sqrt(current_ATR / ATR_SMA)`. In other words, the multiplier becomes larger if volatility is rising, and smaller if volatility is falling.
8. **Disable Volatility Filter**
* **Input type:** Boolean (default false)
* **Description:** If enabled (true), the indicator will ignore any volatility‐based filtering, using signals regardless of ATR behavior. If disabled (false), signals only fire when ATR > (ATR\_SMA × dynamic multiplier).
### C. Price-Change & “AI Score” Parameters
9. **Price Change Period (bars)**
* **Input type:** Integer (default 3)
* **Description:** The number of bars back to measure percentage price change. Used to ensure that a “trend” signal is accompanied by a sufficiently positive (for longs) or negative (for shorts) price movement over this many bars.
10. **Base AI Score Threshold**
* **Input type:** Float (default 0.1)
* **Description:** The indicator computes a composite “AI-style” score by combining the RSI signal (overbought/oversold) and an EMA crossover signal. Only if the absolute value of that composite score exceeds this threshold will a trend signal be eligible. Raising it makes signals rarer but (potentially) higher-conviction.
### D. SMA “ICT” Trend Filter Parameters
11. **ICT SMA Long Length (Base)**
* **Input type:** Integer (default 50)
* **Description:** Number of bars for the “long” Simple Moving Average (SMA) used in the internal trend filter. Typically, price must be above this SMA (and ADX must be strong) to confirm an uptrend, or below it (and ADX strong) to confirm a downtrend.
12. **ICT SMA Short1 Length (Base)**
* **Input type:** Integer (default 10)
* **Description:** Secondary “fast” SMA used both for reversal logic (e.g., price crossing above it can count as a bullish reversal) and part of the internal trend confirmation.
13. **ICT SMA Short2 Length (Base)**
* **Input type:** Integer (default 20)
* **Description:** A second “medium” SMA used for reversal triggers (e.g., crossovers or crossunders alongside RSI conditions).
### E. ADX & DI Parameters
14. **Base ADX Length**
* **Input type:** Integer (default 14)
* **Description:** Number of bars for the ADX (Average Directional Index) moving averages, which measure trend strength. The same length is used for +DI and –DI smoothing.
15. **Base ADX Threshold**
* **Input type:** Float (default 25.0, step 0.5)
* **Description:** If ADX > this threshold and +DI > –DI, we consider an uptrend; if ADX > this threshold and –DI > +DI, we consider a downtrend. Raising this value demands stronger trends to qualify.
### F. Sensitivity & Cooldown
16. **Sensitivity (0–1)**
* **Input type:** Float between 0.0 and 1.0 (default 0.5)
* **Description:** A general “mixture” parameter used internally to weight how aggressively the indicator leans into trend versus reversal. In practice, the code uses it to fine-tune exact thresholds for switching between trend and reversal conditions. You can leave it at 0.5 unless you want to bias more heavily toward either regime.
17. **Base Cooldown Bars Between Signals**
* **Input type:** Integer (default 5, min 0)
* **Description:** Once a long or short signal fires, the indicator will wait at least this many bars before allowing a new signal in the same direction. Prevents “signal flipping” on each bar. A higher number forces fewer, more spaced-out entries.
18. **Trend Confirmation Bars**
* **Input type:** Integer (default 3, min 1)
* **Description:** After the directional filters (+DI/–DI cross, price vs. SMA), the indicator still requires that price remains on the same side of the long SMA for at least this many consecutive bars before confirming “trend up” or “trend down.” Larger values smooth out false breakouts but may lag signals.
### G. Higher Timeframe Confirmation
19. **Use Higher Timeframe Confirmation**
* **Input type:** Boolean (default true)
* **Description:** If true, the indicator will request a block of values (SMA, +DI, –DI, ADX) from a higher timeframe (default 60 minutes) and require that the higher timeframe is also in agreement (strong uptrend or strong downtrend) before confirming your current-timeframe trend. This helps filter out lower-timeframe noise.
20. **Higher Timeframe (TF) for Confirmation**
* **Input type:** Timeframe (default “60”)
* **Description:** The chart timeframe (e.g., 5, 15, 60 minutes) whose trend conditions must also be true. It’s sent through a `request.security(..., lookahead=barmerge.lookahead_off)` call so that it never “paints ahead.”
### H. Dynamic TP/SL Parameters
21. **TP as ATR Multiple**
* **Input type:** Float (default 2.0, step 0.1)
* **Description:** When a trade is open, the “take-profit” price is determined by looking at the highest high (for longs) or lowest low (for shorts) observed since entry, and then plotting a cross (“X”) at that level when the trend finally flips. This is purely for display. However, separate from that, this parameter can be adapted if you want a strictly ATR–based TP. In the “Minimal” version, TP is ≈ (highest high) once trend inverts, but you could rewrite it to use `entry_price + ATR×TP_Multiplier`.
22. **SL as ATR Multiple**
* **Input type:** Float (default 1.0, step 0.1)
* **Description:** While in a trade, a trailing SL line is plotted each bar. Its value is always `entry_price ± (ATR × SL_Multiplier)`. When the trend inverts, the SL no longer updates, and you see it on the chart.
### I. Display and Mode Options
23. **Show Debug Lines**
* **Input type:** Boolean (default true)
* **Description:** When enabled, the indicator will plot all intermediate lines—ATR SMA, ATR Threshold, +DI, –DI, ADX (current and HTF), HTF SMA, etc.—so that you can diagnose exactly what’s happening. Turn this off to hide all debug information and only see entry/exit shapes.
24. **Enable Scalping Mode**
* **Input type:** Boolean (default false)
* **Description:** If true, many of the “base” parameters are halved (e.g., RSI length becomes 7 instead of 14, ATR length becomes 7 instead of 14, ADX length becomes 7, etc.), and the ADX threshold is multiplied by 0.8. This makes all oscillators and moving averages more reactive, suited for very short-term (scalping) setups.
---
## 2. Core Calculation Blocks
Below is a high-level description of each logical block (in code order), translated from Pine into conceptual steps.
### A. Adjust Inputs if “Scalping Mode” Is On
If **Scalping Mode** = true, then:
* `RSI_Length` becomes `max(1, round(Base_RSI_Length / 2))`
* `EMA_Length` becomes `max(1, round(Base_EMA_Length / 2))`
* `ATR_Length` becomes `max(1, round(Base_ATR_Length / 2))`
* `Price_Change_Period` becomes `max(1, round(Base_Price_Change_Period / 2))`
* `SMA_Long_Length`, `SMA_Short1_Length`, and `SMA_Short2_Length` are each halved (minimum 1).
* `ADX_Length` = `max(1, round(Base_ADX_Length / 2))`
* `ADX_Threshold` = `Base_ADX_Threshold × 0.8`
* `Cooldown_Bars` = `max(0, round(Base_Cooldown_Bars / 2))`
Otherwise, all adjusted lengths = their base values.
### B. RSI, EMA & “AI Score” on Current Timeframe
1. **Compute RSI:**
* Uses the (possibly adjusted) `RSI_Length`.
* Denote this as `RSI_Value`.
2. **Compute ATR & Its SMA:**
* `ATR_Value` = `ta.atr(ATR_Length)`.
* `ATR_SMA` = `ta.sma(ATR_Value, ATR_SMA_Length)`.
* Then define `Volatility_Increase` = (`ATR_Value > ATR_SMA`).
* If the volatility has increased, the weighting of RSI vs. EMA changes.
3. **Compute Weights:**
* If `Volatility_Increase == true`, then:
* `RSI_Weight = 0.7`
* `EMA_Weight = 0.3`
* Otherwise:
* `RSI_Weight = 0.3`
* `EMA_Weight = 0.7`
4. **RSI Signal Component (`RSI_Sig`):**
* If `RSI_Value > RSI_Overbought`, then `RSI_Sig = –1`.
* Else if `RSI_Value < RSI_Oversold`, then `RSI_Sig = +1`.
* Otherwise, `RSI_Sig = 0`.
5. **EMA Value & Signal Component (`EMA_Sig`):**
* `EMA_Value` = `ta.ema(close, EMA_Length)`.
* `EMA_Sig = +1` if the current close crosses **above** the EMA; `EMA_Sig = –1` if the current close crosses **below** the EMA; else `0`.
6. **Compute Raw “AI Score”:**
$$
Raw\_AI = (RSI\_Sig \times RSI\_Weight)\;+\;(EMA\_Sig \times EMA\_Weight)
$$
Then,
$$
AI\_Score = \frac{Raw\_AI}{(RSI\_Weight + EMA\_Weight)}
$$
(This normalization ensures the score always ranges between –1 and +1 if both weights sum to 1.)
### C. Dynamic ATR Multiplier & Volatility Filter
1. **Volatility Factor:**
$$
Volatility\_Factor = \frac{ATR\_Value}{ATR\_SMA}
$$
2. **Dynamic ATR Multiplier:**
$$
ATR\_Multiplier = ATR\_Multiplier\_Base \times \sqrt{Volatility\_Factor}
$$
3. **High Volatility Condition (`High_Volatility`):**
* If `Disable_Volatility_Filter == true`, then treat `High_Volatility = true` always.
* Else, `High_Volatility = (ATR_Value > ATR_SMA × ATR_Multiplier)`.
### D. Price Change Percentage
* **Compute Price Change:**
$$
Price\_Change = \frac{(Close - Close )}{Close } \times 100
$$
* This is the percent return from `Price_Change_Period` bars ago to now.
* For a valid long‐trend signal, we require `Price_Change > 0`; for a short trend, `Price_Change < 0`.
### E. Local SMAs for Trend/Reversal Filters
* `SMA_Close_Long` = `ta.sma(close, SMA_Long_Length)`.
* `SMA_Close_Short1` = `ta.sma(close, SMA_Short1_Length)`.
* `SMA_Close_Short2` = `ta.sma(close, SMA_Short2_Length)`.
These three SMAs help define the “local trend” and reversal breakout points:
* **Primary Trend Filter:**
* Price must be above `SMA_Close_Long` for an uptrend filter, or below `SMA_Close_Long` for a downtrend filter.
* **Reversal Filter:**
* A bullish reversal is detected if **(RSI < Oversold AND close crosses above EMA)** OR **(RSI < Oversold AND close crosses above SMA\_Close\_Short1)**.
* A bearish reversal is detected if **(RSI > Overbought AND close crosses below EMA)** OR **(RSI > Overbought AND close crosses below SMA\_Close\_Short1)**.
### F. Manual +DI, –DI & ADX on Current Timeframe
Instead of relying on the built-in `ta.adx`, the script calculates DI and ADX manually. This makes it easier to replicate the exact logic on a higher timeframe via `request.security`. The steps are:
1. **Directional Movement (DM) Components:**
* `Up_Move` = `high – high `
* `Down_Move` = `low – low`
* `Plus_DM` = `Up_Move` if (`Up_Move > Down_Move` AND `Up_Move > 0`), else `0`
* `Minus_DM` = `Down_Move` if (`Down_Move > Up_Move` AND `Down_Move > 0`), else `0`
2. **True Range (TR) Components:**
* `TR1` = `high – low`
* `TR2` = `abs(high – close )`
* `TR3` = `abs(low – close )`
* `True_Range` = `max(TR1, TR2, TR3)`
3. **Smoothed Averages (RMA):**
* `Sm_TR` = `ta.rma(True_Range, ADX_Length)`
* `Sm_Plus` = `ta.rma(Plus_DM, ADX_Length)`
* `Sm_Minus`= `ta.rma(Minus_DM, ADX_Length)`
4. **Compute DI%:**
$$
Plus\_DI = \frac{Sm\_Plus}{Sm\_TR} \times 100,\quad
Minus\_DI = \frac{Sm\_Minus}{Sm\_TR} \times 100
$$
5. **DX and ADX:**
$$
DX = \frac{|Plus\_DI - Minus\_DI|}{Plus\_DI + Minus\_DI} \times 100,\quad
ADX = ta.rma(DX, ADX_Length)
$$
These values are referred to as `(plus_di, minus_di, adx_val)` for the current timeframe.
---
## 3. Higher Timeframe (HTF) Confirmation Function
If **Use Higher Timeframe Confirmation** is enabled, the script calls a single helper (Pine) function `f_htf` with two parameters: the ADX length and the SMA length (both taken from the “base” or “scaled” values). Internally, `f_htf` simply reruns the manual DI/ADX logic (same as above) on the higher timeframe’s bar data, and also includes that timeframe’s closing price and its SMA for trend comparison.
* **Request.Security Call:**
```
= request.security(
syminfo.tickerid,
higher_tf,
f_htf(adx_length, sma_long_len),
lookahead=barmerge.lookahead_off
)
```
* `lookahead=barmerge.lookahead_off` ensures that no HTF value “paints” early; you always see only confirmed HTF bars.
* The returned tuple provides:
1. `ht_close` = HTF closing price
2. `ht_sma` = HTF SMA of length `sma_long_len`
3. `ht_pdi` = HTF +DI percentage
4. `ht_mdi` = HTF –DI percentage
5. `ht_adx` = HTF ADX value
---
## 4. Trend & Reversal Filters (Current & HTF)
### A. Current-Timeframe Trend Filter
1. **Uptrend\_Basic (Current TF)**
$$
(plus\_di > minus\_di)\;\land\;(adx\_val > ADX\_Threshold)\;\land\;(close > SMA\_Close\_Long)
$$
2. **Downtrend\_Basic (Current TF)**
$$
(minus\_di > plus\_di)\;\land\;(adx\_val > ADX\_Threshold)\;\land\;(close < SMA\_Close\_Long)
$$
3. **Trend Confirmation by Bars:**
* `Bars_Since_Below` = number of bars since `close <= SMA_Close_Long`.
* `Bars_Since_Above` = number of bars since `close >= SMA_Close_Long`.
* If `Uptrend_Basic == true` AND `Bars_Since_Below ≥ Trend_Confirmation_Bars` → mark `Uptrend_Confirm = true`.
* If `Downtrend_Basic == true` AND `Bars_Since_Above ≥ Trend_Confirmation_Bars` → mark `Downtrend_Confirm = true`.
### B. Reversal Filters (Current TF)
1. **Bullish Reversal (`Rev_Bullish`):**
* If `(RSI < RSI_Oversold AND close crosses above EMA_Value)` OR
`(RSI < RSI_Oversold AND close crosses above SMA_Close_Short1)`
→ then `Rev_Bullish = true`.
2. **Bearish Reversal (`Rev_Bearish`):**
* If `(RSI > RSI_Overbought AND close crosses below EMA_Value)` OR
`(RSI > RSI_Overbought AND close crosses below SMA_Close_Short1)`
→ then `Rev_Bearish = true`.
### C. Higher-Timeframe Trend Filter (HTF)
1. **HTF Uptrend (`HT_Uptrend`):**
$$
(ht\_pdi > ht\_mdi)\;\land\;(ht\_adx > ADX\_Threshold)\;\land\;(ht\_close > ht\_sma)
$$
2. **HTF Downtrend (`HT_Downtrend`):**
$$
(ht\_mdi > ht\_pdi)\;\land\;(ht\_adx > ADX\_Threshold)\;\land\;(ht\_close < ht\_sma)
$$
3. **Combine Current & HTF:**
* If **Use\_HTF\_Confirmation == true**, then:
* `Uptrend_Confirm := Uptrend_Confirm AND HT_Uptrend`
* `Downtrend_Confirm := Downtrend_Confirm AND HT_Downtrend`
* Otherwise, just use the current timeframe’s `Uptrend_Confirm` and `Downtrend_Confirm`.
4. **Define `CurrentTrend` (Integer):**
* `CurrentTrend = +1` if `Uptrend_Confirm == true`.
* `CurrentTrend = –1` if `Downtrend_Confirm == true`.
* Otherwise, `CurrentTrend = 0`.
5. **Reset “One Trade Per Trend”:**
* There is a persistent variable `LastTradeTrend`.
* Every time `CurrentTrend` flips (i.e., `CurrentTrend != CurrentTrend `), the code sets `LastTradeTrend := 0`.
* That allows one new entry once the detected trend has changed.
---
## 5. One‐Time “Cooldown” Logic
* **`LastSignalBar`**
* A persistent integer (initially undefined).
* After each confirmed long or short entry, `LastSignalBar` is set to the bar index where that signal fired.
* **`Bars_Since_Signal`**
* If `LastSignalBar` is undefined, treat as a very large number (so that initial signals are always allowed).
* Otherwise, `Bars_Since_Signal = bar_index – LastSignalBar`.
* **Cooldown Check:**
* A new long (or short) can only be generated if `(Bars_Since_Signal > Signal_Cooldown)`.
* This prevents multiple signals in rapid succession.
---
## 6. Entry Conditions (No Repaint)
All of the conditions below are calculated “intrabar,” but the script only actually registers a **signal** on **bar close** (`barstate.isconfirmed`) so that signals never repaint.
### A. Trend‐Based “Raw” Conditions
1. **Trend\_Long\_Raw:**
$$
(AI\_Score > AI\_Score\_Threshold)\;\land\;Uptrend\_Confirm\;\land\;High\_Volatility\;\land\;(Price\_Change > 0)
$$
2. **Trend\_Short\_Raw:**
$$
(AI\_Score < -AI\_Score\_Threshold)\;\land\;Downtrend\_Confirm\;\land\;High\_Volatility\;\land\;(Price\_Change < 0)
$$
### B. Reversal “Raw” Conditions
1. **Rev\_Long\_Raw:**
$$
Rev\_Bullish\;\land\;(CurrentTrend \neq +1)
$$
2. **Rev\_Short\_Raw:**
$$
Rev\_Bearish\;\land\;(CurrentTrend \neq -1)
$$
### C. Combine Raw Signals
* `Raw_Long = Trend_Long_Raw OR Rev_Long_Raw`.
* `Raw_Short = Trend_Short_Raw OR Rev_Short_Raw`.
### D. Confirmed Long/Short Signal Flags
On each new bar **close** (`barstate.isconfirmed == true`):
* **Long\_Signal\_Confirmed** can fire if:
1. `Raw_Long == true`
2. `LastTradeTrend != +1` (we haven’t already taken a long in this same trend)
3. `Bars_Since_Signal > Signal_Cooldown`
If all three hold, then on this bar close the code sets:
* `Long_Signal = true`
* `LastTradeTrend := +1`
* `LastSignalBar := bar_index`
Otherwise, `Long_Signal := false` on this bar.
* **Short\_Signal\_Confirmed** works the same way but with `Raw_Short`, `LastTradeTrend != -1`, etc.
If triggered, it sets `Short_Signal = true`, `LastTradeTrend := -1`, and `LastSignalBar := bar_index`. Otherwise `Short_Signal := false`.
* **Important:** If the bar is still forming (`else` branch of `barstate.isconfirmed`), then both `Long_Signal` and `Short_Signal` are forced to `false`. This guarantees that no shape or alert appears until the bar actually closes.
---
## 7. Plotting Entry/Exit Shapes
1. **Trend Long Signal (Triangle Up)**
* Condition: `Long_Signal == true` **AND** `Trend_Long_Raw == true`.
* Appearance: A small, semi-transparent lime green triangle drawn **below** the bar.
2. **Trend Short Signal (Triangle Down)**
* Condition: `Short_Signal == true` **AND** `Trend_Short_Raw == true`.
* Appearance: A small, semi-transparent maroon triangle drawn **above** the bar.
3. **Reversal Long Signal (Circle)**
* Condition: `Long_Signal == true` **AND** `Rev_Long_Raw == true`.
* Appearance: A tiny, more transparent green circle drawn **below** the bar.
4. **Reversal Short Signal (Circle)**
* Condition: `Short_Signal == true` **AND** `Rev_Short_Raw == true`.
* Appearance: A tiny, more transparent red circle drawn **above** the bar.
Since `Long_Signal` and `Short_Signal` only ever become true at bar close, these shapes are never repainted or removed once drawn.
---
## 8. Unified Alert Message
* As soon as a new bar closes with either `Long_Signal` or `Short_Signal == true`, an alert message is sent:
* If `Long_Signal`, then `alert_msg = "action=BUY"`.
* If `Short_Signal`, then `alert_msg = "action=SELL"`.
* If neither, `alert_msg = ""` (no alert).
* The code calls `alert(alert_msg, freq=alert.freq_once_per_bar)` only if `barstate.isconfirmed` and `alert_msg` is non‐empty. This ensures exactly one alert per confirmed bar, no intrabar pops.
---
## 9. Dynamic TP/SL Logic (Minimal Implementation)
Once a long or short position is “open,” the script tracks these variables:
1. **Persistent Flags and Prices** (all persist between bars until reset):
* `InLong` (Boolean)
* `InShort` (Boolean)
* `Long_Max` (Float)
* `Short_Min` (Float)
* `Entry_Price` (Float)
2. **On Bar Close:**
* If `Long_Signal == true` →
* Set `InLong := true`,
* `Entry_Price := close` of that bar,
* `Long_Max := high ` (last bar’s high, so that we’re not using “future” data).
* If `Short_Signal == true` →
* Set `InShort := true`,
* `Entry_Price := close`,
* `Short_Min := low `.
3. **While `InLong == true`:**
* Continuously update `Long_Max = max(Long_Max, current high)` on each bar (intrabar, but finalized each close).
* Compute a dynamic SL:
$$
SL_{Long} = Entry\_Price - (ATR \times SL\_ATR\_Multiplier).
$$
* If **current trend** flips to non-uptrend (`CurrentTrend != +1`), mark `ExitLong = true`.
* Then the routine plots `TP_Long = Long_Max` as a cross (“X”) at that level.
* Set `InLong := false` so that no further changes to `Long_Max` or `Entry_Price` happen on future bars.
4. **While `InShort == true`:**
* Continuously update `Short_Min = min(Short_Min, current low)`.
* Compute a dynamic SL:
$$
SL_{Short} = Entry\_Price + (ATR \times SL\_ATR\_Multiplier).
$$
* If trend flips to non-downtrend (`CurrentTrend != –1`), mark `ExitShort = true`.
* Then the routine plots `TP_Short = Short_Min`.
* Set `InShort := false` to freeze those values.
5. **Plotting TP/SL if “Show Debug” is On:**
* **TP Shapes:**
* When `ExitLong == true`, plot a solid lime “X” at `TP_Long` (highest high).
* When `ExitShort == true`, plot a solid maroon “X” at `TP_Short` (lowest low).
* **SL Lines:**
* If still `InLong`, draw a thin red line at `SL_Long` on each bar.
* If still `InShort`, draw a thin green line at `SL_Short`.
Thus, your charts visually show the highest‐high take-profit cross for longs, the lowest-low take-profit cross for shorts, and a continuously updating trailing SL until the trend flips. Because all of this is triggered on confirmed bars, nothing “jumps around” after the fact.
---
## 10. Debug‐Only Plot Lines (When Enabled)
When **Show Debug Lines** = true, the indicator will also plot:
1. **ATR SMA (Orange):**
* The simple moving average of ATR over `ATR_SMA_Length`.
2. **ATR Threshold (Yellow):**
* `ATR_SMA × ATR_Multiplier` (the dynamically scaled threshold).
3. **+DI & –DI (Current TF):**
* +DI plotted as a green line, –DI plotted as a red line (opacity \~70%).
4. **ADX (Current TF, Blue):**
* A blue line for the present timeframe’s ADX.
5. **ADX Threshold (Gray):**
* A horizontal gray line showing `ADX_Threshold`.
6. **+DI & –DI (HTF, Darker Colors):**
* If HTF confirmation is on, “HTF +DI” is a greener but more transparent line; “HTF –DI” is a redder but more transparent line.
7. **ADX (HTF, Blue but Transparent):**
* HTF ADX plotted in blue (high transparency).
8. **HTF SMA (Orange, Transparent):**
* The higher timeframe’s SMA (same length as `SMA_Long_Length`), drawn in fainter orange.
9. **Volatility Zone Fill (Yellow Tinted Area):**
* Fills the area between `ATR_SMA` and `ATR_SMA × ATR_Multiplier`.
* Indicates “normal” versus “high‐volatility” regimes.
These debug lines are purely visual aids. Disable them if you want a cleaner chart.
---
## 11. Putting It All Together — Step-By-Step Flow
1. **Read Inputs** (RSI lengths, EMA length, ATR settings, etc.).
2. **Optionally Halve All Lengths** if “Scalping Mode” is checked.
3. **Calculate Current TF Indicators:**
* RSI, ATR, ATR\_SMA, EMA, price change, various SMAs, DI/ADX.
4. **Compute “AI Score”** (weighted sum of RSI and EMA signals).
5. **Compute Dynamic ATR Multiplier** and decide if “High Volatility” is true.
6. **Compute Raw Trend/Reversal Conditions** on the current timeframe (without triggering yet).
7. **Fetch HTF Values** in one `request.security` call (SMAs, DI/ADX).
8. **Combine Current & HTF Trend Filters** to confirm `Uptrend_Confirm` or `Downtrend_Confirm`.
9. **Check Reversal Conditions** (price crossing EMA or SMA short, in overbought/oversold zones).
10. **Enforce “One Trade Per Trend”** (clear `LastTradeTrend` whenever `CurrentTrend` flips).
11. **Enforce Cooldown** (must wait at least `Signal_Cooldown` bars since the prior signal).
12. **On Bar Close:**
* If `Raw_Long` AND not already in a long trend AND cooldown met, then fire `Long_Signal`.
* Else if `Raw_Short` AND not already in a short trend AND cooldown met, then fire `Short_Signal`.
* Otherwise, no new signal on this bar.
13. **Plot Long/Short Entry Shapes** according to whether it was a Trend signal or a Reversal signal.
14. **Send Alert** (“action=BUY” or “action=SELL”) exactly once per confirmed bar.
15. **If New Long/Short Signal, Set `InLong`/`InShort`, Record Entry Price, Initialize `Long_Max`/`Short_Min`.**
16. **While `InLong` is true:** Update `Long_Max = max(previous Long_Max, current high)`. Compute `SL_Long`. If the current trend flips (no longer uptrend), set `ExitLong = true`, plot a “TP X,” and close the position logic.
17. **While `InShort` is true:** Similarly update `Short_Min`, compute `SL_Short`, and if trend flips, set `ExitShort = true`, plot a “TP X,” and close the position logic.
18. **Optionally Display Debug Lines** (ATR SMA, ATR threshold, DI/ADX, HTF DI/ADX, etc.).
---
## 12. How to Use in TradingView Community
When you publish this indicator to the TradingView community—choosing “Protected” or “Invite-only” visibility—you can paste the above description into the “Description” field. Users will see exactly what each input does, how signals are generated, and what the various plotted lines represent, **without ever seeing the script source**. In this way, the code itself remains hidden but the logic is fully documented.
1. **Go to “Create New Indicator”** on TradingView.
2. **Paste Your Pine Code** (the full indicator script) in the Pine editor and save it.
3. **Set Visibility = Protected** (or Invite-only).
4. **In the “Description” Text Box, paste the entirety of this document** (steps 1–11).
5. **Click “Publish Script.”**
Users who view your indicator will see its name (“AI Strat Adaptive v3 (NoRepaint)”), a list of all inputs (with default values), and the detailed English description above. They can then load it on any chart, adjust inputs, and see the plotted signals, TP/SL lines, and optional debug overlays—without accessing the underlying Pine code.
---
### Summary of Key Points
* **RSI, EMA, ATR, DI/ADX, and “AI Score”** work together to define “trend vs. reversal.”
* **Dynamic volatility filter** uses ATR and ATR\_SMA to adapt the weighting of RSI vs. EMA and decide whether “volatility is high enough” to permit a trend trade.
* **One trade per detected trend** and a **cooldown period** prevent over‐trading.
* **Higher timeframe confirmation** (optional) further filters out noise.
* **No-repaint logic**:
* All signals only appear at bar close (`barstate.isconfirmed`).
* HTF values are fetched with `lookahead=barmerge.lookahead_off`.
* **Entry shapes** (triangles and circles) clearly mark trend vs. reversal entries.
* **Dynamic TP/SL**: highest‐high (or lowest‐low) since entry is used as TP, ATR×multiplier as SL.
* **Debug mode** (optional) shows every intermediate line for full transparency.
Use this description verbatim (or adapt it slightly for your personal style) when publishing. That way, your community sees exactly how each component works—inputs, functions, filters—while the Pine source code remains private.
Paul_BDT Osc. CHOPOverview:
This indicator is an advanced multi-timeframe Choppiness Index tool, designed to help assess market conditions across various timeframes simultaneously. It assists in identifying whether the market is in a trending or ranging (choppy) phase, enhancing decision-making for both scalping and intraday strategies.
This script integrates:
• Choppiness Index computation (with EMA smoothing and Bollinger Bands).
• Multi-timeframe analysis (preset scalping/intraday setups or manual selection).
• Visual aids (color-coded plots, labels, and background highlights).
• Alert mechanisms for key conditions (choppy breakouts and trends).
⸻
Key Features & Functionalities:
1. Choppiness Index Calculation:
• The Choppiness Index (CHOP) quantifies market volatility—whether price action is consolidating (high CHOP values) or trending (low CHOP values).
• Formula:
\text{CHOP} = 100 \times \frac{\log\left(\frac{\sum \text{True Range}}{\text{High}{\text{max}} - \text{Low}{\text{min}}}\right)}{\log(\text{Period})}
• It is smoothed with an Exponential Moving Average (EMA) for stability.
• Bollinger Bands are applied to the CHOP for dynamic range visualization.
⸻
2. Multi-Timeframe Support:
• Preset Modes:
• Scalping Setups: 1min, 3min, 5min, 15min.
• Intraday Setups: 15min, 30min, 1H, 4H.
• Manual Configuration: Three customizable timeframes (e.g., daily, 3-day, weekly).
• Dynamic Display: Traders can choose which timeframes to visualize and whether to display labels with timeframe identifiers.
⸻
3. Visualization Aids:
• Plots:
• Primary CHOP with Bollinger Bands on the current chart’s timeframe (UT).
• Additional CHOP plots across selected timeframes, color-coded for easy differentiation.
• Labels:
• Labels are displayed on the chart for each timeframe, showing the CHOP value and its corresponding timeframe.
• These labels refresh every bar for clarity.
• Background Highlights:
• Signals choppy breakouts with a yellow overlay when the CHOP crosses below both its EMA and a set threshold (default: 50).
⸻
4. Alert System:
Two main alert types are built-in:
• Choppy Trend Alerts: Triggered when the CHOP crosses below the threshold (e.g., 50), signaling a potential shift toward a trending market.
• Choppy Spike Alerts: Activated when CHOP crosses below both its EMA and the threshold within a single candle—indicative of sudden shifts in market conditions.
• Alerts include:
• Directional bias (Long or Short based on candle close).
• Open/close levels.
• Stop-loss reference (previous bar’s high/low).
• Timestamp in the chosen time zone.
⸻
Strategic Application:
• Ranging Markets:
• CHOP values above threshold indicate high choppiness (consolidation).
• Suitable for range-bound strategies (mean reversion, scalping inside ranges).
• Trending Markets:
• CHOP values below threshold signal trending phases.
• Optimal for momentum or breakout strategies.
• Multi-Timeframe Edge:
• Cross-referencing CHOP conditions across multiple timeframes helps confirm higher probability setups.
• E.g., alignment between intraday and higher timeframes enhances confidence in trend continuations or reversals.
• Choppy Spikes:
• The spike detection (cross below both EMA and threshold within one candle) flags rapid transitions—potential breakout or breakdown scenarios.
⸻
Customization :
• Adapt CHOP period length and threshold based on asset volatility.
• Configure specific timeframes matching your strategy (scalping, intraday, swing).
• Enable or disable visual components (labels, background highlights, alerts) for a cleaner interface.
⸻
Conclusion:
This indicator provides a comprehensive and adaptable tool to monitor market structure dynamics across multiple timeframes. It’s particularly effective in discerning the right trading environment—whether to engage in trend-following or range-bound strategies. The integration of visual cues and proactive alerts ensures being informed of critical market transitions, enhancing timing and risk management.
Nifty 1m EMA Pullback Scalper Signals
### **Master the Market with the Sniper Scalping Strategy for Nifty (1-Minute Timeframe)**
Unlock the power of precision trading with this expertly crafted **Sniper Scalping Strategy**, designed specifically for the Nifty index on a lightning-fast 1-minute timeframe. Perfect for traders who thrive on quick decisions and small, consistent profits, this strategy combines multiple indicators to deliver razor-sharp entries and exits—ideal for India’s dynamic market.
#### **Why This Strategy Stands Out**
- **Pinpoint Accuracy**: Harness the synergy of the **5 EMA and 10 EMA crossover** to lock onto the short-term trend, while the **Stochastic Oscillator (14,3,3)** times your entries and exits with surgical precision.
- **Fast and Effective**: Tailored for the 1-minute chart, this strategy capitalizes on Nifty’s volatility, targeting **10-point profits** with a tight **5-point stop-loss**—keeping your risk low and rewards high.
- **Trend + Momentum**: Blend trend-following (EMAs) with momentum signals (Stochastic) for a robust, multi-dimensional approach that cuts through market noise.
#### **How It Works**
- **Buy Signal**: Enter long when the 5 EMA crosses above the 10 EMA and the Stochastic rises above 20—catching the uptrend at its sweet spot.
- **Sell Signal**: Go short when the 5 EMA dips below the 10 EMA and the Stochastic falls below 80—riding the downtrend with confidence.
- **Exit Like a Pro**: Take profits at 10 points or when the Stochastic hits overbought/oversold extremes, ensuring you’re in and out before the market shifts.
#### **Perfect for Nifty Scalpers**
Built for the fast-paced world of Nifty trading, this strategy shines during high-volatility sessions like the market open or global overlaps. Whether you’re a beginner honing your skills or a seasoned trader seeking consistency, the Sniper Scalping Strategy offers a clear, actionable framework to scalp profits with discipline and precision.
#### **Get Started**
Test it in a demo account, refine it to your style, and watch your scalping game soar. Trade smart, stay focused, and let the Sniper Scalping Strategy turn Nifty’s 1-minute moves into your edge!
Signal ScannerSignal Scanner
The Signal Scanner is a powerful tool designed to help traders identify high-probability trade opportunities across multiple timeframes. It works by scanning for key buy and sell signals based on a combination of trend-following indicators and market momentum.
Key Features:
Multi-Timeframe Scanning: The Signal Scanner analyzes signals across various timeframes, from scalping opportunities on the 5-minute chart to swing trades on the daily chart. This flexibility allows traders to adapt to their preferred trading style.
Trend Identification: The scanner utilizes a proprietary trend-detection algorithm that identifies both strong and weak trends in the market. It detects price action patterns, trend reversals, and consolidations to help traders make informed decisions.
Signal Alerts: Once a valid trade signal is identified, the scanner alerts traders with clear Buy and Sell indicators. These alerts are customizable and can be tailored to specific market conditions and trader preferences.
Confirmation Signals: To ensure accuracy, the Signal Scanner works in tandem with Vinnie's Trading Cheat Code and Confirm Alerts. It provides confirmation of trend direction and entry points, increasing the probability of successful trades.
How It Works:
The Signal Scanner integrates several layers of analysis to provide actionable insights:
Trend Analysis: Detects and follows prevailing market trends using a combination of moving averages and momentum indicators.
Pattern Recognition: Identifies key market patterns such as breakouts, reversals, and pullbacks, ensuring that traders enter at the most opportune times.
Customizable Settings: Allows traders to adjust parameters like timeframes, sensitivity, and alert conditions to fine-tune the scanner to their trading needs.
How to Use:
Select your preferred timeframe (e.g., 5-minute for scalping, 1-hour for day trading, or daily for swing trading).
The Signal Scanner will begin scanning the market, identifying potential entry points based on the selected criteria.
Once a valid signal is detected, the script will display Buy or Sell alerts.
Confirm signals using the accompanying indicators (such as Vinnie's Trading Cheat Code or Confirm Alerts) for added confirmation.
This tool is suitable for all types of traders, from scalpers to swing traders, and can be used in combination with other trading strategies to enhance market analysis and decision-making.
Signal Scanner - Ultimate Trend Confirmation for Futures & Scalping**
The **Signal Scanner** is a powerful tool designed for all trading instruments but optimized for **Futures trading**. It works across all timeframes, helping traders identify high-probability buy and sell signals with precision.
### 🔥 **How It Works:**
✅ **Multi-Timeframe Compatibility** – Works on all timeframes for trend confirmation.
✅ **Clear Buy & Sell Signals** – Instantly identifies market direction.
✅ **Trend Confirmation for Scalping** – Best suited for intraday & short-term trades.
### ⚡ **Scalping Strategy:**
1️⃣ **Set the Signal Scanner’s timeframe to 1 Hour in settings.**
2️⃣ **Switch to the 15-minute or 5-minute chart.**
3️⃣ **Trade in the direction of the 1-hour signal** (e.g., if the 1-hour shows a Buy, look for buying opportunities on the lower timeframe).
4️⃣ **Use additional confirmations** (e.g., CC MACD or Confirm Buy/Sell signals) for precision entries.
📈 Whether you're a Futures trader or scalper, the **Signal Scanner** helps you trade with confidence and consistency! 🚀
MultiTimeFrame Trends and Candle Bias (by MC) v1This MultiTimeFrame Trends and Candle Bias provides the trader a quick glance on how each timeframe is trending and what the current candle bias is in each timeframe.
Interpreting Candle Bias : Green points to a bullish bias while red, a bearish bias for a given specific timeframe. For instance, if the current 1 hour candle bias is red, it means that the last hour, the bias has been bearish. If the Daily candle bias is red, it means that the day in question has been a bearish for this selected symbol.
Interpreting MTF Trends: Trends for each time frame follows the simple moving average of the closing prices for the X number of candles you enter in the input section. So for example, if you decide to enter 6 for the 1-hour time frame, the trend for the last 6 hours will be shown and tracked; if on the Daily time frame, you enter 7, the trend for the last 7 days or 1 week will be shown and tracked. I have provided below (as well as on tooltips in the input section of this indicator) recommendations of what numbers to use depending on what kind of trader you are.
What is a best setup for MultiTimeFrame Trends?
Considerations Across All Timeframes:
- Trading Style : Scalpers and very short-term intraday traders may prefer fewer candles (like 12 to 20), which allow them to react quickly to price changes. Swing traders or those holding positions for a few hours to a couple of days might prefer more candles (like 50 to 120) to identify more stable trends.
- Market Conditions : In volatile markets, using more candles helps smooth out price fluctuations and provides a clearer trend signal. In trending markets, fewer candles might be sufficient to capture the trend.
- Session-Based Adjustments : Traders may adjust their settings depending on the time of day or session they are trading. For example, during high-volatility periods like market open or close, using fewer candles can help capture quick moves.
The number of preceding candles to use for estimating the recent trend can depend on various factors, including the type of market, the asset being traded, the timeframe, and the specific goals of your analysis. However, here are some general guidelines to help you decide:
### 1. **Short-Term Trends (Fast Moving Averages):**
- **5 to 20 Candles**: If you want to capture a short-term trend, typically in day trading or scalping strategies, you might use 5 to 20 candles. This is common for fast-moving averages like the 9-period or 15-period moving averages. It reacts quickly to price changes, but it can also give more false signals due to market noise.
### 2. **Medium-Term Trends (Moderate Moving Averages):**
- **20 to 50 Candles**: For a more balanced approach that reduces the impact of short-term volatility while still being responsive to trend changes, 20 to 50 candles are commonly used. This range is popular for swing trading strategies, where the goal is to capture trends that last several days to weeks.
### 3. **Long-Term Trends (Slow Moving Averages):**
- **50 to 200 Candles**: To identify long-term trends, such as those seen in position trading or for confirming major trend directions, you might use 50 to 200 candles. The 50-period and 200-period moving averages are particularly well-known and are often used by traders to identify significant trend reversals or confirmations.
### 4. **Adaptive Approach:**
- **Market Conditions**: In trending markets, fewer candles might be needed to identify a trend, while in choppy or range-bound markets, using more candles can help filter out noise.
- **Volatility**: In highly volatile markets, more candles might be necessary to smooth out price action and avoid false signals.
### **Experiment and Backtesting:**
The optimal number of candles can vary significantly based on the asset and strategy. It's often a good idea to backtest different periods to see which provides the best balance between responsiveness and reliability in identifying trends. You can use tools like the strategy tester in TradingView or other backtesting software to compare the performance of different settings.
### **General Recommendation:**
- **For Shorter Timeframes** (e.g., 5m, 15m): 10-20 candles might be effective.
- **For Medium Timeframes** (e.g., 1h, 4h): 20-50 candles are often a good starting point.
- **For Longer Timeframes** (e.g., Daily, Weekly): 50-200 candles help capture major trends.
If you're unsure, a common starting point for many traders is the 20-period moving average, which provides a balance between sensitivity and reliability.
Guidelines for 1-Minute Timeframe:
For the 1-minute (1M) timeframe, trend analysis typically focuses on very short-term price movements, which is crucial for scalping and ultra-short-term trading strategies. Here’s a breakdown of the number of preceding candles you might use:
1. **Very Short-Term Trend:**
- **10 to 20 Candles (10 to 20 Minutes):** Using 10 to 20 candles captures about 10 to 20 minutes of price action. This range is suitable for scalpers who need to identify very short-term trends and make quick trading decisions.
2. **Short-Term Trend:**
- **30 to 60 Candles (30 to 60 Minutes):** This period covers 30 to 60 minutes of trading, making it useful for traders looking to understand the trend over a full trading hour. It helps capture price movements and trends that develop within a single hour.
3. **Intraday Trend:**
- **120 Candles (2 Hours):** Using 120 candles provides a view of the trend over approximately 2 hours. This is useful for traders who want to see how the market is trending throughout a larger portion of the trading day.
4. **Extended Intraday Trend:**
- **240 to 480 Candles (4 to 8 Hours):** This longer period gives a broader view of the intraday trend, covering 4 to 8 hours. It’s helpful for identifying trends that span a significant portion of the trading day, which can be useful for traders looking to align with the broader intraday movement.
**Considerations:**
- **High Sensitivity:** The 1-minute timeframe is highly sensitive to market movements, so shorter periods (10 to 20 candles) can capture rapid price changes but may also generate noise.
- **Market Volatility:** In highly volatile markets, using more candles (like 30 to 60 or more) helps smooth out the noise and provides a clearer trend signal.
- **Trading Style:** Scalpers will typically use shorter periods to make very quick decisions. Traders holding positions for a bit longer, even within the same day, may use more candles to get a clearer picture of the trend.
**Common Approaches:**
- **5-Period Moving Average:** The 5-period moving average on a 1-minute chart can be used for extremely short-term trend signals, reacting quickly to price changes.
- **20-Period Moving Average:** The 20-period moving average is a good choice for capturing short-term trends and can help filter out some of the noise while still being responsive.
- **50-Period Moving Average:** The 50-period moving average provides a broader view of the trend and can help smooth out price movements over a longer intraday period.
**Recommendation:**
- **Start with 10 to 20 Candles:** For the most immediate and actionable signals, especially useful for scalping or very short-term trading.
- **Use 30 to 60 Candles:** For a clearer view of trends that develop over an hour, suitable for those looking to trade within a single trading hour.
- **Consider 120 Candles:** For observing broader intraday trends over 2 hours, helping align trades with more significant intraday movements.
- **Explore 240 to 480 Candles:** For a longer intraday perspective, covering up to 8 hours, which can be useful for strategies that span a larger portion of the trading day.
**Practical Example:**
- **Scalpers:** If you’re executing trades every few minutes, start with 10 to 20 candles to get rapid trend signals.
- **Short-Term Traders:** For trends that last an hour or so, 30 to 60 candles will provide a better sense of direction while still being responsive.
- **Intraday Traders:** For broader trends that span several hours, 120 candles will help you see the overall intraday movement.
Experimentation and backtesting with these settings on historical data will help you fine-tune your approach to the 1-minute timeframe for your specific trading strategy and asset.
Guidelines for 5, 15 and 30 min Timeframes:
For shorter timeframes like 5, 15, and 30 minutes, the number of preceding candles you use will depend on how quickly you want to react to changes in the trend and the specific trading style you’re employing. Here's a breakdown for each:
**5-Minute Timeframe:**
1. **Very Short-Term (Micro Trend):**
- **12 to 20 Candles (60 to 100 Minutes):** Using 12 to 20 candles on a 5-minute chart captures 1 to 1.5 hours of price action. This is ideal for very short-term trades, such as scalping, where quick entries and exits are key.
2. **Short-Term Trend:**
- **30 to 60 Candles (150 to 300 Minutes):** This period covers 2.5 to 5 hours, making it useful for intraday traders who want to identify the trend within a trading session. It helps capture the direction of the market during the most active parts of the day.
3. **Intra-Day Trend:**
- **120 Candles (10 Hours):** Using 120 candles gives you a broad view of the trend over two trading sessions. This is useful for traders who want to understand the trend throughout the entire trading day.
**15-Minute Timeframe:**
1. **Very Short-Term:**
- **12 to 20 Candles (3 to 5 Hours):** On a 15-minute chart, this period covers 3 to 5 hours, making it useful for capturing the morning or afternoon trend within a trading day. It’s often used by intraday traders who need to make quick decisions.
2. **Short-Term Trend:**
- **30 to 60 Candles (7.5 to 15 Hours):** This covers almost a full trading day to a day and a half. It’s popular among day traders who want to align their trades with the trend of the day or the previous trading session.
3. **Intra-Week Trend:**
- **120 Candles (30 Hours):** This period spans about two trading days and is useful for traders looking to capture trends that may extend beyond a single trading day but not necessarily for an entire week.
**30-Minute Timeframe:**
1. **Short-Term Trend:**
- **12 to 20 Candles (6 to 10 Hours):** This period captures the trend over a single trading session. It's useful for day traders who want to understand the market’s direction throughout the day.
2. **Medium-Term Trend:**
- **30 to 50 Candles (15 to 25 Hours):** This period covers about two trading days and is useful for short-term swing traders or intraday traders who are looking for trends that might last a couple of days.
3. **Intra-Week Trend:**
- **100 to 120 Candles (50 to 60 Hours):** This longer period captures about 4 to 5 trading days, making it useful for traders who want to understand the broader trend over the course of the week.
**Summary Recommendations:**
- **5-Minute Chart:**
- **12 to 20 candles** for very short-term trades.
- **30 to 60 candles** for intraday trends within a single session.
- **120 candles** for a broader view of the day’s trend.
- **15-Minute Chart:**
- **12 to 20 candles** for short-term trades within a few hours.
- **30 to 60 candles** for trends lasting a full day or more.
- **120 candles** for trends extending over a couple of days.
- **30-Minute Chart:**
- **12 to 20 candles** for understanding the daily trend.
- **30 to 50 candles** for trends over a couple of days.
- **100 to 120 candles** for an intra-week trend view.
Experimenting with these settings and backtesting on historical data will help you find the optimal number of candles for your specific trading style and the assets you trade.
Guidelines for 1H Timeframes:
When analyzing trends on a 1-hour (1H) timeframe, you're focusing on short to medium-term trends, often used by day traders and short-term swing traders. Here’s how you can approach selecting the number of preceding candles:
1. **Short-Term Trend:**
- **14 to 21 Candles (14 to 21 Hours):** Using 14 to 21 candles on a 1-hour chart captures roughly half a day to a full day of trading activity. This range is ideal for day traders who want to identify short-term momentum and trend changes within a single trading day.
2. **Medium-Term Trend:**
- **50 Candles (2 Days):** A 50-period moving average on a 1-hour chart covers about two days of trading. This period is popular for identifying trends that may last a couple of days, making it useful for short-term swing traders.
3. **Longer-Term Trend:**
- **100 Candles (4 Days):** Using 100 candles gives you a broader view of the trend over about four days of trading. This is helpful for traders who want to align their trades with a more sustained trend that spans the entire week.
4. **Very Short-Term (Micro Trend):**
- **7 to 10 Candles (7 to 10 Hours):** For traders looking to capture micro trends or very short-term price movements, using 7 to 10 candles can provide a quick look at recent price action. This is often used for scalping or very short-term intraday strategies.
**Considerations:**
- **Market Volatility:** In highly volatile markets, using more candles (like 50 or 100) helps smooth out noise and provides a clearer trend signal. In less volatile conditions, fewer candles may suffice to capture trends.
- **Trading Style:** If you are a day trader looking for quick moves, shorter periods (like 7 to 21 candles) might be more suitable. For those who hold positions for a day or two, longer periods (like 50 or 100 candles) can provide better trend confirmation.
- **Asset Class:** The optimal number of candles can vary depending on the asset
Guidelines for 4H Timeframes:
When analyzing trends on a 4-hour (4H) timeframe, you’re generally looking to capture short to medium-term trends. This timeframe is popular among swing traders and intraday traders who want to balance between catching more significant market moves and not being too sensitive to noise. Here's how you can approach selecting the number of preceding candles:
1. **Short-Term Trend:**
- **14 to 21 Candles (2 to 3 Days):** Using 14 to 21 candles on a 4-hour chart covers roughly 2 to 3 days of trading activity. This range is ideal for traders looking to capture short-term momentum, especially in markets where price action can move quickly within a few days.
2. **Medium-Term Trend:**
- **50 Candles (8 to 10 Days):** A 50-period moving average on a 4-hour chart represents approximately 8 to 10 days of trading (considering 6 trading periods per day). This period is popular among swing traders for identifying trends that develop over the course of one to two weeks.
3. **Longer-Term Trend:**
- **100 Candles (16 to 20 Days):** Using 100 candles gives you a broader view of the trend over about 3 to 4 weeks. This is useful for traders who want to align their trades with the more sustained market direction while still remaining responsive to recent changes.
**Considerations:**
- **Market Conditions:** In a trending market, fewer candles (like 14 or 21) may be enough to identify the trend, allowing for quicker responses to price movements. In a more volatile or range-bound market, using more candles (like 50 or 100) can help smooth out noise and avoid false signals.
- **Trading Style:** If you are an intraday trader, shorter periods (14 to 21 candles) may be preferable, as they allow for quick entries and exits. Swing traders might lean towards the 50 to 100 candle range to capture trends that last several days to a few weeks.
- **Volatility:** The higher the volatility of the asset, the more candles you might want to use to ensure that the trend signal is not too erratic.
**Common Approaches:**
- **20-Period Moving Average:** A 20-period moving average on a 4-hour chart is often used by traders to capture short-term trends that align with momentum over the past few days.
- **50-Period Moving Average:** The 50-period moving average is widely used on the 4-hour chart to track medium-term trends. It provides a good balance between reacting to new trends and avoiding too many whipsaws.
- **100-Period Moving Average:** The 100-period moving average offers insight into the longer-term trend on the 4-hour chart, helping to filter out short-term noise and confirm the overall market direction.
**Recommendation:**
- **Start with 20 Candles for Short-Term Trends:** This period is useful for capturing quick movements and short-term trends over a couple of days.
- **Use 50 Candles for Medium-Term Trends:** This is a standard setting that provides a balanced view of the market over about 1 to 2 weeks.
- **Consider 100 Candles for Longer-Term Trends:** This helps to identify more significant trends that have persisted for a few weeks.
**Practical Example:**
- **Intraday Traders:** If you’re focused on shorter-term trades and need to react quickly, using 14 to 21 candles will help you capture the most recent momentum.
- **Swing Traders:** If you’re looking to hold positions for several days to a few weeks, starting with 50 candles will give you a clearer picture of the trend over that period.
- **Position Traders:** For those holding positions for a longer duration within a month, using 100 candles helps to align with the broader trend while still being responsive enough for 4-hour price movements.
Backtesting these settings on your chosen asset and strategy will help refine the optimal number of candles for your specific needs.
Guidelines for Daily Timeframes:
When analyzing trends on a daily timeframe, you're typically focusing on short to medium-term trends. Here’s how you can determine the optimal number of preceding candles:
1. **Short-Term Trend:**
- **10 to 20 Candles (2 to 4 Weeks):** Using 10 to 20 daily candles captures about 2 to 4 weeks of price action. This is commonly used for identifying short-term trends, ideal for swing traders or those looking for quick entries and exits within a month.
2. **Medium-Term Trend:**
- **50 Candles (2 to 3 Months):** The 50-day moving average is a classic choice for capturing medium-term trends. This period covers about 2 to 3 months of trading days and is often used by swing traders and investors to identify the trend over a quarter or a season.
3. **Long-Term Trend:**
- **100 to 200 Candles (4 to 9 Months):** For longer-term trend analysis, using 100 to 200 daily candles gives you a broader perspective, covering approximately 4 to 9 months of price action. The 200-day moving average, in particular, is widely used by investors to determine the overall long-term trend and to assess market health.
**Considerations:**
- **Market Volatility:** In more volatile markets, using a larger number of candles (e.g., 50 or 200) helps smooth out noise and provides a more reliable trend signal. In less volatile markets, fewer candles might be sufficient to capture trends effectively.
- **Trading Style:** Day traders might prefer shorter periods (like 10 or 20 candles) for quicker signals, while position traders and longer-term swing traders might opt for 50 to 200 candles to focus on more sustained trends.
- **Asset Class:** The optimal number of candles can also depend on the asset class. For example, equities might have different optimal settings compared to forex or cryptocurrencies due to different volatility characteristics.
**Common Approaches:**
- **20-Period Moving Average:** The 20-day moving average is a popular choice for short-term trend analysis. It’s widely used by traders to identify the short-term direction and to make quick trading decisions.
- **50-Period Moving Average:** The 50-day moving average is a staple for medium-term trend analysis, often used as a key indicator for both entry and exit points in swing trading.
- **200-Period Moving Average:** The 200-day moving average is crucial for long-term trend identification. It's commonly used by investors and is often seen as a major support or resistance level. When the price is above the 200-day moving average, the market is generally considered to be in a long-term uptrend, and vice versa.
**Recommendation:**
- **Start with 20 Candles for Short-Term Trends:** This period is commonly used for identifying recent trends within the last few weeks.
- **Use 50 Candles for Medium-Term Trends:** This provides a good balance between responsiveness and stability, making it a good fit for most swing trading strategies.
- **Use 200 Candles for Long-Term Trends:** This period is ideal for long-term analysis and is particularly useful for investors looking at the overall market trend.
**Practical Example:**
- If you’re trading equities and want to catch short-term trends, start with 20 candles to identify trends that have developed over the past month.
- If you’re more focused on medium to long-term trends, consider using 50 or 200 candles to ensure you’re aligned with the broader market direction.
Experimenting with these periods and backtesting on historical data will help you determine the best setting for your particular strategy and the asset you're analyzing.
Guidelines for Weekly Timeframes:
When analyzing trends on a weekly timeframe, you're typically looking at intermediate to long-term trends. Here's how you might approach selecting the number of preceding candles:
1. **Intermediate-Term Trend:**
- **13 to 26 Candles (3 to 6 Months):** Using 13 to 26 weekly candles corresponds to a period of 3 to 6 months. This range is effective for identifying intermediate-term trends, which is suitable for swing traders or those looking to hold positions for several weeks to a few months.
2. **Medium-Term Trend:**
- **26 to 52 Candles (6 Months to 1 Year):** For a broader view, you might use 26 to 52 weekly candles. This represents 6 months to 1 year of price data, which is helpful for understanding the market’s behavior over a medium-term period. This range is commonly used by swing traders and position traders who are interested in capturing trends lasting several months.
3. **Long-Term Trend:**
- **104 Candles (2 Years):** Using 104 weekly candles gives you a 2-year perspective. This can be useful for long-term trend analysis, particularly for investors or those looking to identify major trend reversals or continuations over a more extended period.
**Considerations:**
- **Market Type:** In trending markets, fewer candles (like 13 or 26) may work well, capturing the trend more quickly. In choppier or range-bound markets, using more candles can help reduce noise and avoid false signals.
- **Asset Class:** The optimal number of candles can vary depending on the asset class. For example, equities might benefit from a slightly shorter lookback period compared to more volatile assets like commodities or cryptocurrencies.
- **Volatility:** If the market or asset you're analyzing is highly volatile, using a higher number of candles (like 52 or 104) can help smooth out price fluctuations and provide a more stable trend signal.
**Common Approaches:**
- **20-Period Moving Average:** A 20-week moving average is popular among traders for identifying the intermediate trend. It’s responsive enough to capture significant trend changes while filtering out short-term noise.
- **50-Period Moving Average:** The 50-week moving average is often used to identify longer-term trends and is commonly referenced in both technical analysis and by longer-term traders.
- **200-Period Moving Average:** Although less common on weekly charts compared to daily charts, a 200-week moving average can be used to identify very long-term trends, such as multi-year market cycles.
**Recommendation:**
- **Start with 26 Candles:** This gives you a half-year perspective and is a good starting point for most analyses on a weekly timeframe. It balances sensitivity to recent trends with the ability to capture more significant, sustained movements.
- **Adjust Based on Backtesting:** You can increase the number of candles to 52 if you find that you need more stability in the trend signal, or decrease to 13 if you're looking for a more responsive signal.
Experimenting with different periods and backtesting on historical data can help determine the best setting for your specific strategy and asset class.
Guidelines for Monthly Timeframes:
For analyzing trends on monthly timeframes, you would generally be looking at much longer periods to capture the broader, long-term trend. Here's how you can approach it:
1. **Long-Term Trend (Primary Trend):**
- **12 to 24 Candles (1 to 2 Years):** Using 12 to 24 monthly candles corresponds to a period of 1 to 2 years. This is typically sufficient to identify long-term trends and is commonly used by long-term investors or position traders who are interested in the overall direction of the market or asset over multiple years.
2. **Very Long-Term Trend (Secular Trend):**
- **36 to 60 Candles (3 to 5 Years):** To capture very long-term secular trends, you might use 36 to 60 monthly candles. This would represent a time frame of 3 to 5 years and is often used for understanding macroeconomic trends or very long-term investment strategies.
3. **Ultra Long-Term Trend:**
- **120 Candles (10 Years):** In some cases, especially for assets like indices or commodities that are analyzed over decades, using 120 monthly candles can help in identifying ultra long-term trends. This would be appropriate for strategic investors or those looking at generational market cycles.
**Considerations:**
- **Volatility and Stability:** Monthly timeframes generally smooth out short-term volatility, but they can also be slow to react to changes. Using a larger number of candles (e.g., 24 or more) can help ensure that the trend signal is robust and not prone to frequent whipsaws.
- **Asset Class:** The choice of period might also depend on the asset class. For instance, equities might require fewer candles compared to commodities or currencies, which can exhibit different trend dynamics.
- **Market Phases:** In different market phases (bullish, bearish, or sideways), the number of candles might need to be adjusted. For instance, in a strongly trending market, fewer candles might still provide a reliable trend indication, whereas in a more volatile or ranging market, more candles might be needed to smooth out the data.
**Common Approaches:**
- **50-Period Moving Average:** A 50-month moving average is popular among long-term traders and investors for identifying the primary trend. It offers a balance between capturing the overall trend and being responsive enough to significant changes.
- **200-Period Moving Average:** Although rarely used on a monthly chart due to the long timeframe it represents (over 16 years), it can be useful for identifying very long-term secular trends, especially for broad market indices or in macroeconomic analysis.
**Recommendation:**
- **Start with 24 Candles:** This gives you a 2-year perspective on the trend and is a good starting point for most long-term analyses on monthly charts. Adjust upwards if you need a broader trend view, depending on the stability and nature of the asset you're analyzing.
Experimentation and backtesting with your specific asset and strategy can help fine-tune the exact number of candles that work best for your analysis on a monthly timeframe.
NVME Hunter XNVME Hunter X is a scalping indicator designed from our NVME Oscillator X, it uses the trend confirmations to generate scalping signals and the signals can be customised in many different ways too. With our scalper, there are two scalping modes: default and legacy. Default is our new NVME Oscillator X algorithm and the legacy is our old algorithm combined with another indicator to generate the signals. With this new algorithm, we have reduced the amount of faulty signal prints by 20%, which is big. Furthermore, with the legacy mode you can customise the signal filtration system in 3 different ways: Colour-Based, Double Filter and Triple Filter. Colour-Based will only print the signal if the bar colour is the same as the signal printed so buys are green and sells are red (or whatever your colour scheme is). Double Filter will use multiple closes as a confirmation combined with a oscillator confluence to generate a signal and the triple filter will use multiple closes, the oscillator and the legacy mode to generate a signal print.
We also have an automatic support and resistance highlighter integrated into this scalping indicator to help traders find the key areas where price may reject and this works from finding confirmed pivot points and high points and low points where price has reversed and given the algorithm the confirmation it needs. The support and resistance zones can be changed by inputting different values into the lookback and forward offset period to generate different outputs.
To give you the extra confirmation, there is two plots that are accessible within the settings which is the chaser and tracer, both having a different colouring algorithm to give you an indication of the trend and whether or not it is a good time to scalp. The chaser works by using the oscillator to colour and the tracer works by using the price crossover to colour.
You can also customise the colour scheme to anything you want, there are 3 input boxes that allow you to change the colour for the bullish trend , bearish trend and unconfirmed trend and you can disable the colour overlay too, so that you can revert back to your old chart scheme.
The scalper also has predictive take profits and stop loss areas that can be printed next to every signal that shows you potential areas to look forward too, however this is done through ATR and high volatility periods can cause a massive fluctuation leaving the distance to far to get between each line.
You can also customise the dashboard's text colour, the x position and the y position and you can disable the dashboard too if you don't like it being displayed.
Our range filter removes up to 30% of faulty signals plotted on the charts giving you a noise free experience when scalping and some calls can even follow the trending market. This can be changed by toggling it on and changing the maximum and minimum range values.
Note: These results are not guaranteed in the future and each trade has risks, please consider the risks before you decide to try this indicator. Thank you for reading :)
Swing High/Low Scalper(Mastersinnifty)Overview
The Swing High/Low Scalper is designed for traders seeking structured entries and disciplined stop-loss planning during momentum shifts. It combines smoothed Force Index readings with swing high/low analysis to identify moments where both momentum and structural price levels align.
When a new directional bias is confirmed, the indicator plots clear entry signals and dynamically calculates the nearest logical stop-loss level based on recent swing points.
---
Core Logic
- Force Index Bias Detection
- The Force Index (price × volume change) is smoothed with an EMA to determine sustained bullish or bearish momentum.
- Signal Memory and Noise Reduction
- The indicator remembers the last signal (buy/sell) and only triggers a new signal when the bias changes, helping avoid redundant entries in sideways or noisy conditions.
- Swing-based Stop-Loss Calculation
- Upon signal confirmation, the script automatically plots a stop-loss label near the most recent swing low (for buys) or swing high (for sells).
- If conditions are extreme, fallback safety checks are used to validate the stop-loss placement.
---
Key Features
- Dynamic, structure-based stop-loss plots at every trade signal.
- Visual background bias:
- Green tint = Bullish bias
- Red tint = Bearish bias
- Minimalist and clean chart visualization for easy interpretation.
- Designed for scalability across timeframes (from 1-minutes to daily charts).
---
Why It’s Unique
- Unlike simple momentum oscillators or swing indicators, this tool integrates a state-tracking mechanism.
- A signal is only generated when a true shift in directional force occurs and swing structure supports the move, seeking to catch only meaningful changes rather than every minor fluctuation.
- This dual-filter approach emphasizes quality over quantity, aiming for disciplined entries with risk levels derived from actual price behavior, not arbitrary formulas.
---
How to Use
- Apply the Script to your desired chart and timeframe.
- Look for Signals:
- Green Up Arrow = Buy Signal
- Red Down Arrow = Sell Signal
- Observe Stop-Loss Labels
- Use the plotted SL labels for setting exit points based on recent swing structure.
- Monitor Background Bias:
- Green or Red background hints at prevailing directional momentum.
---
Important Disclaimer
This tool is intended to assist technical analysis and trade planning.
It does not provide financial advice or guarantee any future performance.
Always use additional risk management practices when trading.
Whale Activity Tracker Enhanced"Whale Activity Tracker Enhanced: Multi-Timeframe Adaptive Trading Signals"
Description:
The Whale Activity Tracker Enhanced (WAT+) is an innovative, multi-dimensional indicator designed to detect and visualize significant market moves likely driven by large players ("whales"). It combines volume analysis, price action, volatility, and momentum to provide traders with a comprehensive view of potential high-impact market events.
Key Features:
1. Adaptive Volume Spike Detection: Dynamically adjusts to market conditions, identifying unusual volume surges relative to recent activity.
2. Multi-Factor Confirmation: Combines volume spikes with price movements, RSI levels, and volatility measures for higher-probability signals.
3. Liquidity Grab Detection: Identifies potential stop-loss raids and liquidity sweeps through wick-to-body ratio analysis.
4. Customizable Signal Strength: Provides a visual representation of signal intensity, allowing traders to focus on the most significant events.
5. Flexible Timeframe Usage: Optimized settings for both scalp and swing trading, making it versatile across different trading styles.
How It Works:
- Volume Spike Analysis: Compares current volume to a user-defined multiple of the average volume.
- Price Move Threshold: Flags significant percentage price changes to filter out minor fluctuations.
- RSI Integration: Uses RSI to identify potential overbought/oversold conditions coinciding with other signals.
- Volatility Measurement: Incorporates ATR to detect periods of increased market volatility.
- Wick Analysis: Detects potential liquidity grabs by analyzing the ratio of candle wicks to bodies.
Originality:
Unlike standard volume or price action indicators, WAT+ synthesizes multiple market factors to provide a holistic view of potential whale activity. Its adaptive nature and customizable parameters allow it to work across various market conditions and trading styles.
Usage Guide:
1. Scalp Trading Setup:
- Use shorter lookback periods (12-15 bars) and tighter RSI levels (75/25).
- Focus on quick, high-probability trades triggered by volume spikes and price moves.
- Utilize the signal strength indicator for entry confirmation.
2. Swing Trading Setup:
- Extend lookback periods (20-30 bars) and use standard RSI levels (70/30).
- Look for sustained signals over multiple candles for trend confirmation.
- Combine with broader market trend analysis for higher-probability setups.
3. General Tips:
- Use the info panel to analyze the components of each signal.
- Adjust volume and price thresholds based on the specific asset's volatility.
- Combine with support/resistance levels for optimal entry and exit points.
By providing a multi-faceted approach to market analysis, the Whale Activity Tracker Enhanced empowers traders to identify and capitalize on significant market moves across various timeframes and trading styles.
Swing Trading Settings:
General Settings
Lookback Period: 20 to 30 bars. This provides a smoother signal and better context for swing trading.
Volume Spike Multiplier: 2.5 to 3.0. Higher thresholds ensure only significant volume spikes are considered.
Price Move % Threshold: 2.0 to 3.0%. Larger price move thresholds align with swing trading objectives.
RSI Period: 14 to 21. Longer periods smooth out short-term fluctuations.
RSI Overbought/Oversold Levels: 70/30. These levels work well for identifying potential reversals in swing trading.
Signal Detection
Enable Volume Spike Signal: True
Enable Price Move Signal: True
Enable Volatility Signal: True (important for identifying strong trends)
Enable Liquidity Grab Signal: True
Visualization
Show Volume Threshold Line: True
Show Signal Strength: True
Show Info Panel: True (useful for detailed analysis of swing setups)
Colors
Bullish Color: Green
Bearish Color: Red
Liquidity Color: Purple
Additional Parameters
ATR Period: 14 to 20. This helps identify volatility and set stop-loss levels.
Wick-to-Body Ratio: 2.0 or higher. This ensures only significant liquidity grabs are flagged.
Signal Strength Smoothing: 3 to 5 bars for steadier signals.
Scalp Trading:
General Settings
Lookback Period: 12 to 15 bars. This allows for a balance between responsiveness and noise reduction.
Volume Spike Multiplier: 2.0 to 2.2. This setting helps detect significant volume spikes without overreacting to minor fluctuations.
Price Move % Threshold: 1.0 to 1.2%. This captures substantial price movements suitable for scalp trading.
RSI Period: 7 to 9. Shorter periods provide quicker signals, ideal for scalp trading.
RSI Overbought/Oversold Levels: 75/25. Tighter levels help identify potential reversals sooner.
Signal Detection
Enable Volume Spike Signal: True
Enable Price Move Signal: True
Enable Volatility Signal: False (optional, depends on market conditions)
Enable Liquidity Grab Signal: True
Visualization
Show Volume Threshold Line: True
Show Signal Strength: True
Show Info Panel: False (optional, for cleaner charts)
Colors
Bullish Color: Green
Bearish Color: Red
Liquidity Color: Purple
Additional Tips
ATR Period: Keep it around 14 for volatility assessment.
Wick-to-Body Ratio: Adjust to 1.8 or higher for clearer liquidity grabs.
Signal Strength Smoothing: Use 2 to 3 bars for a responsive yet stable signal.
G.O.A.T. Scalper Diagnostics v1OVERVIEW:
The G.O.A.T. Scalper Diagnostics indicator system enables users to discover unorthodox indicator patterns, reading price charts in unusual ways, thus gaining an edge over the majority of market participants they trade against.
CONCEPTS:
Th G.O.A.T. Scalper Diagnostics is a system that aims to satisfy the fundamental condition for successful online trading - providing an edge.
It's a battle between advantages. To take other people's money, successful traders must have an advantage over everybody else. To hope for consistent success in trading, you need to do things differently and see what almost nobody else sees. Of course then you must act on it, and that's where the G.O.A.T. Scalper Diagnostic's mandate ends.
I believe the vast majority of indicators out there show you what everybody else sees. I've always been an indicator guy, I respect and cherish most indicators and I know a good indicator when I see it.
However, although most indicators are great works of art, their practicality is in most cases doubtful. Presenting great information is one thing, but providing an edge over the people you trade against is something different.
What Everybody Else Sees
The G.O.A.T. Scalper Diagnostics is based on indicators most of you have probably heard of and used:
Moving Averages (particularly the Kaufman Moving Average, among others)
ADX and DI
Bollinger Bands
Stochastic (particularly the Stochastic RSI)
Most traders should be well familiar with these classic indicators, they've provided the basis for online indicator trading for decades. But it's also true that due to how popular online trading has become all over the world, one is more and more unable to use these indicators successfully on lower timeframes.
Usually, more noteworthy success is achieved by going up in scale and discovering the timeframe where a particular indicator produces no false signals. Often times these timeframes range from bi-weekly to multi-month scale. In other words, consistently successful low timeframe trading and scalp trading in particular are now almost impossible using indicators.
Traders that dominate the scalping arena are big professional/institutional groups of traders, who have systematic access to the order books of most exchanges. This can be achieved one way or another, but not by individuals, small groups without significant capital or simply traders who lack political/social power and influence in the trading field.
In other words - giant order book traders have an edge over everybody else, who use indicators to trade on lower timeframes.
Through a series of interventions into these classical indicators, the G.O.A.T. System brings them back into the lower timeframe competitive game. Most original formulas are preserved, but these immortal classics are applied in ways popular TA would consider unorthodox.
Ingenious Indicators Built by Creators
The G.O.A.T. Scalper Diagnostics relies on the fundamental work of others. The System is developed on the basis of:
Quadratic Kernel Regression - it uses the publicly published library of Justin Dehorty: www.tradingview.com
PMARP - Price Moving Average Ratio & Percentile, publicly published by "The_Caretaker": www.tradingview.com
These Creators deserve full credit for their fundamental work and are endorsed by the G.O.A.T. Scalper Diagnostics project.
And yet... ingenious and inspired as these tools are, in my humble opinion the general public is presented with a rather unproductive way to apply them. In my own view, these wonderful tools built by JDehorty and The_Caretaker have a massive potential should they be applied and wielded in a different direction. So I tried to bring my vision about them into flesh with the G.O.A.T. Diagnostics.
What the G.O.A.T. Scalper Diagnostics Is and How to Use It
It's a System for new pattern discovery, bringing the disciplines of pattern and indicator trading together.
By using it as a stand-alone, or mixing it with other great indicators, one is able to discover new indicator patterns. Patterns can be compared, matched together and categorized. By applying statistics to differentiated historical pattern groups, we're able to derive their meaning.
Thus, the trader is able to research their own "alphabet" to read the price charts. After categorizing and differentiating pattern groups with statistically predominant meaning, the trader is then able to read into longer scenarios - price set-ups that are harder to detect due to them being stretched in time or misshapen according to the particular situation.
The G.O.A.T. Scalper leverages and encourages group trading, as different traders will probably discover different price "alphabets" for themselves, potentially giving rise to a social economy of sharing and combining "trading languages" based on indicator patterns people have discovered via the G.O.A.T. Diagnostics.
Support/Resistance Trading
The G.O.A.T. Scalper has its own way of deriving Support/Resistance.
Unlike most existing S/R indicators, The Scalper derives Support/Resistance not by measuring price highs, lows and closes, but solely by using momentum and trend strength.
This seems like a much more versatile way to plot S/R during scalping on low timeframes where time is of essence and the trader's view is too narrow to have macro S/R levels in constant consideration.
The Scalper's way to derive S/R in real time and on the go, while staying very relative to important higher timeframe S/R zones, makes it much more desirable than any other S/R indicator I've thus far encountered.
All S/R functionality is derived from the classical ADX and DI indicator. To do this, I use the ADX and DI in an unpopular way. To generate the actual plot of S/R levels I also modify the indicator's code, not by removing functional parts from it, but adding more to it in order to filter the signals it produces.
I can metaphorically describe its action in the following way:
Imagine you're Price action itself;
You're walking through a labyrinth or corridors. You're walking through one straight corridor, and it has a crossing with another corridor ahead;
Very strong wind is blowing along that other corridor. You can't see the wind, but when you reach it and try to move past it, the force of the wind resists your moving ahead and instead pushes you sideways.
At this point, the G.O.A.T. Diagnostics already knows this can only be one thing - resistance.
Orthodox TA and trading demand retests. In my opinion, this deeply rooted tradition wastes time proving the obvious, then wastes time again double-proving the validity of recent past, while scalping opportunities go to waste. Modern successful traders are way ahead of the popular strategy of testing and retesting S/R that almost every trader uses. So-called "Stops hunting" is just one expression of this situation, where wide adoption of the S/R retesting strategy actually lures unsuccessful traders into the schemes of the successful few.
In my own way of trading, I use the G.O.A.T. Diagnostics to take action on Support/Resistance as it's plotted in real time.
But probably my biggest heresy into the DI is my opinion, that the crossings of the +DI and -DI are useless and should actually be discarded.
My research shows that the DIs often show indications of being "oversold", but don't seem to exhibit an "overbought" state. Statistically, I've had much more success basing my TA on that, rather than cross-ups and cross-downs of the DI plot lines.
Therefore I discarded these crossings by presenting the DI part of the ADX and DI as a Heatmap channel rather than crossing lines.
To further enhance the ability of the System to provide S/R analysis, I plot this Heatmap onto an adjustable price offset plots (a percentage above and below current price).
In modern times, the vast majority of trading is done by automatic machines and algorithms. To give a specific example, one can easily notice, that a 5% offset of the BTC 1h price plot leads to remarkably accurate S/R charting. Following the rule to chart a S/R line connecting highs and lows on the 5% price offset often successfully "foresees" valid S/R zones before price ever visits them. Or, the levels were visited so far back in the timeframe's history that orthodox understanding considers them "invalidated" or washed away in the noise of the relevant volume profile.
My explanation for this is simple - I think Grid bots now dominate automatic trading across the majority of exchanges.
In my understanding, by adjusting the percentage offset of current price action I can often discover relevant conglomerations of dominating Grid bot cell parameters and anticipate price reaction. By plotting the DI heatmap on these price action offsets I can use the indicator for my trading decisions.
Heatmaps
Every heatmap produces different series of data. They're not the same.
Bollinger Band heatmap depicts the percentile distance between the Band's extremes.
The price candles heatmap, and the KAMA moving average heatmap, depict the percentile distance between price and the KAMA. So, it's the same thing. However, the percentile of that distance is calculated in two different ways, hence the difference in color in every particular moment. This color discrepancy aims to visualize the "strain" between price action and KAMA, like a soft and hard "springs" that go in unison with each other in sustainable moves, and in dissonance with each other during unsustainable moves.
Price offset heatmap depicts the percentile average of the +DI (above price) and the -DI (below price). A Hot temperature above price and a Cold temperature below price would mean a strong bullish sentiment, and vise versa, while Green would mean neutrality in sentiment.
There are important interplays between different heatmaps. For example, although representing totally different things, a Teal price bar would almost always (according to historical statistics) foreshadow a change in DI's heatmap sentiment. That's just one avenue of correlation between S/R analysis and sentiment analysis using the G.O.A.T. Diagnostics.
Oscillator Chart
In terms of applying Quadratic Kernel Regression, I endorse the natural principle that no center can exist without a periphery, and no periphery can exist without a center. Therefore I try to pay attention not only to the average of the regression's values, but also to the cloud of data points itself.
Following this understanding, I attempt to depict the natural cycles of price converging/diverging towards/from its regression average. To do this, I apply the classic Stochastic formula.
Thus, the Oscillator part of the System depicts the following:
Thin heatmap line displays the cycles of price converging with its quadratic kernel regression average (moving down), and diverging with its regression average (moving up). Its heatmap depicts the percentile of this oscillation.
The wider heatmap line displays the KAMA's cycles of convergence/divergence with its own quadratic kernel regression average. The reason for this is again creating discrepancy - while KAMA is based on price action, its regression data values differ from those of price action's regression. This discrepancy produces useful historic patterns that can be studied statistically.
The thin and wide purple oscillator lines depict the change of slope of price action regression average and KAMA regression average, respectively. Very often change of slope is not detectable with the naked eye, but clearly indicated by the oscillators.
By combining all these elements into a single analysis, a trader can detect hidden trends that are yet to become visible for the rest of market participants.
For example, convergence of price with its quadratic kernel regression average while the slope of the average deteriorates down in most cases (according to statistics) means a sideways consolidation in a downtrend before downtrend continuation. Conversely, deviation of price action from its regression average while the regression average slope deteriorates down usually marks the very beginning of a downtrend.
Bollinger Bands
Bollinger Bands are not modified, but are based on quadratic kernel regression values. Thus, if Bollinger Bands themselves are indicative of volatility, then based on kernel regression values, they should indicate the volatility of change of values in the regression's window.
Again, applying it to both the price and KAMA regression data series, a discrepancy is highlighted that leads to useful historical patterns subject to analysis and categorization.
SOME EXAMPLES
Support / Resistance
Support/Resistance levels are market by White Triangles with dotted lines plotted from them, in real time. The indicator plots Ghost Triangles in anticipation of Support/Resistance, preparing the trader for the eventual confirmation of a zone of interest and signaling price is feeling Support or Resistance pressure.
Dialing the length of the S/R lines to 25 makes the indicator more useful.
Dialing the setting to 500 clearly shows macro S/R zones by conglomerating and bundling individual lines. The thicker the bundling and the confluence of lines, the more significant the zone.
Thus lower timeframe scalping and trading is made more easy, without the need to do nearly as much manual S/R charting. Support/Resistance analysis and plotting is entirely based on a modified ADX.
Heatmap
Sustainable moves are generally marked by Green price color and calm KAMA colors.
Unsustainable moves are usually marked by more extreme colors of price bars and KAMA. Red usually means price is unsustainably distanced from the KAMA, while deep Blue usually means price is undesirably close to the KAMA, foreshadowing a directional distancing.
Usually Teal color of price bars and KAMA foreshadow a change of sentiment of the outside Heatmap sentiment channel.
Red color of the outside channel always signals the direction of the desired sentimental movement, while Blue signals the extent at which the counter-element suffers. Thus, one side being Green, while the other is Blue, often means the Blue will soon evolve into a warmer color, attracting price in that direction. Outside Heatmap channel is entirely based on a modified DI.
Oscillator Chart
An example of Chart Diagnosis using the Oscillator and other elements of the G.O.A.T. Scalper:
First (far left), a Resistance is plotted. This coincides with price bars being Red (distressed state). The thin colorful Oscillator line takes an Up-turn, signifying a period of price moving away from its Quadratic Kernel Regression (pink moving average).
After Price cools down to Green sustainable colors, a Support is plotted. During this time, the thin colorful line is falling down, signifying a period when the distance between price action and its quadratic kernel regression average is decreasing.
During this phase, the thin purple Oscillator line goes up. This signifies the slope of the price regression is restoring to the upside.
Next, the thin colorful line starts going up again, signifying another period of price getting further away from its regression average. This time to the upside.
Resistance is being broken and new support is established. At this point, the thin colorful line starts falling again, signifying distance between price and its regression MA is shortening. This is clearly visible as a sideways consolidation (with a slight tilt up of slope).
A moment comes when all lines - the price and KAMA lines, and price and KAMA regression slopes, all point down. A new down period is clearly starting. This is further indicated by Teal price bars and new Resistance forming. Notice how the external heatmap channel goes into more balanced Green colors with trend enthusiasm calming down.
This analysis may appear to be overwhelming and confusing at first, as these metrics are unorthodox and unpopular. But different aspects of the indicator can be toggled ON/OFF to single them out, which makes observations much simpler for new users. After some time spent discovering personal patterns, or reviewing other users' catalogues with already published pattern libraries, it soon becomes easy to read charts in this new way.
Bollinger Bands
Bollinger Bands provide another way to produce patterns that give users specific chart information.
One noteworthy indication is when the price and KAMA Bollinger Bands separate their value zones. Since the zones of these Bands are based on the kernel regression values of the respective sources, their separation is significant and too often means violent reversals or violent continuations (which usually can be judged using the other metrics the System provides, or additional indicators of choice).
Another noteworthy Bollinger Band pattern is when price action leaves a prolonged trending move.
First phase of the end of a prolonged trending move is the BB zones expanding and doing a significant overlap.
Second stage is price getting reaccepted in the Price BB. This however doesn't mean reacceptance in the KAMA BB and if the moment isn't right, usually leads to bounces and continuations.
The KAMA needs to "make space" for price to get reaccepted into the KAMA BB. While the KAMA is outside its BB or very near to its wall, price reacceptance into it is not very probable. When KAMA withdraws from its BB wall, opening an "entrance on its membrane", that's when price is eligible to get reaccepted into the KAMA BB. That's usually the moment the long awaited consolidation starts and a long trending move is over.
Users of the G.O.A.T. Scalper Diagnostics can discover many more patterns and correlations between patterns within the System. But the System itself can multiply all possible patterns when inspected in the context of additional indicators, leading to vast possibilities of signal and pattern discovery with huge potential.
A very good idea would probably be to use the G.O.A.T. Diagnostics together with the Ichimoku.
Ichimoku has always been famous for its genius simplicity and elegant profoundness, but notorious for its total lack of accuracy, as well as general uselessness on lower timeframes. The G.O.A.T. System has the potential to enhance all of Ichimoku's strengths and cure its weaknesses.
Yet another good idea may be to pair it with kindred indicators, like the Gaussian Channel, which has a stunning performance, but suffers from too high level of generalization. The Diagnostics can provide the intricate texture of price manoeuvres the Gaussian Channel fails to register, while the GC can give the Scalper even more solid context for its patterns.
The worthwhile possibilities seem endless...
Entry Table
I've added a little Entry Table at the bottom right corner. It's designed to potentially help scalpers trade faster, and to visualize a potential trade they're thinking about before they execute it. A Stop Loss is visually plotted in real time to better visualize it's placement in the chart context.
It encourages responsible risk management in its settings:
The user enters the amount of their trading portfolio;
Then specify the percentage of their portfolio they're willing to risk at every trade;
After that the user can chose to specify a flat percentage Stop Loss.
The table will calculate the size of the entry of a market order, so the user only risks the specified percentage of their portfolio should the specified Stop Loss level is hit.
There's also the option to use automatically suggested Stop Loss, based on recent volatility. The actual Stop Loss is calculated 20% away from the actual volatility level, to better protect from unforeseen wicks.
In the current example, the user with a $1000 trading portfolio has to do a $1000 entry to lose 1% of their portfolio ($10) at a 1% Stop Loss.
But the user has to do a $2,525 entry in order to lose 1% of their portfolio (%10) at a much closer Stop Loss which is less than 1%, based on recent volatility.
The Entry Table should be considered as a cosmetic convenience and not a dedicated risk management tool.
CONCLUSION:
The G.O.A.T. Scalper Diagnostics is an indicator System, based on popular, but modified and tweaked versions of indicators like the ADX and DI, Stochastic, Bollinger Bands and MAs. It also leverages the remarkable work of inspired creators: JDehorty's Quadratic Kernel Regression library, and The_Caretaker's PMARP .
The G.O.A.T. Scalper Diagnostics indicator system enables users to discover so-called new "indicator-pattern alphabets", reading price charts in new and unorthodox ways, thus gaining an edge over the majority of market participants they trade against.
The high degree of freedom when discovering new patterns, either within the System itself or correlating its output to external auxiliary indicators, highlights the System's potential for original discoveries leading to highly personalized trading strategies. Exchanging information about personal pattern libraries can potentially also give birth to new private trading communities.
[XSO-Premium-X1]The indicator is a comprehensive, premium trading indicator designed to optimize your trading strategy through advanced price action analysis. By examining raw price data and market structure, it identifies key areas where price movements are likely to occur. This indicator serves as an essential trading companion, significantly reducing the time required for analysing price action and enabling you to place trades manually or via automated alerts.
Summary:
The indicator is a sophisticated tool crafted for analysing and predicting market trends using a variety of technical analysis techniques. It integrates multiple calculations, filters, and conditions to pinpoint optimal buy and sell signals, thereby assisting you in making well-informed decisions. The indicator emphasizes trend detection, sideways market identification, and signal generation, all while providing visual cues and alerts for trading actions.
The indicator leverages price action calculations to evaluate the market's bullish or bearish tendencies, ensuring that signals are only triggered when price action is strong enough.
This indicator performs extensive calculations, consolidating our top tools into a master signal generator that includes new, extensively tested methods previously unavailable to the public. Signals are confirmed when multiple factors, including price action, align. The indicator swiftly reacts to market changes, providing early signals at the first signs of a reversal.
HOW TO USE THE INDICATOR
Buy Signal
An orange “Buy Signal” will be plotted on the chart to indicate when the most opportunistic time is to place a trade. The indicator includes alert functionality so that you can be notified using the standard Trading View alert management options.
You will see indicated by the blue arrows on the above graph the entry or ‘buy’ signals. The signal is represented by an orange box and clearly states ‘Buy Signal’ inside it. You are also provided with the close price of the bar for which the entry/buy value should be.
Sell Signal
The sell signal will look at the market and detect changes within the trend. There are multiple tools that are used to determine the best time to exit/sell the trade. Our advanced algorithm continually monitors the current action and will determine the most desirable time to display a sell signal box which is blue in colour. This signal will be shown directly on the chart.
Indicated in blue arrows you will see the sell signals. Each signal has four values:
Type of Signal
The current close price of the current bar
The percentage change from the original corresponding buy signal
The previous buy signal’s close price
The indicator will look at many factors when determining if you should exit a trade. Look at the image below and you can see a typical buy and sell signal combination:
The bottom blue arrow indicates your entry or “buy” trade and the top blue arrow indicates your exit or “sell” trade. As you can see you would have entered/bought at 185.76 and exited/sold at 186.895 with a 0.61% margin.
Here is another example:
Hold Asset / Stop Loss
If the market moves to the downside after you have entered a trade then the indicator will track this. Our analysis may determine that the market may continue to fall or that simply the conditions are no longer favourable. Under these circumstances the indicator will flag for you to Hold Asset / Stop Loss. You can then make a decision if you want to hold onto your asset or sell it at a loss.
If you look on the chart below you can see an example of these signals plotted on the chart indicated by the blue arrow.
Alert Management
There are 3 alerts that are fixed. They are:
Buy Signal
Sell Signal
Hold Asset / Stop Loss
You can select which alert you would like to trigger from the standard trading view alert management page. For all buying you would select “Buy Signal” for all selling/take profit you would select “Sell Signal” and for holding the asset (maybe to set a limit order) or to sell the asset at a loss (stop loss), you would choose “Hold Asset / Stop Loss”.
Best Utilization of Our Indicator with Lower Time Frames
Our indicator is specifically designed to excel in short-term trading environments, making it the perfect tool for scalping strategies. For optimal performance, it is best utilized with time frames under 5 minutes . Here’s why our indicator is tailored for lower time frames and not suitable for long-term signalling:
1. Scalping Focus:
o Scalping involves making numerous trades throughout the trading session to capture small price movements. Our indicator is engineered to identify these quick, short-term opportunities, making it ideal for time frames of 3 minutes and under.
2. Rapid Signal Generation:
o Lower time frames generate more data points in a shorter period, allowing our indicator to provide rapid buy and sell signals. This frequency is crucial for scalpers who need to react quickly to market changes.
3. Minimized Market Noise:
o While lower time frames can be more volatile, our indicator includes filters to minimize market noise and focus on significant trading signals. This feature ensures that you receive reliable signals even in fast-paced trading environments.
Suitable Markets
This indicator is versatile and suitable for all markets, offering comprehensive analysis and reliable signals for various trading environments. Its advanced features and customizable settings ensure optimal performance across different market conditions, making it an essential tool for traders in any market.
Strategies
This indicator is ideal for both scalping whilst taking long positions, providing precise, timely signals for short-term trades while also identifying strong trends. Its versatility and advanced features make it a valuable tool for traders with diverse strategies.
What makes our indicator different?
Our indicator incorporates predefined parameters tailored to identify opportunities within a long strategy, rendering this indicator particularly advantageous for traders focused on long positions. Upon identifying a buy position, the indicator issues a buy signal and subsequently initiates asset tracking. A sell signal is generated only when the indicator identifies substantial uncertainty regarding the continuation of the upward trend. Its simple to use.
Momentum Concepts [AlgoAlpha]🚀 Introducing the Momentum Concepts™ , a robust multi-layered momentum analysis tool developed by AlgoAlpha . This All-in-One indicator offers a comprehensive approach to understanding market momentum, empowering traders with hyper customizable features to tailor their analysis to their specific trading strategies.
Designed with efficiency and compactness in mind, the script shows momentum regimes on three time horizons: The short-term ( Fast Oscillator ), medium-term ( Scalper's Momentum ) and long-term ( Momentum Impulse Oscillator and Hidden Liquidity Flow ). Additionally, the script also includes reversal signals for traders who prefer to trade contrarian/mean-reversion strategies. By utilizing a blend of advanced algorithms and customizable parameters, Momentum Concepts™ provides traders with a vast array of trading strategies ranging from high frequency scalping to timing better entries on long-term swing and investing positions.
Let's delve into the key features and functionalities of this versatile indicator:
🎯Key Features (summary):
Customizable Fast Oscillator: Tailor the fast oscillator to your preferences with adjustable settings for type, source, trend identification(signal processing) method, length, and more.
Divergence Detection: Identify potential trend reversals with ease using built-in divergence detection for both bullish and bearish signals.
Momentum Impulse Oscillator: Gain deeper insights into trending/ranging markets and underlying market bias with a dedicated oscillator, featuring adjustable trend impulse thresholds.
Scalper's Momentum: Utilize a specialized momentum indicator designed for scalping strategies, featuring agility in signal detection with noise reduction and customizable smoothing parameters.
Hidden Liquidity Flow Analysis: Assess hidden liquidity flows within the market, highlighting excess liquidity and potential squeeze situations.
Trend Confluence Indicator: Evaluate the overall momentum direction with dynamically colored zones, aggregating signals from Momentum Concepts™ components for a holistic view.
User-Friendly Interface: The indicator is presented in a clear and intuitive manner, making it accessible for traders of all experience levels.
All-Rounded Alerts: The indicator comes with a comprehensive alerts extension in a separate script, allowing you to stay informed of important market movements even when away from your trading platform.
🎯Key Features (in-depth):
The Fast Oscillator within Momentum Concepts™ comprises four components designed to provide insights into short-term momentum dynamics:
🔱Price Volume Swings :
This confirmation component uses our proprietary Price Volume Algorithm to analyze price action and volume to identify buying and selling pressure, aiding traders in spotting short-term swings for potential trading opportunities.
⚜️Price Volume Waves :
This leading component also uses our proprietary Price Volume Algorithm but differs from the Price Volume Swings by capturing dominant wave patterns instead. This indicator breaks down price and volume data into a wave-like plot which enables leading insights into market momentum due to the relatively predicable nature of sine-like waves. Leading components such as this and the Alpha Wave are best used with other confirmation components within the Momentum Concepts™ .
🌊Alpha Wave :
The Alpha Wave is a leading non-volume alternative to the Price Volume Waves . It reflects market momentum by analyzing price action only instead of using volume data, resulting in a normalized wave-like plot similar to that of the Price Volume Waves , offering a leading perspective on potential market momentum shifts. Leading components such as this and the Price Volume Waves are best used with other confirmation components within the Momentum Concepts™ .
🐲Dragon RSI :
The Dragon RSI is a confirmation component that determines market momentum by analyzing the directional movement of the Relative Strength Index (RSI). By doing so, users are able to visually identify the current short term trend of the market as well as identify overbought and oversold conditions.
Reversal Signals :
All the Fast Oscillator components come with reversal signals that are based on the respective components being either oversold or overbought.
Divergences :
All the Fast Oscillator components come with bullish and bearish divergences. Divergences within the Fast Oscillator components of Momentum Concepts ™ offer crucial signals for trend shifts. 🔱 Price Volume Swings and ⚜️ Price Volume Waves detect weakening buying or selling pressure, signalling potential reversals or continuations. 🌊 Alpha Wave and 🐲 Dragon RSI identify divergences between momentum and price, aiding traders in anticipating market movements. Leveraging these divergences enhances analysis, aiding traders in formulating meaningful analysis.
Customizable Signal Processing Methods :
All the Fast Oscillator components come with customizable signal processing methods to identify trends on the Fast Oscillator , they include (but not limited to) methods such as Heiken Ashi, and a vast selection of Moving Averages.
Diminishing Momentum Warning :
All the Fast Oscillator components come with a diminishing momentum warning that represents a reducing momentum on the Fast Oscillator . This can act as a take profit signal or as a precautionary warning that the price is about to change direction soon even though the Fast Oscillator has not detected it yet.
Dynamically Colored Reversal Zones :
Last but not least, the dynamic coloring of the reversal zones for Fast Oscillator can be customised based on either the reversal probability of the Fast Oscillator or based on the overall trend confluence of all the components within the Momentum Concepts™ indicator.
The Momentum Impulse Oscillator in Momentum Concepts™ offers crucial insights into long-term momentum trends, aiding traders in identifying the underlying momentum regime and differentiating between trending and consolidating markets.
Underlying Momentum Bias
By default, the Momentum Impulse Oscillator is set to show the longer term trend of price action, this can be used to set the directional bias for the markets and prevent users from trading against the trend.
Trending/Ranging Detection
The Momentum Impulse Oscillator comes with the option to enable trending thresholds, when the Momentum Impulse Oscillator is beyond these thresholds, it indicates a trending market, when Momentum Impulse Oscillator is within the thresholds, it indicates a consolidating/ranging market.
The Scalper's Momentum within Momentum Concepts™ furnishes traders with nuanced signals ideal for short to medium-term trading strategies. It efficiently displays both the medium-term momentum and any emerging divergences towards the opposing direction.
Medium-Term Momentum
The Scalper's Momentum is designed to fill the analysis gap between the Fast Oscillator and the Momentum Impulse Oscillator . Showing momentum insights over the medium-term.
Momentum Convergence-Divergence
The Scalper's Momentum is also capable of showing momentum convergences and divergences, which can be used as take-profit and/or confirmation signals to other components within Momentum Concepts™ .
The Hidden Liquidity Flow component of Momentum Concepts™ is designed to uncover underlying liquidity dynamics. This feature enables traders to anticipate potential price movements based on changes in liquidity flow, enhancing their ability to make informed trading decisions.
Underlying Liquidity Dynamics
The Hidden Liquidity Flow shows the underlying liquidity flow of the market, a positive liquidity flow indicates that liquidity is entering the market and increasing the probability of bullish price action, the opposite is true for negative liquidity flows.
Excess Liquidity Flow
The Hidden Liquidity Flow also indicates when there is an abnormal amount of liquidity flowing through the market, this can indicate the potential for volatility and explosive price action.
🎯Usage Examples:
Now that we have gone through the components and features of Momentum Concepts™ in detail, we'll walk you through the usage examples and strategies that you can utilise to navigate the markets.
Scalping
Using the Scalper's Momentum and the Fast Oscillator as an example, users can first use the Scalper's Momentum as a directional bias and the Fast Oscillator as a means of timing a more precise entry. Take profits can be based on either the Diminishing Momentum Warnings or the Fast Oscillator flipping signals or the Scalper's Momentum flipping signals.
Buying the Dip/Shorting the Pump
Using the Momentum Impulse Oscillator and the Fast Oscillator as an example, users will need to first determine the underlying trend with the Momentum Impulse Oscillator , after which they can use the Fast Oscillator for entry signals into the trend. Take profits can be based on either the Diminishing Momentum Warnings or the Fast Oscillator flipping signals
Reversal Trading
Using the Momentum Impulse Oscillator on a timeframe roughly 3-4 times greater than the chart's timeframe and the Fast Oscillator as an example, users will need to first ensure that the Momentum Impulse Oscillator signals a ranging market on a higher timeframe, divergence signals from the Fast Oscillator can then be used as entries. Take profits can be based on either the Diminishing Momentum Warnings or the Fast Oscillator flipping signals or the Fast Oscillator reaching the zero line.
(These are just examples for reference, the Momentum Concepts™ offers significantly more possibilities for customisation and fine tuning of your trading strategy.)
🎯Conclusion:
In conclusion, Momentum Concepts™ stands as a versatile and powerful tool for traders seeking to decode the intricacies of market momentum across multiple time horizons. With its comprehensive suite of customizable features, including the Fast Oscillator , Scalper's Momentum , Momentum Impulse Oscillator , and Hidden Liquidity Flow , traders can gain deep insights into market dynamics and make well-informed trading decisions. Whether executing high-frequency scalping strategies or timing entries for longer-term positions, Momentum Concepts™ equips traders with the tools they need to navigate diverse market conditions with confidence. By harnessing the power of momentum analysis, this indicator empowers traders to stay ahead of the curve and capitalize on emerging opportunities in the ever-evolving financial markets.
RSI + Fibonacci HH LL Support Resistance I have integrated my past scripts and brushed them up further.
This tool allows for support/resistance, stop loss, take profit, and trend analysis using RSI and Fibonacci ratios.
For example, the Fibonacci ratio is used as follows
l1 = m - dist * 0.618
l2 = m - dist * 1.618
l3 = m - dist * 2.618
l4 = m - dist * 4.235
l5 = m - dist * 6.857
l6 = m - dist * 11.089
When the Fibonacci ratio reaches 2.618 or higher and the RSI smoothed by the 5-day EMA is oversold/overbought, the bar color is changed by a gradation.
We have tried to make the design as beautiful and good-looking as possible. You can also hide the lines to suit your own preference.
Example usages are here:
BTCUSDT 1Hour Chart
Using Fibonacci numbers
BTCUSDT 15min Chart, for Scalping
Here, to set the highest and lowest prices one hour ago, "4" is substituted as the calculation: 15 minutes x 4 = 60
BTCUSDT 15min Chart, for Scalping
To set the highest and lowest prices 4 hours ago , "4" is substituted as the calculation: 15 minutes x 16 = 240
BTCUSDT 15min Chart, for Scalping
To draw yesterday's high and low as support/resistance lines, I substituted the number "96" as 1440/15=96.
BTCUSDT 1min Chart, for Scalping
Substituted "60" to trail the highest and lowest prices over a 60-minute period on a 1-minute chart, and removed lines to beautify
BTCUSDT 1day Chart, for Long-Term Investers
This is an example of using "90" because it is a 1-day chart and assumes that 3 months = 90 days in order to trail the highest and lowest prices over a 3-month period and no lines.
My past scripts are here:
RSI + FIB HH LL StopLoss Finder/Contrarian Trades
Fibonacci HH LL TRAMA Band
Supply and Demand Zone IndicatorOVERVIEW
The supply and demand zone indicator shows real-time supply and demand zones on the chart. It also plots a table including the high and low values of the zones. The last row of the table also shows the daily trend in the market.
CONCEPTS
What is Supply & Demand?
Supply and Demand represent the two most powerful forces of the forex market. Demand means the number of buyers buying a security in the market. Supply means the number of sellers selling a security in the market.
How to identify supply and demand zones?
Supply and Demand zones are formed on the base region of price on the chart. There are two types of movement of price in technical analysis.
Impulsive wave
Retracement wave
The impulsive wave represents the price movement of market makers. The Retracement wave indicates base regions where market makers decide their next direction to go up or down.
There are four fundamental concepts of Demand and supply in forex.
Rally Base Rally (RBR)
Rally Base Drop (RBD)
Drop Base Rally (DBR)
Drop Base Drop (DBD)
How does supply & demand indicator work?
Our supply & demand indicator will use a simple formula based on price action to plot the zones. It will plot the zone on the base candles using the high and low of the base zone.
Base candle = a candlestick that has a small body and big shadows like a Doji candlestick.
Big candle = a candlestick with a large body and small shadows.
The zone will be drawn on the high and low of the base candlestick. There can be more than one base candlesticks in the base zone, but our indicator will identify the maximum of 4 base candlesticks.
FEATURES
Specify desired Big Body Candle Size Percentage
Specify desired Small Body Candle Size Percentage
Change the Colors of Zones at your own will
The Indicator Draws the latest zones and puts a label on historical Zones
The Indicator Draws real-time Zones under specified conditions of candle body sizes. The Zone will stop once the candlestick closes above the supply zone or below demand zones.
Recommended Timeframe
Above 30 Minutes
Zeta Diamond BurstWhat is Scalping?
Scalping is a trading strategy aimed at profiting from quick momentum in a volatile index or stock.
Traders who use such strategies place anywhere from 10 to a few hundred trades in a single day.
The idea behind such type of trading is that small moves in an index or stock price are much easier to capture than the larger moves.
Traders who use such strategies are known as scalpers. When you take many small profits a number of times, say 10 points scalped 20 times per day, they can easily add up to large gains.
An Option Buyer's Biggest Enemy is Time Decay and when you scalp, you do not allow the time decay to eat your Option Premium as your Entry and Exit is often quick enough.
What is Zeta Diamond Burst?
Zeta Diamond Burst is a momentum based indicator which tries to detect momentum based upon price action and volume.
When it thinks a move has the potential to turn into a good scalping move, it generated its Buy/Sell Signals.
If the momentum continues, Blue Diamonds (for up move ) and Purple Diamonds (for down move) keeps appearing on the chart.
How to Take Buy/Sell Entry with Zeta Diamond Burst?
Whenever you see a Buy Signal, take Entry if a follow up candle also starts going in the same direction.
Your STOP LOSS could be just 0.5% below your Entry Price, hence, no big loss even if things go wrong.
Keep moving your STOP LOSS up as the price moves in your favour and when market turns around or you see a SELL signal, it is time to book your BUY position profit and take Entry on SELL Side now and so on.
For how long you should stay in the trade?
Scalping trades for Bank Nifty should last only 1 to 5 minutes if move is not going in your favor, this will save your capital from Theta Decay erosion.
If more and more diamonds are appearing in the same direction, then hold your position for more than 5 minutes, till opposite signal comes.
This cycle continues as and when new signals emerge.
Reversal Algo (Expo)"It has never been easier to find high probability trades"
Reversal Algo (Expo) is an automated Reversal System that analyzes the market in real-time and identifies high probability short term and long term trend reversal- and scalping signals as well as key market zones, and trends. The adaptive and unique reversal bands act as support & resistance zones, and together with the trend tracking feature, it serves as a trend confirmation. The system does also comes with a Top & Bottom finder that detects potential tops and bottoms that can be used as scalping entries or take profit points.
This Reversal System is developed to catch both short term and long term trend reversal and provide clarity in the current trend direction. The system aims to make it easier to come in early in a new trend as well as to stay longer in that trend. One of the main features is that the system has already filtered out false and choppy signals and aims to leave the most accurate ones.
One of the main goals was to make a system that works well without having Heiken Ashi candles. However, if you apply the system to Heiken Ashi candles you will have an additional layer of noise filtering.
Key differences between Trend Algo and Reversal Algo are that Reversal Algo is more responsive to price action and has a dynamic and adaptive Reversal cloud. The Reversal Algo does also has the tops/bottoms finder. These two systems can be used together.
The user can enable the following:
ATR Trailing Stop - Helps to identify the trend as well as where to have your stop loss.
Trend Tracking Line - Helps to identify Strong trends and areas of trend reversals.
Trend Steps- Helps to highlight where the current trend direction has found a new base.
Reversal Band - Helps to identify the trading range, strong trends, and areas of reversals.
Trend Scalping Dots - Helps to keep track of the short term price action.
Noise- and Signal filters:
Depending on your trading style you can choose between different trend filters and signals sensitivities.
Real-Time Alerts
No Repainting
Works on any market and in any timeframe
The indicator can be used standalone or as a part of your current trading strategy.
HOW TO USE
Use the indicator to identify reversal signals.
Use the indicator to identify trends.
Use the indicator to identify tops & bottoms signals.
Use the indicator to identify scalping signals.
INDICATOR IN ACTION
1-hour chart
Top/Bottom Finder
1-hour chart
I hope you find this indicator useful , and please comment or contact me if you like the script or have any questions/suggestions for future improvements. Thanks!
I will continually work on this indicator, so please share your experience and feedback as it will enable me to make even better improvements. Thanks to everyone that has already contacted me regarding my scripts. Your feedback is valuable for future developments!
-----------------
Disclaimer
Copyright by Zeiierman.
The information contained in my scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators/strategies/ideas are only for educational purposes!
ACCESS THE INDICATOR
• Contact me on TradingView or use the links below
Trend Algo (Expo)
Trend Algo (Expo) is an automated Trend System that works by identifying high probability trend reversal signals , trading range signals as well as trend scalping signals. This Trend System is developed to catch the next trend and provide clarity in the current trend direction. The system aims to make it easier to come in early in a new trend as well as to stay longer in that trend. One of the main features is that the system has already filtered out false and choppy signals and aims to leave the most accurate ones.
One of the main goals was to make a system that works well without having Heiken Ashi candles. However, if you apply the system to Heiken Ashi candles you will have an additional layer of noise filtering.
The user can enable the following:
ATR Trailing Stop - Helps to identify the trend as well as where to have your stop loss.
ATR Trend Cloud - Helps to identify the trend.
Trend Tracking Line - Helps to identify Strong trends and areas of trend reversals.
Elasticity Band - Helps to identify the trading range, strong trends, and areas of trend reversals.
Trend Scalping Dots - Helps to keep track of the short term price action.
Signals:
Trend Reversal Buy & Sell Signals - Trend reversals signals.
Trend Scalping Signals - Signals within the current trend direction.
Trading Range Signals - Signals within trading ranges.
Noise- and Signal filters:
Depending on your trading style you can choose between different trend filters and signals sensitivities.
Real-Time Alerts
No Repainting
Works on any market and in any timeframe
The indicator can be used standalone or as a part of your current trading strategy.
HOW TO USE
Use the indicator to identify trend reversals signals.
Use the indicator to identify trends.
Use the indicator to identify trading range signals.
Use the indicator to identify trend scalping signals.
INDICATOR IN ACTION
1-hour chart
I hope you find this indicator useful , and please comment or contact me if you like the script or have any questions/suggestions for future improvements. Thanks!
I will continually work on this indicator, so please share your experience and feedback as it will enable me to make even better improvements. Thanks to everyone that has already contacted me regarding my scripts. Your feedback is valuable for future developments!
-----------------
Disclaimer
Copyright by Zeiierman.
The information contained in my scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators/strategies/ideas are only for educational purposes!
ACCESS THE INDICATOR
• Contact me on TradingView or use the links below
Volatility Detector by AjeetThis indicator is used for detecting Volatility
To be applied only on 15 mins chart
As soon as you spot a circle (Inc. in Volatility) then high movement is
expected in further 5-6 candles
Movement can be up or down
Its can be best used for scalping...
Run a chart on 15 mins, detect a candle with an indication of high movement ahead
shift to smaller timeframe like 3 mins
apply lower setting supertrend like 11,2
and take benefit of the move
Capns Bollinger Bands MTF This Simple Script display higher time frame Bollinger Band on current resolution . Etc : On 1 Minutes chart BB Band is 5 Minutes Band. I use this code on my pc for scalping...Hope You like the idea
15-Minute Separator + Upcomingit is used to separate 15 minutes in LTF. Best use on 1 minutes or ticks. Perfect for scalping.
Malama's big MACDPurpose: Malama's Big MACD is a multi-faceted Pine Script indicator designed for traders on short timeframes (1-5 minute charts) to identify high-probability trading opportunities. It combines a Stochastic Price Predictor (SPP) with a comprehensive set of technical indicators, including MACD, RSI, moving average crossovers, ATR, volume spikes, and a custom JKH RSI, to generate robust buy and sell signals. The indicator aims to solve the problem of filtering out market noise in fast-moving markets by integrating probability-based predictions with traditional technical analysis, providing traders with clear entry/exit signals, trend visualization, and risk management levels.
Originality and Usefulness
This script is a unique mashup of a Stochastic Price Predictor (SPP) and a comprehensive indicator suite, tailored for short-term trading. The SPP uses a Monte Carlo simulation combined with ATR and Stochastic RSI to forecast price movements, while the comprehensive indicator suite leverages MACD crossovers, RSI overbought/oversold conditions, moving average crossovers, volume spikes, and a custom JKH RSI for confirmation. Unlike standalone MACD or RSI indicators available in TradingView’s public library, this script’s originality lies in its hybrid approach, blending probabilistic forecasting with multiple confirmatory signals to enhance reliability. The integration of user-defined sentiment input and customizable risk management levels further differentiates it from generic open-source alternatives, making it particularly useful for scalpers and day traders seeking precise, actionable signals.
How It Works
The script operates in two primary modules: the Stochastic Price Predictor (SPP) and the Comprehensive Indicator Suite, which work together to generate and confirm trading signals. Signal strength is calculated to quantify the confidence of bullish or bearish conditions.
Stochastic Price Predictor (SPP):
Core Logic: The SPP forecasts price movements using a Monte Carlo simulation based on historical returns, ATR-based volatility, and Stochastic RSI filtering. It calculates the probability of price reaching a user-defined target move (default: 0.3%) within a specified forecast horizon (default: 3 bars).
Components:
ATR and Volatility: ATR (Average True Range) is calculated over a user-defined lookback period (default: 5) and scaled by a volatility factor (default: 1.5) to estimate price volatility. A volatility ratio (current volatility vs. average) filters out signals during extreme volatility (>2x average).
Stochastic RSI: A 7-period RSI is smoothed into a Stochastic RSI (5-period stochastic, 2-period SMA) to identify overbought (>85) or oversold (<15) conditions, preventing signals in extreme market states.
Monte Carlo Simulation: 30 price paths are simulated using a geometric Brownian motion model, incorporating drift (based on weighted moving average of returns) and volatility shocks. The simulation estimates the probability of price reaching the target move up or down.
Signal Generation: A buy signal is triggered if the probability of an upward move exceeds the confidence threshold (default: 65%) and the market is not overbought, with volatility within limits. A sell signal is triggered similarly for downward moves.
Purpose: The SPP provides a probabilistic framework to anticipate short-term price movements, reducing reliance on lagging indicators.
Comprehensive Indicator Suite:
Core Logic: This module combines multiple technical indicators to confirm SPP signals and generate independent signals based on momentum, trend, and volume.
Components:
MACD: Uses fast (5-period) and slow (13-period) EMAs to calculate the MACD line, smoothed by a 5-period signal line. A crossover above a threshold (default: 0.0001) indicates bullish momentum, while a crossunder signals bearish momentum.
RSI: A 14-period RSI identifies overbought (>70) or oversold (<30) conditions to filter signals.
Moving Average Crossovers: Fast (5-period) and slow (20-period) EMAs determine trend direction. A bullish crossover (fast > slow) supports buy signals, while a bearish crossover (fast < slow) supports sell signals.
Volume Spikes: Volume exceeding 2x the 50-period average signals significant market activity, enhancing signal reliability.
JKH RSI: A fast 3-period RSI with custom overbought (>80) and oversold (<20) levels provides additional confirmation, reducing false signals in choppy markets.
Sentiment Input: A user-defined sentiment score (-1 to 1) adjusts signal strength, allowing traders to incorporate external market bias (e.g., news or fundamentals).
Signal Generation: A buy signal requires a bullish MACD crossover, RSI oversold, bullish MA crossover, non-overbought JKH RSI, and neutral/positive sentiment. A sell signal requires the opposite conditions.
Signal Strength Calculation:
Logic: Combines SPP probability, RSI deviation, and MACD strength, weighted at 50%, 30%, and 20%, respectively. Sentiment input scales the final strength (0–100).
Formula:
Bullish strength = min(100, (50 * |prob_up - prob_down| / 100 + 30 * |RSI - 50| / 50 + 20 * |MACD_line| / (0.1 * ATR)) * (1 + max(0, sentiment)))
Bearish strength is calculated similarly, using the absolute negative sentiment.
Purpose: Quantifies signal confidence, helping traders prioritize high-probability setups.
Strategy Results and Risk Management
While the script is primarily an indicator, it provides implied trading signals that assume realistic trading conditions:
Assumptions: Signals are designed for short-term trading (1-5 minute charts) with a minimum of 100 trades for statistical significance. The script assumes typical commission (e.g., 0.1% per trade) and slippage (e.g., 0.05%) for liquid markets. Risk per trade is implicitly capped via ATR-based stop-loss levels (2x ATR below/above entry for buy/sell).
Default Settings:
Lookback (5), volatility factor (1.5), and forecast horizon (3) are optimized for short timeframes.
ATR-based stop-loss and profit target levels (2x ATR) provide a risk-reward ratio of approximately 1:1.
Confidence threshold (65%) balances signal frequency and reliability.
Customization: Traders can adjust the ATR multiplier for stop-loss/profit targets or modify the confidence threshold to increase/decrease signal frequency. Lowering the target move (e.g., to 0.2%) or shortening the forecast horizon (e.g., to 2 bars) can tighten risk parameters for scalping.
Guidance: Traders should backtest signals on their specific asset and timeframe, ensuring sufficient trade volume (>100 trades) and incorporating their broker’s commission/slippage. Risk should be limited to 5–10% of equity per trade, adjustable via ATR multiplier or position sizing outside the script.
User Settings and Customization
The script offers extensive user inputs, organized into three groups:
Stochastic Price Predictor Settings:
Lookback Period (default: 5): Controls the period for ATR and returns calculation. Shorter periods increase sensitivity.
Volatility Factor (default: 1.5): Scales ATR for volatility shocks in the Monte Carlo simulation.
Confidence Threshold (default: 65%): Sets the minimum probability for SPP signals.
Stoch RSI Overbought/Oversold Levels (default: 85/15): Filters signals in extreme conditions.
Forecast Horizon (default: 3): Number of bars for price prediction.
Target Move (default: 0.3%): Expected price movement for probability calculation.
Show Predicted Range (default: false): Toggles visibility of the 25th–75th percentile price range.
Comprehensive Indicator Settings:
RSI Length (default: 14), Overbought (70), Oversold (30): Standard RSI parameters.
ATR Length (default: 14): Period for ATR calculation.
Volume Spike Multiplier (default: 2.0): Threshold for detecting volume spikes.
Sentiment Input (default: 0.0, range: -1 to 1): Scales signal strength based on external bias.
MACD Fast/Slow/Signal Lengths (default: 5/13/5), Crossover Threshold (0.0001): Controls MACD sensitivity.
MA Fast/Slow Lengths (default: 5/20): Defines trend direction.
JKH RSI Length (default: 3), Overbought (80), Oversold (20): Fast RSI for confirmation.
Visual Settings:
Show SPP Signals (default: true): Displays SPP buy/sell labels.
Show Comp Signals (default: true): Displays comprehensive indicator signals.
Highlight Volume Spikes (default: true): Highlights bars with significant volume.
Show ATR Levels (default: true): Plots stop-loss and profit-target lines.
Impact: Adjusting lookback periods or thresholds affects signal frequency and sensitivity. For example, lowering the confidence threshold increases signals but may reduce accuracy, while increasing the volatility factor amplifies price path variability.
Visualizations and Chart Setup
The script plots clear, relevant elements on the chart to aid decision-making:
Trend Line: Plots the close price, colored green (bullish, fast MA > slow MA), red (bearish), or orange (neutral).
SPP Signals: Green "BUY (SPP)" labels below bars and red "SELL (SPP)" labels above bars when conditions are met.
Predicted Range: Optional blue step lines showing the 25th–75th percentile price range from the Monte Carlo simulation, with a semi-transparent fill.
Comprehensive Signals:
Blue upward triangles for bullish MACD crossovers, orange downward triangles for bearish crossovers.
Green circles above bars for RSI overbought, red circles below for oversold.
Green "BUY (Comp)" labels (offset by 1x ATR below) and red "SELL (Comp)" labels (offset by 1x ATR above) for comprehensive signals.
Green upward triangles for bullish MA crossovers, red downward triangles for bearish crossovers.
Volume Spikes: Yellow background highlights bars with volume >2x the 50-period average.
ATR Levels: Purple dotted lines for stop-loss (close - 2x ATR) and profit target (close + 2x ATR).
Moving Averages: Fast MA (blue, 5-period) and slow MA (red, 20-period) for trend reference.
Clarity: Only relevant elements are plotted, ensuring traders can quickly identify trends, signals, and risk levels without clutter.
Swing-Based Volatility IndexSwing-Based Volatility Index
This indicator helps traders quickly determine whether the market has moved enough over the past few hours to justify scalping.
It measures the percentage price swing (high to low) over a configurable time window (e.g., last 4–8 hours) and compares it to a minimum threshold (e.g., 1%).
✅ If the percent move exceeds the threshold → Market is volatile enough to scalp (green background).
🚫 If it's below the threshold → Market is too quiet (red background).
Features:
Adjustable lookback period in hours
Custom threshold for volatility sensitivity
Automatically adapts to the current chart timeframe
This tool is ideal for scalpers and short-term traders who want to avoid entering trades in low-volatility environments.
Perp R/R Toolcalculate lot size and automatically plot SL and TP and entry for quicker execution when scalping. SL is currently set to high of candle for shorts and low of candle for longs +1 ATR. can change ATR, risk per trade and r/r ratio in settings. change trade direction to show info for long, short or both.