Moving Average Cross; Linear RegressionThis Pine Script is designed to display smoothed linear regression lines on a chart, with an option to adjust the regression period lengths and smoothing factor. The script calculates short-term and long-term linear regression lines based on the selected timeframe. These regression lines act as a regressed moving average cross , visually representing the interaction between the two smoothed linear regressions.
Short Regression Line: A linear regression line based on a short lookback period, colored blue for an uptrend and orange for a downtrend .
Long Regression Line: A linear regression line based on a longer lookback period, similarly colored blue for an uptrend and orange for a downtrend .
The script provides input options to adjust:
The length of short and long regression periods.
The smoothing length for the regression lines.
The timeframe for the linear regression calculations.
This tool can help traders observe the crossovers between the two smoothed linear regression lines, which are similar to moving average crossovers, but with the added benefit of regression-based smoothing to reduce noise. The color-coding allows for easy trend identification, with blue indicating an uptrend and orange indicating a downtrend.
Индикаторы и стратегии
Custom ChoCH Indicator (10m) - SayajeeCustom ChoCH Indicator (10m) - Sayajee
This custom Pine Script indicator identifies and marks Change of Character (ChoCH) events on a 10-minute chart. ChoCH is a price action concept that highlights potential market reversals. The indicator detects bullish and bearish Change of Character points and displays them as labels and background color highlights on the chart.
Features:
Bullish & Bearish ChoCH Signals: Detects price reversals and trends based on the relationship between recent highs and lows.
Bullish ChoCH: When the close price is greater than the previous swing high and the previous low is lower than the previous swing low.
Bearish ChoCH: When the close price is lower than the previous swing low and the previous high is greater than the previous swing high.
Visual Indicators:
Labels ("ChoCH↑" for bullish, "ChoCH↓" for bearish) are displayed at the high or low of the bar where the signal occurs.
Background highlights in green for bullish and red for bearish conditions to make the signals easily recognizable.
Customization:
Option to toggle the visibility of labels.
Option to customize the colors for bullish and bearish signals.
Alerts: Configured alert conditions to notify you when a Bullish ChoCH or Bearish ChoCH occurs.
Inputs:
Show Labels for ChoCH: Toggle to display ChoCH labels on the chart.
Bullish ChoCH Color: Choose the color for bullish signals.
Bearish ChoCH Color: Choose the color for bearish signals.
Usage:
This indicator is useful for detecting potential trend reversals and market shifts, especially when combined with other technical analysis tools. It's designed for traders who rely on price action and prefer visual cues to make informed decisions.
Multi TimeFrame OHLC Overlay @MaxMaseratiMulti TimeFrame OHLC Overlay @MaxMaserati
A powerful and versatile indicator that displays OHLC (Open, High, Low, Close) data across multiple timeframes with enhanced visualization features. Perfect for traders who need to analyze price action across different time periods simultaneously.
Key Features:
Customizable multi-timeframe OHLC visualization with box and line overlays
Extended OHLC lines from higher timeframes with clear labeling
Distinct bullish and bearish candle representations
Fully configurable color schemes and display options
Real-time timeframe information display
Main Components:
Multi-Timeframe Display
Primary timeframe OHLC visualization with boxes and lines
Extended timeframe overlay for broader market context
Clear visual distinction between timeframes
Customizable Visuals
Separate color settings for bullish and bearish patterns
Adjustable transparency for both body and wick components
Configurable OHLC line colors and visibility
Extended Lines Features
Higher timeframe OHLC level overlay
Custom labels with timeframe identification
Adjustable line properties and visibility
Information Display
Current timeframe indicator
Extended timeframe reference
Clean and unobtrusive interface
Settings Groups:
Extended OHLC Lines
Labels Options
Display Options
Bullish/Bearish Candle Settings
OHLC Lines Configuration
Usage Tips:
Start with the default 240-minute timeframe or adjust to your preferred interval
Use the extended lines feature to view higher timeframe levels
Customize colors and transparency to match your chart theme
Enable/disable specific components based on your analysis needs
Perfect For:
Multi-timeframe analysis
Support/Resistance identification
Price action trading
Trend following strategies
Market structure analysis
This indicator combines powerful multi-timeframe analysis capabilities with clean visualization, making it an essential tool for traders who need to maintain awareness of price action across different time periods.
Note:
For optimal performance, adjust the visual settings according to your chart's timeframe and color scheme. The indicator is designed to work seamlessly across all trading instruments and timeframes.
LRI Momentum Cycles [AlgoAlpha]Discover the LRI Momentum Cycles indicator by AlgoAlpha, a cutting-edge tool designed to identify market momentum shifts using trend normalization and linear regression analysis. This advanced indicator helps traders detect bullish and bearish cycles with enhanced accuracy, making it ideal for swing traders and intraday enthusiasts alike.
Key Features :
🎨 Customizable Appearance : Set personalized colors for bullish and bearish trends to match your charting style.
🔧 Dynamic Trend Analysis : Tracks market momentum using a unique trend normalization algorithm.
📊 Linear Regression Insight : Calculates real-time trend direction using linear regression for better precision.
🔔 Alert Notifications : Receive alerts when the market switches from bearish to bullish or vice versa.
How to Use :
🛠 Add the Indicator : Favorite and apply the indicator to your TradingView chart. Adjust the lookback period, linear regression source, and regression length to fit your strategy.
📊 Market Analysis : Watch for color changes on the trend line. Green signals bullish momentum, while red indicates bearish cycles. Use these shifts to time entries and exits.
🔔 Set Alerts : Enable notifications for momentum shifts, ensuring you never miss critical market moves.
How It Works :
The LRI Momentum Cycles indicator calculates trend direction by applying linear regression on a user-defined price source over a specified period. It compares historical trend values, detecting bullish or bearish momentum through a dynamic scoring system. This score is normalized to ensure consistent readings, regardless of market conditions. The indicator visually represents trends using gradient-colored plots and fills to highlight changes in momentum. Alerts trigger when the momentum state changes, providing actionable trading signals.
Drawdown from All-Time High (Line)This Pine Script is a **Drawdown Indicator from All-Time High** for TradingView. It calculates and plots the percentage drawdown from the highest price the asset has ever reached (the all-time high). Here's a breakdown of what this script does:
### Description:
- **Drawdown Calculation**:
- The drawdown is calculated as the difference between the current price (`close`) and the all-time high, divided by the all-time high, and multiplied by 100 to express it as a percentage.
- If the current price is higher than the previous all-time high, the all-time high is updated to the current price.
- **All-Time High Tracking**:
- The script tracks the highest price (`allTimeHigh`) that the asset has ever reached. Each time a new high is reached, the `allTimeHigh` value is updated.
- **Line Plot**:
- The drawdown percentage is then plotted as a line on the chart, with a color of **blue** for easy visualization.
- The line shows how much the price has dropped relative to its all-time high.
- **Zero Line**:
- A horizontal line is added at the **0%** level to act as a reference point, which is helpful to identify when the asset has fully recovered to its all-time high.
### Key Features:
- **Track Drawdown**: The indicator helps visualize how far the current price has fallen from its highest point, which is useful for understanding the depth of losses (drawdowns) during a period.
- **Update All-Time High**: The indicator automatically updates the all-time high whenever a new high is detected.
- **Visual Reference**: The 0% horizontal line provides a clear indication of when the asset is at its all-time high, and the drawdown is at 0%.
### How it Works:
- If the current price surpasses the all-time high, the script will reset the all-time high to the new price.
- The drawdown percentage is calculated from the current price relative to this all-time high, and it is displayed as a line on the chart.
### Visuals:
- **Drawdown Line**: Plots the percentage of the drawdown, which is the drop from the all-time high.
- **Zero Line**: A dotted horizontal line at 0% marks the level of the all-time high.
This indicator is valuable for understanding the extent of price corrections and potential recoveries relative to the historical peak of the asset. It is especially useful for traders and investors who want to assess the risk of drawdowns in relation to the highest price achieved by the asset.
Big Money by ChartedhighsBig Money by Chartedhighs
Script Overview:
The "Big Money" indicator is designed to help traders easily identify significant price movements on their charts. This script visually highlights candles where the price change from open to close exceeds a user-defined threshold. It draws attention to these key moments, providing a clear indication of potential big-money moves in the market.
Key Features:
Customizable Threshold:
Allows users to set a specific price change threshold via the input menu (Highlight Threshold).
Only candles with a price change greater than or equal to this value are highlighted.
Candle Highlighting:
Uses color-coded bars to emphasize candles meeting the threshold condition.
Candles are highlighted in yellow for immediate visual clarity.
Dynamic Box Annotation:
Draws a semi-transparent yellow box around highlighted candles.
Extends the box dynamically to subsequent bars, providing an area of interest for continued analysis.
Labeling for Key Moments:
Automatically adds a label ("BigMoney") above highlighted bars to further indicate significant price action.
How It Works:
The script calculates the price change for each bar (close - open) and compares it to the user-defined threshold.
If the price change meets or exceeds the threshold:
The bar color changes to yellow.
A box is drawn around the candle to highlight the price movement visually.
A label is added above the candle to emphasize its significance.
The box extends dynamically until the next highlighted candle, allowing users to track zones of activity.
Customization Options:
Highlight Threshold: Modify the threshold value to suit your trading style or instrument volatility.
Use Case:
This indicator is ideal for traders looking to identify significant price movements quickly. It helps to locate areas where "big money" might be flowing into the market, offering potential entry or exit opportunities.
How to Use:
Add the "Big Money by Chartedhighs" script to your TradingView chart.
Set the Highlight Threshold to a value suitable for your market or timeframe.
Observe highlighted candles and boxes for potential trading signals or areas of interest.
This script is highly visual, intuitive, and customizable, making it a great addition to any trader's toolkit!
Multi VWAPThe Multi-VWAP Indicator is a versatile tool designed to plot up to three Volume Weighted Average Price (VWAP) lines simultaneously, each anchored to a user-defined period. This indicator provides traders with a comprehensive view of price action across multiple timeframes, making it ideal for analyzing trends, support, and resistance levels.
Key Features:
Multiple Anchoring Options:
Each VWAP can be independently anchored to one of the following periods:
Session: Resets at the start of each trading day.
Week: Resets at the start of each week.
Month: Resets at the start of each month.
Quarter: Resets at the start of each quarter.
Year: Resets at the start of each year.
User Customization:
Choose the anchoring period for each VWAP line via dropdown menus.
Assign distinct colors to each VWAP for better visual differentiation.
Dynamic Price Source:
The VWAP calculation is based on the average price (hlc3) by default but can be modified by the user to use other price inputs.
Clear Visualization:
Displays three separate VWAP lines simultaneously, helping traders identify confluences or divergences in price action across timeframes.
Use Cases:
Intraday Trading: Use session-anchored VWAP to track intraday trends and mean reversion points.
Swing Trading: Combine weekly and monthly VWAPs to identify longer-term support and resistance levels.
Multi-Timeframe Analysis: Visualize how price interacts with VWAPs from different periods to spot key zones of interest.
This indicator is a powerful tool for traders who want to incorporate VWAP into their strategies while maintaining flexibility to adapt to various market conditions.
Three Step Future-Trend [BigBeluga]Three Step Future-Trend by BigBeluga is a forward-looking trend analysis tool designed to project potential future price direction based on historical periods. This indicator aggregates data from three consecutive periods, using price averages and delta volume analysis to forecast trend movement and visualize it on the chart with a projected trend line and volume metrics.
🔵 Key Features:
Three Period Analysis: Calculates price averages and delta volumes from three specified periods, creating a consolidated view of historical price movement.
Future Trend Line Projection: Plots a forward trend line based on the calculated averag of three periods, helping traders visualize potential future price movement.
Avg Delta Volume and Future Price Label: Shows a delta average Volume a long with a Future Price label at the end of the projected trend line, indicating the possible future delta volume and future Price.
Volume Data Table: Displays a detailed table showing delta and total volume for each of the three periods, allowing quick volume comparison to support the projected trend.
This indicator provides a dynamic way to anticipate market direction by blending price and volume data, giving traders insights into both volume and trend strength in upcoming periods.
Log Regression OscillatorThe Log Regression Oscillator transforms the logarithmic regression curves into an easy-to-interpret oscillator that displays potential cycle tops/bottoms.
🔶 USAGE
Calculating the logarithmic regression of long-term swings can help show future tops/bottoms. The relationship between previous swing points is calculated and projected further. The calculated levels are directly associated with swing points, which means every swing point will change the calculation. Importantly, all levels will be updated through all bars when a new swing is detected.
The "Log Regression Oscillator" transforms the calculated levels, where the top level is regarded as 100 and the bottom level as 0. The price values are displayed in between and calculated as a ratio between the top and bottom, resulting in a clear view of where the price is situated.
The main picture contains the Logarithmic Regression Alternative on the chart to compare with this published script.
Included are the levels 30 and 70. In the example of Bitcoin, previous cycles showed a similar pattern: the bullish parabolic was halfway when the oscillator passed the 30-level, and the top was very near when passing the 70-level.
🔹 Proactive
A "Proactive" option is included, which ensures immediate calculations of tentative unconfirmed swings.
Instead of waiting 300 bars for confirmation, the "Proactive" mode will display a gray-white dot (not confirmed swing) and add the unconfirmed Swing value to the calculation.
The above example shows that the "Calculated Values" of the potential future top and bottom are adjusted, including the provisional swing.
When the swing is confirmed, the calculations are again adjusted, showing a red dot (confirmed top swing) or a green dot (confirmed bottom swing).
🔹 Dashboard
When less than two swings are available (top/bottom), this will be shown in the dashboard.
The user can lower the "Threshold" value or switch to a lower timeframe.
🔹 Notes
Logarithmic regression is typically used to model situations where growth or decay accelerates rapidly at first and then slows over time, meaning some symbols/tickers will fit better than others.
Since the logarithmic regression depends on swing values, each new value will change the calculation. A well-fitted model could not fit anymore in the future.
Users have to check the validity of swings; for example, if the direction of swings is downwards, then the dataset is not fitted for logarithmic regression.
In the example above, the "Threshold" is lowered. However, the calculated levels are unreliable due to the swings, which do not fit the model well.
Here, the combination of downward bottom swings and price accelerates slower at first and faster recently, resulting in a non-fit for the logarithmic regression model.
Note the price value (white line) is bound to a limit of 150 (upwards) and -150 (down)
In short, logarithmic regression is best used when there are enough tops/bottoms, and all tops are around 100, and all bottoms around 0.
Also, note that this indicator has been developed for a daily (or higher) timeframe chart.
🔶 DETAILS
In mathematics, the dot product or scalar product is an algebraic operation that takes two equal-length sequences of numbers (arrays) and returns a single number, the sum of the products of the corresponding entries of the two sequences of numbers.
The usual way is to loop through both arrays and sum the products.
In this case, the two arrays are transformed into a matrix, wherein in one matrix, a single column is filled with the first array values, and in the second matrix, a single row is filled with the second array values.
After this, the function matrix.mult() returns a new matrix resulting from the product between the matrices m1 and m2.
Then, the matrix.eigenvalues() function transforms this matrix into an array, where the array.sum() function finally returns the sum of the array's elements, which is the dot product.
dot(x, y)=>
if x.size() > 1 and y.size() > 1
m1 = matrix.new()
m2 = matrix.new()
m1.add_col(m1.columns(), y)
m2.add_row(m2.rows (), x)
m1.mult (m2)
.eigenvalues()
.sum()
🔶 SETTINGS
Threshold: Period used for the swing detection, with higher values returning longer-term Swing Levels.
Proactive: Tentative Swings are included with this setting enabled.
Style: Color Settings
Dashboard: Toggle, "Location" and "Text Size"
Support and Resistance LinesDraw the last 5 support and resistance lines. It works on the current timeframe. You can adjust the sensibility by changing the diff variable.
Sweep + Cement Candle Coloring with EMA hopdcCertainly! Here's an introduction for the indicator:
---
## Introduction to the Sweep + Cement Candle Coloring with EMA Indicator
The **Sweep + Cement Candle Coloring with EMA Indicator** is a powerful tool designed to enhance your technical analysis and trading strategies. This indicator combines the unique characteristics of Sweep and Cement candle patterns with the dynamic capabilities of Exponential Moving Averages (EMAs), providing traders with insightful signals for potential market movements.
### Key Features:
1. **Candle Coloring**:
- **Sweep + Cement Bullish Candles**: Highlighted in teal when the low of the current candle is lower than the previous candle, and the close is above the previous high. This indicates potential bullish momentum.
- **Sweep + Cement Bearish Candles**: Marked in red when the high of the current candle is higher than the previous candle, and the close is below the previous low, signaling possible bearish pressure.
2. **Exponential Moving Averages (EMAs)**:
- **EMA 0 (Default Length: 9)**: Provides short-term trend direction.
- **EMA 1 (Default Length: 21)** and **EMA 2 (Default Length: 50)**: Offer insights into medium and long-term trends.
- Customizable settings allow traders to adjust EMA lengths and colors based on their preferences.
3. **Trading Signals**:
- **Buy Signal**: Triggered when a bullish Sweep + Cement candle forms, EMA 1 is above EMA 2, and the price closes above all EMAs.
- **Sell Signal**: Activated with a bearish Sweep + Cement candle, EMA 1 below EMA 2, and the price closes below all EMAs.
- Visual arrows on the chart indicate buy and sell opportunities.
4. **Alerts**:
- Configurable alerts notify traders when the price touches any of the EMAs, ensuring you never miss critical levels.
- Alerts for buy and sell signals keep you informed of potential entries and exits.
### How It Benefits Traders:
This indicator is ideal for traders looking to identify and capitalize on market reversals and trend continuations. By integrating candle patterns with EMA analysis, it provides a comprehensive view of market dynamics, making it easier to spot high-probability trading opportunities.
Whether you are a beginner or an experienced trader, the Sweep + Cement Candle Coloring with EMA Indicator can be a valuable addition to your trading toolkit, helping you make informed decisions with confidence.
---
Feel free to adjust the content to better fit your audience or specific use case!
Multi-Timeframe Highs and LowsThe "Multi-Timeframe Highs and Lows" indicator is a comprehensive tool designed to plot recent Highs and Lows across multiple timeframes, including 15-Minute, 30-Minute, 1-Hour, 4-Hour, 8-Hour, Daily, Weekly, and Monthly. This indicator provides traders with a clear view of critical support and resistance levels, enabling precise decision-making for entries, exits, and stop-loss placements. It features customizable lookbacks, dynamic line extensions, and advanced label placement logic to prevent overlap, ensuring a clean and clutter-free chart. With fully customizable colors and styles for each timeframe, traders can tailor the indicator to their preferences. Whether you’re a scalper, swing trader, or position trader, this tool adapts to your strategy, providing actionable insights for breakout, reversal, and trend-following setups. Optimized for performance, it handles multiple lines and labels efficiently, making it suitable for high-activity charts. The "Multi-Timeframe Highs and Lows" indicator is an indispensable tool for traders seeking to identify and utilize key price levels across all timeframes with precision and clarity.
Employee Portfolio Generator [By MUQWISHI]▋ INTRODUCTION :
The “Employee Portfolio Generator” simplifies the process of building a long-term investment portfolio tailored for employees seeking to build wealth through investments rather than traditional bank savings. The tool empowers employees to set up recurring deposits at customizable intervals, enabling to make additional purchases in a list of preferred holdings, with the ability to define the purchasing investment weight for each security. The tool serves as a comprehensive solution for tracking portfolio performance, conducting research, and analyzing specific aspects of portfolio investments. The output includes an index value, a table of holdings, and chart plots, providing a deeper understanding of the portfolio's historical movements.
_______________________
▋ OVERVIEW:
● Scenario (The chart above can be taken as an example) :
Let say, in 2010, a newly employed individual committed to saving $1,000 each month. Rather than relying on a traditional savings account, chose to invest the majority of monthly savings in stable well-established stocks. Allocating 30% of monthly saving to AMEX:SPY and another 30% to NASDAQ:QQQ , recognizing these as reliable options for steady growth. Additionally, there was an admired toward innovative business models of NASDAQ:AAPL , NASDAQ:MSFT , NASDAQ:AMZN , and NASDAQ:EBAY , leading to invest 10% in each of those companies. By the end of 2024, after 15 years, the total monthly deposits amounted to $179,000, which would have been the result of traditional saving alone. However, by sticking into long term invest, the value of the portfolio assets grew, reaching nearly $900,000.
_______________________
▋ OUTPUTS:
The table can be displayed in three formats:
1. Portfolio Index Title: displays the index name at the top, and at the bottom, it shows the index value, along with the chart timeframe, e.g., daily change in points and percentage.
2. Specifications: displays the essential information on portfolio performance, including the investment date range, total deposits, free cash, returns, and assets.
3. Holdings: a list of the holding securities inside a table that contains the ticker, last price, entry price, return percentage of the portfolio's total deposits, and latest weighted percentage of the portfolio. Additionally, a tooltip appears when the user passes the cursor over a ticker's cell, showing brief information about the company, such as the company's name, exchange market, country, sector, and industry.
4. Indication of New Deposit: An indication of a new deposit added to the portfolio for additional purchasing.
5. Chart: The portfolio's historical movements can be visualized in a plot, displayed as a bar chart, candlestick chart, or line chart, depending on the preferred format, as shown below.
_______________________
▋ INDICATOR SETTINGS:
Section(1): Table Settings
(1) Naming the index.
(2) Table location on the chart and cell size.
(3) Sorting Holdings Table. By securities’ {Return(%) Portfolio, Weight(%) Portfolio, or Ticker Alphabetical} order.
(4) Choose the type of index: {Assets, Return, or Return (%)}, and the plot type for the portfolio index: {Candle, Bar, or Line}.
(5) Positive/Negative colors.
(6) Table Colors (Title, Cell, and Text).
(7) To show/hide any of selected indicator’s components.
Section(2): Recurring Deposit Settings
(1) From DateTime of starting the investment.
(2) To DateTime of ending the investment
(3) The amount of recurring deposit into portfolio and currency.
(4) The frequency of recurring deposits into the portfolio {Weekly, 2-Weeks, Monthly, Quarterly, Yearly}
(5) The Depositing Model:
● Fixed: The amount for recurring deposits remains constant throughout the entire investment period.
● Increased %: The recurring deposit amount increases at the selected frequency and percentage throughout the entire investment period.
(5B) If the user selects “ Depositing Model: Increased % ”, specify the growth model (linear or exponential) and define the rate of increase.
Section(3): Portfolio Holdings
(1) Enable a ticker in the investment portfolio.
(2) The selected deposit frequency weight for a ticker. For example, if the monthly deposit is $1,000 and the selected weight for XYZ stock is 30%, $300 will be used to purchase shares of XYZ stock.
(3) Select up to 6 tickers that the investor is interested in for long-term investment.
Please let me know if you have any questions
Wyckoff Trading Strategy for XAU/USD by KAIZVIETNAMXAU/USD TF M15 TP SL 20-30 pip
- Volume: Calculates the average volume based on the SMA to compare with the current trading volume.
- ATR (Average True Range): Calculated to determine price volatility.
- Support and Resistance Levels: Identifies support and resistance levels over the last 10 trading sessions.
Specific Point Identification
- A series of functions are defined to detect critical phases in the market structure, such as:
- Finding Preliminary Support: Recognizing signals of accumulation near support levels.
- Finding Selling Climax: Detecting signals of profit-taking near resistance levels.
- Finding Last Point of Support: Identifying points that provide stability for the price.
- Finding Preliminary Supply: Recognizing supply signals near resistance levels.
- Finding Buying Climax: Identifying strong buy signals accompanied by high trading volume.
- Finding Sign of Weakness: Determining instances of price adjustments that could lead to declines.
Market State Identification
- Accumulation: When the closing price is situated between the support and resistance levels.
- Distribution: When the closing price approaches the highest level of the previous few sessions.
- Sideways: When there is no clear bias toward either an upward or downward trend.
Buy and Sell Signals
- Buy Signals: Determined through finding preliminary support, selling climax, and last point of support.
- Sell Signals: Determined through finding preliminary supply, buying climax, and signs of weakness.
ATT + Key Levels with SessionsKey Features:
ATT Turning Point Numbers:
This input allows the user to define specific numbers (e.g., "3,11,17,29,41,47,53,59") that mark turning points in price action, which are checked using the bar_index modulo 60. If the current bar index matches one of these turning points, it triggers potential buy or sell signals.
RSI (Relative Strength Index):
The RSI is calculated based on a user-defined period (rsi_period), typically 14, and used to indicate overbought or oversold conditions. The script defines overbought (70) and oversold (30) levels, which are used to filter buy or sell signals.
Session Times:
The script includes predefined session times for major trading markets:
New York: From 9:30 AM EST to 4:00 PM EST.
London: From 8:00 AM GMT to 4:30 PM GMT.
Asia: From 12:00 AM GMT to 9:00 AM GMT.
These session times are used to restrict the buy and sell signals to specific market sessions.
Key Levels:
The script calculates and plots key market levels for the current day and week:
Daily High and Low: The highest and lowest prices of the current day.
Weekly High and Low: The highest and lowest prices of the current week.
These levels are plotted with different colors for visual reference.
Signal Logic:
Buy Signal: Triggered when the current bar is a turning point (according to the ATT model), the RSI is below the oversold threshold, and the current time is within the active session times (New York, London, or Asia).
Sell Signal: Triggered when the current bar is a turning point, the RSI is above the overbought threshold, and the current time is within the active session times.
Signal Limitations:
A user-defined limit (max_signals_per_session) controls the maximum number of signals that can be plotted within each session. This prevents excessive signal generation.
Plotting and Background Highlights:
Buy and Sell Signals: The script plots shapes (labels) above or below the bars to indicate buy or sell signals when the conditions are met.
Background Highlight: The background color is highlighted in yellow when the current bar matches one of the defined ATT turning points.
In Summary:
The indicator combines multiple technical factors to generate trading signals:
Turning points in price action (based on custom ATT numbers),
RSI levels (overbought/oversold),
Market session times (New York, London, Asia),
Key price levels (daily and weekly highs and lows).
This combination helps traders identify potential buying and selling opportunities while considering broader market dynamics and limiting the number of signals during each session.
AuriumFlowAURIUM (GOLD-Weighted Average with Fractal Dynamics)
Aurium is a cutting-edge indicator that blends volume-weighted moving averages (VWMA), fractal geometry, and Fibonacci-inspired calculations to deliver a precise and holistic view of market trends. By dynamically adjusting to price and volume, Aurium uncovers key levels of confluence for trend reversals and continuations, making it a powerful tool for traders.
Key Features:
Dynamic Trendline (GOLD):
The central trendline is a weighted moving average based on price and volume, tuned using Fibonacci-based fast (34) and slow (144) exponential moving average lengths. This ensures the trendline adapts seamlessly to the flow of market dynamics.
Formula:
GOLD = VWMA(34) * Volume Factor + VWMA(144) * (1 - Volume Factor)
Fractal Highs and Lows:
Detects pivotal market points using a fractal lookback period (default 5, odd-numbered). Fractals identify local highs and lows over a defined window, capturing the structure of market cycles.
Trend Background Highlighting:
Bullish Zone: Price above the GOLD line with a green background.
Bearish Zone: Price below the GOLD line with a red background.
Buy and Sell Alerts:
Generates actionable signals when fractals align with GOLD. Bullish fractals confirm continuation or reversal in an uptrend, while bearish fractals validate a downtrend.
The Math Behind Aurium:
Volume-Weighted Adjustments:
By integrating volume into the calculation, Aurium dynamically emphasizes price levels with greater participation, giving traders insight into zones of institutional interest.
Formula:
VWMA = EMA(Close * Volume) / EMA(Volume)
Fractal Calculations:
Fractals are identified as local maxima (highs) or minima (lows) based on the surrounding bars, leveraging the natural symmetry in price behavior.
Fibonacci Relationships:
The 34 and 144 EMA lengths are Fibonacci numbers, offering a natural alignment with price cycles and market rhythms.
Ideal For:
Traders seeking a precise and intuitive indicator for aligning with trends and detecting reversals.
Strategies inspired by Bill Williams, with added volume and fractal-based insights.
Short-term scalpers and long-term trend-followers alike.
Unlock deeper market insights and trade with precision using Aurium!
[blackcat] L1 Swing Reversal Oscillator█ OVERVIEW
The script defines a custom indicator called the "L1 Swing Reversal Oscillator," which integrates moving averages and RSI to detect possible swing reversals in market trends. Its core purpose is to produce signals derived from the oscillator's indications of overbought or oversold states.
█ LOGICAL FRAMEWORK
The script comprises multiple key segments:
1 — Custom Functions: Encompasses calculate_weighted_moving_average and calculate_l1_swing_reversal_oscillator.
2 — Input Parameters: Permits customization of moving average lengths and weights alongside RSI settings.
3 — Calculations: Employs predefined functions to determine oscillator readings.
4 — Plot Statements: Depicts oscillator outputs graphically on the chart.
Data processing follows this sequence: initial computation of the typical price, subsequent derivation of the adjusted CC1 metric, additional smoothing operations, and finally, RSI evaluation prior to plotting the resultant oscillator figures.
█ CUSTOM FUNCTIONS
• calculate_weighted_moving_average(source, length, weight) : Generates a weighted moving average from the provided source material utilizing specified duration and coefficient inputs.
– Returns computed weighted moving average.
• calculate_l1_swing_reversal_oscillator(close_price, high_price, low_price, sma_length, sma_weight, rsi_length) : Assesses the L1 Swing Reversal Oscillator leveraging closing, highest, and lowest prices along with defined SMA span, weighting factor, and RSI period.
– Yields an array featuring central CC1, CB1, CB2, and RSI metrics.
█ KEY POINTS AND TECHNIQUES
• Weighted Moving Average: Incorporates bespoke functionality for computing weighted moving averages, distinct from built-in Pine Script methods.
• RSI Calculation: Employs customized logic for calculating Relative Strength Index, offering adaptable computational approaches.
• Plotting Techniques: Implements color coding contingent upon oscillator values to emphasize visual cues regarding overbought and oversold statuses.
• Optimization: Furnishes adjustable parameters including SMA timeframe, weightage, and RSI interval enabling personalized fine-tuning per user requirements.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
• Modifications: Potential enhancements involve integrating supplementary oscillators like MACD or Stochastic Oscillator alongside the existing L1 Swing Reversal Oscillator.
• Application Scenarios: Comparable methodologies can be adopted within various trading frameworks focusing on momentum shifts such as trend-following or mean reversion tactics.
• Related Concepts: Proficiency in crafting custom functions, manipulating moving averages, and interpreting RSI within Pine Script environment proves advantageous when altering or expanding on current script functionalities. Understanding utilization of nz and na functions for managing null data points adds significant depth.
Calculate Order Entry Units based on set Dollar ValuesFUNCTIONS
- Calculate UNITS quantity based on user's input dollar values.
- Show Units in table
USAGE
- Enter 6 usual order $ values
- Use units value in order entry
Tradingview doesn't have order entry in dollar value for most connections/exchanges so it's really tedious to calculate Units some other way every time.
This gives you the Units based on your most used order value sizes in a quick way.
Possible future updates
- Allow user settings for number of values to display
- Allow user option to set titles for each row
Note:
Tradingview really need to get off their butts and give us a real DOM panel and working dollar value order entry for all exchanges among other order entry panel updates.
I hope everyone is suggesting this to them.
Enhanced RSIEnhanced RSI with Phases, Divergences & Volume Control:
This advanced RSI indicator expands on the traditional Relative Strength Index by introducing dynamic exhaustion phase detection, automatic divergence identification, and volume-based control evaluation. It provides traders with actionable insights into trend momentum, potential reversals, and market dominance.
Key Features:
Dynamic Exhaustion Phases:
Identifies real phases of the RSI based on slope and momentum:
Acceleration: Momentum increasing rapidly (green phase).
Deceleration: Momentum weakening (red phase).
Plateau: Momentum flattening (yellow phase).
Neutral: No significant momentum shift detected.
Phases are displayed dynamically in a box on the chart.
Automatic Divergence Detection:
Bullish Divergence: Identified when price makes a lower low while RSI makes a higher low.
Bearish Divergence: Identified when price makes a higher high while RSI makes a lower high.
Divergences are marked directly on the RSI chart with labeled circles.
Volume-Based Control Evaluation:
Analyzes price action relative to volume to determine market dominance:
Bulls in Control: Closing price is higher than the opening price.
Bears in Control: Closing price is lower than the opening price.
Neutral: No significant dominance (closing equals opening).
Volume status is displayed alongside the RSI phase in the chart’s top-left box.
Custom RSI Plot:
Includes overbought (70), oversold (30), and neutral (50) levels for easier interpretation of market conditions.
RSI plotted in blue for clarity.
How to Use:
Add to Chart:
Apply this indicator to any chart in TradingView.
Interpret the RSI Phase Box:
Use the RSI phase (Acceleration, Deceleration, Plateau, Neutral) to identify trend momentum.
Combine the phase with the volume status (Bulls or Bears in Control) to confirm market sentiment.
Identify Divergences:
Look for Bullish Divergence (potential upward reversal) or Bearish Divergence (potential downward reversal) marked directly on the RSI chart.
Adjust Settings:
Customize the RSI period, phase sensitivity, and divergence lookback period to fit your trading style.
Disclaimer:
This indicator is a tool to assist with technical analysis. It is not a financial advice or a guarantee of market performance. Always combine this indicator with other methods or strategies for better results.
Multi Timeframe Candle/Retracement (MTCR)This script provides a visual representation of candlestick and pivot point information from higher timeframes within a lower timeframe chart. It is ideal for traders looking to analyze price movements and identify potential support and resistance zones in the context of a broader timeframe.
Key Features :
Multi-Timeframe Candlestick Visualization:
Displays candlesticks of the selected higher timeframe.
Highlights bullish and bearish candles with distinct colors to identify trends.
Pivot Point Analysis:
Calculates and visualizes pivot points based on the standard or Fibonacci model.
Supports customizable step sizes (rounding pivot values).
Highlights resistance levels (R1, R2, R3), support zones (S1, S2, S3), and a central base line.
Medians and High/Low Zones:
Visualizes median lines between pivot levels.
Optionally displays high and low zones.
Dynamic Updates:
Automatically updates lines and boxes with new candles or pivot calculations.
Visually marks when the current price touches key levels.
Settings :
Timeframe Selection:
Choose a higher timeframe for candlestick and pivot point visualization.
Customizable Colors:
Adjust colors for bullish and bearish candles, as well as for pivot point zones.
Flexible Display Options:
Display only the desired elements, such as pivot lines, median lines, high/low zones, or the base line.
Use Cases :
Identify key support and resistance zones using pivot points.
Analyze price movements on higher timeframes while trading on lower ones.
Utilize median lines to find potential reversal zones or areas for risk/reward analysis.
Notes :
This script is designed for advanced users with a solid understanding of multi-timeframe analysis and pivot points.
It uses multiple drawing objects (lines, boxes), so ensure your chart does not hit its drawing object limit.
Good luck with your trading! 🚀
Liquidity IndicatorThe Liquidity Indicator helps identify key price levels where liquidity may be concentrated by highlighting local highs and local lows on the chart. These levels are calculated using a lookback period to determine the highest and lowest points in the recent price action.
Local Highs: Displayed as red lines, these indicate recent peaks where price has experienced rejection or a possible reversal point.
Local Lows: Displayed as green lines, these represent recent troughs where price may find support or experience a bounce.
This indicator is useful for spotting potential areas of interest for price reversal or continuation, as high liquidity zones may lead to more significant price movements.
Key Features:
Adjustable lookback period to define the scope for identifying local highs and lows.
Continuous plotting without any time restrictions, providing real-time insights into liquidity conditions.
Alerts available for when a local high or local low is detected, enabling timely market analysis.
Use Case:
This indicator can be used in conjunction with other technical analysis tools or strategies to help identify significant price levels where liquidity could impact price action. It is suitable for both intraday and swing traders looking for key price zones where potential reversals or continuations might occur.
Engulfing Candle IndicatorThis indicator helps identify Bullish and Bearish Engulfing candle patterns on your chart.
Bullish Engulfing: Occurs when a green candle completely engulfs the prior red candle, signaling potential upward momentum.
Bearish Engulfing: Occurs when a red candle completely engulfs the prior green candle, signaling potential downward momentum.
The script highlights these patterns with green triangles below the bars for Bullish Engulfing and red triangles above the bars for Bearish Engulfing.
This tool is helpful for traders who use candlestick patterns as part of their technical analysis strategy.
Numerical Volume with Bullish/Bearish Color CodingDescription: This indicator visually represents trading volume with color-coded lines to distinguish between bullish and bearish market conditions. The volume line is colored green for bullish periods (when the closing price is higher than the opening price), red for bearish periods (when the closing price is lower than the opening price), and gray for neutral periods (when the open and close prices are equal). The volume can be displayed with labels at specified intervals, offering a quick reference to the exact volume for each period. This tool helps to analyze volume trends in relation to price action, providing an easy-to-read overview of market sentiment.