Multi-LTF ATR Trailing Stop - AYNETSimple Explanation of the Code
This Pine Script code implements a multi-timeframe ATR-based trailing stop indicator. It calculates and plots the trailing stop lines for up to six configurable timeframes. Users can enable or disable specific timeframes, and each trailing stop line is color-coded and labeled with the corresponding timeframe (e.g., "15m", "1H").
Key Features of the Code
Multi-Timeframe Support:
The script calculates trailing stops for six different timeframes, such as 15 minutes, 1 hour, 1 day, etc.
User Configurations:
The user can:
Select timeframes for each trailing stop (e.g., "15m", "1H").
Enable or disable each timeframe using checkboxes.
Adjust the ATR period and multiplier to customize the trailing stop calculation.
Color-Coded Lines:
Each timeframe's trailing stop is plotted with a unique color for easy distinction.
Labels for Timeframes:
Labels at the end of the lines indicate the timeframe of each trailing stop (e.g., "15m", "1H").
Summary
This code is a multi-timeframe ATR trailing stop tool that helps traders visualize and analyze trailing stops across multiple timeframes. It is customizable, dynamic, and visually intuitive, making it ideal for both trend-following and stop-loss management.
Multitimeframe
LMFWith this indicator you can follow the averages of other time frames in the current time frame.
There are 3 different views: table, level and line.
Deshmukh TVWAP (Multi-Timeframe)The TVWAP is an indicator that calculates the average price of an asset over a specified period, but instead of giving equal weight to each price during the period, it gives more weight to the later time periods within the trading session. It is essentially the running average of the price as time progresses.
Time-Weighted Calculation: Each data point (close price) gets a weight based on how much time has passed since the start of the session. The more time that has passed, the more "weight" is given to that price point.
Session-Based Calculation: The TVWAP resets at the start of each trading session (9:15 AM IST) and stops calculating after the session ends (3:30 PM IST). This ensures that the indicator only reflects intraday price movements during the active market hours.
Working of the Indicator in Pine Script
Session Timing:
The session runs from 9:15 AM to 3:30 PM IST, which is the standard market session for the Indian stock market. The script tracks whether the current time is within this session.
At the start of the session, the script resets the calculations.
Time-Weighted Average Price Calculation:
Each time a new price data (close price) comes in, the script adds the closing price to a cumulative sum (cumulativePriceSum).
It also counts how many time intervals (bars) have passed since the session started using cumulativeCount.
The TVWAP value is updated in real-time by dividing the cumulative price sum by the number of bars that have passed (cumulativePriceSum / cumulativeCount).
Buy and Sell Signals:
The TVWAP can act as a dynamic support/resistance level:
Buy Signal: When the price is below the TVWAP line, the script plots a green "Buy" signal below the bar.
Sell Signal: When the price is above the TVWAP line, the script plots a red "Sell" signal above the bar.
The logic behind this is simple: if the price is below TVWAP, it might be undervalued, and if it's above, it could be overvalued, making it a good time to sell.
Plotting TVWAP:
The TVWAP line is plotted in blue on the chart to provide a visual representation of the time-weighted average price throughout the session.
It updates with each price tick, helping traders identify trends or reversals during the day.
Key Components and How They Work
Session Timing (sessionStartTime and sessionEndTime):
These are used to check if the current time is within the trading session. The TVWAP only calculates the average during active market hours (9:15 AM to 3:30 PM IST).
Cumulative Calculation:
The variable cumulativePriceSum accumulates the sum of closing prices during the session.
The variable cumulativeCount counts the number of time periods that have elapsed (bars, or ticks in the case of minute charts).
TVWAP Calculation:
The TVWAP is calculated by dividing the cumulative sum of the closing prices by the cumulative count. This gives a time-weighted average for the price.
Plotting and Signals:
The TVWAP value is plotted as a blue line.
Buy Signals (green) are generated when the price is below the TVWAP line.
Sell Signals (red) are generated when the price is above the TVWAP line.
Use Cases of TVWAP
Intraday Trading: TVWAP is particularly useful for intraday traders because it adjusts in real-time based on the average price movements throughout the session.
Scalping: For scalpers, TVWAP acts as a dynamic reference point for entering or exiting trades. It helps in identifying short-term overbought or oversold conditions.
Trend Confirmation: A rising TVWAP suggests a bullish trend, while a falling TVWAP suggests a bearish trend. Traders can use it to confirm the direction of the trend before taking trades.
Support/Resistance: The TVWAP can also act as a dynamic level of support or resistance. Prices below TVWAP are often considered to be in a support zone, while prices above are considered resistance.
Advantages of TVWAP
Time-Weighted: Unlike traditional moving averages (SMA or EMA), TVWAP focuses on time rather than price or volume, which gives more relevance to later price points in the session.
Adaptability: It can be used across various timeframes, such as 3 minutes, 5 minutes, 15 minutes, etc., making it versatile for both scalping and intraday strategies.
Actionable Signals: With clear buy/sell signals, TVWAP simplifies decision-making for traders and helps reduce noise.
Limitations of TVWAP
Intraday Only: TVWAP is a day-specific indicator, so it resets each session. It cannot be used across multiple sessions (like VWAP).
Doesn't Account for Volume: Unlike VWAP, which accounts for volume, TVWAP only considers time. This means it may not always be as reliable in extremely low or high-volume conditions.
Conclusion
The TVWAP indicator provides a time-weighted view of price action, which is especially useful for traders looking for a more time-sensitive benchmark to track price movements during the trading day. By working across all timeframes and providing actionable buy and sell signals, it offers a dynamic tool for scalping, intraday trading, and trend analysis. The ability to visualize price relative to TVWAP can significantly enhance decision-making, especially in fast-moving markets.
TFMTFM Strategy Explanation
Overview
The TFM (Timeframe Multiplier) strategy is a PineScript trading bot that utilizes multiple timeframes to identify entry and exit points.
Inputs
1. tfm (Timeframe Multiplier): Multiplies the chart's timeframe to create a higher timeframe for analysis.
2. lns (Long and Short): Enables or disables short positions.
Logic
Calculations
1. chartTf: Gets the chart's timeframe in seconds.
2. tfTimes: Calculates the higher timeframe by multiplying chartTf with tfm.
3. MintickerClose and MaxtickerClose: Retrieve the minimum and maximum closing prices from the higher timeframe using request.security.
- MintickerClose: Finds the lowest low when the higher timeframe's close is below its open.
- MaxtickerClose: Finds the highest high when the higher timeframe's close is above its open.
Entries and Exits
1. Long Entry: When the current close price crosses above MaxtickerClose.
2. Short Entry (if lns is true): When the current close price crosses below MintickerClose.
3. Exit Long: When the short condition is met (if lns is false) or when the trade is manually closed.
Strategy
1. Attach the script to a chart.
2. Adjust tfm and lns inputs.
3. Monitor entries and exits.
Example Use Cases
1. Intraday trading with tfm = 2-5.
2. Swing trading with tfm = 10-30.
Tips
1. Experiment with different tfm values.
2. Use lns to control short positions.
3. Combine with other indicators for confirmation.
Multi-Timeframe MACD, Signal & Histogram TableThis Pine Script is designed for the TradingView platform to create a multi-timeframe MACD (Moving Average Convergence Divergence), Signal, and Histogram table that displays values for different timeframes. The script uses the MACD indicator to assess market trends across various timeframes and display the results in a table format on the chart. Here's a breakdown of its components and functionality:
1. User Inputs for Timeframes:
The script allows the user to input five different timeframes for the analysis. These are configured using input.string, which enables the user to select from a list of timeframes (from seconds to months).
tf1 to tf5 represent the different timeframes (for example, 5 minutes, 15 minutes, 60 minutes, 240 minutes, and daily).
2. MACD Settings:
The script provides adjustable settings for the MACD calculation:
macdShortLength (default 12): The length of the short-term moving average for the MACD.
macdLongLength (default 26): The length of the long-term moving average for the MACD.
macdSignalLength (default 9): The length of the signal line, which is an EMA (Exponential Moving Average) of the MACD line.
3. MACD Calculation Function (calc_macd):
This function calculates the MACD, Signal, and Histogram values:
MACD Line: Difference between the fast and slow exponential moving averages.
Signal Line: EMA of the MACD line.
Histogram: Difference between the MACD line and Signal line.
4. Requesting Multi-Timeframe Data:
The script calculates the MACD, Signal, and Histogram for the selected timeframes (tf1 to tf5) using request.security, which retrieves data for those timeframes:
macd_tf1, signal_tf1, hist_tf1 for Timeframe 1 (and similar variables for the other timeframes).
5. Rounding Values:
A helper function roundDecimal is used to round MACD, Signal, and Histogram values to two decimal places for readability.
6. Color Assignment Based on Value:
The colors of the values in the table cells are dynamically set based on whether the value is positive or negative:
MACD, Signal, and Histogram: The script uses conditional color assignments (green for positive values, red for negative values).
For example, if the MACD value is greater than or equal to 0, it is colored green, otherwise red. The same logic applies to the Signal and Histogram values.
7. Populating the Table:
For each timeframe (tf1 to tf5), the script populates the table with the following data:
Timeframe (e.g., "5 min")
Rounded MACD value
Rounded Signal value
Rounded Histogram value
The respective color is applied to each value based on whether it is positive or negative.
10. Table Update:
The table is updated dynamically with new data on each new bar. Each timeframe’s values are populated into the table starting from row 1 through row 5.
Candelaa - Balanced Price Range (BPR) 📝 Overview
ICT Balanced Price Range (BPR) is the area on price chart where two opposite Fair Value Gaps overlap.
To identify a Balanced Price Range (BPR), mark a fair value gap (FVG) on the sell side of the price and another on the buy side. These FVGs should be directly opposite each other horizontally. The overlapping area between the two is the Balanced Price Range.
The significance of the ICT Balanced Price Range lies in its sensitivity to price movements. When the market approaches a BPR, it often triggers a rapid and notable price reaction.
This reaction occurs because the two opposing FVGs attract the attention of smart money traders—those with substantial capital capable of influencing market trends. As a key concept in the Inner Circle Trader (ICT) methodology, the BPR serves as an ideal entry point, frequently driving considerable market activity.
📦 Features
MTF
Mitigation
Consequent Encroachment (CE)
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether BPRs are displayed on the chart.
Show Last: Sets the number of BPRs you want to display.
Length: Determines the length of each BPR.
Mitigation: Highlights when an BPR has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect BPRs.
Threshold: Sets the minimum gap size required for BPR detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the BPR. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the BPR.
Hide Overlap: Removes overlapping BPRs from view.
Extend: Extends the BPR length to the current candle.
Elongate: Fully extends the BPR length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script offers alert options for all signal types.
Bearish Signal
A bearish signal is generated when the price re-enters a bearish inversion zone and then reverses downward.
Bullish Signal
A bullish signal is generated when the price revisits a bullish inversion zone and then breaks upward through the top.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Intraday buy/Sell Trend Momentum and Strength Screener MTFIntraday buy/Sell Trend Momentum and Strength Screener MTF
This script is designed to educational purpose intraday trading by displaying key technical indicators and providing a visual framework for tracking market conditions.
Multitimeframe Intraday Analysis tool for trend, Strength,momentum with indicator cum screener
Key Features:
Technical Indicators:
Exponential Moving Averages (EMA): Tracks trend direction.
RSI (Relative Strength Index): Measures market strength.
MACD (Moving Average Convergence Divergence): Identifies trend and momentum.
Awesome Oscillator (AO): Monitors momentum shifts.
Bollinger Bands: Shows overbought/oversold conditions.
Live Screener Table:
Displays real-time data for multiple timeframes (3m, 5m, 15m, 30m, 60m) and various indicators like RSI, MACD, AO, and Bollinger Bands.
Visuals:
Labels mark important trade levels, with lines showing stop loss and target points for visual reference.
Intraday Session:
Configurable start and end times for the trading session.
This script is ideal for traders who want to keep track of key market indicators and trends throughout the day while visually identifying critical levels for stop loss and target points.
Disclaimer:Please remember that past performance may not be indicative of future results. Due to various factors, including changing market conditions, the strategy may not perform as well as in historical backtesting. My scripts/indicators/ideas/algos/systems are for learning purposes only.
The information provided does not constitute financial advice. All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual’s trading does not guarantee future results or returns. Decisions should be based solely on an evaluation of one’s financial circumstances, investment objectives, risk tolerance, and liquidity needs.
ViPlay Signal Indicator ProViPlay Signal Indicator Pro is a professional trading tool designed for traders who aim to make informed decisions based on advanced technical analysis. This indicator combines unique algorithms for analyzing market data with classical methods, creating an innovative approach to generating trading signals.
The indicator is built upon a combination of automatically calculated support and resistance levels, dynamic moving averages, and an original algorithm that incorporates momentum analysis and overbought/oversold zones. Unlike most standard indicators, ViPlay Signal Indicator Pro doesn’t just merge data but uses a proprietary integrated analysis method to generate actionable signals.
How the Indicator Works
1. Buy and Sell Signal Generation
ViPlay Signal Indicator Pro uses dynamic trend detection based on the crossover of two customizable moving averages (default: 50 and 200). The algorithm additionally incorporates oscillator data (e.g., Williams %R and RSI) and support/resistance levels to provide traders with precise entry and exit points.
* "Buy" and "Sell" signals are generated only when multiple factors align: moving average crossovers, key support/resistance levels, and market momentum derived from oscillators.
2. Support and Resistance Levels
The indicator automatically calculates key levels (e.g., 200, 500, 1000 bars). These levels are not only displayed on the chart but also incorporated into signal generation. The unique approach involves using an adaptive algorithm that adjusts levels based on current volatility.
3. Integration of Oscillators and Momentum Analysis
ViPlay Signal Indicator Pro analyzes data from the Williams %R oscillator to determine overbought and oversold zones. The algorithm adaptively adjusts oscillator parameters based on market conditions, enhancing signal accuracy during high volatility.
4. Pre-Calculated Take-Profit and Stop-Loss Levels
In addition to signal generation, the indicator automatically calculates suggested levels for taking profits and limiting losses. These levels are based on a percentage model (default: 7%) and current market momentum.
5. Display of Additional Data
For added convenience, ViPlay Signal Indicator Pro displays a table on the chart showing current values for RSI, Williams %R, trend signals, and the state of support/resistance levels.
Indicator Advantages
* Original Logic: All signals are derived from a proprietary algorithm combining trend and oscillator data.
* Adaptability: The indicator automatically adjusts its parameters to current market conditions.
* Informative: Detailed levels and data help traders make more informed decisions.
* Flexibility: Full customization of all parameters, including periods, line styles, levels, and more.
What Makes ViPlay Signal Indicator Pro Unique?
* Unlike standard indicators that merely display data, ViPlay Signal Indicator Pro employs a unique algorithm to integrate and analyze market dynamics, identifying key patterns.
* Multi-Functionality: The indicator is suitable for short-term and long-term trading, scalping, and trend identification.
* Market Versatility: It performs effectively across cryptocurrencies, stocks, forex, and other assets.
How to Use the Indicator?
1. Apply ViPlay Signal Indicator Pro to the chart with your chosen timeframe.
2. Adjust the moving average periods, support/resistance levels, and oscillator sensitivity to suit your trading strategy.
3. Use the "Buy" and "Sell" signals for market entries and calculated Take-Profit and Stop-Loss levels for risk management.
4. Pay attention to the data table for a comprehensive market analysis.
Important Information
* The script is an original development. It combines standard elements, but their interaction is based on a unique algorithm.
* It fully complies with the principles of usefulness: traders receive ready-to-use entry/exit points, risk management levels, and additional analysis data.
* The description provides a detailed overview of the indicator’s functionality, concept, and usage.
Conclusion
ViPlay Signal Indicator Pro is more than just an indicator — it’s your personal assistant that combines advanced analytical methods to enhance trading performance.
Try it and see its accuracy for yourself!
Candelaa - Fair Value Gap (FVG) 📝 Overview
A Fair Value Gap, is a three-candle pattern where an unfilled area exists between the high of the first candle and the low of the third candle. This Fair Value Gap represents a price imbalance and often serves as a level of support or resistance on the price chart.
A Bullish FVG occurs when the high of the first candle is below the low of the third candle, creating a gap in price between them.
A Bearish FVG happens when the low of the first candle is above the high of the third candle, also resulting in a price gap.
The indicator is designed to allow traders to precisely and accurately identify Fair Value Gaps (FVGs) across any chosen time frame. By automatically detecting these price imbalances, it highlights potential areas where price may retrace, providing valuable insights into market support and resistance levels. This capability enables traders to make informed decisions based on the presence of FVGs, enhancing their strategies for entry and exit points across different market conditions and time frames.
📦 Features
MTF
Mitigation
Consequent Encroachment
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether FVGs are displayed on the chart.
Show Last: Sets the number of FVGs you want to display.
Length: Determines the length of each FVG.
Mitigation: Highlights when an FVG has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect FVGs.
Threshold: Sets the minimum gap size required for FVG detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the FVG. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the FVG.
Hide Overlap: Removes overlapping FVGs from view.
Extend: Extends the FVG length to the current candle.
Elongate: Fully extends the FVG length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the price moves back into a bearish inversion zone and then reverses downward.
Bullish Signal
A bullish signal is triggered when the price returns to a bullish inversion zone and then breaks upward out of the top.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Direction Coefficient Indicator# Direction Coefficient Indicator with Advanced Volume & Volatility Adjustments
The Direction Coefficient Indicator represents an advanced technical analysis tool that combines price momentum analysis with sophisticated volume and volatility adjustments. This versatile indicator measures market direction while adapting to various trading conditions, making it valuable for both trend following and momentum trading strategies.
At its core, the indicator employs a unique approach to price analysis by establishing a dynamic reference period for calculations. It processes price data through an EMA smoothing mechanism to reduce market noise and presents results as percentage-based measurements, ensuring universal applicability across different markets and timeframes.
One of the indicator's standout features is its volume integration system. When enabled, this system implements volume-weighted calculations that provide enhanced accuracy during significant market moves while effectively reducing false signals during low-volume periods. This volume weighting mechanism proves particularly valuable in highly liquid markets where volume plays a crucial role in price movement validation.
The volatility adjustment feature sets this indicator apart from traditional momentum tools. By incorporating smart volatility normalization, the indicator adapts seamlessly to changing market conditions. This adjustment helps maintain consistent signals across different volatility regimes, preventing excessive noise during highly volatile periods while remaining sensitive enough during calmer market phases.
Direction change detection forms another crucial component of the indicator. The system continuously monitors momentum shifts and provides early warning signals for potential trend reversals. This feature helps traders avoid late exits from positions and offers valuable insights for potential market turning points. When the indicator detects significant changes in momentum, it displays a warning symbol (⚠) alongside its regular signals.
The visual presentation of the indicator utilizes an intuitive color-coded system. Green labels indicate positive momentum, while red labels signify negative momentum. The display system includes customizable label sizes and positions, allowing traders to adapt the visual elements to their specific chart setup and preferences. Label distance from candles, color schemes, and reference lines can all be adjusted to create an optimal visual experience.
For practical application, the indicator offers several parameter settings that traders can adjust. The time period parameters include adjustable lookback periods and EMA length, while advanced calculation options allow for enabling or disabling volume weighting and volatility adjustment features. These parameters can be fine-tuned based on specific trading timeframes and market conditions.
In trend following scenarios, traders can use the coefficient direction for trend confirmation while monitoring warning signals for potential exits. The volume weighting feature adds another layer of confirmation for trend strength. For momentum trading, strong coefficient readings can signal entry points, while warning signals help identify potential exit timing.
Risk management becomes more systematic with this indicator. Warning signals can guide stop loss placement, while the volatility adjustment feature assists in position sizing decisions. The volume weighting component helps traders evaluate the significance of price moves, contributing to more informed entry timing decisions.
The indicator performs optimally when traders start with default settings and gradually adjust parameters based on their specific needs. For longer-term trades, increasing the lookback period often provides more stable signals. In highly liquid markets, enabling volume weighting can enhance signal quality. The volatility adjustment feature proves particularly valuable during unstable market conditions.
The Direction Coefficient Indicator stands as a comprehensive solution for traders seeking a sophisticated yet practical approach to market analysis. By combining multiple analytical components into a single, customizable tool, it provides valuable insights while remaining accessible to traders of various experience levels.
For optimal results, traders should consider using this indicator in conjunction with other technical analysis tools while paying attention to its warning signals and volume-weighted insights. Regular parameter adjustment based on changing market conditions and specific trading styles will help maximize the indicator's effectiveness in various trading scenarios.
Indicateur de Coefficient Directeur
L'Indicateur de Coefficient Directeur représente un outil d'analyse technique avancé qui combine l'analyse de momentum des prix avec des ajustements sophistiqués de volume et de volatilité. Cet indicateur polyvalent mesure la direction du marché tout en s'adaptant à diverses conditions de trading, le rendant précieux tant pour le suivi de tendance que pour les stratégies de trading momentum.
À sa base, l'indicateur emploie une approche unique de l'analyse des prix en établissant une période de référence dynamique pour les calculs. Il traite les données de prix à travers un mécanisme de lissage EMA pour réduire le bruit du marché et présente les résultats sous forme de mesures en pourcentage, assurant une applicabilité universelle à travers différents marchés et temporalités.
L'une des caractéristiques distinctives de l'indicateur est son système d'intégration du volume. Lorsqu'il est activé, ce système met en œuvre des calculs pondérés par le volume qui fournissent une précision accrue pendant les mouvements significatifs du marché tout en réduisant efficacement les faux signaux pendant les périodes de faible volume. Ce mécanisme de pondération du volume s'avère particulièrement valuable dans les marchés très liquides où le volume joue un rôle crucial dans la validation des mouvements de prix.
La fonction d'ajustement de la volatilité distingue cet indicateur des outils de momentum traditionnels. En incorporant une normalisation intelligente de la volatilité, l'indicateur s'adapte parfaitement aux conditions changeantes du marché. Cet ajustement aide à maintenir des signaux cohérents à travers différents régimes de volatilité, empêchant le bruit excessif pendant les périodes très volatiles tout en restant suffisamment sensible pendant les phases de marché plus calmes.
La détection des changements de direction forme une autre composante cruciale de l'indicateur. Le système surveille continuellement les changements de momentum et fournit des signaux d'avertissement précoces pour les potentiels renversements de tendance. Cette fonctionnalité aide les traders à éviter les sorties tardives des positions et offre des aperçus précieux des potentiels points de retournement du marché. Lorsque l'indicateur détecte des changements significatifs de momentum, il affiche un symbole d'avertissement (⚠) à côté de ses signaux réguliers.
La présentation visuelle de l'indicateur utilise un système intuitif codé par couleurs. Les étiquettes vertes indiquent un momentum positif, tandis que les étiquettes rouges signifient un momentum négatif. Le système d'affichage inclut des tailles et positions d'étiquettes personnalisables, permettant aux traders d'adapter les éléments visuels à leur configuration spécifique de graphique et leurs préférences. La distance des étiquettes par rapport aux bougies, les schémas de couleurs et les lignes de référence peuvent tous être ajustés pour créer une expérience visuelle optimale.
Pour l'application pratique, l'indicateur offre plusieurs paramètres de réglage que les traders peuvent ajuster. Les paramètres de période temporelle incluent des périodes de référence ajustables et la longueur de l'EMA, tandis que les options de calcul avancées permettent d'activer ou de désactiver les fonctionnalités de pondération du volume et d'ajustement de la volatilité. Ces paramètres peuvent être affinés en fonction des temporalités de trading spécifiques et des conditions de marché.
Dans les scénarios de suivi de tendance, les traders peuvent utiliser la direction du coefficient pour la confirmation de tendance tout en surveillant les signaux d'avertissement pour les sorties potentielles. La fonction de pondération du volume ajoute une couche supplémentaire de confirmation pour la force de la tendance. Pour le trading momentum, des lectures fortes du coefficient peuvent signaler des points d'entrée, tandis que les signaux d'avertissement aident à identifier le timing potentiel de sortie.
La gestion du risque devient plus systématique avec cet indicateur. Les signaux d'avertissement peuvent guider le placement des stops loss, tandis que la fonction d'ajustement de la volatilité aide aux décisions de dimensionnement des positions. La composante de pondération du volume aide les traders à évaluer l'importance des mouvements de prix, contribuant à des décisions de timing d'entrée plus éclairées.
L'indicateur fonctionne de manière optimale lorsque les traders commencent avec les paramètres par défaut et ajustent progressivement les paramètres en fonction de leurs besoins spécifiques. Pour les trades à plus long terme, l'augmentation de la période de référence fournit souvent des signaux plus stables. Dans les marchés très liquides, l'activation de la pondération du volume peut améliorer la qualité des signaux. La fonction d'ajustement de la volatilité s'avère particulièrement précieuse pendant les conditions de marché instables.
L'Indicateur de Coefficient Directeur s'impose comme une solution complète pour les traders recherchant une approche sophistiquée mais pratique de l'analyse de marché. En combinant plusieurs composantes analytiques en un seul outil personnalisable, il fournit des aperçus précieux tout en restant accessible aux traders de différents niveaux d'expérience.
Pour des résultats optimaux, les traders devraient envisager d'utiliser cet indicateur en conjonction avec d'autres outils d'analyse technique tout en prêtant attention à ses signaux d'avertissement et ses aperçus pondérés par le volume. L'ajustement régulier des paramètres basé sur les conditions changeantes du marché et les styles de trading spécifiques aidera à maximiser l'efficacité de l'indicateur dans divers scénarios de trading.
Bewakoof stock indicator**Title**: "Bewakoof Stock Indicator: Multi-Timeframe RSI and SuperTrend Entry-Exit System"
---
### Description
The **Bewakoof Stock Indicator** is an original trading tool that combines multi-timeframe RSI analysis with the SuperTrend indicator to create reliable entry and exit signals for trending markets. This indicator is designed for traders looking to follow strong trends with built-in risk management. By filtering entries through short- and long-term momentum and utilizing dynamic trailing exits, this indicator provides a structured approach to trading.
#### Indicator Components
1. **Multi-Timeframe RSI Analysis**:
- The Relative Strength Index (RSI) is calculated across three timeframes: Daily, Weekly, and Monthly.
- By examining multiple timeframes, the indicator confirms that trends align over short, medium, and long-term intervals, making buy signals more reliable.
- **Buy Condition**: All three RSI values must meet these thresholds:
- **Daily RSI > 50** – indicates short-term upward momentum,
- **Weekly RSI > 60** – signals medium-term strength,
- **Monthly RSI > 60** – confirms long-term trend alignment.
- This filtering process ensures that buy signals are generated only in stable, upward-trending markets.
2. **SuperTrend Confirmation**:
- The SuperTrend (20-period ATR with a multiplier of 2) acts as a trend filter and trailing stop mechanism.
- For a buy condition to be valid, the closing price must be above the SuperTrend level, verifying that the market is trending up.
- The combination of RSI and SuperTrend helps to avoid false signals, focusing only on well-established trends.
#### Trade Signals
- **Buy Signal**: When both the multi-timeframe RSI and SuperTrend conditions are met, a buy signal is triggered, indicated by a “BUY” label on the chart with details:
- **Entry Price**,
- **Initial Stop-Loss** (set at the SuperTrend level for risk control),
- **Target 1** – calculated with a 1:1 risk-reward ratio based on the initial stop-loss,
- **Target 2** – calculated with a 1:2 risk-reward ratio based on the initial stop-loss.
- **Exit Signals**: This indicator provides two exit strategies to protect profits:
1. **Fixed Stop-Loss**: Automatically set at the SuperTrend level at the time of entry to limit risk.
2. **Trailing Exit**: Exits are triggered if the price crosses below the SuperTrend level, adapting to potential trend reversals.
#### Labeling & Alerts
The **Bewakoof Stock Indicator** offers intuitive labeling and alert options:
- **Labels**: Buy and exit points are clearly marked, showing entry, stop-loss, and targets directly on the chart.
- **Alerts**: Custom alerts can be set for:
- **Buy signals** when both conditions are met, and
- **Exit signals** triggered by the stop-loss or trailing exit.
#### Use Case and Benefits
This indicator is ideal for trend-following traders who value risk control and trend confirmation:
- **Stronger Trend Signals**: By requiring RSI alignment across multiple timeframes, this indicator focuses only on trades with strong trend momentum.
- **Dynamic Risk Management**: Using both fixed and trailing exits enables flexible trade management, balancing risk and potential reward.
- **Simple Trade Execution**: The chart labels and alerts simplify trade decisions, making it easy to enter, manage, and exit trades.
#### How to Use
1. **Add** the Bewakoof Stock Indicator to your chart.
2. **Watch** for the "BUY" label as your entry point.
3. **Manage the trade** using the labeled stop-loss and target levels.
4. **Exit** on either a stop-loss hit or when the price crosses below the SuperTrend for a trailing exit.
The **Bewakoof Stock Indicator** is a complete solution for trend-following traders, combining the strength of multi-timeframe RSI with the SuperTrend’s trend-following capabilities. This systematic approach aims to provide high-confidence entries and effective risk management, empowering traders to follow trends with precision and control.
Customizable Multi-Timeframe Doji with Ray and Editable LabelScript Overview
Script Name: Customizable Multi-Timeframe Doji Candle Levels with Ray and Editable Label
Purpose: This script helps traders identify significant price levels based on high timeframe Doji candles, allowing them to visualize key areas of support, resistance, entry, and exit. By plotting real-time Doji levels from higher timeframes directly on the current chart, traders can easily spot areas where market indecision or potential trend reversals have previously occurred, making these levels highly relevant for future price action.
How the Script Works
This script detects Doji candles on a selected higher timeframe (e.g., daily, weekly, monthly) and plots a ray at the Doji’s closing level on the current chart. The Doji candle formation, characterized by an open and close that are very close or equal, is often an indicator of market indecision. By identifying these Doji levels from high timeframes, the script provides traders with insight into where strong support and resistance zones may form.
The script continuously monitors and updates the Doji level based on the selected timeframe, ensuring that only the latest detected Doji candle is displayed on the chart, helping traders avoid clutter and focus on the most recent data.
Core Components and Calculations
1 Doji Detection Logic:
-The script calculates the Doji candle formation based on a small body percentage (defined by the C_DojiBodyPercent parameter) and relative symmetry in upper and lower shadows (defined by C_ShadowPercent and C_ShadowEqualsPercent).
-A Doji is considered valid when the open and close prices are nearly equal, and the shadows are symmetric within the defined parameters, indicating indecision.
2 Multi-Timeframe Data Retrieval:
-Using the request.security() function, the script fetches open, high, low, and close prices from the specified higher timeframe. It applies Doji detection logic to this higher timeframe data.
-barmerge.lookahead_on and barmerge.gaps_on ensure real-time updates, so the Doji level is immediately reflected on the chart when detected.
3 Ray and Label Plotting:
-When a Doji candle is detected on the selected timeframe, the script plots a ray at the Doji's close price, extending forward on the chart.
-Customizable options for the ray, including color, width, and style (solid, dotted, or dashed), help traders visually differentiate the Doji levels from other chart elements.
-An editable label can be positioned alongside the ray to denote the Doji level, with customizable text, color, background, and size to provide additional context.
4 Automatic Line and Label Management:
-The script dynamically deletes any previous ray and label when a new Doji is detected. This approach minimizes chart clutter and ensures that only the most recent Doji level from the higher timeframe is displayed.
Customization Options
1 Timeframe Selection:
Users can choose any timeframe (e.g., hourly, daily, weekly, monthly) to display Doji levels based on their specific trading strategy.
2 Ray and Label Appearance:
Ray: Customize color, width, and line style (solid, dotted, dashed) for better visibility and integration with the chart’s theme.
Label: Customize the label text, background color, text color, text size, and position (above, below, left, or right of the ray) for a personalized view.
How to Use This Script
1 Select the Target Timeframe for Doji Detection: Choose a high timeframe (such as daily or weekly) to view Doji-based support/resistance levels.
2 Set Custom Ray and Label Parameters : Adjust the visual aspects of the ray and label to align with your chart setup and make the Doji level stand out.
3 Interpretation of Doji Levels: Use the plotted Doji levels as potential support or resistance zones. Since Doji candles reflect market indecision, they often precede significant price reversals or strong continuation moves. By analyzing these levels, traders can:
- Identify key support/resistance zones based on historical market indecision.
- Set entry and exit levels around these zones to capitalize on potential reversals or
continuations.
-Spot confluence areas where the Doji level aligns with other indicators or technical patterns.
Recommended Chart Setup
For optimal clarity, use this script on a clean chart, free from overlapping indicators. This script is designed to work independently, so avoid layering multiple support/resistance scripts unless essential to avoid clutter. A clean chart helps ensure that Doji levels are readily visible, enabling a clear focus on significant levels relevant to your trading strategy.
Sentient FLDOverview of the FLD
The Future Line of Demarcation (FLD) was first proposed by JM Hurst in the 1970s as a cycle analysis tool. It is a smoothed median price plotted on a time-based chart, and displaced into the future (to the right on the chart). The amount of displacement is determined by performing a cycle analysis, the line then plotted to extend beyond the right hand edge of the chart by half a cycle wavelength.
Interactions between price and the FLD
As price action unfolds, price interacts with the FLD line, either by crossing over the line, or by finding support or resistance at the line.
Targets
When price crosses an FLD a target for the price move is generated. The target consists of a price level and also expected time.
When price reaches that target it is an indication that the cycle influencing price to move up or down has completed that action and is about to turn around.
If price fails to reach a target by the expected time, it indicates bullish or bearish pressure from longer cycles, and a change in mood of the market.
Sequence of interactions
Price interacts with the FLD in a regular sequence of 8 interactions which are labelled using the letters A - H, in alphabetical order. This sequence of interactions occurs between price and a cycle called the Signal cycle. The full sequence plays out over a single wave of a longer cycle, called the Sequence cycle. The interactions are:
A category interaction is where price crosses above the FLD as it rises out of a trough of the Sequence cycle.
B & C category interactions often occur together as a pair, where price comes back to the FLD line and finds support at the level of the FLD as the first trough of the Signal cycle forms.
D category interaction is where price crosses below the FLD as it falls towards the second trough of the Signal cycle.
E category interaction is where price crosses above the FLD again as it rises out of the second trough of the Signal cycle.
F category interaction is where price crosses below the FLD as it falls towards the next trough of the Sequence cycle.
G & H category interactions often occur together as a pair, where price comes back to the FLD line and finds resistance at the level of the FLD before a final move down into the next Sequence cycle trough.
Trading Opportunities
This sequence of interactions provides the trader with trading opportunities:
A and E category interactions involve price crossing over the FLD line, for a long trading opportunity.
D and F category interactions involve price crossing below the FLD line, for a short trading opportunity.
B and C category interactions occur where price finds support at the FLD, another long trading opportunity.
G and H category interactions occur where price finds resistance at the FLD, another short trading opportunity.
3 FLD Lines Plotted
The Sentient FLD indicator plots three FLD lines, for three primary cycles on your time-based charts:
The Signal cycle (pink color, can be changed in the settings), which is used to generate trading signals on the basis of the sequence of interactions between price and the FLD
The Mid cycle (orange color, can be changed in the settings), which is used for confirmation of the signals from the signal cycle FLD.
The Sequence cycle (green color, can be changed in the settings) which is the cycle over which the entire A - H sequence of interactions plays out.
Cycle Analysis
In addition to plotting the three FLD lines, the Sentient FLD indicator performs a cycle phasing analysis and identifies the positions of the troughs of five cycles on your chart (The Signal, Mid & Sequence cycles and two longer cycles for determining the underlying trend).
The results of this analysis are plotted by using diamond symbols to mark the timing of past troughs of the cycles, and circles to mark the timing of the next expected troughs, with lines extending to each side to represent the range of time in which the trough is expected to form. These are called circles-and-whiskers. The diamonds are stacked vertically because the troughs are synchronized in time. The circles-and-whiskers therefore are also stacked, creating a nest-of-lows which is a high probability period for a trough to form.
Identifying the Interactions
The Sentient FLD also identifies the interactions between price and each one of the three FLDs plotted on your chart, and those interactions are labelled so that you can keep track of the unfolding A - H sequence.
Next Expected Interaction
Because the Sentient FLD is able to identify the sequence of interactions, it is also able to identify the next expected interaction between price and the FLD. This enables you to anticipate levels of support or resistance, or acceleration levels where price is expected to cross through the FLD.
Cycle Table
A cycle table is displayed on the chart (position can be changed in settings). The cycle table comprises 6 columns:
The Cycle Name (CYCLE): the name of the cycle which is its nominal wavelength in words.
The Nominal Wavelength (NM): The nominal wavelength of the cycle measured in bars.
The Current Wavelength (CR): The current recent wavelength of the cycle measured in bars.
The Variation (VAR): The variation between the nominal wavelength and current wavelength as a percentage (%).
The relevant Sequence Cycle (SEQ): The cycle over which the sequence of interactions with this FLD plays out.
The Mode (MODE): Whether the cycle is currently Bearish, Neutral or Bullish.
Benefits of using the Sentient FLD
The cycle analysis shown with diamonds and circles marking the troughs, and next expected troughs of the cycles enable you to anticipate the timing of market turns (troughs and peaks in the price), because of the fact that cycles, by definition, repeat with some regularity.
The results of the cycle analysis are also displayed on your chart in a table, and enable you to understand at a glance what the current mode of each cycle is, whether bullish, bearish or neutral.
The identification of the sequence of interactions between price and the FLD enables you to anticipate the next interaction, and thereby expect either a price cross of the FLD or dynamic levels of support and resistance at the levels of the FLD lines, only visible to the FLD trader.
When the next expected interaction between price and the FLD is an acceleration point (price is expected to cross over the FLD), that level can be used as a signal for entry into a trade.
Similarly when the next expected interaction between price and the FLD is either support or resistance, that level can be used as a signal for entry into a trade when price reacts as expected, finding support or resistance.
The targets that are generated as a result of price crossing the FLD represent cycle exhaustion levels and times, and can be used as take profit exits, or as levels after which stops should be tightened.
The indicator optionally also calculates targets for longer timeframes, and displays them on your chart providing useful context for the influence of longer cycles without needing to change timeframe.
Example
In this image you can see an example of the different aspects of the indicator working on a 5 minute chart (details below):
This is what the indicator shows:
The 3 FLD lines are for the 100 minute (pink), 3 hour (orange) and 6 hour (green) cycles (refer to the cycle table for the cycle names).
Previous targets can be seen, shown as pointed labels, with the same colors.
The cycle table at the bottom left of the chart is colour coded, and indicates that the cycles are all currently running a bit long, by about 14%.
Note also the grey-colored 6 hour target generated by the 15 x minute timeframe at 12:20. When targets are close together their accuracy is enhanced.
At the foot of the chart we can see a collection of circles-and-whiskers in a nest-of-lows, indicating that a 12 hour cycle trough has been due to form in the past hour.
The past interactions between price and the signal cycle are labelled and we can see the sequence of E (with some +E post-interaction taps), F and then G-H.
The next interaction between price and the signal is the A category interaction - a long trading opportunity as price bounces out of the 12 hour cycle trough.
Notice the green upward pointing triangles on the FLD lines, indicating that they are expected to provide acceleration points, where price will cross over the FLD and move towards a target above the FLD.
The cycle table shows that the cycles of 6 hours and longer are all expected to be bullish (with the 12 hour cycle neutral to bullish).
On the basis that we are expecting a 12 hour trough to form, and the 6 hour cycle targets have been reached, and the next interaction with the signal cycle is an A category acceleration point, we can plan to enter into a long trade.
Two hours later
This screenshot shows the situation almost 2 hours later:
Notes:
The expected 12 hour cycle trough has been confirmed in the cycle analysis, and now displayed as a stack of diamonds at 12:25
Price did cross over the signal cycle FLD (the 100 minute cycle, pink FLD line) as expected. That price cross is labelled as an A category interaction at 13:00.
A 100 minute target was generated. That target was almost, but not quite reached in terms of price, indicating that the move out of the 12 hour cycle trough is not quite as bullish as would be expected (remember the 12 hour cycle is expected to be neutral-bullish). The time element of the target proved accurate however with a peak forming at the expected time. Stops could have been tightened at that time.
Notice that price then came back to the signal FLD (100 minute) line at the time that the next 100 minute cycle trough was expected (see the pink circle-and-whiskers between 13:40 and 14:25, with the circle at 14:05.
Price found support (as was expected) when it touched the signal FLD at 13:55 and 14:00, and that interaction has been labelled as a B-C category interaction pair.
We also have a 3 hour target above us at about 6,005. That could be a good target for the move.
Another 2 hours later
This screenshot shows the situation another 2 hours later:
Notes:
We can see that the 100 minute cycle trough has been confirmed at 13:45
The nest-of-lows marking the time the 3 hour cycle trough was expected is between 15:00 and 15:45, with a probable trough in price at 15:00
The sequence of interactions is labelled: A at 13:00; B-C at 14:00; another B-C (double B-C interactions are common) at 14:30; E at 15:10; +E (a post E tap) at 16:20
Price has just reached a cluster of targets at 6005 - 6006. The 3 hour target we noted before, as well as a 6 hour target and a 12 hour target from the 15 x minute timeframe.
Notice how after those targets were achieved, price has exhausted its upward move, and has turned down.
The next expected interaction with the signal cycle FLD is an F category interaction. The downward pointing red triangles on the line indicate that the interaction is expected to be a price cross down, as price moves down into the next 6 hour cycle trough.
Other Details
The Sentient FLD indicator works on all time-based charts from 10 seconds up to monthly.
The indicator works on all actively traded instruments, including forex, stocks, indices, commodities, metals and crypto.
Machine Learning RSI [BackQuant]Machine Learning RSI
The Machine Learning RSI is a cutting-edge trading indicator that combines the power of Relative Strength Index (RSI) with Machine Learning (ML) clustering techniques to dynamically determine overbought and oversold thresholds. This advanced indicator adapts to market conditions in real-time, offering traders a robust tool for identifying optimal entry and exit points with increased precision.
Core Concept: Relative Strength Index (RSI)
The RSI is a well-known momentum oscillator that measures the speed and change of price movements, oscillating between 0 and 100. Typically, RSI values above 70 are considered overbought, and values below 30 are considered oversold. However, static thresholds may not be effective in all market conditions.
This script enhances the RSI by integrating a dynamic thresholding system powered by Machine Learning clustering, allowing it to adapt thresholds based on historical RSI behavior and market context.
Machine Learning Clustering for Dynamic Thresholds
The Machine Learning (ML) component uses clustering to calculate dynamic thresholds for overbought and oversold levels. Instead of relying on fixed RSI levels, this indicator clusters historical RSI values into three groups using a percentile-based initialization and iterative optimization:
Cluster 1: Represents lower RSI values (typically associated with oversold conditions).
Cluster 2: Represents mid-range RSI values.
Cluster 3: Represents higher RSI values (typically associated with overbought conditions).
Dynamic thresholds are determined as follows:
Long Threshold: The upper centroid value of Cluster 3.
Short Threshold: The lower centroid value of Cluster 1.
This approach ensures that the indicator adapts to the current market regime, providing more accurate signals in volatile or trending conditions.
Smoothing Options for RSI
To further enhance the effectiveness of the RSI, this script allows traders to apply various smoothing methods to the RSI calculation, including:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Hull Moving Average (HMA)
Linear Regression (LINREG)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Adaptive Linear Moving Average (ALMA)
T3 Moving Average
Traders can select their preferred smoothing method and adjust the smoothing period to suit their trading style and market conditions. The option to smooth the RSI reduces noise and makes the indicator more reliable for detecting trends and reversals.
Long and Short Signals
The indicator generates long and short signals based on the relationship between the RSI value and the dynamic thresholds:
Long Signals: Triggered when the RSI crosses above the long threshold, signaling bullish momentum.
Short Signals: Triggered when the RSI falls below the short threshold, signaling bearish momentum.
These signals are dynamically adjusted to reflect real-time market conditions, making them more robust than static RSI signals.
Visualization and Clustering Insights
The Machine Learning RSI provides an intuitive and visually rich interface, including:
RSI Line: Plotted in real-time, color-coded based on its position relative to the dynamic thresholds (green for long, red for short, gray for neutral).
Dynamic Threshold Lines: The script plots the long and short thresholds calculated by the ML clustering process, providing a clear visual reference for overbought and oversold levels.
Cluster Plots: Each RSI cluster is displayed with distinct colors (green, orange, and red) to give traders insights into how RSI values are grouped and how the dynamic thresholds are derived.
Customization Options
The Machine Learning RSI is highly customizable, allowing traders to tailor the indicator to their preferences:
RSI Settings : Adjust the RSI length, source price, and smoothing method to match your trading strategy.
Threshold Settings : Define the range and step size for clustering thresholds, allowing you to fine-tune the clustering process.
Optimization Settings : Control the performance memory, maximum clustering steps, and maximum data points for ML calculations to ensure optimal performance.
UI Settings : Customize the appearance of the RSI plot, dynamic thresholds, and cluster plots. Traders can also enable or disable candle coloring based on trend direction.
Alerts and Automation
To assist traders in staying on top of market movements, the script includes alert conditions for key events:
Long Signal: When the RSI crosses above the long threshold.
Short Signal: When the RSI crosses below the short threshold.
These alerts can be configured to notify traders in real-time, enabling timely decisions without constant chart monitoring.
Trading Applications
The Machine Learning RSI is versatile and can be applied to various trading strategies, including:
Trend Following: By dynamically adjusting thresholds, this indicator is effective in identifying and following trends in real-time.
Reversal Trading: The ML clustering process helps identify extreme RSI levels, offering reliable signals for reversals.
Range-Bound Trading: The dynamic thresholds adapt to market conditions, making the indicator suitable for trading in sideways markets where static thresholds often fail.
Final Thoughts
The Machine Learning RSI represents a significant advancement in RSI-based trading indicators. By integrating Machine Learning clustering techniques, this script overcomes the limitations of static thresholds, providing dynamic, adaptive signals that respond to market conditions in real-time. With its robust visualization, customizable settings, and alert capabilities, this indicator is a powerful tool for traders seeking to enhance their momentum analysis and improve decision-making.
As always, thorough backtesting and integration into a broader trading strategy are recommended to maximize the effectiveness!
Support and Resistance MTF [Cometreon]Support and Resistance is an advanced indicator that automatically plots key support and resistance levels on any symbol and timeframe, including higher ones. This innovative tool employs sophisticated algorithms to continuously analyze market data, identifying and drawing levels on the chart in real-time. By offering traders an immediate and clear view of critical market areas, Support and Resistance optimizes the decision-making process and eliminates time spent on manual analysis.
Key Features:
Automatic Level Identification: The indicator automatically plots all support and resistance levels, providing a clear map of key points on the chart.
Historical Visualization: Shows historical support and resistance levels, providing a comprehensive view of the market over time.
Dynamic Trend Creation: Automatically identifies and updates trends based on levels, simplifying the understanding of market directions.
Automatic Fibonacci: Generates Fibonacci levels based on the last two support and resistance levels, offering additional reference points for potential price retracements or extensions.
Customizable Alerts: Offers a series of configurable alerts to keep you informed about breakouts, new confirmed levels, and price bounces on active levels.
Technical Details and Customizable Inputs:
Support and Resistance offers a range of customizable settings that allow adapting the indicator to specific needs:
Line Types: Select the type of lines to display: active, broken, both, or none.
Left Length: Determines the number of candles to calculate the previous high or low point.
Right Length: Defines the number of candles needed to confirm a level as Support or Resistance.
Timeframe: You can modify the timeframe of supports and resistances to view levels of a higher timeframe. It's also possible to add additional support and resistance levels using a second timeframe.
Breakout Source: Change the source needed to break support and resistance levels between Close or High/Low.
Delete at Timeframe: Allows removing levels based on the current chart resource instead of using that of the higher timeframe.
Session Range: Choose a period of distance from the last candle to define how far back in the past the indicator should look for Supports or Resistances.
Style Valid Level: Customize the appearance of active levels, including the color of the level itself, Liquidity fill, text color, line style and thickness, extension, as well as the size, position, and values to display in the level text.
Liquidity: This option displays the liquidity associated with each support and resistance level, with three modes: "Wick" which goes from the high/low to the upper/lower body, "Body" instead goes from the level to the lower/upper body of the candle and "Full Range" which extends from the high to the low of the candle.
Style Break Level: Allows modifying color, style, and thickness of lines, as well as text width, for two types of breakouts: "MSS" and "BOS" .
"MSS" stands for "Market Structure Switch" and indicates a level breakout opposite to the previous breakout, signaling a trend reversal.
"BOS" , on the other hand, means "Break of Structure" and occurs when a level is broken in the same direction as the previous one, confirming trend continuation.
Fibonacci Trend Line : Add up to 8 Fibonacci levels based on the last two identified support and resistance levels. Customize the different levels by modifying colors, thickness, style, and extension of lines. You also have the option to add a transparent background between each level.
Use Only Confirmed Levels: Activate this option if you want the system to use only the last two confirmed levels, excluding potential levels not yet confirmed.
Reverse: Used to reverse the direction of Fibonacci lines.
Use Higher / Lower: This option allows using the currently active maximum and minimum levels of Support and Resistance. The indicator will update each Support level until it encounters another active Resistance, and vice versa.
Trend Style: Activate/deactivate two types of indicator Trends: "Bar Color" based on level breakouts and "Background Color" based on the last active unconfirmed level.
Signal Style: Activate or deactivate the various breakout and bounce signals. Bounces present three options:
- Total Rejection: occurs when the price exceeds the high or low and closes below the liquidity level.
- Internal Rejection: the price closes in the liquidity zone.
- Liquidity Rejection: the price does not exceed the high or low, but only the liquidity level, closing below it.
Customized Alerts: Set alerts to be notified in case of breakouts, bounces, or formation of new levels.
These options allow you to optimize the indicator for different trading styles and market conditions, ensuring accurate and tailored technical analysis.
How to Use Support and Resistance:
Using Critical Levels: Consider all levels on the chart as "magnetic points" for the price. These represent critical areas where the market tends to react.
Signal Interpretation: Use the indicator's signals to interpret market movements. A level breakout can indicate a trend reversal or continuation. Bounces can suggest the holding of a level or signal a possible breakout.
Strategy Integration: Leverage the trend of support and resistance levels, breakouts, and bounces as key elements to develop and refine your trading strategies.
Call To Action:
Support and Resistance simplifies your market analysis, saving you time and improving the accuracy of your decisions. Thanks to clearly visualized and customizable levels, you'll have a clearer and more immediate view of market dynamics.
Don't wait any longer: discover how Support and Resistance can enhance your market analysis, offering you clear indications for faster and more precise trading decisions.
TrendLines MTF [Cometreon]Trendline is an advanced indicator designed to automatically plot all trendlines on the chart and signal when they are broken, adapting to any symbol and timeframe, including larger ones. This innovative tool uses advanced algorithms to continuously analyze market data, automatically identifying and drawing trendlines on the chart. Trendline offers traders an immediate and clear visualization of market dynamics, saving time in manual analysis and optimizing trading decisions.
Key Features:
Automatic Plotting: The indicator automatically draws and updates trendlines, providing a real-time overview of market trends.
Breakout and Bounce Signaling: Provides immediate notifications when a trendline is broken or the price bounces off it, allowing traders to react promptly to market changes.
Customization: Offers the ability to modify length, touches, colors, and line style to suit individual preferences.
Information Table: Includes a detailed table showing the values of all active trendlines, facilitating the monitoring of key market points.
Configurable Alerts: Allows setting custom alerts for breakouts, bounces, or creation of new trendlines.
Technical Details and Customizable Inputs:
Trendline offers a range of customizable inputs that allow adapting the indicator to specific needs:
Trendline Type: Select between active trendlines, broken ones, both, or none.
Left and Right Length: Defines the extension of maximum and minimum points to identify Trendlines.
Timeframe: You can also modify the timeframe of Trendlines to display a higher timeframe.
Confirm at Timeframe: Allows you to confirm the Trendlines using the chart's timeframe instead of the selected one. This checks whether a candle has already broken the line previously.
Delete at Timeframe: input to remove trendlines based on breakouts with chart candles, instead of using candles of a higher timeframe.
Touch Need: Sets the number of touches needed to confirm a Trendline.
Max Trend Line for Level: Limits the maximum number of Trendlines in a single level.
Extended Line After Break: Option to extend broken Trendlines by a specific value.
Session Range: The "Session Range" offers two options: select a specific date or a period relative to the last candle. The input allows choosing between "Choose" and "Pick Up".
With "Choose", you select a relative period, with two modes:
- Last: shows the trendlines of the selected period, compatible with Replay.
- Real Time: displays all TrendLines, searching from the last selected period.
Example: "1 Month" with "Last" shows the TrendLines from the previous month, while "Real Time" searches without time limits but uses the values from the last month. This allows defining the search depth of the indicator, crucial for computing power. In case of issues, use "Auto".
Trendlines Style: Modify the style for each type of Trendlines (Valid, Break) including color, style, and line thickness.
Trends Trendlines: Enable/disable two different trends:
- Trend Bar Color: based on TrendLines breakouts. Breaking a bearish TrendLine results in a bullish trend, vice versa for breaking a bullish TrendLine.
- Trend Background: based on the number of active TrendLines. For example, if the number of bullish TrendLines is greater than the "Strength", the trend will be bullish.
Signal Style: You can enable or disable breakout and bounce signals, with customizable colors for each signal type.
Alert: Set notifications for breakouts, bounces, or formation of new Trendlines.
Table: Customize the table showing the values of all active trendlines, facilitating the monitoring of key market points. You can modify the appearance of the table, changing the color of cells and text.
These options allow you to optimize the indicator for different trading styles and market conditions, ensuring precise and personalized technical analysis.
How to Use Trendlines:
Market Analysis: Use the displayed Trendlines as critical indicators of market dynamics to make informed trading decisions.
Signal Interpretation: Leverage Trendline breakouts and bounces to identify potential trend changes and trading opportunities.
Strategy Integration: Use Trendlines and generated signals as a basis for creating personalized and innovative trading strategies.
With Trendlines, you can simplify your market analysis, saving time and improving the accuracy of your decisions with clearly visualized and customizable Trendlines.
Don't waste any more time and visit the link to get access to all Cometreon indicators.
Strategy Tester [Cometreon]The Strategy Tester is a powerful backtesting tool that allows you to evaluate and optimize strategies created with the Strategy Builder or signals generated by the Signal Tester. It offers a comprehensive suite of options for risk management and optimization of trading performance.
Key Features:
Testing strategies on different symbols and timeframes
Advanced risk management with multiple Take Profit and Stop Loss options
Customization of trading sessions and initial capital
Generation of customized alerts for entry, exit, and TP/SL modifications
Technical Details and Customizable Inputs:
Source Entry Long and Short: Select entry conditions for the strategy from the "Signal Tester" or "Strategy Builder".
Source Exit Long and Short: Select exit conditions for the strategy from the "Signal Tester" or "Strategy Builder".
Trading Session: Choose the period in which the strategy will enter positions, selecting from: Months, Days, up to 3 hourly sessions, and the strategy's activity range, i.e., start and end date.
Alert Message: Set custom messages for each type of Alert, such as Entry Long, Exit Short, or Change SL Long
Plot: Choose whether to show Long and Short positions on the chart
Risk Management:
Customize the exits and risk management of your strategy, with a wide range of options including:
Initial Capital: Set the starting capital for the strategy
Quantity: Choose the entry quantity for each type of position, selecting from: Contracts, USD, Percentage of equity, and percentage of initial capital.
Take Profit: Configure up to 4 different Take Profits, choosing each type of level from:
- % : Percentage from the entry price.
- USD : Distance in USD from the entry price.
- Pip : Distance in Pips from the entry price.
- ATR : Set the ATR Take Profit multiplier using the length of the "ATR Period Long".
- Swing : Set the length to calculate the Swing as Take Profit Level
- Risk Reward : Set the Take Profit based on the Risk-Reward of the Stop Loss, vice versa for the Stop Loss (Take Profit or Stop Loss cannot both have the Risk Reward option).
Stop Loss: Set the Stop Loss to reduce the loss in case of defeat, also choosing the type of level as for the "Take Profit".
Break Even: Choose whether to modify the Stop Loss level when the price breaks a certain Take Profit level, you can choose the Stop level, adding or removing (%, USD, or Pip) from the entry level.
Trailing Take Profit: When the price breaks a set price, it allows activating an exit level by subtracting/increasing from the chosen Stop level, the level will continue to update every time the Stop source is updated, for example in Long every time High exceeds the previous one.
Trailing Stop Loss: When the price breaks a set price, it allows activating an exit level by subtracting/increasing from the chosen Stop level, the level will continue to update every time the Stop source is updated, for example in Long every time Low exceeds the previous one.
Exit Before End Session: Allows setting an exit time, for example to exit 1 candle before the end of the daily session.
How to Use The Indicator:
Add the Strategy Tester to the chart
Input signals generated by other TradeLab Beta indicators
Configure risk and capital management settings
Run the strategy backtesting and analyze the results
Optimize the strategy based on the obtained results
Take your trading to the next level with TradeLab Beta's Strategy Tester this powerful backtesting tool and start optimizing your trading strategies today.
Don't waste any more time and visit the link to get access to all Cometreon indicators.
Signal Tester [Cometreon]Signal Tester is a powerful tool that allows you to analyze and visualize up to 100 historical positions directly on the TradingView chart. This indicator is ideal for quickly testing the effectiveness of trading signals from various sources.
Key Features:
Graphical visualization of entry and exit signals
Support for analysis on different timeframes
Ability to test signals from bots, groups, or personal strategies
Technical Details and Customizable Inputs:
Position Selection : Choose up to 100 recent positions, both long and short, to display signals directly on the chart.
Data Entry : Easily select the date and position type (long/short) in the settings.
How to Use the Indicator:
Enter entry and exit signals in the indicator settings.
Analyze the results directly on the chart.
Add the generated signals to the Strategy Tester to verify their effectiveness.
Start testing your trading signals now with TradeLab Beta's Signal Tester access this powerful tool and take your market analysis to the next level!
Don't waste any more time and visit the link to get access to all Cometreon indicators.
Dynamic Time Period CandlesThis indicator gives the dynamic history of the current price over various time frames as a series of candles on the right of the display, with optional lines on the chart, so that you can assess the current trend more easily.
In the library I found lots of indicators that looked at the previous xx time period candle, but they then immediately switched to the new xx time candle when it started to be formed. This indicator looks back at the rolling previous time period. With this indicator, you can clearly see how price has been behaving over time.
IMPORTANT SETUP INFO:
Initially, you must go into the settings and select the timeframe (in minutes) that your chart is displaying. If you don't do this then the indicator will look back the wrong number of candles and give you totally wrong results.
You can then setup how high you want the candle labels to be on the chart.
Then you can select settings for each candle that you want displayed. Anywhere between 1 and 5 different timeframes can be displayed on the chart at once.
I initially published an indicator called 'Dynamic 4-Hour Candle (Accurate Highs and Lows)', but this new indicator is so different that it needs to be forked and published as a separate indicator. The reasons for this are below:
The original indicator only looked at the previous 4 hour time period. This indicator allows the user to select any time period that they choose.
The original indicator only looked at one time period. This indicator allows to select between one and five time periods on the chart at once.
The original indicator did not put lines on the chart to show the lookback period and the highs and lows of that time period. This indicator does both those things.
The name of the original indicator in no way now describes what this new indicator is capable of, and would be very misleading to anyone who came across it. This new indicator has a name that much more accurately reflects what its' purpose and functionality is.
Trend of Multiple Oscillator Dashboard ModifiedDescription: The "Trend of Multiple Oscillator Dashboard Modified" is a powerful Pine Script indicator that provides a dashboard view of various oscillator and trend-following indicators across multiple timeframes. This indicator helps traders to assess trend conditions comprehensively by integrating popular technical indicators, including MACD, EMA, Stochastic, Elliott Wave, DID (Curta, Media, Longa), Price Volume Trend (PVT), Kuskus Trend, and Wave Trend Oscillator. Each indicator’s trend signal (bullish, bearish, or neutral) is displayed in a color-coded dashboard, making it easy to spot the consensus or divergence in trends across different timeframes.
Key Features:
Multi-Timeframe Analysis: Displays trend signals across five predefined timeframes (1, 2, 3, 5, and 10 minutes) for each included indicator.
Customizable Inputs: Allows for customization of key parameters for each oscillator and trend-following indicator.
Trend Interpretation: Each indicator is visually represented with green (bullish), red (bearish), and yellow (neutral) trend markers, making trend identification intuitive and quick.
Trade Condition Controls: Input options for the number of positive and negative conditions needed to trigger entries and exits, allowing users to refine the decision-making criteria.
Delay Management: Options for re-entry conditions based on both price movement (in points) and the minimum number of candles since the last exit, giving users flexibility in managing trade entries.
Usage: This indicator is ideal for traders who rely on multiple oscillators and moving averages to gauge trend direction and strength across timeframes. The dashboard allows users to observe trends at a glance and make informed decisions based on the alignment of various trend indicators. It’s particularly useful in consolidating signals for strategies that require multiple conditions to align before entering or exiting trades.
Note: Ensure that you’re familiar with each oscillator’s functionality, as some indicators like Elliott Wave and Wave Trend are simplified for visual coherence in this dashboard.
Disclaimer: This script is intended for educational and informational purposes only. Use it with caution and adapt it to your specific trading plan.
Developer's Remark: "This indicator's comprehensive design allows traders to filter noise and identify the most robust trends effectively. Use it to visualize trends across timeframes, understand oscillator behavior, and enhance decision-making with a more strategic approach."
Fractional Accumulation Distribution Strategy🔹 INTRODUCTION:
As traders and investors, we often find ourselves searching for ways to maximize our market positioning—trying to capture the best price, manage risk, and adapt to ever-changing volatility. Through years of working with a variety of traders and investors, a common theme emerged: the most successful market participants were those who accumulated positions strategically over time, rather than relying on one-off, rigid entry points. However, even the best of them struggled to consistently time their entries and exits for optimal results.
That's why I created the Fractional Accumulation/Distribution Strategy (FADS)—an adaptable solution designed to dynamically adjust position sizing and entry points based on changing market conditions, enabling both passive and active market participants to optimize their approach.
The FADS trading strategy combines volatility-based trend detection and adaptive position scaling to maximize profitability across varied market conditions. By using the price ranges from higher timeframes, FADS pinpoints extreme demand and supply zones with a high statistical probability of reversal, making it effective in both high and low volatility environments. By applying adjustable threshold settings, users can focus on meaningful price movements to reduce unnecessary trades. Adaptive position scaling further enhances this approach by adjusting position sizes based on entry level distances, allowing for strategic position building that balances risk and reward in uncertain markets. This systematic scaling begins with smaller positions, expanding as the trend solidifies, creating a refined, robust trading experience.
🔹 FEATURES:
Multi-Timeframe Volatility-Based Trend Detection
Accumulation/Distribution Level Filter
Customizable Period for Highest/Lowest Prices Capture
Adjustable Sensitivity & Frequency in Positioning
Broad control settings of Strategy
Adaptive Position Scaling
🔹 SETTINGS:
Volatility : Determines trading range based on market volatility . Highest range value number of periods.
Factor : Adjusts the width of the Accumulation & Distribution bands separately. The Level Filter feature offers customizable triggering bands, allowing users to fine-tune the initiation point for the Accumulation/Distribution sequence. This flexibility enables traders to align entries more precisely with market conditions, setting optimal thresholds for initiating trade chains, whether in accumulating positions during uptrends or distributing in downtrends.
Lowest : Choose the price source (e.g., Close, Low). Number of bars considered when determining the lowest price level. Selecting the checkbox generate a signal when the price crosses below the previous lowest value for calculating the lowest value used for trade signals.
Highest : Choose the price source (e.g., Close, High). Number of bars considered when determining the highest price levels. Selecting the checkbox generate a signal when the price crosses above the previous highest value for calculating the highest value used for trade signals.
Accumulation Spread : Adjusts the buying frequency sensitivity by setting the distance between entries based on personal risk tolerance. Larger values for less frequent buys; smaller values for more frequent buys.
Distribution Spread : Adjusts the selling frequency sensitivity by setting the distance between exits based on reward preference. Larger values for less frequent sells; smaller values for more frequent sells.
Percentage of Capital Allocation : Sets the portion of total capital used for the initial trade in a strategy. It sets the scale for subsequent trades during accumulation phase.
🔹 APPLICATIONS:
❖ Accumulation and Distribution Phases
Early entries are avoided by initiating accumulation only after a trend reversal is confirmed and price breaks below long-term range.
Position sizes are determined by the distance between consecutive trades, smaller distance results in smaller position sizes and vice versa.
Average position cost is reduced by accumulating larger positions at the lower prices, potentially resulting in improved profitability.
Early exits are avoided by initiating distribution only after trend reversal is confirmed and price breaks above long-term range.
The pace of distribution can be tracked by the violet line that represents average positions during distribution phase
❖ Use Cases (Different than default setting input is used for illustration purposes)
If the starting point of accumulation starts too high for the risk preference, Accumulation Level Filter can be lowered by increasing the 🟢 threshold Factor.
If the starting point of distribution is too low for the reward preference, the Distribution Level Filter can be raised by increasing the 🔴 threshold Factor.
In lower timeframes, positions during the accumulation phase could be purchased at higher levels relative to prior entry positions. To optimize for this, consider extending the period used to capture the lowest prices. Similarly, during the distribution phase, increasing the period for identifying higher prices can improve accuracy.
🔹 Strategy Properties:
Adjusting properties within the script settings is recommended to align with specific accounts and trading platforms, ensuring realistic strategy results.
Balance (default): $100,000
Initial Order Size: 1% of the default balance
Commission: 0.1%
Slippage: 5 Ticks
Backtesting: Backtested using TradingView’s built-in strategy testing tool with default commission rates of 0.1% and slippage of 5 ticks. It reflects average market conditions for Apple Inc. (APPL) on 1-hour timeframe
Disclaimers: Commission and slippage varies with market conditions and brokerage policies. The assumed value may not represent all trading environments.
PAST PERFORMANCE DOESN’T GUARANTEE FUTURE RESULTS!
Disclaimer: Please remember that past performance may not be indicative of future results. Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting. This post and the script don’t provide any financial advice.
This invite-only script is being published as part of my commitment to developing tools that align with TradingView’s community standards. Access requests will be reviewed carefully after the script passes TradingView's moderation process.
Trade Mavrix: Elite Trade NavigatorYour ultimate trading companion that helps you spot profitable breakouts, perfect pullbacks, and crucial support & resistance levels. Ready to take your trading to the next level? Let's dive in!
Institutional Order Finder (IOF) - Hidden Order Block LiteInstitutional Order Finder (IOF) - Hidden Order Blocks
Institutional Order Finder (IOF) Indicator: Detecting Breaker Blocks and Hidden Order Blocks (HOBs)
The Institutional Order Finder (IOF) Lite is designed to assist traders in identifying breaker blocks, also known as hidden order blocks (HOBs). The indicator helps identify untouched bodies within order blocks and offers comprehensive analysis of fair value gaps (FVGs) and order blocks based on engulfing candles. The method for detecting engulfing patterns is customizable (available in the Pro version).
Features of the Institutional Order Finder (IOF) Lite Indicator
The indicator detects breaker blocks and distinguishes between complete HOBs and partial HOBs (PHOBs). An HOB is created when the body of a candle, to the left of an engulfing candle, ideally fits through the fair value gaps without being touched by wicks. The indicator differentiates between:
HOB (Hidden Order Block): The body completely fits through the FVGs and is untouched by wicks, making it a strong and reliable breaker block.
PHOB (Partial Hidden Order Block): The body does not fully fit, but at least the equilibrium (50% level of the body left of the engulfing candle) is covered by the FVGs.
The minimum requirement for a “good” HOB is for the equilibrium to be crossed by the FVGs. This method provides a focused and high-quality view of the market structure.
Visualization and Market Structure Analysis
The Institutional Order Finder (IOF) displays order blocks as lines, with the equilibrium being a critical analysis point. Once the equilibrium is reached, the order block is considered invalid. In addition to HOBs and PHOBs, the indicator also displays fair value gaps, as well as invalidated order blocks (OBs) and breaker blocks (BBs). Understanding these invalidations is essential for interpreting market behavior and potential turning points. The line representation offers a cleaner view, making it easier to combine multiple timeframes and spot clusters.
Multi-Timeframe Analysis (MTF)
The Lite version allows analysis of up to three different timeframes, helping traders observe the relevance and strength of order blocks across different time periods. For each selected timeframe, not only confirmed order blocks are shown, but also “potential order blocks (OBs) and breaker blocks (BBs).” These blocks are currently forming and are not yet confirmed. Potential OBs and BBs can provide crucial insights into the current market structure, especially for traders who seek early signals.
Lite Version and Limitations
The Lite version of the Institutional Order Finder (IOF) indicator has certain limitations. It can display only up to three timeframes, offers fewer customization options, and focuses on basic analysis tools. Nonetheless, the Lite version is a powerful tool for gaining initial insights into the functionality of the MT Breaker Block indicator and improving understanding of market structure.
Why Use the Institutional Order Finder (IOF) Indicator?
The Lite indicator offers a precise way to analyze and visualize order blocks and breaker blocks. By focusing on identifying untouched bodies and the equilibrium, the indicator provides a unique perspective on market structure, often missing from traditional order block indicators. With its ability to conduct multi-timeframe analysis and identify potential order blocks in real time, the IOF Lite indicator offers a detailed understanding of potential price movements.
Special thanks to Moneytaur for inspiring the creation of this indicator.
Settings Overview
GENERAL SETTINGS
Historical order blocks: Enables the display of historical order blocks on the chart.
Order blocks: Activates the detection and display of order blocks (OB).
Show high quality breaker blocks: Displays only high-quality breaker blocks (BB) that meet strict criteria. The lines for high-quality BBs are twice as thick as regular lines.
ENGULFING
Please choose Engulfing engine: Choose the type of engulfing pattern used to detect order blocks (e.g., “Engulfing Strict” for stricter criteria).
MTF SETTINGS
Default timeframe: Sets the default timeframe for order block analysis when the multi-timeframe (MTF) mode is turned off.
Show MTF order blocks: Enables the display of order blocks from multiple timeframes.
Timeframe 1, Timeframe 2, Timeframe 3: Specify the individual timeframes for MTF analysis.
Activate Timeframe 1, Activate Timeframe 2, Activate Timeframe 3: Control which MTF timeframes are actively used in the analysis.
ORDER BLOCK SETTINGS
Order Block Filter Strategy: Choose a filtering strategy to display only the most relevant OBs.
Extend order blocks to the right: Extends order blocks to the right until they are invalidated.
Show timeframe as label: Displays the timeframe of the order block as a label on the chart.
Bearish OB, Bullish OB, Breaker Block, Old Order Blocks, Old BB-Blocks (and possible): Choose colors for different types of order blocks and breaker blocks for easier visual distinction.
Label text color: Sets the color of the text within labels.
Label background color: Defines the background color of the labels.
Line width: Specifies the thickness of the lines that represent order blocks.
Please choose style of lines / current timeframe, Please choose style of lines / alternative timeframe: Choose the style of lines (e.g., solid or dotted) for the current and alternative timeframes.
Timeframe label offset in bars from actual bar: Determines the offset of labels relative to the candles, improving visibility.
FAIR VALUE GAPS
Show Fair Value Gaps: Activates the detection and display of fair value gaps (FVG), highlighting potential liquidity gaps.
FILTER SETTINGS
Number of Previous Candles (Candle Pattern Strength): Specifies the number of previous candles to analyze to determine the strength of the candle pattern.
Candle Size Multiplier (Candle Pattern Strength): Sets a multiplier for the candle size within the pattern to emphasize stronger patterns.
RSI Period (RSI): Defines the period for the RSI indicator, used to analyze overbought/oversold conditions.
Overbought Level (RSI), Oversold Level (RSI): Sets the RSI threshold values to identify potential trend reversal points.
Minimum Volume (Volume): Specifies the minimum volume that must be reached to validate order blocks and breaker blocks.
This guide provides a comprehensive breakdown of the Institutional Order Finder (IOF) Lite Indicator settings, allowing you to customize and maximize the indicator’s functionality for optimal trading insights.