Double SuperTrend Crossover AlertsDouble SuperTrend Crossover Alerts
This indicator uses two SuperTrend calculations to generate trading alerts based on their crossover. The idea is simple:
A Buy Signal is produced when the fast SuperTrend (using a factor of 2 by default) crosses above the slow SuperTrend (using a factor of 4 by default).
A Sell Signal is produced when the fast SuperTrend crosses below the slow SuperTrend.
How It Works
Inputs and Calculations
ATR Length: Set to 13 by default and used in the Average True Range (ATR) calculation to adjust the indicator's sensitivity.
Fast SuperTrend Factor: The fast SuperTrend uses a multiplier of 2, making it more sensitive to recent price changes.
Slow SuperTrend Factor: The slow SuperTrend uses a multiplier of 4, making it smoother and less reactive.
Customizable Settings:
Users can edit the ATR length, the fast factor, and the slow factor as desired, allowing you to adjust the indicator to suit your personal trading style and preferred time frames.
Signal Generation
Buy Signal: Generated when the fast SuperTrend moves above the slow SuperTrend, suggesting a bullish move.
Sell Signal: Generated when the fast SuperTrend falls below the slow SuperTrend, indicating a potential bearish move.
Alert Functionality
The indicator comes with built-in alert conditions. You can set up alerts in TradingView so that you receive notifications:
Buy Alert: When the fast SuperTrend crosses above the slow SuperTrend.
Sell Alert: When the fast SuperTrend crosses below the slow SuperTrend.
This way, you will never miss a potential trading signal.
Disclaimer
Trading involves risk, and past performance does not guarantee future results. This indicator is for educational purposes only and should not be used as the sole basis for any trading decision. Always use proper risk management and confirm signals with additional analysis before entering any trade.
Happy Trading!
المؤشرات والاستراتيجيات
KAMA Stdev🚀 Trading View Alert! 🌟
Take your trading strategy to the next level with the KAMA Stdev Indicator! Designed with precision, this script combines the power of KAMA (Kaufman's Adaptive Moving Average) with Standard Deviation Bands for enhanced market insights 📈.
✨ Key Features:
💡 Perfect for traders seeking a dynamic tool for identifying market trends and volatility with ease.
💻 Code licensed under MPL 2.0 and developed by the QuantzTrader!
Check for Price hitting Standard Deviation 3, the price will generally come back to KAMA
EMA Cloud with Custom MAs and RSI [deepakks444]EMA Cloud with Custom MAs and RSI
Overview
A simple yet very effective tool, this indicator combines three essential elements to help you analyze the market with ease, using inputs to customize settings like MA types, lengths, and RSI periods. It includes an EMA Cloud to identify trends, two customizable Moving Averages (MAs) to confirm those trends, and a simple RSI (Relative Strength Index) to measure momentum. The EMA Cloud creates a colored area on your chart to show the trend direction at a glance, the MAs act as a second layer of confirmation, and the RSI, displayed in a separate pane, helps you understand the strength of the price movement. This setup is perfect for traders who want a clear, straightforward way to spot trends and gauge momentum without extra complexity.
Features
EMA Cloud:
The EMA Cloud is a shaded area on your chart that makes trend spotting easy. It’s created using two 3-period EMAs (Exponential Moving Averages): one based on the candle’s high price (called the High EMA) and one based on the candle’s low price (called the Low EMA). These EMAs track the recent highs and lows over the last three candles, forming a cloud-like area between them that moves with the price.
The cloud changes color based on where the candle is compared to these EMAs, giving you a quick visual of the trend:
Green: The candle is in a strong uptrend. This happens when the candle’s highest point (its high) touches or goes above the High EMA, and its lowest point (its low) stays above the Low EMA. In simple terms, the price is climbing higher and isn’t dropping below the recent lows, which shows strong bullish momentum and suggests the price might keep going up.
Red: The candle is in a strong downtrend. This happens when the candle’s lowest point (its low) touches or goes below the Low EMA, and its highest point (its high) stays below the High EMA. This means the price is falling lower and isn’t spiking above the recent highs, showing strong bearish momentum and suggesting the price might keep going down.
Yellow: The trend isn’t clear. This happens when the candle doesn’t fit the Green or Red conditions. For example, the candle might be stuck between the two EMAs, or it might be outside them but not showing a strong bullish or bearish move. A Yellow cloud tells you the market is in a neutral state, often during sideways movement or choppy price action, so it’s a sign to wait for a clearer trend before acting.
The cloud is overlaid directly on the price chart, so you can see the trend while watching the candles. It’s designed to be fast and responsive, thanks to the short 3-period EMAs, making it great for short-term trading.
Custom Moving Averages:
This indicator includes two Moving Averages (MAs) that you can customize to match your trading style. These MAs act as a backup to the EMA Cloud, helping you confirm the trend and spot potential entry or exit points.
You can choose the type of MA from a list: SMA (Simple Moving Average, which gives equal weight to all prices), EMA (Exponential Moving Average, which focuses more on recent prices), WMA (Weighted Moving Average, which gives more weight to recent prices in a linear way), HMA (Hull Moving Average, which is smoother and faster), RMA (Running Moving Average, often used in momentum indicators), or VWMA (Volume Weighted Moving Average, which factors in trading volume). Each type has its own strengths, so you can pick the one that suits your strategy best.
The default lengths are 20 for the first MA (shorter, faster) and 50 for the second MA (longer, slower), but you can adjust these lengths to make the MAs more or less sensitive. For example, a shorter length like 10 will react faster to price changes, while a longer length like 100 will show the bigger trend.
The MAs are plotted on the price chart in blue (for the first MA) and black (for the second MA). You can use them to see how the price is moving compared to the trend shown by the EMA Cloud, and they’re especially helpful for spotting crossovers (when the shorter MA crosses the longer MA), which can signal a change in trend.
RSI for Momentum:
The RSI (Relative Strength Index) is a simple momentum indicator that shows how strong the price movement is. It’s displayed in a separate pane below the chart, so it doesn’t get in the way of your price view.
This is a default 14-period RSI, meaning it looks at the last 14 candles to calculate momentum. You can adjust the period if you want it to be more or less sensitive—for example, a shorter period like 7 will react faster, while a longer period like 21 will be slower and smoother.
The RSI ranges from 0 to 100. A higher RSI (closer to 100) means the price is moving up with strong momentum, while a lower RSI (closer to 0) means the price is moving down with strong momentum. For example, if the RSI is rising and heading toward 70, it shows the price is gaining upward momentum, which can support a Green cloud signal. If the RSI is falling and heading toward 30, it shows the price is gaining downward momentum, which can support a Red cloud signal.
You can also use the RSI to see if momentum is slowing down. For example, if the price is going up but the RSI starts to flatten or drop, it might mean the uptrend is losing steam, even if the cloud is still Green. This can help you prepare for a potential trend change.
Settings
EMA Cloud:
Fixed at 3-period EMAs.
Additional MAs:
MA1 Length and MA1 Type: Set the first MA (default: 20, SMA).
MA2 Length and MA2 Type: Set the second MA (default: 50, SMA).
RSI Settings:
RSI Length: Default 14, adjustable.
Source: Default close, adjustable.
Usage
Spot Trends with the Cloud:
A Green cloud means the price is trending up, which can be a good time to buy or hold a position if you’re trading with the trend. It shows the price is moving higher with strength.
A Red cloud means the price is trending down, which can be a good time to sell or short if you’re looking for bearish opportunities. It shows the price is dropping with strength.
A Yellow cloud means the price isn’t showing a clear trend, so it’s often better to wait for a stronger signal before making a move. This helps you avoid getting caught in choppy or sideways markets.
Confirm with MAs:
The two MAs help you confirm the trend shown by the EMA Cloud. For example, if the cloud is Green (uptrend) and the shorter MA (blue) crosses above the longer MA (purple), it’s a stronger sign to buy, as both the cloud and the MAs agree the trend is up. If the cloud is Red (downtrend) and the shorter MA crosses below the longer MA, it’s a stronger sign to sell, as both tools confirm the downtrend.
You can also use the MAs to spot trend changes. If the price breaks above both MAs while the cloud turns Green, it’s a good sign a new uptrend is starting. If the price breaks below both MAs while the cloud turns Red, it’s a sign a new downtrend might be starting.
Check Momentum with RSI:
Use the RSI to see how strong the price movement is. If the RSI is rising, it means the price is gaining momentum, which can support a Green cloud (uptrend) or warn you if the momentum is slowing down in a Red cloud (downtrend). If the RSI is falling, it means the price is losing momentum, which can support a Red cloud or warn you if the momentum is slowing in a Green cloud.
For example, if the cloud is Green and the RSI is rising toward 60, it shows strong upward momentum, giving you more confidence in the uptrend. If the cloud is Red and the RSI is falling toward 40, it shows strong downward momentum, supporting the downtrend.
You can also watch for changes in momentum. If the cloud is Green but the RSI starts to drop, it might mean the uptrend is weakening, even if the price is still going up. This can help you prepare for a potential reversal or pullback.
Accuracy
The EMA Cloud is designed to catch trends by looking at the candle’s full range (high and low prices), not just the close. This makes it more sensitive to real price movements, helping it accurately show when the price is trending up (Green), trending down (Red), or stuck in a neutral zone (Yellow). The 3-period EMAs are short and fast, so the cloud reacts quickly to price changes, which is ideal for short-term trading but might give more signals in choppy markets. The custom MAs add reliability by confirming the trend over a longer period, helping you avoid false signals from the cloud alone. The RSI provides a clear view of momentum, showing you how strong the trend is and whether it’s gaining or losing steam. Together, these tools create a balanced system for trend and momentum analysis, but you should always test it on your specific market and timeframe to see how well it works for your trading style.
Notes
The EMA Cloud uses the candle’s high and low prices to catch the full price movement, making it more accurate for spotting trends.
The cloud colors have a bit of transparency so you can still see the candles clearly.
The RSI sits in its own pane below the chart, while the cloud and MAs are on the price chart.
Credits
To Creators of Original Indicators Used in this Indictor.
Disclaimer
This indicator is for educational purposes only. Trading involves risks, and you should use this tool at your own risk. Always conduct your own analysis and backtest the indicator before using it in live trading. The creators are not responsible for any financial losses incurred.
Mar 28
Release Notes
Added option to select Source of MAs.
This update introduces an advanced crossover confirmation feature to the indicator by leveraging the existing user-defined moving averages (MA1 and MA2). It enhances flexibility and visual feedback through customizable source selection and dynamic color changes based on crossover events. Below are the details of this addition:
Customizable Source Selection:
Users now have the ability to define the price source for each moving average independently through the MA1 Source and MA2 Source input options. Available choices include open, close, high, low, or other price data points, enabling tailored analysis based on specific price behaviors.
Crossover Confirmation Mechanism:
The feature detects crossovers between MA1 and MA2 to provide additional confirmation signals:
A bullish crossover occurs when MA1 crosses above MA2, signaling potential bullish momentum.
A bearish crossover occurs when MA1 crosses below MA2, indicating possible bearish momentum.
These events are identified using precise Pine Script functions (ta.crossover() and ta.crossunder()), ensuring reliable detection of trend shifts.
Dynamic Color Response:
Post-crossover, the visual representation of both MAs adapts to reflect the market condition:
After a bullish crossover (MA1 > MA2), both MA1 and MA2 lines change to green, visually reinforcing an upward trend.
After a bearish crossover (MA1 < MA2), both lines shift to red, highlighting a downward trend.
Prior to any crossover, the MAs default to gray, maintaining neutrality until a significant event occurs. The color persists until the opposite crossover takes place, offering sustained feedback.
Practical Examples for Customization:
MA 3 vs. MA 3 Configuration: Set MA1 to a length of 3 with source open and MA2 to a length of 3 with source close. This fast-moving pair leverages the difference between opening and closing prices, with crossovers providing rapid confirmation signals for short-term traders.
MA 9 vs. MA 20 Crossover: Configure MA1 with a length of 9 and MA2 with a length of 20 (both defaulting to close). This setup captures short-term trends against a medium-term baseline, a popular choice for swing trading.
MA 20 vs. MA 50 Crossover: Assign MA1 a length of 20 and MA2 a length of 50. This classic combination tracks medium-term versus long-term trends, ideal for identifying broader market shifts.
The flexibility of length and source inputs allows users to experiment with countless other pairings tailored to their strategies.
Purpose and Integration:
This crossover functionality enhances the indicator’s utility by offering a clear, visual confirmation tool alongside the existing EMA Cloud and RSI components. It empowers users to monitor momentum shifts with greater confidence, using MA1 and MA2 as a dynamic duo within the broader analytical framework.
Critical User Guidance:
Disclaimer: While this indicator provides valuable insights, it is not a standalone solution for trading decisions. All technical indicators, including this one, merely suggest potential price movements without offering guarantees. To maximize effectiveness and minimize risk, users must complement crossover signals with additional confirmations, such as:
Candlestick Formations: Patterns like doji, engulfing, or hammer candles to validate reversals or continuations.
Support and Resistance Levels: Key price zones to assess the strength of a trend or breakout.
Trendline Breakouts: Confirmation of trend direction through breaches of established lines.
Combining these elements ensures a more robust trading approach, aligning with sound risk management principles.
Niveles intradía reinicio diario📌 Script Description: Projected Intraday Fibonacci Levels from 02:00 (Madrid)
This advanced Fibonacci level indicator is specially designed for intraday traders who seek high-precision reaction zones starting from a fixed daily control point.
🕑 How does it work?
Each day at 02:00 Madrid time (GMT+1), the indicator captures the opening price of that candle as the base level (0.84), and then projects upper and lower levels based on custom, non-standard but highly effective proportions.
🔢 Included Levels:
Upper levels: 0.068, 0.42, 0.21, 0, and extensions to 1.79, 2.00
Lower levels: 1, 1.26, 1.47, 1.68, 1.89, 2.10
Key level (0.84): visually highlighted in light blue for quick reference
💼 Use Cases — Ideal for:
Detecting high-confluence entry and exit zones
Spotting reversals or continuations from projected areas
Building intraday strategies based on breakouts, pullbacks, or mean reversion
🎯 Key Advantage:
Unlike traditional Fibs that use the high/low of the day, this tool activates at a fixed time (02:00), allowing for consistency, automation, and daily comparability.
EMA Crossover with Stop Loss
Stop Loss Calculation:
A stop loss level is calculated as a percentage below the entry price for a long position or above the entry price for a short position.
The stopLossPercent input allows you to define how far the stop loss is set from the entry price, in percentage terms.
Buy Signal:
A buySignal is generated when the fast EMA crosses above the slow EMA.
The stop loss for this trade is calculated when the buy signal occurs, and the stop loss level is plotted on the chart.
Sell Signal:
A sellSignal is generated when the fast EMA crosses below the slow EMA.
The stop loss for the short trade is calculated when the sell signal occurs.
Plotting:
Buy and Sell Labels: "BUY" and "SELL" signals are plotted as labels above or below the bars when the crossovers occur.
Stop Loss Levels: When a buy signal occurs, the stop loss for the long position is plotted in orange. When a sell signal occurs, the stop loss for the short position is plotted in purple.
Alerts:
Alerts are available for the buy and sell signals as well as for the stop loss levels being reached, so you can track those events in real-time.
How it Works:
The buy signal triggers a long position, and the stop loss is calculated below the entry price by the percentage specified in stopLossPercent.
The sell signal triggers a short position, and the stop loss is calculated above the entry price.
The stop loss is drawn on the chart when a position is open, so you can visually track where your exit would be if the price moves against you.
How to Use:
Copy the updated script into TradingView's Pine Script editor.
Apply it to your chart.
You'll see the EMAs plotted, along with "BUY", "SELL", and stop loss levels for both long and short trades.
You can set up alerts from TradingView’s alert feature to notify you when buy, sell, or stop-loss levels are triggered.
Feel free to tweak the stopLossPercent input to better fit your risk management preferences!
Let me know if you'd like further customization or need help with anything else!
Horizontal Line at LevelsThis line drawing based on value to predict the market is moving on specific area marked and can alter according to level planned as per the market
Trend is Your Friend + MA Cross (Custom Color Scheme)## Overview
This indicator is a multi-faceted tool that combines several trend–based technical analyses with moving average crossover signals. It provides users with a dynamically updated dashboard displaying trend scores across different timeframes (15-minute, 1-hour, 4-hour, and daily) as well as a volume monitor. In addition, the script highlights scalp entry opportunities on the 15-minute chart and overlays a classic moving average (MA) cross indicator with customizable color schemes.
---
## Key Components and Workflow
### 1. User Inputs and Custom Settings
- **Dashboard Position:**
Users can choose where to display the dashboard on the chart (Top Right, Middle Right, Bottom Right, or Bottom Left).
- **MA Cross Parameters:**
Two moving averages are used:
- **Fast MA Period:** The shorter period (default 50) is used to gauge more immediate price momentum.
- **Slow MA Period:** The longer period (default 200) gives the overall trend.
- **Custom Colors for Crosses:**
Custom color inputs allow traders to assign distinct colors for bullish (e.g., a golden cross) and bearish (e.g., a death cross) signals.
- **Weekend Trading Toggle:**
An option to enable or disable trading signals on weekends prevents unwanted alerts during low-liquidity periods.
---
### 2. Trend Calculation Across Multiple Timeframes
The script evaluates trend strength on different timeframes using a function called `getTrend`. This function aggregates signals from four technical indicators for each timeframe:
- **MACD Analysis:**
- **Calculation:** The MACD line and its signal line are computed using the standard 12, 26, 9 settings.
- **Trend Signal:** If the MACD line exceeds the signal line, a positive (bullish) signal is generated; if it is below, a negative (bearish) signal is produced.
- **ATR–Based Supertrend Concept:**
- **ATR Value:** An Average True Range (ATR) over 10 periods is calculated.
- **Price Bands:** Upper and lower bands are derived by adding/subtracting three times the ATR from the current price.
- **Supertrend Signal:** The close price being above the lower band implies bullishness, while being below the upper band implies bearishness.
- **Hull Moving Average (HMA) Slope:**
- **Calculation:** A Hull Moving Average is computed using a weighted moving average formula.
- **Trend Signal:** The slope of the HMA (i.e., its current movement compared to its previous value) determines if the trend is upward or downward.
- **VWAP Comparison:**
- **Assessment:** The script compares the current price to the Volume Weighted Average Price (VWAP) calculated for each timeframe.
- **Trend Signal:** Price above the VWAP indicates bullishness, and below indicates bearishness.
- **Overall Trend Scoring:**
Each individual component contributes a value (+1, 0, or –1) which are summed into a total score. If this score is 3 or above, the trend for that timeframe is considered **bullish**; if it is –3 or lower, it is **bearish**. Otherwise, the trend is labeled as **neutral**.
---
### 3. Color-Coded Dashboard Display
- **Dashboard Setup:**
The indicator creates a table that displays the trend scores for the four chosen timeframes. Each cell shows the timeframe label, the score (with minimal tick formatting), and a trend label (“BULLISH”, “BEARISH”, or “NEUTRAL”).
- **Color Scheme Determination:**
A helper function assigns:
- **Bullish:** A dark green background with bright green text.
- **Bearish:** A dark red background with red text.
- **Neutral:** A black background with yellow text.
- **Volume Monitor:**
The dashboard includes an extra cell that monitors current volume relative to its 20–period simple moving average (SMA). Depending on whether volume is high, medium, or low, it is color–coded (yellow for high, orange for medium, and gray for low).
---
### 4. Scalp Entry Logic on the 15-Minute Chart
- **Local Indicator Calculations:**
On the 15-minute timeframe, the script computes:
- **MACD:** A bullish bias if the MACD line is above its signal line.
- **Supertrend Proxy:** A simplified measure comparing the close to a level derived from ATR.
- **Hull MA Slope:** An upward slope indicates bullish movement.
- **VWAP Check:** The close price is compared to the VWAP.
- **Multi-Timeframe Confirmation:**
The `getTrend` function is again used to retrieve trend signals for the 15-minute, 1-hour, 4-hour, and daily timeframes. A count of bullish versus bearish signals is used as additional confirmation.
- **Entry Conditions:**
- **Long Entry:** Triggered when local conditions (MACD, supertrend, hull slope, and price above VWAP) are bullish and at least three of the four timeframe trend signals are positive. Volume must also be above a safe threshold, and trading is only enabled on weekdays (unless weekend trading is allowed).
- **Short Entry:** Conversely, a short signal is generated when all local conditions are bearish and there is multi-timeframe bearish confirmation.
- **Visual Alerts:**
The indicator plots shapes (triangles) on the chart for both long and short scalp entries. Alert conditions are also set up for automated notification of potential scalp opportunities.
---
### 5. Moving Average Crossover (MA Cross) Signal
- **Fast and Slow MAs:**
The script calculates two simple moving averages using user–defined periods:
- **Fast MA:** Responds quickly to price changes.
- **Slow MA:** Smooths price fluctuations over a longer period.
- **Crossover Signals:**
- A **bullish crossover** occurs when the fast MA crosses above the slow MA.
- A **bearish crossover** occurs when the fast MA crosses below the slow MA.
- **Custom Cross Markers:**
Each crossover is marked on the chart with a cross shape:
- The bullish cross is drawn in the color set by the user as the “Bullish (Golden) Cross Color.”
- The bearish cross uses the “Bearish (Death) Cross Color.”
---
## Conclusion
In summary, this indicator operates on multiple levels:
- **Trend Assessment:** It computes trend scores for multiple timeframes (15min, 1hr, 4hr, Daily) by analyzing MACD, an ATR–derived supertrend, the slope of a Hull moving average, and the VWAP.
- **Dashboard Display:** It visually summarizes the trends and current volume with a color–coded dashboard.
- **Scalp Entry Logic:** On the 15-minute timeframe, it identifies potential scalp entries by combining local technical signals with multi–timeframe trend confirmation, while filtering out low–volume or weekend conditions.
- **MA Cross Signals:** Finally, it overlays fast and slow moving averages to clearly mark bullish and bearish crossover events with customizable visual cues.
This comprehensive design makes the indicator adaptable to different market conditions and timeframes, helping traders to gauge overall trend direction and identify potential scalp opportunities effectively.
MACD Crossover + AlertMACD Proximity & Crossover Alert Script
This script is designed to help traders stay ahead of MACD crossovers by providing:
Early alerts when the MACD and Signal lines are getting close (within a customizable threshold)
Instant alerts when a bullish or bearish crossover occurs
Whether you're swing trading or scalping, this tool gives you advanced notice to prepare — and a confirmation signal to act on. It works on any timeframe and helps avoid late entries by alerting you when momentum is shifting.
Features:
Customizable MACD settings (fast, slow, signal length)
Adjustable "proximity" threshold
Visual background highlight when lines are close
Built-in alert conditions for:
MACD crossing above Signal (bullish)
MACD crossing below Signal (bearish)
MACD and Signal getting close (early warning)
Perfect for traders who want a heads-up before momentum shifts — not just a reaction afterward.
H4 3-Candle Pattern (Persistent Signals)Below is an example in Pine Script v5 that detects a pattern using the last three completed 4H candles and then plots a permanent arrow on the fourth candle (i.e. on the current bar) when the conditions are met. The arrow stays on that bar even after new bars form.
In this version, the pattern is evaluated as follows on each bar (when there are enough candles):
Bullish Pattern:
The candle three bars ago (oldest of the three) is bullish (its close is greater than its open).
The candle two bars ago closes above the high of that older candle.
The last completed candle (one bar ago) closes at or above the low of the candle two bars ago.
Bearish Pattern:
The candle three bars ago is bearish (its close is less than its open).
The candle two bars ago closes below the low of that older candle.
The last completed candle closes at or below the high of the candle two bars ago.
When the conditions are met the script draws a green up arrow below the current (fourth) candle for a bullish pattern and a red down arrow above the current candle for a bearish pattern. These arrows are drawn as regular plot symbols and remain on the chart permanently.
Copy and paste the code into TradingView’s Pine Script Editor:
FVG + PrevDayLow [Dovy]This custom TradingView indicator identifies Fair Value Gaps (FVGs)—both bullish and bearish—and checks if they form below the previous day's low. It also attempts to detect a potential "FVG open" pattern, suggesting that price might fill or react to these gaps.
Ross Cameron-Inspired Day Trading StrategyExplanation for Community Members:
Title: Ross Cameron-Inspired Day Trading Strategy
Description:
This script is designed to help you identify potential buy and sell opportunities during the trading day. It combines several popular trading strategies to provide clear signals.
Key Features:
Gap and Go: Identifies stocks that have gapped up or down at the open.
Momentum Trading: Uses RSI and EMA to identify momentum-based entry points.
Mean Reversion: Uses RSI and SMA to identify potential reversals.
How to Use:
Apply to Chart: Add this script to your TradingView chart.
Set Timeframe: Works best on 5-minute and 10-minute timeframes.
Watch for Signals: Look for green "BUY" labels for entry points and red "SELL" labels for exit points.
Parameters:
Gap Percentage: Adjust to identify larger or smaller gaps.
RSI Settings: Customize the RSI length and overbought/oversold levels.
EMA and SMA Lengths: Adjust the lengths of the moving averages.
Confirmation Period: Set how many bars to wait for confirmation.
Visual Elements:
BUY Signals: Green labels below the price bars.
SELL Signals: Red labels above the price bars.
Indicators: Displays EMA (blue) and SMA (orange) for additional context.
This script is a powerful tool for day trading on NSE and BSE indices, combining multiple strategies to provide robust trading signals. Adjust the parameters to suit your trading style and always combine with your own analysis for best results.
NY First Candle Break and RetestStrategy Overview
Session and Time Parameters:
The strategy focuses on the New York trading session, starting at 9:30 AM and lasting for a predefined session length, typically 3 to 4 hours. This timing captures the most active market hours, providing ample trading opportunities.
Strategy Parameters:
Utilizes the Average True Range (ATR) to set dynamic stop-loss levels, ensuring risk is managed according to market volatility.
Employs a reward-to-risk ratio to determine take profit levels, aiming for a balanced approach between potential gains and losses.
Strategy Settings:
Incorporates simple moving averages (EMA) and the Volume Weighted Average Price (VWAP) to identify trend direction and price levels.
Volume confirmation is used to validate breakouts, ensuring trades are based on significant market activity.
Trade Management:
Features a trailing stop mechanism to lock in profits as the trade moves in favor, with multiple take profit levels to secure gains incrementally.
The strategy is designed to handle both long and short positions, adapting to market conditions.
Alert Settings:
Provides alerts for key events such as session start, breakout, retest, and entry signals, helping traders stay informed and act promptly.
Visual cues on the chart highlight entry and exit points, making it easier for beginners to follow the strategy.
This strategy is particularly suited for the current volatile market environment, where simplicity and clear guidelines can help beginner traders navigate the complexities of trading. It emphasizes risk management and uses straightforward indicators to make informed trading decisions.
I put together this Trading View scalping strategy for futures markets with some help from Claude AI. Shoutout to everyone who gave me advice along the way—I really appreciate it! I’m sure there’s room for improvement, so feel free to share your thoughts… just go easy on me. :)
EMA Crossover Signal (15min)📈 EMA Crossover Signal (15min)
This indicator generates Buy and Sell signals based on a simple yet effective Exponential Moving Average (EMA) crossover strategy, strictly evaluated on the 15-minute timeframe.
✅ Strategy:
Buy Signal: Triggered when the 5 EMA crosses above the 10 EMA.
Sell Signal: Triggered when the 5 EMA crosses below the 10 EMA.
📌 Features:
Signals are evaluated using 15-minute data, regardless of your current chart timeframe.
Clear Buy/Sell labels are displayed directly on the chart.
Optional plotting of the 5 EMA and 10 EMA from the 15-minute chart for visual confirmation.
This tool is ideal for traders who want to follow short-term momentum shifts with high clarity and precision.
T3 MA Dual (15m Trading)//@version=5
indicator("T3 MA Dual (15m Trading)", overlay=true)
// === Tham số 2 đường T3 ===
fastLength = input.int(10, title="Fast T3 Period")
slowLength = input.int(30, title="Slow T3 Period")
vFactor = input.float(0.7, title="Volume Factor (Smoothing)", minval=0.0, maxval=1.0)
// === Hàm tính T3 MA ===
f_t3(src, length, vFactor) =>
e1 = ta.ema(src, length)
e2 = ta.ema(e1, length)
e3 = ta.ema(e2, length)
e4 = ta.ema(e3, length)
e5 = ta.ema(e4, length)
e6 = ta.ema(e5, length)
c1 = -vFactor * vFactor * vFactor
c2 = 3 * vFactor * vFactor + 3 * vFactor * vFactor * vFactor
c3 = -6 * vFactor * vFactor - 3 * vFactor - 3 * vFactor * vFactor * vFactor
c4 = 1 + 3 * vFactor + vFactor * vFactor * vFactor + 3 * vFactor * vFactor
t3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
t3
// === Tính toán 2 đường T3 ===
t3Fast = f_t3(close, fastLength, vFactor)
t3Slow = f_t3(close, slowLength, vFactor)
// === Vẽ lên biểu đồ ===
plot(t3Fast, title="T3 Fast", color=color.green, linewidth=2)
plot(t3Slow, title="T3 Slow", color=color.red, linewidth=2)
// === Tín hiệu giao cắt (tuỳ chọn) ===
bullishCross = ta.crossover(t3Fast, t3Slow)
bearishCross = ta.crossunder(t3Fast, t3Slow)
plotshape(bullishCross, title="Buy Signal", location=location.belowbar, color=color.lime, style=shape.triangleup, size=size.small)
plotshape(bearishCross, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
아삼육 시그널 - BB 상단 배열 + 선행2 필터 (시각 기준)//@version=5
indicator("아삼육 시그널 - BB 상단 배열 + 선행2 필터 (시각 기준)", overlay=true)
// 이동평균선
ma20 = ta.sma(close, 20)
ma200 = ta.sma(close, 200)
ma250 = ta.sma(close, 250)
ma500 = ta.sma(close, 500)
// 볼린저밴드 (20,2)
bb20_basis = ta.sma(close, 20)
bb20_std = ta.stdev(close, 20)
bb20_upper = bb20_basis + bb20_std * 2
// 볼린저밴드 (120,1)
bb120_basis = ta.sma(close, 120)
bb120_std = ta.stdev(close, 120)
bb120_upper = bb120_basis + bb120_std * 1
// 일목균형표 (9,26,52)
conversionLine = (ta.highest(high, 9) + ta.lowest(low, 9)) / 2
baseLine = (ta.highest(high, 26) + ta.lowest(low, 26)) / 2
leadingSpan1 = (conversionLine + baseLine) / 2
leadingSpan2 = (ta.highest(high, 52) + ta.lowest(low, 52)) / 2
// 아삼육 조건들
cond1 = close > ma500 // 종가 > 500 이평
cond2 = ma200 >= ma250 // 200이평 >= 250이평
cond3 = ma250 <= ma500 // 250이평 <= 500이평
cond4 = close > bb20_upper // BB(20,2) 상단 돌파
cond5 = close >= bb120_upper // BB(120,1) 상단 이상
cond6 = close > ma20 // 종가 > 20 이평
cond7 = close > leadingSpan1 // 종가 > 일목 선행스팬1
cond8 = close > leadingSpan2 // 종가 > 일목 선행스팬2
cond9 = bb20_upper >= bb120_upper // 볼린저 상단 배열
cond10 = leadingSpan2 < bb120_upper // ✅ 실제 보이는 위치 기준: 선행2가 BB120 상단선 아래에 있어야 함
// 최종 시그널 조건
asam6 = cond1 and cond2 and cond3 and cond4 and cond5 and cond6 and cond7 and cond8 and cond9 and cond10
// 시각화
plotshape(asam6, title="아삼육 시그널", location=location.abovebar, style=shape.triangleup, size=size.small, color=color.lime)
Nasdaq CorrelationThe indicator presents correlation values ranging from -1 to +1. Positive values (green) indicate that the assets tend to move in the same direction, while negative values (red) suggest opposite movements. A value near zero indicates little to no correlation.
Settings:
Correlation Period: Number of bars used in calculation
Index Ticker: Symbol for the index ("SPX" for S&P500, "NDX" for Nasdaq)
Price Type: Which price data to use (close, open, high, low, etc.)
Return Type: Method for calculating returns (simple or logarithmic)
Swing Breakout Strategy 📈Swing Breakout Strategy Indicator – Explanation
This indicator is designed for swing trading — capturing short- to medium-term moves in the market, typically holding trades for a few days to a few weeks.
🧠 Concept Behind the Strategy
The strategy identifies potential breakout opportunities by looking for:
A breakout above the highest high of the past N candles (bullish).
A breakdown below the lowest low of the past N candles (bearish).
The trend filter using EMA 50 ensures you're trading in the direction of the main trend.
✅ Buy Signal (Long Entry)
A buy signal is generated when:
The current candle closes above the highest high of the last N candles (default = 20).
The price is above the 50 EMA → confirms uptrend.
📌 A green “BUY” label will appear below the candle.
🔻 Sell Signal (Short Entry)
A sell signal is generated when:
The current candle closes below the lowest low of the last N candles.
The price is below the 50 EMA → confirms downtrend.
📌 A red “SELL” label will appear above the candle.
🟠 EMA 50
Used as a trend filter.
If price is above EMA 50 → favor long trades.
If price is below EMA 50 → favor short trades.
🔔 Alerts
You can enable alerts on TradingView:
🚀 “Buy Alert” → When a breakout above the recent high is detected.
🔻 “Sell Alert” → When a breakdown below the recent low is detected.
This allows you to swing trade without staring at charts all day.
🛠️ Customizable Inputs
length – number of candles to consider for the high/low breakout (default: 20).
emaLen – length of the EMA (default: 50).
showBreakouts – toggle on/off the signal labels.
📈 Ideal Timeframes:
Daily chart (best)
4H chart (for more frequent trades)
Weekly chart (for position swing trading)
Let me know if you'd like:
🔁 Backtesting version
🛑 Auto Stop Loss & Take Profit levels on chart
🕒 Multi-timeframe signal confirmation
EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)
🚨 Main Utility: Early Squeeze Warning
The primary function of this indicator is to warn traders early when the market is approaching a "squeeze"—a tightening condition that often precedes significant moves or regime shifts. By visually highlighting areas of increasing tension, it helps traders anticipate potential volatility and prepare accordingly. This is intended to be a statistically and psychologically grounded replacement of so-called "fib-time-zones," which are overly-deterministic and subjective.
📌 Overview
The EMA-Based Squeeze Dynamics indicator projects future regime shifts (such as golden and death crosses) using exponential moving averages (EMAs). It employs historical interval data and current market conditions to dynamically forecast when the critical EMAs (50-period and 200-period) will reconverge, marking likely trend-change points.
This indicator leverages two core ideas:
Behavioral finance theory: Traders often collectively anticipate popular EMA crossovers, creating a self-fulfilling prophecy (normative social influence), similar to findings from Solomon Asch’s conformity experiments.
Bayesian-like updates: It utilizes historical crossover intervals as a prior, dynamically updating expectations based on evolving market data, ensuring its signals remain objectively grounded in actual market behavior.
⚙️ Technical & Mathematical Explanation
1. EMA Calculations and Regime Definitions
The indicator uses three EMAs:
Fast (9-period): Represents short-term price movement.
Medial (50-period): Indicates medium-term trend direction.
Slow (200-period): Defines long-term market sentiment.
Regime States:
Bullish: 50 EMA is above the 200 EMA.
Bearish: 50 EMA is below the 200 EMA.
A shift between these states triggers visual markers (arrows and labels) directly on the chart.
2. Gap Dynamics and Historical Intervals
At each crossover:
The indicator records the gap (distance) between the 50 and 200 EMAs.
It tracks the historical intervals between past crossovers.
An Exponentially Weighted Moving Average (EWMA) of these intervals is calculated, weighting recent intervals more heavily, dynamically updating expectations.
Important note:
After every regime shift, the projected crossover line resets its calculation. This reset is visually evident as the projection line appears to move further away after each regime change, temporarily "repelled" until the EMAs begin converging again. This ensures projections remain realistic, grounded in actual EMA convergence, and prevents overly optimistic forecasts immediately after a regime shift.
3. Gap Momentum & Adaptive Scaling
The indicator measures how quickly or slowly the gap between EMAs is changing ("gap momentum") and adjusts its forecast accordingly:
If the gap narrows rapidly, a crossover becomes more imminent.
If the gap widens, the next crossover is pushed further into the future.
The "gap factor" dynamically scales the projection based on recent gap momentum, bounded between reasonable limits (0.7–1.3).
4. Squeeze Ratio & Background Color (Visual Cues)
A "squeeze ratio" is computed when market conditions indicate tightening:
In a bullish regime, if the fast EMA is below the medial EMA (price pulling back towards long-term support), the squeeze ratio increases.
In a bearish regime, if the fast EMA rises above the medial EMA (price rallying into long-term resistance), the squeeze ratio increases.
What the Background Colors Mean:
Red Background: Indicates a bullish squeeze—price is compressing downward, hinting a bullish reversal or continuation breakout may occur soon.
Green Background: Indicates a bearish squeeze—price is compressing upward, suggesting a bearish reversal or continuation breakout could soon follow.
Opacity Explanation:
The transparency (opacity) of the background indicates the intensity of the squeeze:
High Opacity (solid color): Strong squeeze, high likelihood of imminent volatility or regime shift.
Low Opacity (faint color): Mild squeeze, signaling early stages of tightening.
Thus, more vivid colors serve as urgent visual warnings that a squeeze is rapidly intensifying.
5. Projected Next Crossover and Pseudo Crossover Mechanism
The indicator calculates an estimated future bar when a crossover (and thus, regime shift) is expected to occur. This calculation incorporates:
Historical EWMA interval.
Current squeeze intensity.
Gap momentum.
A dynamic penalty based on divergence from baseline conditions.
The "Pseudo Crossover" Explained:
A key adaptive feature is the pseudo crossover mechanism. If price action significantly deviates from the projected crossover (for example, if price stays beyond the projected line longer than expected), the indicator acknowledges the projection was incorrect and triggers a "pseudo crossover" event. Essentially, this acts as a reset, updating historical intervals with a weighted adjustment to recalibrate future predictions. In other words, if the indicator’s initial forecast proves inaccurate, it recognizes this quickly, resets itself, and tries again—ensuring it remains responsive and adaptive to actual market conditions.
🧠 Behavioral Theory: Normative Social Influence
This indicator is rooted in behavioral finance theory, specifically leveraging normative social influence (conformity). Traders commonly watch EMA signals (especially the 50 and 200 EMA crossovers). When traders collectively anticipate these signals, they begin trading ahead of actual crossovers, effectively creating self-fulfilling prophecies—similar to Solomon Asch’s famous conformity experiments, where individuals adopted group behaviors even against direct evidence.
This behavior means genuine regime shifts (actual EMA crossovers) rarely occur until EMAs visibly reconverge due to widespread anticipatory trading activity. The indicator quantifies these dynamics by objectively measuring EMA convergence and updating projections accordingly.
📊 How to Use This Indicator
Monitor the background color and opacity as primary visual cues.
A strongly colored background (solid red/green) is an early alert that a squeeze is intensifying—prepare for potential volatility or a regime shift.
Projected crossover lines give a dynamic target bar to watch for trend reversals or confirmations.
After each regime shift, expect a reset of the projection line. The line may seem initially repelled from price action, but it will recalibrate as EMAs converge again.
Trust the pseudo crossover mechanism to automatically recalibrate the indicator if its original projection misses.
🎯 Why Choose This Indicator?
Early Warning: Visual squeeze intensity helps anticipate market breakouts.
Behaviorally Grounded: Leverages real trader psychology (conformity and anticipation).
Objective & Adaptive: Uses real-time, data-driven updates rather than static levels or subjective analysis.
Easy to Interpret: Clear visual signals (arrows, labels, colors) simplify trading decisions.
Self-correcting (Pseudo Crossovers): Quickly adjusts when initial predictions miss, maintaining accuracy over time.
Summary:
The EMA-Based Squeeze Dynamics Indicator combines behavioral insights, dynamic Bayesian-like updates, intuitive visual cues, and a self-correcting pseudo crossover feature to offer traders a reliable early warning system for market squeezes and impending regime shifts. It transparently recalibrates after each regime shift and automatically resets whenever projections prove inaccurate—ensuring you always have an adaptive, realistic forecast.
Whether you're a discretionary trader or algorithmic strategist, this indicator provides a powerful tool to navigate market volatility effectively.
Happy Trading! 📈✨
VWAP Bands with Price LineUse it in new pane below the main pane.
Nothing fancy, u can just see the S/R levels in new pane with price line. I made it for personal use only.
RsiVirgilSignalsThrough this MVRV indicator we will know when to sell, when to buy coins, we are guided by RSI, when it is down, buy, when it is up, we sell.
RSI Buy/Sell SignalsRsI give Buy and Sell signal when rsi reaches the top and sell when it reaches the bottom.
RSI + TSI + SuperTrendRSI + TSI It measures when the coin is super bought or super sold and when the coin is down you buy when the money is up