Matrix Series and Vix Fix with VWAP CCI and QQE SignalsMatrix Series and Vix Fix with VWAP CCI and QQE Signals
Short Title: Advanced Matrix
Purpose
This Pine Script combines multiple technical analysis tools to create a comprehensive trading indicator. It incorporates elements like support/resistance zones, overbought/oversold conditions, Williams Vix Fix, QQE (Quantitative Qualitative Estimation) signals, VWAP CCI signals, and a 200-period SMA for trend filtering. The goal is to provide actionable buy and sell signals with enhanced visualization.
Key Features and Components
1. Matrix Series
Smoothing Input: Allows customization of EMA smoothing for the indicator (default: 5).
Support/Resistance Zones: Based on CCI (Commodity Channel Index) values.
Dynamic zones calculated with customizable parameters (SupResPeriod, SupResPercentage, PricePeriod).
Candlestick Visualization: Custom candlestick plots with colors indicating trends.
Dynamic levels for overbought/oversold conditions.
2. Overbought/Oversold Signals
Overbought and oversold levels are adjustable (ob and os).
Plots circles on the chart to highlight extreme conditions.
3. Williams Vix Fix
Identifies potential reversal points by analyzing volatility.
Uses Bollinger Bands and percentile thresholds to detect high-probability entries.
Includes two alert levels (alert1 and alert2) with customizable criteria for signal filtering.
4. QQE Signals
Based on the smoothed RSI and QQE methodology.
Detects trend changes using adaptive ATR bands (FastAtrRsiTL).
Plots long and short signals when specific conditions are met.
5. VWAP CCI Signals
Combines VWAP and CCI for additional trade signals.
Detects crossovers and crossunders of CCI levels (-200 and 200) to generate long and short signals.
6. 200 SMA
A 200-period simple moving average is plotted to act as a trend filter.
The script rules recommend buying only when the price is above the SMA200.
Customizable Inputs
General:
Smoothing, support/resistance periods, overbought/oversold levels.
Williams Vix Fix:
Lookback periods, Bollinger Band settings, percentile thresholds.
QQE:
RSI length, smoothing factor, QQE factor, and threshold values.
VWAP CCI:
Length for calculating deviations.
Visual Elements
Dynamic candlestick colors to indicate trend direction.
Overbought/oversold circles for extreme price levels.
Resistance and support lines.
Labels and shapes for buy/sell signals from Vix Fix, QQE, and VWAP CCI.
Alerts
Alerts are configured for the Matrix Series (e.g., "BUY MATRIX") and other components, ensuring traders are notified when significant conditions are met.
Intended Use
This indicator is designed for traders seeking a multi-faceted tool to analyze market trends, identify potential reversal points, and generate actionable trading signals. It combines traditional indicators with advanced techniques for comprehensive market analysis.
Educational
Lukhi EMA Crossover_TWL strategy### Description of the Script
This Pine Script implements the **Lukhi EMA Crossover_TWL Strategy** for use on TradingView. It is designed to generate buy and sell signals based on an Exponential Moving Average (EMA) crossover combined with Relative Strength Index (RSI) confirmation. The strategy also incorporates capital management features such as stop-loss and take-profit levels, along with detailed entry labels and failure indications. Here's a detailed breakdown:
---
### **Features**
1. **Customizable Parameters**:
- **Capital**: Define the total trading capital (`₹15,000` by default).
- **Risk per Trade**: Set the maximum amount you are willing to risk per trade (`₹1,000` by default).
- **Target Profit per Trade**: Define the desired profit per trade (`₹5,000` by default).
- **Lot Size**: Specify the number of contracts/lots for the trade (`75` by default for Nifty).
- **Stop-Loss Distance**: Use a fixed point-based stop-loss (`20` points by default).
2. **Indicators**:
- **Exponential Moving Averages (EMAs)**:
- Short EMA (`9-period`) and Long EMA (`21-period`).
- Used to identify trend direction and crossover signals.
- **Relative Strength Index (RSI)**:
- Configurable `14-period` RSI.
- RSI levels help confirm overbought/oversold conditions.
3. **Entry Signals**:
- **Buy Signal**: Triggered when the short EMA crosses above the long EMA and RSI is above 50.
- **Sell Signal**: Triggered when the short EMA crosses below the long EMA and RSI is below 50.
4. **Exit Logic**:
- Stop-loss and take-profit levels are dynamically calculated based on the risk per trade and position size.
- The script automatically exits the trade when either the stop-loss or take-profit levels are reached.
5. **Visual Elements on Chart**:
- **EMA Lines**:
- Plots the short EMA (blue) and long EMA (orange) on the chart for easy visualization.
- **Buy and Sell Labels**:
- Buy and sell signals are marked on the chart with labels showing:
- Entry price
- Target price
- Stop-loss price
- **Failure Indicators**:
- Displays a red cross on the chart if a stop-loss is hit (indicating a failed trade).
---
### **How It Works**
1. **Setup**:
- The script calculates the short and long EMAs using the closing prices of the selected asset.
- RSI is calculated for additional confirmation of trade signals.
2. **Signals**:
- A **Buy Signal** is generated when:
- Short EMA crosses above the long EMA.
- RSI is above 50 (indicating bullish momentum).
- A **Sell Signal** is generated when:
- Short EMA crosses below the long EMA.
- RSI is below 50 (indicating bearish momentum).
3. **Risk Management**:
- Position size is determined dynamically using the stop-loss distance and risk per trade.
- Stop-loss and take-profit levels are calculated for both long and short trades.
4. **Trade Execution**:
- The script automatically places orders based on buy/sell signals and exits them when stop-loss or take-profit levels are reached.
5. **Visual Feedback**:
- The chart displays the calculated entry, stop-loss, and target prices for each signal.
- Failed trades (where stop-loss is hit) are marked with a red cross.
---
### **Applications**
- Suitable for trading Nifty and other similar instruments with defined lot sizes.
- Ideal for traders who follow systematic EMA crossover strategies combined with RSI for confirmation.
- Helps in automating entry and exit signals while incorporating robust risk management.
---
### **Usage**
1. Copy the script into TradingView’s Pine Editor.
2. Adjust the input parameters (capital, risk, lot size, stop-loss, etc.) according to your trading requirements.
3. Apply the strategy to your desired chart and timeframe.
4. Monitor the buy/sell labels and review stop-loss or target levels before placing trades.
---
### **Notes**
- This script is configured for educational purposes and should be tested on a demo account before live trading.
- Proper risk management and backtesting are recommended to adapt the strategy to different market conditions.
ATH DrawdownThis Pine Script indicator, titled "ATH Drawdown," is designed to help traders and analysts visualize various drawdown levels from the all-time high (ATH) of a security over the past 365 days. This indicator plots several key drawdown levels on the chart and dynamically updates their color and labels to reflect market conditions.
Key Features:
Daily High Calculation:
Fetches the daily high prices for the security using the request.security function.
Highest High Calculation:
Calculates the highest high over the last 365 days using daily data. This represents the all-time high (ATH) for the specified period.
Drawdown Levels:
Computes various drawdown levels from the ATH:
2% Drawdown
5% Drawdown
10% Drawdown
15% Drawdown
25% Drawdown
45% Drawdown
50% Drawdown
Dynamic Line Coloring:
The color of the 2% drawdown line changes dynamically based on the current closing price:
Red if the close is below the 2% drawdown level.
Green if the close is above the 2% drawdown level.
Plotting Drawdown Levels:
Plots each drawdown level on the chart with specific colors and line widths for easy visual distinction:
2% Drawdown: Green or Red, depending on the closing price.
5% Drawdown: Orange.
10% Drawdown: Blue.
15% Drawdown: Maroon.
25% Drawdown: Purple.
45% Drawdown: Yellow.
50% Drawdown: Black.
Labels for Drawdown Levels:
Adds labels at the end of each drawdown line to indicate the percentage drawdown:
Labels display "2%", "5%", "10%", "15%", "25%", "45%", and "50%" respectively.
The labels are positioned dynamically at the latest bar index to ensure they are always visible.
Example Use Cases:
Risk Management: Quickly identify significant drawdown levels to assess the risk of current positions.
Support Levels: Use drawdown levels as potential support levels where price might find buying interest.
Performance Tracking: Monitor how far the price has retraced from its all-time high to understand market sentiment and performance.
This script offers traders and analysts an efficient way to visualize and track important drawdown levels from the ATH, helping in better risk management and decision-making. The dynamic color and label features enhance the readability and usability of the indicator.
Scalping Entry with TP/SL (1:2 R:R) [v6]
Entry Conditions:
A Buy entry is triggered when the price crosses above the EMA (trend confirmation).
A Sell entry is triggered when the price crosses below the EMA.
Stop Loss (SL):
Calculated using ATR (Average True Range) multiplied by a factor you can adjust (atrMultiplier).
Take Profit (TP):
Calculated using a fixed Risk-to-Reward ratio (riskRewardRatio), defaulted to 1:2.
Visualization:
Entry lines (solid green for Buy, red for Sell).
TP lines (blue dotted) and SL lines (red or green dotted).
Labels for entry points (BUY/SELL).
VWAP, Bollinger Bands, RSI, 5 & 20 EMA, MACDThis script combines the power of multiple key indicators to help you spot the best breakout opportunities and increase your chances of making profitable trades. By leveraging RSI, MACD, Bollinger Bands (BB), 5 & 20 EMAs, and VWAP, it provides a comprehensive approach to market analysis.
How to Use It:
Bullish Setup:
When the price closes above the VWAP.
RSI should be greater than 40, signaling strong market strength.
The 5 EMA acts as support, showing that the trend is likely to continue.
The MACD should show bullish momentum, confirming the buy signal.
Bollinger Bands (BB) should be contracted, indicating that a breakout is likely.
When all these conditions align, it's time to open a long position and aim for a high-reward trade—targeting at least a 1:6 reward-to-risk ratio.
Made by: Wasi Rao
Contact: Instagram - @wasi_rao_
Drawdown from 22-Day High (Daily Anchored)This Pine Script indicator, titled "Drawdown from 22-Day High (Daily Anchored)," is designed to plot various drawdown levels from the highest high over the past 22 days. This helps traders visualize the performance and potential risk of the security in terms of its recent high points.
Key Features:
Daily High Data:
Fetches daily high prices using the request.security function with a daily timeframe.
Highest High Calculation:
Calculates the highest high over the last 22 days using daily data. This represents the highest price the security has reached in this period.
Drawdown Levels:
Computes various drawdown levels from the highest high:
2% Drawdown
5% Drawdown
10% Drawdown
15% Drawdown
25% Drawdown
45% Drawdown
50% Drawdown
Dynamic Line Coloring:
The color of the 2% drawdown line changes dynamically based on the current closing price:
Green (#02ff0b) if the close is above the 2% drawdown level.
Red (#ff0000) if the close is below the 2% drawdown level.
Plotting Drawdown Levels:
Plots each drawdown level on the chart with specific colors and line widths for easy visual distinction:
2% Drawdown: Green or Red, depending on the closing price.
5% Drawdown: Orange.
10% Drawdown: Blue.
15% Drawdown: Maroon.
25% Drawdown: Purple.
45% Drawdown: Yellow.
50% Drawdown: Black.
Labels for Drawdown Levels:
Adds labels at the end of each drawdown line to indicate the percentage drawdown:
Labels display "2% WVF," "5% WVF," "10% WVF," "15% WVF," "25% WVF," "45% WVF," and "50% WVF" respectively.
The labels are positioned dynamically at the latest bar index to ensure they are always visible.
Explanation of Williams VIX Fix (WVF)
The Williams VIX Fix (WVF) is a volatility indicator designed to replicate the behavior of the VIX (Volatility Index) using price data instead of options prices. It helps traders identify market bottoms and volatility spikes.
Key Aspects of WVF:
Calculation:
The WVF measures the highest high over a specified period (typically 22 days) and compares it to the current closing price.
It is calculated as:
WVF
=
highest high over period
−
current close
highest high over period
×
100
This formula provides a percentage measure of how far the price has fallen from its recent high.
Interpretation:
High WVF Values: Indicate increased volatility and potential market bottoms, suggesting oversold conditions.
Low WVF Values: Suggest lower volatility and potentially overbought conditions.
Usage:
WVF can be used in conjunction with other indicators (e.g., moving averages, RSI) to confirm signals.
It is particularly useful for identifying periods of significant price declines and potential reversals.
In the script, the WVF concept is incorporated into the drawdown levels, providing a visual representation of how far the price has fallen from its 22-day high.
Example Use Cases:
Risk Management: Quickly identify significant drawdown levels to assess the risk of current positions.
Volatility Monitoring: Use the WVF-based drawdown levels to gauge market volatility.
Support Levels: Utilize drawdown levels as potential support levels where price might find buying interest.
This script offers traders and analysts an efficient way to visualize and track important drawdown levels from recent highs, helping in better risk management and decision-making. The dynamic color and label features enhance the readability and usability of the indicator.
Lukhi EMA Crossover_TWL StrategyParameter Breakdown:
Capital: ₹15,000.
Risk Per Trade: ₹1,000.
This determines the amount you're willing to lose per trade.
Take Profit Per Trade: ₹5,000.
Your target profit level.
Stop Loss Distance: Adjusted to match practical scenarios (default: 20 points).
How It Works:
Buy Signal:
A trade is entered when the shorter EMA crosses above the longer EMA, and RSI is above 50.
Stop-loss is set at 20 points below the entry price.
Take-profit is calculated to match the risk-reward ratio based on your input.
Sell Signal:
A trade is entered when the shorter EMA crosses below the longer EMA, and RSI is below 50.
Stop-loss is set at 20 points above the entry price.
Take-profit is calculated similarly.
Failure Detection:
Red cross signals on the chart indicate when a trade fails (stop-loss is hit).
RSI Overbought/Oversold Strategy - Haisreeit should be work 4hrs 100% this 80 over bought and 20 over sold straregy.
Custom RSI + OBV Scalping Indicator 8080A custom indicator combining RSI (Relative Strength Index) and OBV (On-Balance Volume) can be helpful for scalping by merging momentum and volume signals.
5dollarsADay EMAEMA Ripsters with ability to change colors. Used a code from a current indicator and modify so allow color schemes
[Helper] Trade Journal TableThis indicator serves as a starting point for creating a customized trade journal that meets individual requirements. It provides a basic structure for visualizing trade data in table form which can be adapt to specific needs. The trade data must be maintained directly within the script using the Pine Editor.
Basic Structure:
The example table consists of six columns: Date, Entry Price, Exit Price, Profit/Loss (color-coded), Strategy, and Notes. It is displayed centrally on the chart and dynamically adjusts to the number of recorded trades.
Example Data:
To demonstrate its functionality, the indicator includes predefined example trades, which should be replaced with actual trading data. Additional information, such as strategies and notes, can be added to improve trade documentation.
20 SMA Cloud//@version=5
indicator("20 SMA Cloud", overlay=true)
// Input length for moving averages
length = 20
// Calculate the 20 SMA and 20 EMA
sma20 = ta.sma(close, length)
ema20 = ta.ema(close, length)
// Plot the SMA and EMA lines
plot(sma20, color=color.blue, linewidth=1, title="20 SMA")
plot(ema20, color=color.blue, linewidth=1, title="20 EMA")
// Fill the area between SMA and EMA to create a cloud
bgcolor = (sma20 > ema20) ? color.new(color.blue, 90) : color.new(color.blue, 90)
fill(plot(sma20), plot(ema20), color=bgcolor, title="SMA Cloud")
Moving Average Crossover/testHello! Our team is launching an indicator for trading!
2 buttons - buy/sell!
The first 10 people get the indicator for $100! Then it will be more expensive! The term is 30 days!
Buy - signal to Long. Sell - signal to Short.
There are free analogs, but you will have to select and test different settings until you find the golden mean.
This is not a week or even two, it will take a decent amount of time.
I give you a ready-made configured tool. You can start using it immediately as soon as I give you access.
Attention - this version is a test version! It will be deleted after 30 days!
Market Participation Ratio-MPR(TechnoBlooms)Market Participation Ratio (MPR) Indicator - Description
The Market Participation Ratio (MPR) is a custom indicator designed to assess market activity by analyzing price and volume relationships over a specified period. This indicator is useful for identifying trends, participation levels, and key thresholds in market behavior.
Key Features:
1. MPR Calculation:
o The indicator calculates a ratio of the current price and volume relative to their respective moving averages over a user-defined period (Length).
o This ratio is scaled to 100 for better visualization and comparison.
2. Smoothing:
o To reduce noise and make the trend clearer, the MPR is smoothed using an Exponential Moving Average (Smoothing Length), making it easier to interpret.
3. Zero Line & Threshold Levels:
o A zero line at 0 is plotted for baseline comparison.
o Horizontal reference lines at 100 (threshold for strong participation) and 50 (optional secondary level) help in evaluating market trends.
Usage:
• Traders can use the MPR to identify when market participation is increasing or decreasing, which may signal potential trend reversals or continuations.
• Values above 100 often suggest robust market activity, favorable for long positions.
• Values below 100 may indicate waning interest, potentially signaling pullbacks or bearish trends.
Customizable Inputs:
• Length: Adjusts the moving average period for price and volume calculations.
• Smoothing Length: Determines the degree of smoothing applied to the MPR.
Applications:
• Trend Analysis: Detect shifts in bullish or bearish momentum based on participation levels.
• Market Strength: Identify periods of increased or reduced market involvement by traders and investors.
• Entry/Exit Signals: Use levels around 100 as potential cues for positioning in the market.
This indicator is versatile for both short-term and long-term trading strategies and is a valuable addition for technical analysis enthusiasts seeking deeper insights into market dynamics.
P T Supertrend CustomPT Supertrend Custom Indicator Description
The PT Supertrend Custom indicator is a dual Supertrend-based tool designed to help traders identify market trends and potential reversals with enhanced accuracy. This custom indicator plots two Supertrend lines with different ATR (Average True Range) lengths and multipliers, providing a broader perspective on price movements across varying market conditions.
Key Features:
1. Dual Supertrend Lines:
- The indicator calculates two separate Supertrend values using customizable ATR lengths (default: 7 and 21) and factors (default: 3.0 for both).
- This dual-layered approach helps identify both short-term and long-term trends for better decision-making.
2. Customizable Parameters:
- ATR Length (ATR Length & ATR Length2): Determines the lookback period for volatility calculation.
- Factor (Factor & Factor2): Defines the multiplier for the ATR, controlling the sensitivity of the Supertrend lines.
3. Visual Trend Representation:
- Green and red line plots represent uptrends and downtrends, respectively.
- The indicator overlays on the price chart, offering a clear visual representation of trend direction.
- Trend fill areas provide additional clarity, with green shading for uptrends and red shading for downtrends.
4. Dynamic Trend Shifts:
- The indicator adapts dynamically based on price action, switching from an uptrend to a downtrend and vice versa when conditions change.
- Two independent trend signals allow traders to compare short-term and long-term trend confirmations.
5. Overlay on Price Chart:
- The indicator is plotted directly on the price chart for easy visualization without cluttering the workspace.
How to Use:
- Trend Identification:
- A green Supertrend line below price indicates an uptrend.
- A red Supertrend line above price signals a downtrend.
- When both Supertrends align, it indicates a strong trend; divergence may signal potential reversals.
- Entry & Exit Signals:
- Consider long positions when both Supertrend lines turn green.
- Consider short positions when both Supertrend lines turn red.
- Use the shorter ATR period for quicker entries and exits, while the longer ATR period provides confirmation.
- Risk Management:
- The Supertrend lines can serve as dynamic support/resistance levels for placing stop-loss orders.
Best Used In:
- Trend-following strategies
- Swing trading and day trading
- Volatile markets where ATR-based signals are effective
This indicator provides a comprehensive view of market trends by combining short- and long-term trend filters, making it a valuable tool for traders seeking precision and clarity in their trading decisions.
Created by Prince Thomas
PT Least Squares Moving AveragePT LSMA Multi-Period Indicator
The PT Least Squares Moving Average (LSMA) Multi-Period Indicator is a powerful tool designed for investors who want to track market trends across multiple time horizons in a single, convenient indicator. This indicator calculates the LSMA for four different periods— 25 bars, 50 bars, 450 bars, and 500 bars providing a comprehensive view of short-term and long-term market movements.
Key Features:
- Multi-Timeframe Trend Analysis: Tracks both short-term (25 & 50 bars) and long-term (450 & 500 bars) market trends, helping investors make informed decisions.
- Smoothing Capability: The LSMA reduces noise by fitting a linear regression line to past price data, offering a clearer trend direction compared to traditional moving averages.
- One-Indicator Solution: Combines multiple LSMA periods into a single chart, reducing clutter and enhancing visual clarity.
- Versatile Applications: Suitable for trend identification, market timing, and spotting potential reversals across different timeframes.
- Customizable Styling: Allows users to customize colors and line styles for each period to suit their preferences.
How to Use:
1. Short-Term Trends (25 & 50 bars):Ideal for identifying recent price movements and short-term trade opportunities.
2. Long-Term Trends (450 & 500 bars): Helps investors gauge broader market sentiment and position themselves accordingly for longer holding periods.
3. Trend Confirmation: When shorter LSMA periods cross above longer ones, it may signal bullish momentum, whereas the opposite may indicate bearish sentiment.
4. Support and Resistance: The LSMA lines can act as dynamic support and resistance levels during trending markets.
Best For:
- Long-term investors looking to align their positions with dominant market trends.
- Swing traders seeking confirmation from multiple time horizons.
- Portfolio managers tracking price momentum across various investment durations.
This LSMA Multi-Period Indicator equips investors with a well-rounded perspective on price movements, offering a strategic edge in navigating market cycles with confidence.
Created by Prince Thomas
Multi-Timeframe RSI AlertsThe Multi-Timeframe RSI Alerts indicator is designed to monitor and alert you when the Relative Strength Index (RSI) crosses the 50 threshold across three different timeframes simultaneously. This helps traders identify potential trend shifts by observing RSI behavior across multiple market perspectives.
Key Features:
Multiple Timeframes: This indicator allows you to track the RSI across three customizable timeframes (e.g., 15m, 5m, 1m) in a single view, giving you a broader market outlook.
RSI Calculation: The RSI is calculated for each of the selected timeframes using the standard RSI formula (default length: 14). You can adjust the source (close by default) for RSI calculation.
Cross 50 Alert: Alerts are triggered when the RSI for all three timeframes crosses the key 50 level, signaling potential changes in market momentum or trend direction.
Visual Reference: The indicator visually plots the RSI for each timeframe, with a clear 50 level line to highlight crossovers and crossunders.
How to Use:
Trend Confirmation: When all three RSIs cross the 50 level in the same direction (either up or down), it may signal a strong confirmation of trend direction across multiple timeframes.
Versatile Timeframe Setup: Traders can configure the timeframes according to their strategy. For example, short-term traders can focus on faster timeframes like 1-minute, 5-minute, and 15-minute, while longer-term traders may prefer 1-hour, 4-hour, and daily timeframes.
Vertical & Open Lines - Yearly [MsF]Yearly Vertical & Open Lines Indicator
This indicator helps traders visualize yearly boundaries and track previous year's price levels. It draws:
- Vertical lines at the start of each year
- Horizontal lines showing previous year's open and close prices
- Optional labels with price information
Features:
- Customizable line colors and styles
- Toggle yearly vertical lines
- Show/hide previous year's price levels
- Optional price labels
- Next year line preview
Usage:
1. Add indicator to your chart
2. Adjust Base Time to match your market's yearly reset time
3. Customize colors and styles using input options
4. Toggle features as needed
200 SMA Cloud//@version=5
indicator("200 SMA Cloud", overlay=true)
// Input length for moving averages
length = 200
// Calculate the 20 SMA and 20 EMA
sma200 = ta.sma(close, length)
ema200 = ta.ema(close, length)
// Plot the SMA and EMA lines
plot(sma200, color=color.red, linewidth=1, title="200 SMA")
plot(ema200, color=color.red, linewidth=1, title="200 EMA")
// Fill the area between SMA and EMA to create a cloud
bgcolor = (sma200 > ema200) ? color.new(color.red, 90) : color.new(color.red, 90)
fill(plot(sma200), plot(ema200), color=bgcolor, title="SMA Cloud")
Repeating Vertical LinesThe "Repeating Vertical Lines" indicator visualizes recurring points in time on the chart by drawing background highlights based on user-defined conditions, including specific weekdays, times, or their combination. Users can customize the color and transparency of the lines for seamless chart integration.