MomentumGridThis indicator provides a comprehensive view of key market dynamics using a combination of technical tools. It features:
- **VWAP (Volume Weighted Average Price):** A powerful indicator that shows the average price weighted by volume, helping traders identify trends and key price levels for the day.
- **EMA (Exponential Moving Average):** A popular trend-following indicator that highlights the smoothing of price data, making it easier to identify the direction of the market with a focus on more recent prices.
- **Supply and Demand Zones:** Visual markers of key levels where buying and selling pressure have historically been strong. These zones can help traders spot potential reversal points.
- **Volume Analysis:** Volume data displayed alongside price action to provide insights into the strength of price movements and potential market shifts.
This indicator combines these elements to help traders make more informed decisions by providing both trend-following and market structure insights. The VWAP and EMA serve as trend indicators, while the supply and demand zones highlight critical price levels, all supported by volume analysis.
Moving Averages
Range Channel by Atilla YurtsevenThis script creates a dynamic channel around a user-selected moving average (MA). It calculates the relative difference between price and the MA, then finds the average of the positive differences and the negative differences separately. Using these averages, it plots upper and lower bands around the MA as well as a histogram-like oscillator to show when price moves above or below the average thresholds.
How It Works
Moving Average Selection
The indicator allows you to choose among multiple MA types (SMA, EMA, WMA, Linear Regression, etc.). Depending on your preference, it calculates the chosen MA for the selected lookback period.
Relative Difference Calculation
It then computes the percentage difference between the source (typically the closing price) and the MA. (diff = (src / ma - 1) * 100)
Positive & Negative Averages
- Positive differences are averaged and represent how far the price typically moves above the MA.
- Negative differences are similarly averaged for when price moves below the MA.
Range Channel & Oscillator
- The channel is plotted around the MA using the average positive and negative differences (Upper Edge and Lower Edge).
- The “Untrended” histogram plots the difference (diff). Green bars occur when price is above the MA on average, and red bars when below. Two additional lines mark the upper and lower average thresholds on this histogram.
How to Use
Identify Overbought/Oversold Zones: The upper edge can serve as a dynamic overbought level, while the lower edge can suggest potential oversold conditions. When the histogram approaches or crosses these levels, it may signal price extremes relative to its average movement.
Trend Confirmation: Compare price action relative to the channel. If price and the histogram consistently remain above the MA and upper threshold, it could indicate a stronger bullish trend. If they remain below, it might signal a prolonged bearish trend.
Entry/Exit Timings:
- Entry: Traders can look for moments when price breaks back inside the channel from an extreme, anticipating a mean reversion.
- Exit: Watching how price interacts with these dynamic edges can help define stop-loss or take-profit points.
Because these thresholds adapt over time based on actual price behavior, they can be more responsive than fixed-percentage bands. However, like all indicators, it’s most effective when used in conjunction with other technical and fundamental tools.
Disclaimer
This script is provided for educational and informational purposes only. It does not guarantee any specific outcome or profit. Use it at your own discretion and risk.
Trade smart, stay safe.
Atilla Yurtseven
ADR Percentage with Relative StrengthADR Percentage - Calculates the ADR percent for a stock
Relative Strength - Calculates relative strength against Nifty
Volume Fusion Tracker InvesmateThis TradingView scanner script is designed to identify specific trading conditions using EMAs (Exponential Moving Averages), VWAP (Volume Weighted Average Price), and the previous day's pivot level. Here’s a detailed description of its functionality:
### **Indicators and Calculations:**
1. **EMAs:**
- Two EMAs are calculated: a 10-period EMA and a 16-period EMA.
- The area between the EMAs is color-coded:
- **Green**: When the 10 EMA is above the 16 EMA.
- **Red**: When the 10 EMA is below the 16 EMA.
2. **VWAP:**
- VWAP is calculated based on the current session's data.
3. **Pivot Level:**
- The pivot level is derived from the previous day's high, low, and close prices:
- Pivot = (High + Low + Close) / 3
### **Trading Conditions and Signals:**
1. **Green Box Signal (Bullish Signal):**
- A green box is plotted **below a candle** when:
- The candle opens below the VWAP.
- The candle closes above the VWAP.
- The candle opens below the 10 EMA.
- The candle closes above the 10 EMA.
2. **Red Box Signal (Bearish Signal):**
- A red box is plotted **above a candle** when:
- The candle opens above the VWAP.
- The candle closes below the VWAP.
- The candle opens above the 10 EMA.
- The candle closes below the 10 EMA.
- The candle is a red (bearish) candle (close < open).
### **Visualization:**
- The script visually enhances the chart with:
- Green and red areas between EMAs to indicate trends.
- Green and red box markers to highlight specific bullish or bearish candles based on the VWAP and EMA interaction.
This scanner is useful for traders looking to identify potential trend shifts and trade opportunities based on a combination of VWAP, EMAs, and pivot levels. Let me know if you'd like further refinements or additional features!
Configurable Quadruple Moving Averages (QMA)This indicator adds up to 4 configurable moving average lines (EMA or SMA) to the chart.
Configurable Quad EMA (QEMA)This indicator adds up to four moving average indicators (EMA or SMA) to the chart.
Lokesh(bank nifty option buying) MA Crossover with RSI use it directly in bank nifty option chart for 5 minute time frame specialy for put buying
BTC Tradingمرحبا يا متداولين
هو مؤشر لتداول البيتكوين باستخدام المتوسطات المتحركة (Moving Averages). إليك شرحًا للمؤشر وطريقة استخدامه:
1. إعداد المتوسطات المتحركة:
المتوسط المتحرك القصير (Short MA): هو متوسط متحرك يستخدم فترة زمنية قصيرة (9 أيام في هذا السكربت).
المتوسط المتحرك الطويل (Long MA): هو متوسط متحرك يستخدم فترة زمنية أطول (21 يومًا في هذا السكربت).
يتم حساب المتوسطات المتحركة باستخدام الدالة ta.sma(close, length), حيث يتم حساب المتوسط على أساس أسعار الإغلاق.
2. إشارات الشراء والبيع:
إشارة الشراء (Buy Signal): تحدث عندما يتقاطع المتوسط المتحرك القصير (Short MA) إلى الأعلى فوق المتوسط المتحرك الطويل (Long MA). هذا يعكس إشارة شراء.
يتم تحديد هذه الإشارة باستخدام الدالة ta.crossover(shortMA, longMA).
إشارة البيع (Sell Signal): تحدث عندما يتقاطع المتوسط المتحرك القصير (Short MA) إلى الأسفل تحت المتوسط المتحرك الطويل (Long MA). هذا يعكس إشارة بيع.
يتم تحديد هذه الإشارة باستخدام الدالة ta.crossunder(shortMA, longMA).
3. رسم المتوسطات المتحركة على الرسم البياني:
يتم رسم المتوسط المتحرك القصير باللون الأخضر باستخدام الدالة plot(shortMA).
يتم رسم المتوسط المتحرك الطويل باللون الأحمر باستخدام الدالة plot(longMA).
4. رسم علامات الشراء والبيع:
عند ظهور إشارة شراء، يتم رسم شكل تحت الشمعة يظهر كلمة "BUY" باللون الأخضر باستخدام الدالة plotshape(series=buySignal).
عند ظهور إشارة بيع، يتم رسم شكل فوق الشمعة يظهر كلمة "SELL" باللون الأحمر باستخدام الدالة plotshape(series=sellSignal).
طريقة استخدامه:
عندما يظهر الخط الأخضر (المتوسط المتحرك القصير) فوق الخط الأحمر (المتوسط المتحرك الطويل)، ستظهر إشارة شراء (BUY).
عندما يظهر الخط الأخضر تحت الخط الأحمر، ستظهر إشارة بيع (SELL).
هذه الإشارات قد تساعد في اتخاذ قرارات شراء وبيع بناءً على تقاطع المتوسطات المتحركة.
التفسير الفني:
إشارة الشراء تعني أن السوق قد يبدأ في الاتجاه الصاعد، حيث يتجاوز المتوسط المتحرك القصير (الذي يعكس تحركات الأسعار على المدى القصير) المتوسط المتحرك الطويل (الذي يعكس الاتجاه العام).
إشارة البيع تعني أن السوق قد يبدأ في الاتجاه الهابط، حيث يبدأ المتوسط المتحرك القصير في الهبوط تحت المتوسط المتحرك الطويل.
ملحوظة: يمكن تعديل الفترات الزمنية للمتوسطات المتحركة حسب التفضيلات الشخصية أو استراتيجية التداول التي تستخدمها.
EMA + Stochastic Strategy (day trading)Setup Instructions
Exponential Moving Averages (EMA):
Use two EMAs:
50-period EMA for the overall trend.
20-period EMA for shorter-term movements.
Trend Confirmation:
If the 20 EMA is above the 50 EMA, focus on buy opportunities.
If the 20 EMA is below the 50 EMA, focus on sell opportunities.
Stochastic Oscillator:
Set Stochastic to a 14, 3, 3 period (default).
Overbought level = 80; Oversold level = 20.
Look for crossovers:
Buy: Stochastic %K crosses above %D in the oversold zone (below 20).
Sell: Stochastic %K crosses below %D in the overbought zone (above 80).
Entry and Exit Rules
Buy Signal:
The 20 EMA is above the 50 EMA, confirming an uptrend.
The Stochastic Oscillator is in the oversold zone (below 20), and %K crosses above %D.
Enter when the price retraces to and bounces off the 20 EMA in the direction of the trend.
Sell Signal:
The 20 EMA is below the 50 EMA, confirming a downtrend.
The Stochastic Oscillator is in the overbought zone (above 80), and %K crosses below %D.
Enter when the price retraces to and rejects off the 20 EMA in the direction of the trend.
Stop Loss and Take Profit
Stop Loss:
For buy trades: Place the stop loss below the recent swing low.
For sell trades: Place the stop loss above the recent swing high.
Take Profit:
Use a risk-to-reward ratio of 1:2 or higher.
Alternatively, exit the trade when Stochastic reaches the opposite extreme (80 for buys, 20 for sells).
Example
Scenario: GBP/USD on a 15-minute chart.
The 20 EMA is above the 50 EMA, indicating an uptrend.
The Stochastic Oscillator dips below 20, and %K crosses above %D.
Enter a buy trade when the price bounces off the 20 EMA.
Place a stop loss below the nearest swing low and a take profit at twice the risk.
Tips for Success
Avoid Choppy Markets: Ensure the EMAs are diverging, and there’s a clear trend.
Use Stochastic for Confirmation: Only take trades when the Stochastic Oscillator aligns with the EMA trend.
Combine with Price Action:
Watch for candlestick patterns (e.g., pin bars, engulfing candles) near the 20 EMA for additional confirmation.
Practice Discipline: Stick to your stop-loss and take-profit rules.
BTC Scalp 003echnical Indicators:
EMAs: 50-period and 200-period Exponential Moving Averages to identify trend direction.
Bollinger Bands: 20-period SMA with standard deviation to gauge volatility.
RSI: 14-period Relative Strength Index to detect overbought or oversold conditions.
MACD: Moving Average Convergence Divergence for momentum assessment.
Volume: Current volume and its 20-period moving average to confirm trade signals.
BTC Scalp 003echnical Indicators:
EMAs: 50-period and 200-period Exponential Moving Averages to identify trend direction.
Bollinger Bands: 20-period SMA with standard deviation to gauge volatility.
RSI: 14-period Relative Strength Index to detect overbought or oversold conditions.
MACD: Moving Average Convergence Divergence for momentum assessment.
Volume: Current volume and its 20-period moving average to confirm trade signals.
BTC Scalp 003echnical Indicators:
EMAs: 50-period and 200-period Exponential Moving Averages to identify trend direction.
Bollinger Bands: 20-period SMA with standard deviation to gauge volatility.
RSI: 14-period Relative Strength Index to detect overbought or oversold conditions.
MACD: Moving Average Convergence Divergence for momentum assessment.
Volume: Current volume and its 20-period moving average to confirm trade signals.
Configurable EMAPlots four configurable exponential moving averages to get a better understanding of stock momentum shift.
Bitcoin Reversal PredictorOverview
This indicator displays two lines that, when they cross, signal a potential reversal in Bitcoin's price trend. Historically, the high or low of a bull market cycle often occurs near the moment these lines intersect. The lines consist of an Exponential Moving Average (EMA) and a logarithmic regression line fitted to all of Bitcoin's historical data.
Inspiration
The inspiration for this indicator came from the PI Cycle Top indicator, which has accurately predicted past bull market peaks. However, I believe the PI Cycle Top indicator may not be as effective in the future. In that indicator, two lines cross to mark the top, but the extent of the cross has been diminishing over time. This was especially noticeable in the 2021 cycle, where the lines barely crossed. Because of this, I created a new indicator that I think will continue to provide reliable reversal signals in the future.
How It Works
The logarithmic regression line is fitted to the Bitcoin (BTCUSD) chart using two key factors: the 'a' factor (slope) and the 'b' factor (intercept). This results in a steadily decreasing line. The EMA oscillates above and below this regression line. Each time the two lines cross, a vertical colored bar appears, indicating that Bitcoin's price momentum is likely to reverse.
Use Cases
- Price Bottoming:
Bitcoin often bottoms out when the EMA crosses below the logarithmic regression line.
- Price Topping:
In contrast, Bitcoin often peaks when the EMA crosses above the logarithmic regression line.
- Profitable Strategy:
Trading at the crossovers of these lines can be a profitable strategy, as these moments often signal significant price reversals.
Multiple Moving AveragesConfigurable day moving averages with flexibility to choose simple or exponential type
EMA5 and EMA120 CrossoverBuy/Sell Signals:
Buy Signal: EMA5 crosses EMA120 from below.
Sell Signal: EMA5 crosses EMA120 from above.
Signals are displayed as up (BUY) and down (SELL) arrows on the chart.
Only for the Nasdaq 100 and S&P 500 indices.
Use only on 1m and 5m Timeframes.
RCS Trend FollowingIndicador seguidor de tendência usando médias móveis mais coloração do fundo para indicar direção do mercado.
Tanto médias quanto os fundos são pintados de acordo com a tendência.
IU Higher Timeframe MA Cross StrategyIU Higher Timeframe MA Cross Strategy
The IU Higher Timeframe MA Cross Strategy is a versatile trading tool designed to identify trend by utilizing two customizable moving averages (MAs) across different timeframes and types. This strategy includes detailed entry and exit rules with fully configurable inputs, offering flexibility to suit various trading styles.
Key Features:
- Two moving averages (MA1 and MA2) with customizable types, lengths, sources, and timeframes.
- Both long and short trade setups based on MA crossovers.
- Integrated risk management with adjustable stop-loss and take-profit levels based on a user-defined risk-to-reward (RTR) ratio.
- Clear visualization of MAs, entry points, stop-loss, and take-profit zones.
Inputs:
1. Risk-to-Reward Ratio (RTR):
- Defines the take-profit level in relation to the stop-loss distance. Default is 2.
2. MA1 Settings:
- Source: Select the data source for calculating MA1 (e.g., close, open, high, low). Default is close.
- Timeframe: Specify the timeframe for MA1 calculation. Default is 60 (60-minute chart).
- Length: Set the lookback period for MA1 calculation. Default is 20.
- Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.
- Smooth: Option to enable or disable smoothing of MA1 to merge gaps. Default is true.
3. MA2 Settings:
- Source: Select the data source for calculating MA2 (e.g., close, open, high, low). Default is close.
- Timeframe: Specify the timeframe for MA2 calculation. Default is 60 (60-minute chart).
- Length: Set the lookback period for MA2 calculation. Default is 50.
- Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.
- Smooth: Option to enable or disable smoothing of MA2 to merge gaps. Default is true.
Entry Rules:
- Long Entry:
- Triggered when MA1 crosses above MA2 (crossover).
- Entry is confirmed only when the bar is closed and no existing position is active.
- Short Entry:
- Triggered when MA1 crosses below MA2 (crossunder).
- Entry is confirmed only when the bar is closed and no existing position is active.
Exit Rules:
- Stop-Loss:
- For long positions: Set at the low of the bar preceding the entry.
- For short positions: Set at the high of the bar preceding the entry.
- Take-Profit:
- For long positions: Calculated as (Entry Price - Stop-Loss) * RTR + Entry Price.
- For short positions: Calculated as Entry Price - (Stop-Loss - Entry Price) * RTR.
Visualization:
- Plots MA1 and MA2 on the chart with distinct colors for easy identification.
- Highlights stop-loss and take-profit levels using shaded zones for clear visual representation.
- Displays the entry level for active positions.
This strategy provides a robust framework for traders to identify and act on trend reversals while maintaining strict risk management. The flexibility of its inputs allows for seamless customization to adapt to various market conditions and trading preferences.
HOD/LOD/PMH/PML/PDH/PDL Strategy by @tradingbauhaus This script is a trading strategy @tradingbauhaus designed to trade based on key price levels, such as the High of Day (HOD), Low of Day (LOD), Premarket High (PMH), Premarket Low (PML), Previous Day High (PDH), and Previous Day Low (PDL). Below, I’ll explain in detail what the script does:
Core Functionality of the Script:
Calculates Key Price Levels:
HOD (High of Day): The highest price of the current day.
LOD (Low of Day): The lowest price of the current day.
PMH (Premarket High): The highest price during the premarket session (before the market opens).
PML (Premarket Low): The lowest price during the premarket session.
PDH (Previous Day High): The highest price of the previous day.
PDL (Previous Day Low): The lowest price of the previous day.
Draws Horizontal Lines on the Chart:
Plots horizontal lines on the chart for each key level (HOD, LOD, PMH, PML, PDH, PDL) with specific colors for easy visual identification.
Defines Entry and Exit Rules:
Long Entry (Buy): If the price crosses above the PMH (Premarket High) or the PDH (Previous Day High).
Short Entry (Sell): If the price crosses below the PML (Premarket Low) or the PDL (Previous Day Low).
Long Exit: If the price reaches the HOD (High of Day) during a long position.
Short Exit: If the price reaches the LOD (Low of Day) during a short position.
How the Script Works Step by Step:
Calculates Key Levels:
Uses the request.security function to fetch the HOD and LOD of the current day, as well as the highs and lows of the previous day (PDH and PDL).
Calculates the PMH and PML during the premarket session (before 9:30 AM).
Plots Levels on the Chart:
Uses the plot function to draw horizontal lines on the chart representing the key levels (HOD, LOD, PMH, PML, PDH, PDL).
Each level has a specific color for easy identification:
HOD: White.
LOD: Purple.
PDH: Orange.
PDL: Blue.
PMH: Green.
PML: Red.
Defines Trading Rules:
Uses conditions with ta.crossover and ta.crossunder to detect when the price crosses key levels.
Long Entry: If the price crosses above the PMH or PDH, a long position (buy) is opened.
Short Entry: If the price crosses below the PML or PDL, a short position (sell) is opened.
Long Exit: If the price reaches the HOD during a long position, the position is closed.
Short Exit: If the price reaches the LOD during a short position, the position is closed.
Executes Orders Automatically:
Uses the strategy.entry and strategy.close functions to open and close positions automatically based on the defined rules.
Advantages of This Strategy:
Based on Key Levels: Uses important price levels that often act as support and resistance.
Easy to Visualize: Horizontal lines on the chart make it easy to identify levels.
Automated: Entries and exits are executed automatically based on the defined rules.
Limitations of This Strategy:
Dependent on Volatility: Works best in markets with significant price movements.
False Crosses: There may be false crosses that generate incorrect signals.
No Advanced Risk Management: Does not include dynamic stop-loss or take-profit mechanisms.
How to Improve the Strategy:
Add Stop-Loss and Take-Profit: To limit losses and lock in profits.
Filter Signals with Indicators: Use RSI, MACD, or other indicators to confirm signals.
Optimize Levels: Adjust key levels based on the asset’s behavior.
In summary, this script is a trading strategy that operates based on key price levels, such as HOD, LOD, PMH, PML, PDH, and PDL. It is useful for traders who want to trade based on significant support and resistance levels.