cd_mtg_CxThis indicator is designed to show discount / premium zones and price gaps (fvg) on the screen within a rule.
Overview:
As it is known, the price continues its movement with swings and uses some zones to continue or reverse its movement. Commonly used of these zones are named by different traders such as supply / demand, order block, suport/ resistance zone. And again, many traders prefer to be involved in the entry when the price determined with the help of market structure reaches the premium / discount zones.
Expectation from the indicator and how it works:
Identify areas where the price is likely to react.
Zones to be determined for this purpose:
1- Discount / premium zones
2- Mitigation zones with price retesting
3- Price gaps (FVG's)
How is it determined?
1- Tracks the price in the higher timeframe it is alignment with, when the price violates the previous candle in the new candle (high/low), the previous candle's zones between top/bottom - middle levels.
high - middle => premium zone
low - middle => discount zone
and displays it on the screen.
2- Mitigation zones: When the price retests the discount/premium zones, those zones appear on the screen by extending to the last bar and are named as mitigation zones in the indicator.
3- Price gaps (FVG's): It is shown on the screen with known rules and higher time frame option.
Zones where the price does not respect are deleted from the display.
Settings:
- HTF for mitigation zones : Alignment high time frame selection
- HTF for FVG zones : Alignment high time frame selection
- Show HTF boxes : Show / hide
- Show Mitigation zones : Show / hide
- Show Discount/Premium zones: Show / hide
- Show FVG zones : Show / hide
And colors….
Screenshots and example :
The 15m chart is open on the screen and I select the alignment time zone H4. I select the higher time zone H1 in FVGs.
Screenshot with Show HTF boxes and Show FVG zones selected:
With show discount / premium zones selected :
With show mitigation zones selected :
Final Word : When the price comes to our zone, we take action together with other confirmations.
Our expectation from the zones is to send the price back to the region it came from.
If it is not successful, we should plan a reverse transaction.
Cheerful trades...
-- Türkçe Açıklama
Bu indikatör, bir kural dahilinde ucuzluk / pahalılık bölgelerini ve fiyat boşluklarını (fvg) ekranda göstermek ve traderlara en uygun yerde işlem fırsatı sunmak üzere tasarlanmıştır.
Genel Bakış :
Bilindiği gibi fiyat hareketine salınımlarla devam eder ve hareketine devam etmek ya da tersine dönmek için bazı bölgeleri kullanır. Bu bölgelerin yaygın şekilde kullanılanları supply / demand, order block , support /resistance zone gibi farklı ekollerce adlandırılmıştır. Ve yine birçok trader market yapısı yardımla belirlediği fiyatın ucuzluk / pahalılık bölgelerine gelmesiyle işleme dahil olmayı tercih eder.
İndikatörden beklenti ve nasıl çalışır:
Beklenti; Fiyatın tepki alması muhtemel bölgeleri belirlemesidir.
Bu amaçla belirleyeceği bölgeler:
1- Ucuzluk / pahalılık bölgeleri
2- Fiyatın tekrar test etmesiyle “mitigasyon bölgeleri/mitige”
3- Fiyat boşlukları (FVG ler)
Nasıl belirler ?
1- Fiyatı uyumlu olduğu üst zaman diliminde takip eder, fiyat yeni mumda bir önceki mumu ihlal ettiğinde (high/low), önceki mumun tepe/dip - orta seviyeleri arasında kalan bölgeleri
high - middle => premium zone
low - middle => discount zone
olarak belirler ve ekranda gösterir.
2- Mitigasyon bölgesi: Fiyat ucuzluk/ pahalılık bölgeleri yeniden test ettiğinde, o bölgeler son bara uzatılarak ekranda görünür ve indikatörde ismi “mitigation zone” olarak geçer.
3- Fiyat boşlukları (FVG) : Bilinen kurallarla ve üst zaman dilimi seçeneğiyle ekranda gösterilir.
Fiyatın saygı göstermediği bölgeler ekrandan silinir.
Ayarlar:
- HTF for mitigation zones : Uyumlu üst zaman dilimi seçimi
- HTF for FVG zones : Uyumlu üst zaman dilimi seçimi
Gösterim ve renk seçenekleri.
Ekran görüntüleri ve örnek : (İngilizce kısımda)
Son söz : Fiyat bölgemize geldiğinde diğer konfirmelerle birlikte işlem alıyoruz.
Bölgelerden beklentimiz fiyatı geldiği bölgeye tekrar göndermesidir.
Eğer başarılı olamazsa tersi yönde işlem planlamalıyız.
Neşeli tradeler...
Multitimeframe
HTF Trend Tracker [BigBeluga]HTF Trend Tracker is a higher timeframe (HTF) trend tracking indicator designed to help traders identify significant trends, key levels, and market sentiment. The indicator dynamically adapts to the current price action, using HTF highs and lows to display trend direction and strength with detailed visuals.
🔵 Key Features:
Dynamic Trend Detection:
Uptrend is identified when the price closes above the HTF high.
Downtrend is detected when the price closes below the HTF low.
Midline changes color dynamically based on the trend direction:
Bullish Green: Indicates an uptrend.
Bearish Red: Indicates a downtrend.
Historical and Active HTF Levels:
Historic HTF highs and lows are displayed as dotted lines.
Current active HTF high and low levels are shown as solid lines.
Timeframe labels (e.g., "1D High" or "1D Low") mark the active levels for clarity.
Trend Change Signals:
A green checkmark (✓) is plotted when an uptrend starts.
A red cross (✕) appears when a downtrend begins.
Trend-Based Candle Coloring:
Candle colors change dynamically based on the trend and the price's distance from the midline:
Intense Bullish Green: Price is far above the midline during an uptrend.
Intense Bearish Red: Price is far below the midline during a downtrend.
Neutral Gray: Price is near the midline.
Users can customize the colors to suit their preferences.
🔵 Usage:
Identify uptrends and downtrends using the midline's color and the position of the close relative to the HTF levels.
Use solid lines and timeframe labels to track current HTF high and low levels.
Observe dotted lines for historical HTF levels to understand past price behavior.
Watch for checkmark (✓) and cross (✕) signals to spot trend changes and key market shifts.
Monitor candle colors to gauge trend intensity and proximity to the midline:
Intense colors signal strong trends, while neutral gray indicates consolidation near the midline.
HTF Trend Tracker is an essential tool for traders aiming to follow higher timeframe trends, identify key levels, and make data-driven decisions based on price dynamics and trend strength. Its customizable features allow for flexible integration into any trading strategy.
OrangeCandle 4EMA 55 + Fib Bands + SignalsThe script is a TradingView indicator that combines three popular technical analysis tools: Exponential Moving Averages (EMAs), Fibonacci bands, and buy/sell signals based on these indicators. Here’s a breakdown of its features:
1. EMA Settings and Calculation:
The script calculates and plots several Exponential Moving Averages (EMAs) on the chart with different lengths:
Short-term EMAs: EMA 9, EMA 13, EMA 21, and EMA 55 (used for tracking short-term price trends).
Long-term EMAs: EMA 100 and EMA 200 (used to analyze longer-term trends).
These EMAs are plotted with different colors to visually distinguish between the short-term and long-term trends.
2. Fibonacci Bands:
The script calculates Fibonacci Bands based on the Average True Range (ATR) and a Simple Moving Average (SMA).
Fibonacci factors (1.618, 2.618, 4.236, 6.854, and 11.090) are used to determine the upper and lower bounds of five Fibonacci bands.
Upper Fibonacci Bands (e.g., fib1u, fib2u) represent resistance levels.
Lower Fibonacci Bands (e.g., fib1l, fib2l) represent support levels.
These bands are plotted with different colors for each level, helping traders identify potential price reversal zones.
3. Buy and Sell Signals:
Long Condition: A buy signal occurs when the price crosses above the EMA 55 (long-term trend indicator) and is above the lower Fibonacci band (support zone).
Short Condition: A sell signal occurs when the price crosses below the EMA 55 and is below the upper Fibonacci band (resistance zone).
These conditions trigger visual signals on the chart (green arrow for long, red arrow for short).
4. Alerts:
The script includes alert conditions to notify the trader when a long or short signal is triggered based on the crossover of price and EMA 55 near the Fibonacci support or resistance levels.
Long Entry Alert: Triggers when the price crosses above the EMA 55 and is near a Fibonacci support level.
Short Entry Alert: Triggers when the price crosses below the EMA 55 and is near a Fibonacci resistance level.
5. Visualization:
EMAs are plotted with distinct colors:
EMA 9 is aqua,
EMA 13 is purple,
EMA 21 is orange,
EMA 55 is blue (with thicker line width for emphasis),
EMA 100 is gray,
EMA 200 is black.
Fibonacci bands are plotted with different colors for each level:
Fib Band 1 (upper and lower) in white,
Fib Band 2 in green (upper) and red (lower),
Fib Band 3 in green (upper) and red (lower),
Fib Band 4 in blue (upper) and orange (lower),
Fib Band 5 in purple (upper) and yellow (lower).
Summary:
This script provides a comprehensive strategy for analyzing the market with multiple EMAs for trend detection, Fibonacci bands for support/resistance, and signals based on price action in relation to these indicators. The combination of these tools can assist traders in making more informed decisions by providing potential entry and exit points on the chart.
Major S&R Levels with Flips## **Major S&R Levels with Flips**
This script is designed to identify and visualize **Major Support and Resistance (S&R) Levels** across multiple timeframes (H1, H4, D1) and detect **S&R Flip** patterns (FTB, STB, FTR). It also includes customizable alerts for price-level crossings, flip patterns, and level approaches. Below is a detailed breakdown of the script's functionality, inputs, and outputs.
---
## **Script Overview**
The script calculates and plots **Support and Resistance (S&R) Levels** based on the highest highs and lowest lows over a user-defined lookback period. It also detects **S&R Flip Patterns** (First Time Back - FTB, Second Time Back - STB, Failed Test of Resistance/Support - FTR) and provides alerts for key events.
---
## **Key Features**
1. **Multi-Timeframe S&R Levels**:
- Displays S&R levels for **H1**, **H4**, and **D1** timeframes.
- Levels are calculated using the highest highs and lowest lows over a user-defined lookback period.
2. **S&R Flip Detection**:
- Detects and tracks **FTB (First Time Back)**, **STB (Second Time Back)**, and **FTR (Failed Test of Resistance/Support)** patterns.
- Alerts are generated for each flip event.
3. **Customizable Alerts**:
- **Price-Level Crossing Alerts**: Notifies when the price crosses above or below a level.
- **Flip Alerts**: Notifies when a flip pattern (FTB, STB, FTR) is detected.
- **Level Approach Alerts**: Notifies when the price approaches a level within a user-defined threshold.
4. **Efficient Level Updates**:
- Levels are updated periodically (every 10 bars by default) to optimize performance.
5. **Visualization**:
- Plots S&R levels on the chart with distinct colors for each timeframe.
- Displays labels for recent flip events.
---
## **User Inputs**
The script provides several customizable inputs:
### **Level Display**
- **Show H1 Levels**: Toggles visibility of H1 S&R levels.
- **Show H4 Levels**: Toggles visibility of H4 S&R levels.
- **Show D1 Levels**: Toggles visibility of D1 S&R levels.
- **Lookback Period**: Defines the number of bars used to calculate S&R levels (default: 20, range: 5–50).
### **Alerts**
- **Enable Price-Level Crossing Alerts**: Toggles alerts for price crossing above/below S&R levels.
- **Enable SR Flip Alerts**: Toggles alerts for S&R flip patterns (FTB, STB, FTR).
- **Enable Level Approach Alerts**: Toggles alerts for price approaching S&R levels.
- **Approach Threshold**: Defines the percentage threshold for level approach alerts (default: 0.2%, range: 0.05%–1%).
---
## **Script Logic**
### **1. Level Calculation**
- The script calculates S&R levels for each timeframe (H1, H4, D1) using the highest highs and lowest lows over the lookback period.
- Levels are updated periodically (every 10 bars by default) to optimize performance.
### **2. Flip Detection**
- The script detects **FTB**, **STB**, and **FTR** patterns:
- **FTB (First Time Back)**: Price crosses a level for the first time.
- **STB (Second Time Back)**: Price retests the level after FTB.
- **FTR (Failed Test of Resistance/Support)**: Price fails to break the level after STB.
- Flip events are tracked and stored in arrays for visualization and alerts.
### **3. Alerts**
- **Price-Level Crossing Alerts**: Triggered when the price crosses above/below a level.
- **Flip Alerts**: Triggered when a flip pattern (FTB, STB, FTR) is detected.
- **Level Approach Alerts**: Triggered when the price approaches a level within the defined threshold.
### **4. Visualization**
- S&R levels are plotted on the chart with distinct colors for each timeframe.
- Labels are displayed for recent flip events (up to 15 labels by default).
---
## **Outputs**
### **1. Plots**
- **H1 Levels**:
- Support: Green shaded area.
- Resistance: Red shaded area.
- **H4 Levels**:
- Support: Lime shaded area.
- Resistance: Maroon shaded area.
- **D1 Levels**:
- Support: Teal shaded area.
- Resistance: Purple shaded area.
### **2. Labels**
- Labels are displayed for recent flip events:
- **FTB**: Blue label.
- **STB**: Yellow label.
- **FTR**: Purple label.
### **3. Alerts**
- Alerts are generated for:
- Price-level crossings.
- Flip patterns (FTB, STB, FTR).
- Price approaching levels.
---
## **Usage Instructions**
1. **Add the Script**:
- Copy and paste the script into a new Pine Script editor in TradingView.
- Save and add the script to your chart.
2. **Customize Inputs**:
- Adjust the inputs (e.g., lookback period, alert settings) in the script settings panel.
3. **Interpret the Output**:
- Use the plotted levels and labels to identify key S&R zones and flip patterns.
- Monitor alerts for trading opportunities.
4. **Optimize for Your Strategy**:
- Adjust the lookback period and alert thresholds to suit your trading style.
---
## **Example Use Cases**
1. **Trend Identification**:
- Use the D1 levels to identify major S&R zones for long-term trend analysis.
- Combine with H4 and H1 levels for intraday trading opportunities.
2. **Flip Patterns**:
- Look for FTB and STB patterns to identify potential reversals.
- Use FTR patterns to confirm failed breakouts.
3. **Alerts for Trading**:
- Set up alerts for price-level crossings and flip patterns to stay informed of key market movements.
---
## **Notes**
- The script is optimized for performance by updating levels periodically and limiting the number of tracked flips.
- Alerts are designed to minimize noise by triggering only once per bar or bar close.
---
## **Disclaimer**
This script is for educational and informational purposes only. It should not be considered financial advice. Always conduct your own analysis and backtesting before using any trading strategy.
---
This documentation provides a comprehensive guide to using the **Major S&R Levels with Flips** script. If you have any questions or need further assistance, feel free to reach out!
Multi-Timeframe Trend Table - DOTANMulti Timeframe Trend Signal table - Wizord_KS
"Multi-Timeframe Trend Table"
This Pine Script indicator displays a table on the TradingView chart that shows the trend direction (Bullish/Bearish) across multiple timeframes. The trend is determined using a Simple Moving Average (SMA).
🔹 Key Features of the Script
Calculates trend direction based on SMA for:
The current timeframe.
10 different user-defined timeframes.
Determines a "Main Signal" based on trend strength:
Counts the number of bullish and bearish trends across all timeframes.
Uses this count to generate an overall market sentiment (Bullish, Bearish, or Neutral).
The strength of the main signal determines its background transparency.
Displays a table in the top-right corner of the chart showing:
The main trend signal (aggregated from multiple timeframes).
The trend for the current timeframe.
The trend for each of the 10 selected timeframes.
MTF Fractals [RunRox]🔽 MTF Fractals is a powerful indicator designed to visualize fractals from multiple timeframes directly on your chart, highlight liquidity sweeps at these fractal levels, and provide several additional features we’ll cover in detail below.
We created this indicator because we couldn’t find a suitable tool that met our specific needs on TradingView. Therefore, we decided to develop a valuable indicator for the entire TradingView community, combining simplicity and versatility.
⁉️ WHAT IS A FRACTALS?
In trading, a fractal is a technical analysis pattern composed of five consecutive candles, typically highlighting local market turning points. Specifically, a fractal high is formed when a candle’s high is higher than the highs of the two candles on either side, whereas a fractal low occurs when a candle’s low is lower than the lows of the two adjacent candles on both sides.
Traders use fractals as reference points for identifying significant support and resistance levels, potential reversal areas, and liquidity zones within price action analysis. Below is a screenshot illustrating clearly formed fractals on the chart.
📙 FRACTAL FORMATION
Here’s how fractals form depending on your chosen setting (3, 5, 7, or 9):
▶️ 3-bar fractal – forms when the central candle is higher (for highs) or lower (for lows) than one candle on each side.
▶️ 5-bar fractal – forms when the central candle is higher or lower than two candles on both sides.
▶️ 7-bar fractal – forms when the central candle is higher or lower compared to the three candles on each side.
▶️ 9-bar fractal – forms similarly but requires four candles on each side, making the fractal significantly more reliable and robust.
A higher number of bars ensures stronger fractal levels, highlighting more significant potential reversal points on the chart.
Now that we’ve covered the theory behind fractal formation, let’s explore the indicator’s functionality in more detail.
Below, I’ll explain each feature clearly and illustrate how you can effectively utilize this indicator in your trading.
🕐 MULTI-TIMEFRAME FRACTALS
We realized that displaying fractals only from the current timeframe isn’t always convenient, so we’ve introduced Multi-Timeframe Fractals into this indicator.
Now you can easily display fractals from higher timeframes directly on your current chart, providing you with broader market context and clearer trading signals.
Fractals from Current Timeframe – Fractals identified directly on the chart’s current timeframe.
Fractals from Higher Timeframes – Fractals sourced from higher timeframes and displayed clearly on your current chart for enhanced market perspective.
📈 FRACTAL LINES
Since fractals represent areas of high liquidity, we’ve added an option to extend fractal levels horizontally as Fractal Lines across your chart.
This feature allows you to clearly visualize critical liquidity areas from higher timeframes, directly on your current timeframe chart, as demonstrated in the screenshot below.
With this approach, you can clearly visualize significant fractal levels from higher timeframes directly on your current chart - for example, projecting fractals from the 1-hour (1H) timeframe onto a 3-minute (3m) chart. ✅ This helps you easily identify critical liquidity areas and potential reversal zones without the need to switch between multiple timeframes.
💰 LIQUDITY SWEEP (LIQUDITY GRAB)
To enhance your trading experience, we’ve introduced a feature that clearly identifies liquidity sweeps of fractal levels.
A Liquidity Sweep occurs when a candle closes beyond a fractal line, leaving a wick that pierces through it, signaling that liquidity has been collected at this level.
Below, you’ll find two examples illustrating this functionality:
▶️ Fractal lines from the current timeframe
▶️ Fractal lines projected from higher timeframes
The first example illustrates liquidity being swept from fractals on the current timeframe .
Here, the candle clearly closes beyond the fractal line, leaving a wick through it. This indicates a liquidity sweep at the fractal level, visually highlighting a potential reversal or continuation opportunity directly on your chart.
In the second example, fractals from the higher timeframe are projected onto your current chart.
When a candle on your current timeframe closes beyond an HTF fractal line - leaving a wick through this level - the indicator highlights it clearly. This signals to traders a potential reversal zone, indicating that liquidity has been swept, and price may reverse or significantly react from this area.
You can also enable the display of additional labels on the chart. These labels clearly mark liquidity sweeps at fractal levels, making it easier to visually identify potential reversal points directly on your chart.
⚙️ SETTINGS
Below are the indicator settings with detailed explanations for each parameter.
🔷 Bars in Fractal – Number of candles to the right and left required to form a fractal.
🔷 Fractal Timeframe – Select the timeframe from which you want to display fractals on the current chart.
🔷 Max Age, bars – Number of bars during which the fractal will remain active.
🔷 Show Fractal Line – Display or hide fractal lines.
🔷 Line Style – Choose the style of the line displayed on the chart.
🔷 Line Width – Thickness of the fractal line.
🔷 High Fractal – Style and color of bearish fractals.
🔷 Low Fractal – Style and color of bullish fractals.
🔷 Fractal Label Size – Select the size of fractal labels.
🔷 Show Sweep Labels – Option to display labels when a liquidity sweep occurs.
🔷 Label Color – Color and transparency of the area marked on the chart during a sweep.
🔷 Shade Sweep Area – Show or hide the sweep area shading.
🔷 Area Color – Color and transparency settings for the sweep area.
🔶 We’d love to hear your feedback and any suggestions for additional features you’d like to see in this indicator. We’ll be happy to consider your ideas and continue improving the indicator!
MangAlgo X-V61. Overview & Purpose
The MangAlgo X-V6 script is a multi-component indicator designed to generate buy and sell signals on TradingView charts by combining several technical analysis techniques. It is tailored for various trading styles – including Scalping, Day Trading, and the custom MangAlgo approach – by automatically adjusting parameters based on the selected preset. The primary goal of the script is to deliver more accurate signals by integrating additional filters and a robust trade management system.
⸻
2. Key Features
• Trading Style Presets
• Three preset options: Scalping, Day Trading, and MangAlgo.
• The selected preset automatically adjusts key parameters such as Moving Average (MA) lengths, additional MA filters, and other settings to suit the trading style.
• SL/TP Settings (Stop Loss / Take Profit)
• Adjustable ATR multiplier for calculating the stop loss (SL).
• Multi-level TP (up to 5 levels) based on a configurable risk-reward ratio.
• Multiple Moving Average Types
• Supports various MA types: SMA, EMA, WMA, or VWMA (default is based on conditions).
• Two sets of MAs:
• Fast and Slow MAs for detecting crossovers as primary signals.
• Additional MA Filters (three additional MAs) used as further confirmation.
• Higher Timeframe Filter (HTF)
• Incorporates a moving average from a higher timeframe to provide broader trend context.
• The HTF MA is smoothed using SMA to ensure a stable trend indication.
• SuperTrend Indicator
• Calculates the SuperTrend level using ATR and a configurable multiplier (“Magic Number Factor”).
• Displays a dynamic trend line that changes color: green for an uptrend and red for a downtrend.
• Momentum & Candle Size Filters
• The momentum filter measures price strength using a momentum function over a set period.
• Optional candle size filtering allows you to disregard signals based on minimum and maximum candle sizes to reduce market noise.
• Session Filters
• Optionally filter signals based on trading sessions (New York, London, Tokyo, Sydney) to avoid low-liquidity periods.
• Directional Movement Index (DI)
• Computes DI+ and DI– using a smoothed True Range.
• Acts as an additional filter: a buy signal is valid if DI+ is greater than DI–, and vice versa for sell signals.
• Trade Signal Execution & Management
• Entry Signals:
• Buy: Triggered when the fast MA crosses above the slow MA, supported by SuperTrend, HTF MA, additional MAs, momentum, and DI confirmation (DI+ > DI–).
• Sell: Triggered when the fast MA crosses below the slow MA with corresponding filter confirmations (DI– > DI+).
• SL and TP Setup:
• The stop loss is computed using ATR and adjusted with a trailing SL as take profit levels are reached.
• TP levels (up to 5) are calculated based on the initial risk and a configurable risk-reward ratio.
• Visual Signal & Trade Outcome Display:
• Displays “𝗕𝗨𝗬” and “𝗦𝗘𝗟𝗟” labels on the chart when signals are active.
• Additional labels indicate SL and TP levels and whether the trade outcome was a win or loss once the SL is hit.
• Logging & Trade Statistics (Optional)
• Internal logging records trade details for each confirmed candle, helping you review strategy performance.
• An optional table display shows a summary of trade counts, win/loss results, and win rate percentages.
• Custom Candle Plotting
• Instead of using the standard barcolor(), the script uses plotcandle() to color the candles based on the active trade status:
• Green: Indicates an active buy position.
• Blue: Indicates an active sell position.
• Default colors: When no trade is active.
⸻
3. How It Works & Component Interaction
1. Preset Trading Style Selection:
• Users choose a trading style preset via the input, which sets the values for key parameters such as the type and length of MAs, additional filters, and more.
2. Core Technical Calculations:
• ATR Calculation: Used for range detection and setting the stop loss.
• Moving Averages: Computed through a custom function (f_ma()) based on the chosen MA type.
• Range Detection: The script identifies price ranges by comparing the price to the MA, visualizing the range with boxes and lines.
3. Trend Filtering & Signal Confirmation:
• SuperTrend: Computed using ATR and a multiplier to dynamically generate support/resistance levels.
• Higher Timeframe MA: Provides macro trend context by analyzing a higher timeframe’s data.
• Additional MA & Momentum Filters: Ensure that the price movement is not mere noise, but confirmed by extra layers of filtering.
• DI (Directional Movement): Validates entry signals by ensuring that the directional momentum (DI+) dominates for buys and DI– for sells.
4. Signal Execution & Trade Management:
• When all conditions are met (including session filtering and non-range conditions), a buy or sell signal is activated.
• Upon signal activation, a trade is initiated with a calculated SL and multiple TP levels based on risk parameters.
• As the price reaches a TP level, the script adjusts the stop loss (trailing SL) to lock in gains.
• Trade outcomes (win or lose) are visually labeled on the chart after the SL is hit.
5. Visualization & Logging:
• Trading signals and SL/TP levels are plotted on the chart.
• Custom candle plotting highlights active trades by altering candle colors.
• Trade logging captures detailed information for each candle, which can be used for performance evaluation.
⸻
4. How to Use the Script
• Initial Setup:
• Select your preferred trading style preset (e.g., Scalping, Day Trading, or MangAlgo).
• Adjust additional input parameters if needed, such as the ATR multiplier, number of TPs, or session filters.
• Interpreting Signals:
• Look for “𝗕𝗨𝗬” and “𝗦𝗘𝗟𝗟” labels on the chart as indicators of entry points.
• Use the plotted SL and TP levels as guides for risk management.
• Utilizing Additional Filters:
• Optionally enable the candle size filter and session filters to reduce false signals.
• Regularly monitor the chart and remember that this indicator is a tool that combines multiple technical methods for better signal accuracy.
• Trade Management:
• Use the provided trade outcome labels and logging information to assess and refine your strategy over time.
• If activated, review the trade summary table to analyze overall performance statistics.
⸻
5. Risk Disclaimer
Trading involves significant risk and may not be suitable for all investors.
The MangAlgo X-V6 script is provided for educational and informational purposes only. Past performance is not indicative of future results. Trading decisions based on this script are at the sole discretion of the user, and the creator or distributor of the script is not responsible for any financial losses incurred. Always perform your own analysis, use proper risk management techniques, and consult with a professional financial advisor if necessary.
Crabs Multi-Timeframe Chaikin Money FlowThis indicator uses the classic Chaikin Money Flow formula, which consists of two main components:
Money Flow Multiplier: This determines whether money is flowing into or out of an asset during a period.
Money Flow Volume: This is the volume weighted by the multiplier.
This indicator adds to the basic CMF by using calculations for separate timeframes (1W, 1D, 4H, 1H). It will average the selected timeframes to create a composite line as well as a composite moving average. The indicator is completely customizable for colors/shading and will display a background shading change (when selected) indicating a change in direction of CMF. Each timeframe is selectable to display or not as desired - this will change the overall map of the CMF and the composites.
The indicator also ads user defined smoothing factors to reduce potential false signals.
A scaling feature is included which will allow for a very detailed numerical scale for the plot. If used in conjunction with the optional user defined upper and lower level lines, this can assist traders in identifying deeply overbought or oversold areas. These lines can also be selected to trigger alerts when hit.
It is also possible to use this indicator with traditional bullish/bearish divergence similar to how some might interpret the same with other popular indicators such as rsi/macd, etc.
This indicator can be used on larger timeframes to help identify possible swings and is a robust tool for visualization of potentially large market moves.
Essa - Yearly High, Low & MidYearly High, Low & Midpoint Indicator
This TradingView indicator helps traders track key yearly price levels by plotting the high, low, and midpoint values for each year within a user-specified range.
Features & Functionality:
Automatic Yearly Calculation: Determines the highest and lowest price for each year and computes the midpoint as their average.
Clear & Customisable Visuals:
The Yearly High is plotted as a solid green line.
The Yearly Low appears as a solid red line.
The Midpoint is displayed as a blue dashed line for easy distinction
Detailed Labels:
Each level is labeled at the far right of the chart, showing the year, level type (High, Low, or Mid), and price (e.g., 2016 High - 1.20000).
Labels are right-aligned in white, ensuring clear visibility against any background.
This indicator is perfect for traders who rely on long-term technical analysis, providing a quick and structured way to visualise significant yearly price levels.
Nimu Market on Paper
Multi-Timeframe Analysis Tool is a powerful visual aid for identifying trends, reversals, and key price movements across multiple timeframes — particularly useful for intraday traders and those using technical analysis strategies
Timeframes & Data Collection:
The script tracks multiple timeframes (1m, 5m, 15m, 30m, 1H, 2H, 4H, 8H), storing their open, high, low, and close prices in arrays (trdh, trdc, trdo, trdl).
It uses request.security() to fetch these values for the current symbol and specified timeframes
.
User Inputs:
Base Timeframe: Chooses the primary timeframe for analysis.
Bar Count: Determines how many bars to display.
Border Thickness: Sets the visual thickness of box borders.
Colors: Configurable for bullish, bearish, background, and borders
Visual Elements:
Dynamic Boxes: Drawn using box.new(), these illustrate the range between high and low prices with the percentage change displayed inside.
Candlestick Plots: Rendered for each tracked timeframe using plotcandle(), colored according to bullish or bearish price action and styled based on timeframe scaling.
Regression Line: A linear regression line plotted over the selected timeframe’s close prices to capture trend direction.
Logic & Presentation:
Determines the right timeframe index based on user input (base).
Calculates percentage change from high to low and visualizes it with shaded boxes.
Automatically deletes older boxes to maintain clarity.
Customizes candle appearance based on timeframe granularity.
Time Box Breakout IndicatorPlots Boxes with breakout signals on whatever timeframe the user selects.
Allows for users to see higher timeframe ranges on lower timeframes.
Useful for scalpers taking advantage of momentum, combined with support and resistance on higher timeframes.
Aids in visualizing risk, ranges and trends.
Wick Highlighter- Description
This script is a custom Multi-Wick Zone Highlighter that detects and highlights significant candle wicks on your chart. It is designed to work across multiple timeframes and uses time‑anchored boxes to “stick” to the original wick levels, ensuring that highlighted zones remain fixed even when panning or zooming the chart.
- Key Features
Wick Detection:
The script examines each candle to determine whether its upper or lower wick exceeds a user‑defined minimum size. Only wicks that meet or exceed this threshold are considered significant and trigger the creation of a highlight zone.
Zone Creation and Removal:
When a qualifying wick is detected, the script creates a colored zone (using anchored boxes) that spans from the wick tip to the candle’s body (top for upper wicks and bottom for lower wicks). Each zone remains visible until it is “filled” by subsequent price action. The fill condition is determined by a user‑adjustable fill percentage. For example, setting the fill percentage to 100% will remove the zone once the next candle’s high (for an upper wick) or low (for a lower wick) reaches the corresponding body level.
Multiple Zones:
This indicator supports multiple simultaneous zones. Each wick that qualifies is independently tracked and will not be overwritten by a later candle unless its fill condition is met. Separate flags ensure that if a candle fills an existing zone on one side, it does not create a new zone on that same side, maintaining clarity on your chart.
Time-Anchored Positioning:
To keep zones properly anchored even when you change timeframes or pan the chart, the script uses the bar’s time value rather than the bar index. This ensures that each zone remains fixed to the specific price levels where the wick was detected.
- Usage Notes
User-Adjustable Inputs:
Minimum Wick Size (Points): Set the minimum wick length to trigger a zone.
Wick Fill Percentage (%): Set the percentage into the wick at which the zone is considered filled and will be removed.
Zone Extend Bars: Control how far to the right (in terms of bars) each zone is extended.
Ideal For:
Traders who wish to visually identify key price zones based on significant candle wicks, and who require these zones to remain fixed and clear on the chart until they are actively filled by subsequent price movement.
Candle Close CountdownA simple indicator that counts down major candle closes.
This is especially useful if you're trading on low time frames but want to know when higher time frame candles close for volatility / reversal points.
It can also be useful to use it as a visual reminder to actually go check how a candle has closed.
- There are alerts for when a candle is going to close you can enable
- The text turns red 15% of the time BEFORE the candle closes
Daily separator, Open, HTF candlesScript Overview
This TradingView script is designed to enhance market structure analysis by providing a clear visual representation of key trading elements. It integrates multiple technical features that help traders assess price action, trend direction, and potential trade setups efficiently.
Main Features & Functionality
1. Daily Separator
• A vertical line is plotted to clearly mark the start of each trading day.
• Helps traders visually differentiate daily sessions, making it easier to analyze price action over different periods.
2. Exponential Moving Average (EMA) with EMA Continuity Table
• The script calculates an EMA of choice and displays whether the price is above or below it across five customizable timeframes.
• Use Case:
• Identifies if the price is in a retracement or a trend continuation phase.
• Helps determine trend strength—if price is consistently above the EMA across multiple timeframes, the trend is bullish; if below, it’s bearish.
• Aids in making trading decisions such as whether to go long or short.
3. Higher Timeframe (HTF) Candles
• Plots candles from a higher timeframe (HTF) onto the current chart.
• Use Case:
• Provides a macro view of price action while trading on a lower timeframe.
• Helps traders see if the price is interacting with HTF support/resistance levels.
• Useful for confirming entries/exits based on the HTF trend.
4. Opening Line
• Draws a daily opening price level, allowing traders to track price movement relative to the open.
• Use Case:
• Useful for intraday traders who analyze whether price is holding above or below the daily open.
• Helps in identifying key price behaviors, such as breakouts, fakeouts, or potential reversals.
Additional Considerations
• Customization: The script allows traders to adjust key parameters such as the EMA length, timeframes for EMA continuity, and HTF candle settings.
• Market Structure & Decision Making: By combining EMAs, HTF analysis, and the daily open, the script assists traders in determining whether price action aligns with their trade thesis.
• Potential Enhancements:
• Adding alerts for EMA crossovers or when price crosses the daily open.
• Incorporating color coding for the EMA table to improve readability.
Use Case Summary
This script is particularly beneficial for trend-following traders, intraday traders, and swing traders who want to:
1. Confirm market direction with EMA-based trend analysis.
2. Monitor HTF price action while trading on lower timeframes.
3. Track intraday price movement relative to the daily open.
4. Differentiate trading sessions for better structure analysis.
Date Display with Bar Counter and EMA===== ENGLISH DESCRIPTION =====
OVERVIEW:
This is a multi-function indicator that combines three useful tools in one script:
1. Date Display - Shows current date and symbol information in a customizable table
2. Bar Counter - Displays sequential bar numbers at specified intervals
3. EMA (Exponential Moving Average) - Plots an EMA line with customizable settings
FEATURES:
1. DATE DISPLAY:
- Shows date in full format (e.g., "Mon ∙ January 1, 2023") or short format (e.g., "Mon ∙ 01.01.23")
- Option to show/hide day of week
- Option to show/hide symbol and timeframe information
- Customizable table position (top/middle/bottom, left/center/right)
- Automatic color adjustment based on chart background
2. BAR COUNTER:
- Displays sequential bar numbers below price bars
- Customizable display frequency (every X bars)
- Special handling for Hong Kong futures (resets at market open)
- Different reset logic based on timeframe (daily, weekly, monthly)
- Customizable text size and color
3. EMA INDICATOR:
- Customizable period length (default: 20)
- Option to use different timeframe for calculation
- Option to wait for timeframe close for more stable signals
- Customizable line color
USAGE INSTRUCTIONS:
- After adding the indicator to your chart, customize settings in the "Format" panel
- The Date Display table will appear at your chosen position on the chart
- Bar numbers will appear below price bars at your specified frequency
- The EMA line will be plotted on the chart with your chosen settings
- Colors automatically adjust to light/dark chart themes
===== 中文说明 =====
概述:
这是一个多功能指标,将三个实用工具合并为一个脚本:
1. 日期显示 - 在可自定义的表格中显示当前日期和交易品种信息
2. K线计数器 - 按指定间隔显示K线序号
3. EMA指数移动平均线 - 绘制可自定义设置的EMA线
功能特点:
1. 日期显示:
- 支持完整格式(如"Mon ∙ January 1, 2023")或简短格式(如"Mon ∙ 01.01.23")
- 可选择显示/隐藏星期几
- 可选择显示/隐藏交易品种和时间周期信息
- 可自定义表格位置(顶部/中部/底部,左侧/中间/右侧)
- 根据图表背景自动调整颜色
2. K线计数器:
- 在价格K线下方显示序号
- 可自定义显示频率(每X根K线)
- 对香港期货有特殊处理(在开市时重置)
- 根据时间周期(日线、周线、月线)使用不同的重置逻辑
- 可自定义文字大小和颜色
3. EMA指标:
- 可自定义周期长度(默认:20)
- 可选择使用不同的时间周期进行计算
- 可选择等待时间周期结束以获得更稳定的信号
- 可自定义线条颜色
使用说明:
- 将指标添加到图表后,在"格式"面板中自定义设置
- 日期显示表格将出现在您选择的图表位置
- K线序号将按您指定的频率显示在价格K线下方
- EMA线将根据您选择的设置绘制在图表上
- 颜色会根据浅色/深色图表主题自动调整
*/
DXA JOKERThis custom indicator is designed to provide traders with a comprehensive toolkit for identifying potential entry and exit points in the market, while incorporating dynamic risk management features. The script integrates multiple analytical components to generate actionable signals, trend direction insights, and volatility-based adjustments for stop-loss and take-profit levels.
Key Features:
Signal Generation:
The indicator employs a sophisticated algorithm to generate precise trading signals. These signals are derived from a combination of trend-following and momentum-based calculations, ensuring adaptability to various market conditions. The signals are designed to highlight potential entry points for both long and short positions, providing clear visual cues on the chart.
Trend Identification:
A robust trend-detection mechanism is embedded within the indicator to assess the overall market direction. This component evaluates price action and momentum to determine whether the market is in a bullish, bearish, or neutral phase. The trend analysis is visually represented on the chart, allowing traders to align their strategies with the prevailing market conditions.
Volatility-Based Adjustments:
The script incorporates a dynamic volatility assessment tool to adjust stop-loss and take-profit levels according to current market conditions. By measuring market volatility, the indicator ensures that risk parameters are scaled appropriately, reducing the likelihood of premature stop-outs during periods of high volatility and optimizing profit potential during stable market phases.
Fibonacci-Based Levels:
The indicator includes a proprietary method for calculating and plotting Fibonacci-derived levels on the chart. These levels are used to identify potential support and resistance zones, which serve as strategic take-profit and stop-loss targets. The Fibonacci levels are dynamically updated based on recent price action, ensuring relevance to the current market structure.
Risk Management Integration:
The script seamlessly integrates risk management principles by combining volatility-adjusted stop-loss levels with Fibonacci-based take-profit targets. This approach allows traders to maintain a disciplined risk-reward ratio, enhancing the overall consistency of their trading strategy.
Visual Clarity:
The indicator is designed with a user-friendly interface, featuring clear visual markers for signals, trend direction, and key levels. Customizable colors and styles ensure that the indicator can be tailored to individual preferences, making it suitable for traders of all experience levels.
Usage Guidelines:
Entry Signals: Traders can use the generated signals to identify potential entry points in alignment with the prevailing trend.
Trend Confirmation: The trend-detection component provides additional confirmation, helping traders avoid counter-trend positions.
Stop-Loss and Take-Profit Levels: The dynamically calculated levels offer precise risk management guidelines, ensuring trades are executed with predefined risk parameters.
Volatility Awareness: The volatility assessment tool helps traders remain aware of changing market conditions, allowing for adjustments to position sizing and risk tolerance.
Conclusion:
This custom indicator is a versatile and powerful tool for traders seeking to enhance their decision-making process. By combining signal generation, trend analysis, volatility adjustments, and Fibonacci-based levels, the script provides a holistic approach to trading. Its intuitive design and dynamic calculations make it suitable for a wide range of trading styles and timeframes, empowering traders to navigate the markets with confidence and precision.
Order Blocks-[B.Balaei]Order Blocks -
**Description:**
The Order Blocks - indicator is a powerful tool designed to identify and visualize Order Blocks on your chart. Order Blocks are key levels where significant buying or selling activity has occurred, often acting as support or resistance zones. This indicator supports multiple timeframes (MTF), allowing you to analyze Order Blocks from higher timeframes directly on your current chart.
**Key Features:**
1. **Multi-Timeframe Support**: Choose any timeframe (e.g., Daily, Weekly) to display Order Blocks from higher timeframes.
2. **Customizable Sensitivity**: Adjust the sensitivity to detect more or fewer Order Blocks based on market conditions.
3. **Bullish & Bearish Order Blocks**: Clearly distinguishes between bullish (green) and bearish (red) Order Blocks.
4. **Alerts**: Get notified when price enters a Bullish or Bearish Order Block zone.
5. **Customizable Colors**: Personalize the appearance of Order Blocks to match your chart style.
**How to Use:**
1. Add the indicator to your chart.
2. Select your desired timeframe from the "Multi-Timeframe" settings.
3. Adjust the sensitivity and colors as needed.
4. Watch for Order Blocks to form and use them as potential support/resistance levels.
**Ideal For:**
- Swing traders and position traders looking for key levels.
- Traders who use multi-timeframe analysis.
- Anyone interested in understanding market structure through Order Blocks.
**Note:**
This indicator is for educational and informational purposes only. Always conduct your own analysis before making trading decisions.
**Enjoy trading with Order Blocks - !**
Price AltimeterThis indicator should help visualize the price, inspired by a Digital Altimeter in a Pilots HUD.
It's by default calibrated to Bitcoin, with the small levels showing every $100 and the larger levels setup to display on every $1000. But you can change this to whatever you want by changing the settings for: Small and Large Level Increments.
The default colors are grey, but can be changed to whatever you want, and there are two cause if you want they work as a gradient.
There are options to fade as the values go away from the current price action.
There are options for Forward and Backward Offsets, 0 is the current price and each value represents a candle on whatever time frame your currently on.
Other Options include the Fade Ratio, the Line Width and Style, which are all self explanatory.
Hope you Enjoy!
Backtest it in fast mode to see it in action a little better...
Known Issues:
For some reason it bug's out when either or are displaying more than 19 lines, unsure why so its limited to that for now.
Extra Note on what this may be useful for: I always wanted to make this, but didn't realize how to put things in front of the price action... Offset! Duh! Anyways, I thought of this one because I often it's hard on these charts to really get an idea for absolute price amounts across different time frames, this in an intuitive, at a glance way to see it because the regular price thing on the right always adds values between values when you zoom in and you can sometimes get lost figuring out the proportions of things.
Could also be useful for Scalping?
Weekly MA SuiteThe Weekly MA Suite is a multi-layered moving average indicator designed for traders and investors who analyze market trends across weekly and long-term timeframes. It combines three critical trend layers—short-term (1W EMA/VWMA), mid-term (30W EMA/VWMA), and long-term (200W HMA)—providing clear insights into market momentum, structure, and cycle trends.
This indicator is ideal for:
✅ Swing traders looking for weekly momentum shifts
✅ Position traders tracking multi-week to multi-month trends
✅ Long-term investors monitoring macro market cycles
Each layer has customizable colors, transparency, and visibility toggles, ensuring traders can tailor the indicator to their specific needs.
📊 Breakdown of Components
🔹 Short-Term Trend (1W EMA/VWMA Ribbon – Top Layer)
Purpose: Captures weekly momentum and volume dynamics
• 1W EMA (Exponential Moving Average) reacts quickly to price changes
• 1W VWMA (Volume-Weighted Moving Average) accounts for volume to confirm trend strength
• Ribbon fill highlights the divergence between price-based momentum (EMA) and volume-weighted trends (VWMA), making trend shifts easier to spot
Usage:
• If the 1W EMA is above the 1W VWMA, momentum is strong and price is trending higher with support from volume
• If the EMA crosses below the VWMA, it may indicate weakening trend strength or distribution
• A widening ribbon suggests increasing momentum, while a narrowing ribbon signals potential consolidation or reversal
🔸 Mid-Term Trend (30W EMA/VWMA Ribbon – Middle Layer)
Purpose: Provides insight into the broader market structure over multiple months
• 30W EMA represents the dominant trend direction over roughly half a year
• 30W VWMA smooths this trend while weighting price by trading volume
• Ribbon fill allows for a visual representation of how volume impacts trend direction
Usage:
• A bullish trend is confirmed when price remains above the 30W EMA, with the ribbon widening in an uptrend
• A bearish shift occurs when the 30W EMA crosses below the 30W VWMA, signaling weakening demand
• If the ribbon narrows or twists frequently, the market may be in a choppy, range-bound phase
🔻 Long-Term Trend (200W HMA – Background Layer)
Purpose: Identifies major market cycles and deep trend shifts
• The 200W Hull Moving Average (HMA) is a long-term smoothing tool that reduces lag while maintaining trend clarity
• Unlike traditional moving averages, the HMA reacts faster to trend changes without excessive noise
Usage:
• When price is above the 200W HMA, the broader trend remains bullish, even during short-term corrections
• A cross below the 200W HMA may indicate a macro downtrend or deep market cycle shift
• Long-term investors can use this as a dynamic support or resistance zone
🎯 How to Use the Weekly MA Suite for Trading
📅 Identifying Market Phases
• In strong uptrends, the 1W EMA and 30W EMA will be aligned above their VWMA counterparts, with price well above the 200W HMA
• In sideways markets, the ribbons will frequently narrow or cross, signaling indecision
• In bear markets, price will typically trade below the 30W EMA, with the 200W HMA acting as a long-term resistance
📈 Entry and Exit Strategies
• A bullish trade setup occurs when the 1W EMA crosses above the 1W VWMA while the 30W EMA holds above the 30W VWMA, confirming multi-timeframe momentum
• A bearish setup is confirmed when the 1W EMA crosses below the 1W VWMA and price is also trending below the 30W EMA
• The 200W HMA can be used as a trend filter—staying long when price is above it and avoiding longs when price is below
🚦 Customizing for Your Trading Style
• Scalpers can focus on the 1W ribbon for faster trend shifts
• Swing traders can use the 30W ribbon for trend-following entries and exits
• Long-term investors should watch price action relative to the 200W HMA for market cycle positioning
🔧 Final Thoughts
The Weekly MA Suite simplifies multi-timeframe analysis by layering key moving averages in an intuitive and structured format. By combining short, medium, and long-term trend indicators, traders can confidently navigate market conditions and improve decision-making. Whether trading weekly trends or monitoring multi-year cycles, this tool provides a clear visual framework to enhance market insights.
MTF Sentiment ProMTF Sentiment Pro - Advanced Multi-Timeframe Analysis
Purpose & Methodology
MTF Sentiment Pro provides traders with comprehensive market sentiment analysis across multiple timeframes. This indicator's unique innovation is its weighted scoring system that evaluates both technical indicators and volume metrics to determine market sentiment across customizable timeframes.
Unlike simple indicator overlays or basic multi-timeframe tools, this indicator:
1. Calculates sentiment using a proprietary weighted formula across 7 different timeframes
2. Incorporates volume confirmation to validate price movements (a critical element often overlooked)
3. Provides clear visualization of sentiment alignment between lower and higher timeframes
4. Uses majority-rule algorithms for overall sentiment determination (2/3 rule for LTF, 3/4 rule for HTF)
Technical Components & Integration
Each timeframe's sentiment score is derived from a combination of:
- **EMA**: Evaluates trend direction and price position relative to moving average
- **RSI**: Measures momentum with sensitivity to the 50-level for trend determination
- **MACD**: Assesses trend strength and momentum through histogram analysis
- **Bollinger Bands**: Determines price volatility and position relative to the mean
- **VWAP**: Provides volume-adjusted price reference
- **OBV**: Confirms price moves with cumulative volume analysis
What makes this combination powerful is how these components are integrated:
- Each indicator contributes a weighted value to the overall sentiment score
- User-definable weights allow customization based on strategy preferences
- Volume confirmation adds a critical dimension beyond basic price-only indicators
- Multi-timeframe analysis helps identify alignment/divergence across time horizons
Trading Applications & Limitations
This indicator works best for:
- Trend confirmation across multiple timeframes
- Identifying potential reversal zones where LTF and HTF sentiments diverge
- Entry/exit timing when paired with your primary strategy rules
- Market structure analysis across different time horizons
Note: While this indicator provides comprehensive sentiment analysis, it should be used as part of a complete trading strategy with proper risk management. No indicator can predict market movements with certainty.
Usage Instructions
1. Select appropriate timeframes for your trading style or use one of the included presets
2. Adjust indicator weights to match your analytical preferences
3. Look for timeframe alignment/divergence to identify potential opportunities
4. Use the overall LTF and HTF sentiment readings for broader market context
This indicator was developed to solve the challenge of efficiently analyzing sentiment across multiple timeframes while incorporating volume confirmation - something that would otherwise require multiple indicators and manual correlation.
Moving Average and Pearson LevelsMoving Average and Pearson Levels Indicator
This Pine Script indicator combines a customizable moving average (MA) with Pearson correlation analysis to provide traders with deeper insights into trends and key reference levels. It overlays a Pearson-adjusted moving average on price charts and highlights levels based on correlation for potential trading opportunities. With flexible parameters, it adapts to various trading styles.
Key Features
Pearson-Adjusted Moving Average
Combines a basic MA (SMA, EMA, WMA, or VWMA) with a Pearson correlation adjustment to reflect trend strength.
Adjustable: MA length, price source, smoothing, and line thickness.
Optional color changes based on trends (positive/negative).
Pearson Correlation Levels
Plots smoothed Pearson correlation with upper/lower thresholds to signal strong or weak trends.
Marks entry levels with price labels and dynamic colors when thresholds are crossed.
Customizable: Pearson length, smoothing, thresholds, and colors.
Reference Levels and Alerts
Optional dotted lines for upper, lower, and zero correlation thresholds.
Alerts for bullish MA signals (crossing the lower threshold) and bearish signals (crossing below the upper threshold).
How It Works
Moving Average: Calculates a standard moving average enhanced by a Pearson adjustment based on price trends over a given period.
Pearson Levels: Computes the strength of correlation, smoothed for better readability, and plots price lines at threshold crossings.
Visualization: Displays the MA and levels with trend-reactive colors and optional reference lines.
Usage
Ideal for traders who combine traditional MAs with statistical trend analysis.
Adjust the MA type and Pearson length for short-term or long-term strategies.
Use correlation levels for reversal signals or trend confirmation.
Customization Options
MA Parameters: Select the type, length, and smoothing of the MA; toggle visibility and color changes.
Pearson Levels: Adjust thresholds, line thickness, and label colors.
Display Options: Show/hide reference lines and the standard MA for comparison purposes.
Example Settings
MA Length: 20
Type: EMA
Pearson Length: 15
Thresholds: 0.7/-0.7
Colors: Positive (black), Negative (green), Levels (gray)
Notes
Optimize based on your preferred timeframe.
Adjust smoothing to balance responsiveness and clarity.
Try it out, customize it to your needs, and enhance your trading setup! Feedback and suggestions are welcome.
BUY & SELL Dynamic DCA StrategyOverview
The BUY & SELL Dynamic DCA Strategy is a versatile Pine Script indicator designed for traders seeking a robust Dollar Cost Averaging (DCA) approach to manage both long and short positions across various market conditions and timeframes. This innovative tool combines breakout-based level initiation with a dynamic volatility adjustment, enabling traders to enter positions at optimal DCA points, average them strategically, and manage risk with adjustable stop-loss and take-profit levels. Ideal for scalping on short timeframes (1-minute, 5-minute) or swing trading on longer ones (15-minute, 1-hour, 4-hour).
Purpose and Originality
The "BUY & SELL Dynamic DCA Strategy" stands out by integrating several trading concepts into a cohesive, trader-friendly system. While it leverages familiar elements like breakout points and ATR (Average True Range), its originality lies in:
Dynamic Volatility Adjustment: A custom volatility factor, derived from a capped ATR calculation, dynamically scales DCA entry, averaging, and stop-loss levels. This ensures the strategy adapts to market conditions, tightening in low volatility for scalping and widening in high volatility for swing trading.
Dual-Direction DCA: Supports both buy (long) entries on pullbacks and sell (short) entries on rallies, with tailored averaging and exit strategies for each.
Timeframe Versatility: Adjusts its sensitivity based on the chart timeframe, making it suitable for rapid scalping or longer-term trend riding without requiring manual recalibration.
This unique synthesis justifies its publication as a invite-only script, offering a practical tool that enhances traditional DCA methods with adaptive precision.
How It Works
The indicator operates through a multi-step process designed to optimize entry, averaging, and exit points:
1. Initial Level Setting:
Utilizes high and low threshold (calculated over a user-defined period) to establish initial DCA entry levels. If no threshold is detected, it defaults to the previous bar’s price, ensuring immediate applicability.
2. Dynamic DCA Entry:
Entry levels are adjusted using a proprietary volatility factor, which scales the distance from the current price. Long entries trigger when the price falls below this level, while short entries trigger when the price rises above it, with a volume confirmation filter to reduce noise.
3. Averaging Mechanism:
A secondary level (Averaging Level) allows traders to add to their position when the price moves further against the trade (down for longs, up for shorts). This level is also volatility-adjusted, providing a structured cost-reduction strategy.
4. Risk and Reward Management:
A Final Stop-Loss (Final SL) is set farther out, calculated as a multiple of the volatility-adjusted risk distance, offering protection after averaging.
Take-Profit (TP) levels are determined using a user-defined risk-to-reward ratio, ensuring a balanced exit strategy tailored to market movement.
5. Performance Tracking:
A real-time win/loss table in the top-right corner records trade outcomes, with wins and losses color-coded based on the trade direction (green/red for long, red/green for short), aiding performance evaluation.
Features
1. Dual-Mode Operation : Facilitates both long entries on price dips and short entries on price surges, adaptable to bullish and bearish markets.
2. Volatility-Adaptive Levels: Employs a custom ATR-based adjustment to scale entry, averaging, and stop-loss levels, enhancing responsiveness across timeframes.
3. Visual Tools: Features dashed lines and labels for DCA Entry (green for long, red for short), Final SL (red), and TP (cyan), with debug labels for entries and averages.
4. Timeframe Flexibility: Automatically adjusts threshold periods and volatility factors based on the chart timeframe (1m, 5m, 15m, 1h, 4h), optimizing for scalping or swing trading.
5. Customizable Parameters: Allows fine-tuning of period, DCA factors, and visibility options.
Settings
Base Length (default: 10): Base period for pivot calculations, scaled by timeframe (e.g., 10 becomes 20 on 5m).
Type: 'Wicks' (high/low) or 'Body' (open/close) for price-based levels.
RR Ratio (default: 1.2): Risk-to-reward ratio for TP calculation.
DCA Entry Factor (default: 1.0): Multiplier for volatility-adjusted DCA entry distance.
Avg Level Factor (default: 2.0): Multiplier for averaging level distance.
Final SL Factor (default: 3.0): Multiplier for final stop-loss distance.
SL Type: 'Close' or 'High/Low' for stop-loss evaluation.
Show DCA Entry, Show Avg Level, Show Final SL: Toggle visibility of respective lines.
Show Win/Loss Table: Enable/disable performance tracking.
Line Style: Select 'Solid', 'Dashed', or 'Dotted'.
Usage Instructions
1. Application:
Add the "BUY & SELL Dynamic DCA Strategy - JOAT" via the Pine Editor or community scripts on TradingView.
2. Configuration:
Scalping (1m, 5m): Set Base Length to 5-10, use a low DCA Entry Factor (0.5-1.0) for tight entries, and a Final SL Factor of 2.0-3.0.
Swing Trading (15m, 1h, 4h): Increase Base Length to 15-20, use a higher DCA Entry Factor (1.0-2.0), and set Final SL Factor to 3.0-4.0 for wider stops.
Enable visual elements and adjust Line Style as preferred.
3. Signal Interpretation:
Long Trade: A green dashed "DCA Entry" line below the price triggers a "Long Entry" label on crossover down.
Short Trade: A red dashed "DCA Entry" line above the price triggers a "Short Entry" label on crossover up.
Averaging: A yellow "Avg" label (long) or magenta "Avg" label (short) appears at the respective averaging level.
Exits: TP (cyan) for wins, Final SL (red) for losses, tracked in the win/loss table.
Trade Management:
Scalping: Use 1m/5m for quick trades, averaging as price moves against you.
Swing Trading: Use 15m/1h/4h to capture trends, averaging for cost adjustment.
Manually adjust position size for averaging based on risk tolerance.
5. Performance Monitoring:
The top-right table updates with wins (green/red) and losses (red/green) per trade type, helping assess strategy effectiveness.
Limitations
Manual Averaging: Requires manual position size adjustment at the Averaging Level; automation is not included.
Timeframe Sensitivity: May require parameter tuning for optimal performance across 1m to 4h.
No Trend Filter: Sideways markets may generate noise; adding a trend indicator could enhance accuracy (future development).
Initialization Delay: First trade may be delayed until a pivot is detected, using the current price as a fallback.
Originality Justification
The custom volAdj method, which caps ATR at a percentage of price and scales it by timeframe, offering a unique volatility adjustment not found in standard indicators.
The dual-direction DCA with averaging, combining long and short strategies with volatility-modulated levels, providing a comprehensive trading framework.
The timeframe-adaptive design, automatically adjusting pivot periods and volatility factors, making it a versatile tool across scalping and swing trading.
MTF Moving Averages (only EMA)MTF Moving Averages (only EMA)
This script provides a Multi-Timeframe (MTF) Exponential Moving Average (EMA) indicator for traders to visualize multiple EMAs across different timeframes directly on a single chart.
The indicator dynamically calculates and plots up to four EMAs per timeframe (15-minute, 30-minute, 1-hour, and Daily) with user-defined lengths, offering valuable insight into price trends and potential entry or exit points.
Key Features:
Multiple Timeframe Support: The script allows you to view EMAs from different timeframes simultaneously. This is especially useful for traders who follow trends across different timeframes to make more informed decisions.
Customizable Lengths: For each timeframe, the lengths of the EMAs are fully customizable. You can adjust the length of up to four EMAs per timeframe to suit your strategy.
EMA Calculation: The Exponential Moving Average (EMA) is used, which gives more weight to recent prices and reacts faster to price changes compared to the simple moving average (SMA).
Timeframe Flexibility: The indicator supports the following timeframes:
15-minute: Ideal for short-term traders and scalpers.
30-minute: For intraday trading with a slightly longer perspective.
1-hour: Suitable for swing traders and those who prefer a more medium-term view.
Daily: Great for longer-term trend-following strategies.
Interactive and User-Friendly: You can toggle the visibility of each EMA on each timeframe, allowing you to choose exactly which EMAs you wish to display, depending on your trading strategy.
Color-Coded for Clarity: The script uses distinct colors for each EMA on the chart:
Blue: EMA1
Green: EMA2
Red: EMA3
Purple: EMA4
Line Width Customization: Each plotted EMA line has a customizable width for better visual clarity.
Use Case:
Traders who use multiple timeframes for analysis (e.g., those using the "multi-timeframe analysis" technique) will find this script particularly useful. For example, a trader may look at the 15-minute chart to catch short-term movements, the 30-minute chart for intraday trends, the 1-hour chart for swing positions, and the Daily chart for identifying the overarching market trend. The script enables them to view the EMAs for all these timeframes in one glance without having to manually switch between them.
By observing the relationships between EMAs across multiple timeframes, traders can gain valuable insights into market conditions such as:
Crossovers: When a shorter-term EMA crosses above or below a longer-term EMA, it can signal a potential trend reversal or continuation.
Trend Strength: Multiple EMAs in alignment across different timeframes can indicate strong trend strength.
Support and Resistance: EMAs can act as dynamic support and resistance levels, guiding traders on price action levels to watch for potential price reversals.
Instructions:
Enable/Disable EMAs: Toggle on or off the EMAs for each timeframe (15-min, 30-min, 1-hour, Daily) using the script’s settings.
Adjust EMA Lengths: Change the default lengths for each EMA to match your preferred settings for different timeframes.
Monitor Key Levels: Watch how price interacts with the plotted EMAs to spot potential trading signals based on your strategy.
This indicator is designed to enhance your multi-timeframe analysis and help make more informed, data-driven trading decisions.