BTC/FOREX/INDEX SCALP INDICATOR BY MANDALORIANThis indicator helps trader to make them a more consultative decision based on given parameters in this indicator.
指標和策略
9-20 EMA Crossover with TP and SL9-20 EMA Crossover: This script tracks the crossover of the 9-period EMA and the 20-period EMA.
When the 9 EMA crosses above the 20 EMA, a buy signal is triggered.
When the 9 EMA crosses below the 20 EMA, a sell signal is triggered.
Take Profit and Stop Loss Levels:
The take profit for a long position is set at 3% above the entry price (close * 1.03).
The stop loss for a long position is set at 1% below the entry price (close * 0.99).
The take profit for a short position is set at 3% below the entry price (close * 0.97).
The stop loss for a short position is set at 1% above the entry price (close * 1.01).
Leverage: The strategy uses 20x leverage for both long and short positions (leverage=20).
Alerts: Alerts are set up for the buy signal when the 9 EMA crosses above the 20 EMA and the sell signal when the 9 EMA crosses below the 20 EMA. These alerts can be used with a webhook to trigger trades on Binance Futures.
Strategy:
For long trades: The strategy enters a long position and sets a take profit at 3% above the entry price and a stop loss at 1% below the entry price.
For short trades: The strategy enters a short position and sets a take profit at 3% below the entry price and a stop loss at 1% above the entry price.
Scalping trading system based on 4 ema linesScalping Trading System Based on 4 EMA Lines
Overview:
This is a scalping trading strategy built on signals from 4 EMA moving averages: EMA(8), EMA(12), EMA(24) and EMA(72).
Conditions:
- Time frame: H1 (1 hour).
- Trading assets: Applicable to major currency pairs with high volatility
- Risk management: Use a maximum of 1-2% of capital for each transaction. The order holding time can be from a few hours to a few days, depending on the price fluctuation amplitude.
Trading rules:
Determine the main trend:
Uptrend: EMA(8), EMA(12) and EMA(24) are above EMA(72).
Downtrend: EMA(8), EMA(12) and EMA(24) are below EMA(72).
Trade in the direction of the main trend** (buy in an uptrend and sell in a downtrend).
Entry conditions:
- Only trade in a clearly trending market.
Uptrend:
- Wait for the price to correct to the EMA(24).
- Enter a buy order when the price closes above the EMA(24).
- Place a stop loss below the bottom of the EMA(24) candle that has just been swept.
Downtrend:
- Wait for the price to correct to the EMA(24).
- Enter a sell order when the price closes below the EMA(24).
- Place a stop loss above the top of the EMA(24) candle that has just been swept.
Take profit and order management:
- Take profit when the price moves 20 to 40 pips in the direction of the trade.
Use Trailing Stop to optimize profits instead of setting a fixed Take Profit.
Note:
- Do not trade within 30 minutes before and after the announcement of important economic news, as the price may fluctuate abnormally.
Additional filters:
To increase the success rate and reduce noise, this strategy uses additional conditions:
1. The price is calculated only when the candle closes (no repaint).
2. When sweeping through EMA(24), the price needs to close above EMA(24).
3. The closing price must be higher than 50% of the candle's length.
4. **The bottom of the candle sweeping through EMA(24) must be lower than the bottom of the previous candle (liquidity sweep).
---
Alert function:
When the EMA(24) sweep conditions are met, the system will trigger an alert if you have set it up.
- Entry point: The closing price of the candle sweeping through EMA(24).
- Stop Loss:
- Buy Order: Place at the bottom of the sweep candle.
- Sell Order: Place at the top of the sweep candle.
---
Note:
This strategy is designed to help traders identify profitable trading opportunities based on trends. However, no strategy is 100% guaranteed to be successful. Please test it thoroughly on a demo account before using it.
Market Sessions and OverlapsMarket Sessions and Overlaps Indicator
This script, titled " Market Sessions and Overlaps ," provides a detailed visualization of major global trading sessions—Asia, Europe, and New York—along with the periods where these sessions overlap. It is designed to assist traders in understanding session timings and overlaps in their local time zone. Key features include:
Session Visualization: Highlights the Asia, Europe, and New York trading sessions directly on the chart with customizable colors and transparency for better clarity.
Overlap Identification: Marks the overlapping periods between Asia-Europe and Europe-New York sessions, where market activity often intensifies, with distinct candle colors.
Time Zone Support: The script allows users to select their local time zone, ensuring all session times are displayed accurately, no matter the user’s location.
Alerts for Key Events: Includes optional alerts to notify users of session openings, closings, and the start or end of overlap periods.
This indicator serves as a visual tool for tracking session-specific activity and liquidity. It is configurable to match individual preferences, enabling better alignment with trading strategies.
Disclaimer: This script is for informational purposes only and does not provide financial advice. Please consult a licensed financial advisor for personalized trading guidance.
Price Action + Support/Resistance with LabelsEntry Conditions:
Long Entry (BUY): Based on the bullish engulfing pattern and price being above the resistance level.
Short Entry (SELL): For demonstration, the short entry condition is set as price being below the support level and a bullish candle in the previous bar. You can modify this logic for your own use case.
Stop Loss and Take Profit:
Stoploss is plotted at the calculated stop loss level.
Target is plotted at the calculated take profit level.
Labels:
For long trades, labels are added with "BUY", "STOPLOSS", and "TARGET".
For short trades (if enabled), labels are added with "SELL", "STOPLOSS", and "TARGET".
Labels are placed using label.new at specific locations on the chart (above or below bars).
Alert Conditions:
Alerts are created for both long and short entry signals so you can get notified when the entry conditions are met.
How it works:
BUY label will appear below the bar when a long entry condition is met.
SELL label will appear above the bar when a short entry condition is met.
STOPLOSS and TARGET labels will appear at their respective levels when an entry signal is triggered.
The labels will appear on the chart to give you a clear visual cue of the entry, stop loss, and take profit levels.
How to Use:
Copy the script into your Pine Editor on TradingView and apply it to your chart.
Observe the labels that show up on the chart:
"BUY" will appear below the bar when long conditions are met.
"SELL" will appear above the bar when short conditions are met (if using short logic).
"STOPLOSS" will be plotted at the stop loss level.
"TARGET" will be plotted at the take profit level.
Optional Customization:
You can modify the short entry condition based on your preferred method.
You can adjust the length for the support/resistance calculation, the stopLossRR, and other parameters to fine-tune the strategy for Nifty 50 or any other asset.
Let me know if you have any further questions or need additional modifications!
Auto Fibonacci Extension and Retracement with Visual AlertsThis indicator automatically calculates and plots Fibonacci retracement and extension levels based on recent swing highs and lows, making it a powerful tool for traders who use Fibonacci analysis in their strategies.
Key Features:
• Dynamic Fibonacci Levels: Automatically detects swing highs and lows over a user-defined lookback period to calculate key Fibonacci retracement (e.g., 0.236, 0.382, 0.618, etc.) and extension (e.g., 1.618, 2.618, etc.) levels.
• Visual Alerts: Displays intuitive visual alerts when the price crosses important Fibonacci levels.
• Blue dashed lines for retracement levels.
• Green dashed lines for extension levels.
• Labels with up or down arrows indicating price interactions with these levels.
• Swing High/Low Visualization: Marks recent swing highs and lows with crosses for better clarity.
• Customizable: Adjust the lookback period and Fibonacci levels to suit your trading style.
Who is it for?
This indicator is perfect for:
• Swing Traders: To identify potential reversal or continuation zones.
• Day Traders: For short-term setups based on Fibonacci levels.
• Fibonacci Enthusiasts: To automate the time-consuming process of manually plotting levels.
Usage Ideas:
1. Use retracement levels (e.g., 0.618) to identify areas of potential support or resistance.
2. Use extension levels (e.g., 1.618) to target potential breakout or continuation zones.
3. Combine this indicator with candlestick patterns, volume analysis, or other tools for confirmation.
Limitations:
• This is a standalone indicator and does not provide buy/sell signals. It’s recommended to combine it with other technical analysis tools for best results.
• The lookback period and swing detection rely on past data, so adjustments may be needed based on the asset or timeframe.
Whether you’re looking to streamline your Fibonacci analysis or explore new opportunities in your trading, this indicator is designed to save time, increase accuracy, and enhance your overall trading experience.
Strong Buy/Sell with Demand/Supply and Volume HighlightStrong Buy/Sell with Demand/Supply and Volume Highlight
This indicator combines key technical elements to provide traders with robust buy and sell signals while highlighting significant market zones and volume trends. It's designed for traders seeking clarity and precision in their decision-making process.
Features:
Dynamic Buy/Sell Signals:
Utilizes the crossover of a fast EMA (default: 9) and a slow EMA (default: 21) to generate reliable buy and sell signals.
Buy signals are marked with green upward labels, while sell signals are marked with red downward labels.
Demand and Supply Zone Detection:
Automatically plots demand (support) and supply (resistance) zones based on recent price movements when buy or sell signals are triggered.
Zones are visually marked with lines for quick identification of key price levels.
Volume Analysis:
Highlights candles with high volume relative to the average 20-period volume (adjustable via the volume multiplier input).
High-volume bullish candles are marked green, and bearish candles are marked red, allowing traders to spot significant market activity instantly.
Inputs:
EMA Periods: Customizable fast and slow EMA settings to adjust signal sensitivity.
Demand/Supply Zones: Option to toggle the visibility of demand and supply levels.
Volume Multiplier: Control the threshold for detecting high-volume candles.
How to Use:
Buy Opportunities: Look for buy signals when the fast EMA crosses above the slow EMA, supported by demand zones and high volume.
Sell Opportunities: Observe sell signals when the fast EMA crosses below the slow EMA, reinforced by supply zones and bearish high-volume candles.
Combine this indicator with your trading strategy to enhance decision-making and improve trade timing.
This indicator is suitable for multiple timeframes and markets, making it a versatile tool for scalpers, day traders, and swing traders.
[GrandAlgo] Candlestick ThemesTransform your TradingView charts with Candlestick Themes, an indicator that customizes candlestick colors using a variety of stunning themes. Whether you’re seeking improved clarity, enhanced personalization, or a fresh visual appeal, this indicator has something for everyone.
Key Features
This indicator offers a wide selection of pre-defined themes:
TradingView Default: The classic, familiar look of TradingView charts.
GrandAlgo: Our exclusive brand theme, blending vibrancy and professionalism for an exceptional charting experience.
MetaTrader-Inspired Themes: Green on Black, Yellow on Black, and Black on White, designed to replicate the iconic MetaTrader aesthetics.
Green Black: A calming and balanced theme for focused trading.
Darkblue Red: A bold and impactful combination with rich tones.
Darkblue Black: A subtle, sleek palette perfect for minimalists.
Lightblue Red: A mix of warm and cool tones for balanced visuals.
Lightblue Red (Gradient): Adds smooth transitions for a modern feel.
Lightblue Black: Crisp and clean for improved readability.
Crimson to Calm: A gradient theme transitioning from bold to tranquil tones.
Robinhood: Inspired by the clean and vibrant look of the popular trading platform.
Warm & Cool Harmony: A seamless blend of warm and cool tones.
Valentine: Passionate reds and pinks for a romantic visual.
Christmas: Festive greens and reds to match the holiday spirit.
Grapes: A playful mix of purples and greens.
Desert: Warm, sandy hues inspired by desert landscapes.
Real Madrid: A sporty theme with iconic colors for fans.
This indicator ensures seamless integration with TradingView charts, offering personalized trading experience. Whether you're a seasoned trader or just starting, these themes will make your charts both functional and visually appealing.
New intraday high with weak barStrategy Logic:
The strategy checks if the current bar’s high is the highest high of the last 10 bar and if internal bar strength is less than 0.15.
Position is closed when close is greater than the previous bar’s high.
When a position is open, the script applies a light green background on the chart to signal that you are in a trade.
Moon Phases by Shailesh DesaiTrading Strategy Based on Lunar Phases
This custom trading indicator leverages the power of lunar cycles to provide unique market insights based on the four primary moon phases: New Moon, First Quarter, Full Moon, and Third Quarter. By aligning your trades with the natural rhythm of the moon, this strategy offers a different perspective to trading and can help enhance decision-making based on the cyclical nature of the market.
Key Features:
1. Moon Phase Identification:
o The indicator automatically identifies the current moon phase based on the user's selected timeframe and marks it on the chart.
o Each phase is visualized with a specific symbol and color to help traders easily recognize the current moon phase:
New Moon/Waxing Moon: Represented by a circle (colored as per user input).
First Quarter: Represented by a cross (colored as per user input).
Full Moon/Waning Moon: Represented by a circle (colored as per user input).
Third Quarter: Represented by a cross (colored as per user input).
2. Automatic Moon Phase Transition Detection:
o The indicator tracks and highlights when a phase change occurs. This feature ensures you are always aware of when the market moves from one phase to another.
o Moon phase changes are only visualized on the first bar of each new phase to avoid cluttering the chart.
3. Background Color Indicators:
o The background color dynamically changes according to the current moon phase, helping to reinforce the phase context for the trader. This feature makes it easy to see at a glance which phase the market is in.
4. Customizable Appearance:
o Customize the color of each moon phase to suit your preferences. Adjust the colors for the New Moon, First Quarter, Full Moon, and Third Quarter to align with your visual strategy.
5. Avoids Unsupported Timeframes:
o This indicator does not support monthly timeframes, ensuring that it operates smoothly only on timeframes that are compatible with the lunar cycle.
How to Use:
• The moon phases are thought to have an influence on human behavior and the market's psychology, making this indicator useful for traders who wish to integrate lunar cycles into their strategy.
• Traders can use the phase changes as an indicator of potential market momentum or reversal points. For example:
o New Moon may indicate the beginning of a new cycle, signaling a potential upward or downward move.
o Full Moon might suggest a peak or significant shift in market direction.
o First Quarter and Third Quarter phases may represent moments of consolidation or decision points.
Ideal for:
• Traders interested in cycle-based strategies or looking to experiment with new approaches.
• Those who believe in the influence of natural forces, including moon phases, on market movements.
• Technical analysts who want to add another layer of insights to their chart analysis.
Important Notes:
• The indicator uses precise astronomical calculations to identify the correct phase, ensuring accuracy.
• It’s important to understand that moon phase-based trading is not a standalone strategy but should ideally be combined with other technical analysis tools for maximum effectiveness.
Daily Buy/Sell Volumeindicator that The Daily Buy/Sell Volume Indicator is a custom-built tool that helps traders track and visualize the buying and selling volumes throughout a trading day. This indicator separates the total volume into two categories:
1. Buy Volume: Calculated when the closing price is higher than the opening price for a given candle. This represents the volume of bullish (buy) activity for the day.
2. Sell Volume: Calculated when the closing price is lower than the opening price for a given candle. This represents the volume of bearish (sell) activity for the day.
Key Features:
• Buy/Sell Volume Calculation: The indicator tracks the buying and selling volumes based on the relationship between the open and close prices of each candle.
• Daily Reset: The indicator resets at the start of each trading day, providing fresh calculations for the daily buy and sell volumes.
• Visual Representation: The buy volume is shown with a green line, while the sell volume is displayed with a red line, making it easy to identify bullish and bearish activity over the course of the day.
ATR BeamsATR Beams is a simple indicator that utilizes the ATR to determine levels above and below price action that can serve as stop loss or trailing visual aids across all instruments.
This indicator is preset to an ATR value of 14 and a multiplier of 1 for the ATR.
Both of these parameters can be modified to your specific trading preference, the color and indicator line style can both also be modified to your visual preference.
I hope this provides you with a good visual aid
TOL LANGIT ATR v7 - AI EnhancedThe TOL LANGIT ATR v7 is an adaptive technical indicator designed to identify market trends, support and resistance levels, and breakout points. It uses the Average True Range (ATR) and volatility to dynamically adjust trend bands, with visual markers for buy and sell signals. The indicator also highlights key support (blue) and resistance (orange) levels, and alerts users when these levels are broken. It’s perfect for trend following, breakout trading, and reversal strategies, and includes easy-to-set alerts for key market changes.
IU Range Trading StrategyIU Range Trading Strategy
The IU Range Trading Strategy is designed to identify range-bound markets and take trades based on defined price ranges. This strategy uses a combination of price ranges and ATR (Average True Range) to filter entry conditions and incorporates a trailing stop-loss mechanism for better trade management.
User Inputs:
- Range Length: Defines the number of bars to calculate the highest and lowest price range (default: 10).
- ATR Length: Sets the length of the ATR calculation (default: 14).
- ATR Stop-Loss Factor: Determines the multiplier for the ATR-based stop-loss (default: 2.00).
Entry Conditions:
1. A range is identified when the difference between the highest and lowest prices over the selected range is less than or equal to 1.75 times the ATR.
2. Once a valid range is formed:
- A long trade is triggered at the range high.
- A short trade is triggered at the range low.
Exit Conditions:
1. Trailing Stop-Loss:
- The stop-loss adjusts dynamically using ATR targets.
- The strategy locks in profits as the trade moves in your favor.
2. The stop-loss and take-profit levels are visually plotted for transparency and easier decision-making.
Features:
- Automated box creation to visualize the trading range.
- Supports one position at a time, canceling opposite-side entries.
- ATR-based trailing stop-loss for effective risk management.
- Clear visual representation of stop-loss and take-profit levels with colored bands.
This strategy works best in markets with defined ranges and can help traders identify breakout opportunities when the price exits the range.
Volatility & Big Market MovesThis indicator shows the volatility per candle, and highlights candles where volatility exceeds a defined threshold.
Data shown:
Furthest %-distance from the previous candle's closing price to the top (positive histogram).
Furthest %-distance from the previous candle's closing price to the bottom (negative histogram).
EMA Crossover PredictionThis indicator predicts potential EMA crossovers by analyzing the rate of change between short and long EMAs. It calculates future EMA values based on current trends and displays predicted crossover points with their estimated timeframe and price level. The script uses customizable periods for both EMAs and forecast length, making it adaptable for different trading timeframes. Green labels indicate predicted bullish crossovers (short EMA crossing above long EMA), while red labels show bearish crossover predictions (short EMA crossing below long EMA).
2022 Model ICT Entry Strategy [TradingFinder] One Setup For Life🔵 Introduction
The ICT 2022 model, introduced by Michael Huddleston, is an advanced trading strategy rooted in liquidity and price imbalance, where time and price serve as the core elements. This ICT 2022 trading strategy is an algorithmic approach designed to analyze liquidity and imbalances in the market. It incorporates concepts such as Fair Value Gap (FVG), Liquidity Sweep, and Market Structure Shift (MSS) to help traders identify liquidity movements and structural changes in the market, enabling them to determine optimal entry and exit points for their trades.
This Full ICT Day Trading Model empowers traders to pinpoint the Previous Day High/Low as well as the highs and lows of critical sessions like the London and New York sessions. These levels act as Liquidity Zones, which are frequently swept prior to a market structure shift (MSS) or a retracement to areas such as Optimal Trade Entry (OTE).
Bullish :
Bearish :
🔵 How to Use
The ICT 2022 model is a sophisticated trading strategy that focuses on identifying key liquidity levels and price movements. It operates based on two main principles. In the first phase, the price approaches liquidity zones and sweeps critical levels such as the previous day’s high or low and key session levels.
This movement is known as a Liquidity Sweep. In the second phase, following the sweep, the price retraces to areas like the FVG (Fair Value Gap), creating ideal entry points for trades. Below is a detailed explanation of how to apply this strategy in bullish and bearish setups.
🟣 Bullish ICT 2022 Model Setup
To use the ICT 2022 model in a bullish setup, start by identifying the Previous Day High/Low or key session levels, such as those of the London or New York sessions. In a bullish setup, the price usually moves downward first, sweeping the Liquidity Low. This move, known as a Liquidity Sweep, reflects the collection of buy orders by major market participants.
After the liquidity sweep, the price should shift market structure and start moving upward; this shift, referred to as Market Structure Shift (MSS), signals the beginning of an upward trend. Following MSS, areas like FVG, located within the Discount Zone, are identified. At this stage, the trader waits for the price to retrace to these zones. Once the price returns, a long trade is executed.
Finally, the stop-loss should be set below the liquidity low to manage risk, while the take-profit target is usually placed above the previous day’s high or other identified liquidity levels. This structure enables traders to take advantage of the upward price movement after the liquidity sweep.
🟣 Bearish ICT 2022 Model Setup
To identify a bearish setup in the ICT 2022 model, begin by marking the Previous Day High/Low or key session levels, such as the London or New York sessions. In this scenario, the price typically moves upward first, sweeping the Liquidity High. This move, known as a Liquidity Sweep, signifies the collection of sell orders by key market players.
After the liquidity sweep, the price should shift market structure downward. This movement, called the Market Structure Shift (MSS), indicates the start of a downtrend. Following MSS, areas such as FVG, found within the Premium Zone, are identified. At this stage, the trader waits for the price to retrace to these areas. Once the price revisits these zones, a short trade is executed.
In this setup, the stop-loss should be placed above the liquidity high to control risk, while the take-profit target is typically set below the previous day’s low or another defined liquidity level. This approach allows traders to capitalize on the downward price movement following the liquidity sweep.
🔵 Settings
Swing period : You can set the swing detection period.
Max Swing Back Method : It is in two modes "All" and "Custom". If it is in "All" mode, it will check all swings, and if it is in "Custom" mode, it will check the swings to the extent you determine.
Max Swing Back : You can set the number of swings that will go back for checking.
FVG Length : Default is 120 Bar.
MSS Length : Default is 80 Bar.
FVG Filter : This refines the number of identified FVG areas based on a specified algorithm to focus on higher quality signals and reduce noise.
Types of FVG filters :
Very Aggressive Filter: Adds a condition where, for an upward FVG, the last candle's highest price must exceed the middle candle's highest price, and for a downward FVG, the last candle's lowest price must be lower than the middle candle's lowest price. This minimally filters out FVGs.
Aggressive Filter: Builds on the Very Aggressive mode by ensuring the middle candle is not too small, filtering out more FVGs.
Defensive Filter: Adds criteria regarding the size and structure of the middle candle, requiring it to have a substantial body and specific polarity conditions, filtering out a significant number of FVGs.
Very Defensive Filter: Further refines filtering by ensuring the first and third candles are not small-bodied doji candles, retaining only the highest quality signals.
🔵 Conclusion
The ICT 2022 model is a comprehensive and advanced trading strategy designed around key concepts such as liquidity, price imbalance, and market structure shifts (MSS). By focusing on the sweep of critical levels such as the previous day’s high/low and important trading sessions like London and New York, this strategy enables traders to predict market movements with greater precision.
The use of tools like FVG in this model helps traders fine-tune their entry and exit points and take advantage of bullish and bearish trends after liquidity sweeps. Moreover, combining this strategy with precise timing during key trading sessions allows traders to minimize risk and maximize returns.
In conclusion, the ICT 2022 model emphasizes the importance of time and liquidity, making it a powerful tool for both professional and novice traders. By applying the principles of this model, you can make more informed trading decisions and seize opportunities in financial markets more effectively.
Sharpe and Sortino Ratios with Date RangeThis indicator calculates the Sharpe and Sortino ratios using a chart symbol's periodic price returns.
I added the ability to calculate SORTINO and Sharpe based on CUSTOM DATES within the option menu.
It builds on the script here: by adding this feature.
A little about the Sortino Ratio.
www.nasdaq.com
I want equity market returns, but I don’t want equity market volatility. This is the sentiment many investors naturally feel. This sentiment often grows stronger as one approaches or is in the phase where they desire distributions from their savings to improve lifestyle. This is why there is a need for active management in the investment arena. The desire to control downside volatility, but also participate in the upside growth is a very fundamental human desire. The Sortino Ratio measures how well a particular investment meets this fundamental human desire.
There is the old adage, “volatility is the price you pay for returns.” However, what if we could measure the historical performance of an investment and see if it has given above average returns compared to the downside volatility. This is a simple division problem. It will tell us if the volatility “price we are paying for returns” is good. We can then compare that to other investments to see how they compare.
Let us take the return and subtract the risk-free interest rate and then simply divide that by the downside movement from the average. A basic division problem yielding a number that measures a very basic human desire: How well did this investment do compared to the downside risk it experienced.
In the world of financial analysis and investment management, ratios are abundant. There are many ratios that are truly important to a particular analysis. However, the sheer abundance of ratios that are available often overwhelms the casual investor, leading them to disregard ratios altogether. I would argue for those investors that desire a way to rank an investment by its ability to satisfy this very fundamental human desire, the Sortino Ratio is the number they need to consider.
Disappointing in the marketplace for research, the Sortino Ratio is not featured prominently. It is much easier to find the inflows a particular ETF has experienced than the Sortino Ratio. Inflows are important. They measure how much people are investing into an ETF. However, they are mostly only important to the fund manager, not the investor. What investors care about is the Risk-Adjusted Return. This is the Sortino Ratio.
Two-Pole Oscillator [BigBeluga]
The Two-Pole Oscillator is an advanced smoothing oscillator designed to provide traders with precise market signals by leveraging deviation-based calculations combined with a unique two-pole filtering technique. It offers clear visual representation and actionable signals for smart trading decisions.
🔵Key Features:
Two-Pole Filtering: Smooths out the main oscillator signal to reduce noise, providing a cleaner and more reliable view of market momentum and trend strength.
// Two-pole smooth filter function
f_two_pole_filter(source, length) =>
var float smooth1 = na
var float smooth2 = na
alpha = 2.0 / (length + 1)
if na(smooth1)
smooth1 := source
else
smooth1 := (1 - alpha) * smooth1 + alpha * source
if na(smooth2)
smooth2 := smooth1
else
smooth2 := (1 - alpha) * smooth2 + alpha * smooth1
Deviation-Based Oscillator: Utilizes price deviations from the mean to generate dynamic signals, making it ideal for detecting overbought and oversold conditions.
float sma1 = ta.sma(close, 25)
float sma_n1 = ((close - sma1) - ta.sma(close - sma1, 25)) / ta.stdev(close - sma1, 25)
Signal Gradient Strength: Signals on the main oscillator line feature gradient coloring based on their proximity to the 0 level:
➔ Closer to 0: More transparent, indicating weaker signals.
➔ Closer to 1 or -1: Less transparent, highlighting stronger signals.
Level-Based Signal Validation: Parallel levels are plotted on the chart for each signal:
➔ If a level is crossed by price, the signal is invalidated, marked by an "X" at the invalidation point.
Trend Continuation
Invalidation Levels: Serve as potential stop-loss or trade-reversal zones, enabling traders to make more informed and disciplined trading decisions.
Dynamic Chart Plotting: Signals are plotted directly on the chart with corresponding levels, providing a comprehensive visual representation for easy interpretation.
🔵How It Works:
The oscillator calculates price deviation from a mean value and applies two-pole filtering to smooth the resulting signal.
Gradient-colored signals reflect their strength, with transparency indicating proximity to the 0 level on the oscillator scale.
Buy and sell signals are generated based on crossovers and crossunders of the oscillator line with a signal line.
If a level is crossed, the corresponding signal is marked with a "X" plotted on the chart at the crossover point.
🔵Use Cases:
Detecting overbought or oversold market conditions with a smoother, noise-free oscillator.
Using invalidation levels to set clear stop-loss or trade exit points.
Identifying strong momentum signals and filtering out weaker, less reliable ones.
Combining oscillator signals with price action for more precise trade entries and exits.
This indicator is perfect for traders seeking a refined approach to oscillator analysis, combining signal strength visualization with actionable invalidation levels to enhance trading precision and strategy.
VWMA with Buy/Sell Signalshe VWMA (Volume Weighted Moving Average) is a technical indicator that averages prices over a specified period while giving more weight to periods with higher trading volumes. This makes the VWMA more sensitive to price movements during high-volume trading compared to a simple moving average (SMA).
Adding Buy/Sell Signals to a VWMA-based script involves identifying trends or crossover points that indicate potential entry (Buy) or exit (Sell) opportunities.
Core Features of the Script:
VWMA Calculation:
Uses the typical price ((High + Low + Close) / 3) or closing price for computation.
Weighting is based on the volume traded in each period.
Autocorrelation Price Forecasting [ScrimpleAI]Discover how to predict future price movements using autocorrelation and linear regression models to identify potential trading opportunities.
An advanced model to predict future price movements using autocorrelation and linear regression. This script helps identify recurring market cycles and calculates potential gains, with clear visual signals for quick and informed decisions.
Main Function
This script leverages an autocorrelation model to estimate the future price of an asset based on historical price relationships. It also integrates linear regression on percentage returns to provide more accurate predictions of price movements.
Key Features
1. Customizable Inputs:
- Analysis Length: number of historical bars used for autocorrelation calculation. Adjustable between 1 and 200.
- Forecast Colors: customize colors for bullish and bearish signals.
2. Price Autocorrelation: uses the ta.correlation function to measure price autocorrelation, detecting significant cycles when the value exceeds a defined threshold ( signal_threshold = 0.50 ).
3. Linear Regression on Returns: calculates percentage returns and applies linear regression to identify the future projected price value.
4. Hypothetical Gain Assessment: evaluates potential profit by comparing the estimated future price with the current price.
5. Visual Alerts:
- Labels: hypothetical gains or losses are displayed as labels above or below the bars.
- Dynamic Coloring: bullish (green) and bearish (red) signals are highlighted directly on the chart.
- Forecast Line: A continuous line is plotted to represent the estimated future price values.
Practical Applications
Short-term Trading : identify repetitive market cycles to anticipate future movements.
Visual Decision-making : colored signals and labels make it easier to visualize potential profit or loss for each trade.
Advanced Customization : adjust the data length and colors to tailor the indicator to your strategies.
💡 What do you think about this model?
If you already use autocorrelation-based analysis or want to try predictive strategies, leave a comment with your feedback!
Swing High/Low (ZigZag) [ChartPrime]Swing High/Low (ZigZag) Indicator
The Swing High/Low (ZigZag) Indicator is a versatile tool for identifying and visualizing price swings, swing highs, and swing lows. It dynamically plots levels for significant price points while connecting them with a ZigZag line, enabling traders to analyze market structure and trends with precision.
⯁ KEY FEATURES
Swing Highs and Lows Detection
Accurately detects and marks swing highs and lows, providing a clear structure of market movements.
Real-Time ZigZag Line
Connects swing points with a dynamic ZigZag line for a visual representation of price trends.
Customizable Swing Sensitivity
Swing length input allows traders to adjust the sensitivity of swing detection to match their preferred market conditions.
Swing Levels with Shadows
Option to display swing levels with extended shadows for better visibility and market analysis.
Broken Levels Marking
Tracks and visually updates levels as dashed lines when broken, providing insights into shifts in market structure.
Swing Direction Display
At the top-right corner, the indicator displays the current swing direction (up or down) with a directional arrow for quick reference.
Interactive Labels
Marks swing levels with labels, showing the price of swing highs and lows for added clarity.
Dynamic Market Structure Analysis
Automatically adjusts ZigZag lines and levels as the market evolves, ensuring real-time updates for accurate trading decisions.
⯁ HOW TO USE
Analyze Market Trends
Use the ZigZag line and swing levels to identify the overall direction and structure of the market.
Spot Significant Price Points
Swing highs and lows act as potential support and resistance levels for trading opportunities.
Adjust Swing Sensitivity
Modify the swing length setting to match your trading strategy, whether scalping, day trading, or swing trading.
Monitor Broken Levels
Use the dashed lines of broken levels to identify changes in market dynamics and potential breakout or breakdown zones.
Plan Entries and Exits
Leverage swing levels and direction to determine optimal entry, stop-loss, and take-profit points.
⯁ CONCLUSION
The Swing High/Low (ZigZag) Indicator is a powerful tool for traders seeking to visualize price swings and market structure. Its real-time updates, customizable settings, and dynamic swing direction make it an invaluable resource for technical analysis and decision-making.
Asset Rotation System [InvestorUnknown]Overview
This system creates a comprehensive trend "matrix" by analyzing the performance of six assets against both the US Dollar and each other. The objective is to identify and hold the asset that is currently outperforming all others, thereby focusing on maintaining an investment in the most "optimal" asset at any given time.
- - - Key Features - - -
1. Trend Classification:
The system evaluates the trend for each of the six assets, both individually against USD and in pairs (assetX/assetY), to determine which asset is currently outperforming others.
Utilizes five distinct trend indicators: RSI (50 crossover), CCI, SuperTrend, DMI, and Parabolic SAR.
Users can customize the trend analysis by selecting all indicators or choosing a single one via the "Trend Classification Method" input setting.
2. Backtesting:
Calculates an equity curve for each asset and for the system itself, which assumes holding only the asset deemed optimal at any time.
Customizable start date for backtesting; by default, it begins either 5000 bars ago (the maximum in TradingView) or at the inception of the youngest asset included, whichever is shorter. If the youngest asset's history exceeds 5000 bars, the system uses 5000 bars to prevent errors.
The equity curve is dynamically colored based on the asset held at each point, with this coloring also reflected on the chart via barcolor().
Performance metrics like returns, standard deviation of returns, Sharpe, Sortino, and Omega ratios, along with maximum drawdown, are computed for each asset and the system's equity curve.
3 Alerts:
Supports alerts for when a new, confirmed optimal asset is identified. However, due to TradingView limitations, the specific asset cannot be included in the alert message.
- - - Usage - - -
1. Select Assets/Tickers:
Choose which assets or tickers you want to include in the rotation system. Ensure that all selected tickers are denominated in USD to maintain consistency in analysis.
2. Configure Trend Classification:
Decide on the trend classification method from the available options (RSI, CCI, SuperTrend, DMI, or Parabolic SAR, All) and adjust the settings to your preferences. This customization allows you to tailor the system to different market conditions or your specific trading strategy.
3. Utilize Backtesting for Calibration:
Use the backtesting results, including equity curves and performance metrics, to fine-tune your chosen trend indicators.
Be cautious not to overemphasize performance maximization, as this can lead to overfitting. The goal is to achieve a robust system that performs well across various market conditions, rather than just optimizing for past data.
- - - Parameters - - -
Tickers:
Asset 1: Select the symbol for the first asset.
Asset 2: Select the symbol for the second asset.
Asset 3: Select the symbol for the third asset.
Asset 4: Select the symbol for the fourth asset.
Asset 5: Select the symbol for the fifth asset.
Asset 6: Select the symbol for the sixth asset.
General Settings:
Trend Classification Method: Choose from RSI, CCI, SuperTrend, DMI, PSAR, or "All" to determine how trends are analyzed.
Use Custom Starting Date for Backtest: Toggle to use a custom date for beginning the backtest.
Custom Starting Date: Set the custom start date for backtesting.
Plot Perf. Metrics Table: Option to display performance metrics in a table on the chart.
RSI (Relative Strength Index):
RSI Source: Choose the price data source for RSI calculation.
RSI Length: Set the period for the RSI calculation.
CCI (Commodity Channel Index):
CCI Source: Select the price data source for CCI calculation.
CCI Length: Determine the period for the CCI.
SuperTrend:
SuperTrend Factor: Adjust the sensitivity of the SuperTrend indicator.
SuperTrend Length: Set the period for the SuperTrend calculation.
DMI (Directional Movement Index):
DMI Length: Define the period for DMI calculations.
Parabolic SAR:
PSAR Start: Initial acceleration factor for the Parabolic SAR.
PSAR Increment: Increment value for the acceleration factor.
PSAR Max Value: Maximum value the acceleration factor can reach.
Notes/Recommendations:
While this system is operational, it's important to recognize that it relies on "basic" indicators, which may not be ideal for generating trading signals on their own. I strongly suggest that users delve into the code to grasp the underlying logic of the system. Consider customizing it by integrating more sophisticated and higher-quality trend-following indicators to enhance its performance and reliability.
Disclaimer:
This system's backtest results are historical and do not predict future performance. Use for educational purposes only; not investment advice.