13, 21, 34 SMAs tradewithshamincluded 13,21 and 34 simple moving average for swing trade. use it in day candle
指標和策略
EMA/RMA clouds by AlpachinoRE-UPLOAD
The indicator is designed for faster trend determination and also provides hints about whether the trend is strong, weaker, or if a range is expected.
It consists of an exponential moving average (EMA) and a slower smoothed moving average (RMA). I chose these because EMA is the fastest and is respected by the market, while I discovered through practice that the market often respects RMA, and in some cases, even more than EMA. Their combination is necessary because I want to take advantage of the best qualities of both averages. Displaying averages based solely on the close values creates a simple line that the market might respect. However, this is often not the case. Market makers know that many traders still believe in the theory that closing above/below an EMA signals a valid new trend. They commonly apply this belief to EMA200. Traders think that if the market closes below EMA, it signals a downtrend. That’s not necessarily true. This misconception often traps inexperienced traders.
For this reason, my indicator does not include a separate line.
I use what are called envelopes. In other words, for both EMA and RMA, the calculation uses the high and low of the selected period, which can be chosen as an input in the indicator.
Why did I choose high and low?
To stabilize price fluctuations as much as possible, especially to allow enough space for the price to react to the moving average. This reaction occurs precisely between the high and low.
Modes:
EMA Cloud – This is the most common envelope in terms of averages. It shows the best reactions with a period of 50.
What should you observe: the alignment of the envelope or its slope.
Usage:
Breakouts through the entire envelope tend to be strong, which signals that the trend may change. However, what interests you most is that the first test of the envelope after a breakout is the most successful entry point for trades in the breakout direction.
In an uptrend, the first support will be the high of the envelope, and the second (let’s call it the "ultimate support") will be the low of the envelope.
If, during an uptrend, the market closes below the low, be cautious, as the trend may reverse.
If the envelope is broken, trade the retest of the envelope.
In general, if the price is above the envelope, focus on long trades; if it’s below the envelope, focus on short trades.
Double Cloud – Since we already know that highs and lows are more relevant for price respect, I utilized this in the double cloud. Here, I use calculations for EMA and RMA highs and EMA and RMA lows.
The core idea is that since the price often reacts more to RMA than EMA, I wanted to eliminate attempts by market makers to lure you into incorrect directions. By creating more space for the price to react to the highs or lows, I made the cloud fill the area between EMA and RMA highs. This serves as the last zone where the price can hold. If the price breaks above this high cloud during a return, this doesn’t happen randomly—you should pay attention, as it’s likely signaling a range or a trend change.
The same applies to the low cloud for EMA and RMA.
The advantage of the double cloud is that you can see two clouds that may move sideways. This can resemble two walls—and they really act as such.
Usage:
Let’s say we have a downtrend. The market seems to be experiencing a downtrend exhaustion. Here's the behavior you might observe:
The price returns to the EMA/RMA low; the first reaction may still have some strength, but each subsequent return will move higher and higher into the cloud with increasingly smaller rejections downward. This indicates the absorption of selling pressure by bullish pressure. Eventually, the price may close above the cloud, significantly disrupting the downtrend and potentially signaling a reversal.
A confirmation of the reversal is usually seen with a retest of the cloud and a bounce upward into an uptrend.
The second scenario, which you’ll often see, involves sharp and significant moves through both envelopes. This kind of move is the strongest signal of a trend change. However, do not jump into trades immediately—wait for the first retest, which is usually successful. Additional tests may not work, as the breakout might not signify a trend change but rather a range.
When the clouds are far apart, it signals a weak trend or that the market is in a range. You will see that this is generally true. When the clouds cross or overlap, their initial point of contact signals the start of a stronger trend. The steeper the slope, the stronger the trend.
Kagan Daily EMAsThis script plots daily EMAs (5, 8, 13, 21, 34, 55, 89, 144, 233) on any chart, making it perfect for multi-timeframe analysis. You can toggle each EMA on or off and apply optional smoothing to reduce noise. By displaying higher-timeframe daily trends over your current timeframe, you gain quick insight into major support/resistance zones and the broader market context, all in one place.
RelVolRelative Volume is an indicator of current volume divided by average volume over the lats 10 candle sticks.
Percentage Calculator by Akshay GaurThis indicator calculates and displays percentage levels above and below the current price. It allows you to easily identify any percentage levels which can be used in many things like creating strangles and straddles and make informed trading decisions. The indicator automatically adjusts and redraws the lines and labels on the latest bar to reflect real-time market conditions.
Key Features:
• Calculates percentage levels above and below the current price
• Displays percentage levels on big labels with the horizontal lines on the chart
• Allows you to adjust the percentage value and every details.
• Allows you to see Fluctuation line on the chart.
How to Use:
1. Set the percentage value to the desired level (e.g. 1%, 2%, etc.)
2. If you want to see Fluctuation lines also then turn on it from Input settings.
3. Use the displayed levels to identify desired percentage levels.
4. Make informed trading decisions based on the calculated levels
percentage near moving averageit alert percentage near any moving average. now we can get some alert when price is near that moving average
Dinesh 7 EMAits a indicator for 7 moving average . it show 5 , 10 ,21, 50 , 100, 150 and 200 moving average
Буллтренд ололоsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
RSI & EMA Buy/Sell SignalsSimple RSI & EMA Buy/Sell Signals
target buy sell in 15 timeframe follow trend movement
Relative Strength Index with MA Strategy [QuocMinhOfficial}Giải thích các thay đổi:
Định nghĩa Tín hiệu Mua (Buy) và Bán (Sell):
Buy: Sử dụng hàm Cross(rsiMA2, rsiMA3) để xác định khi đường RSI MA2 cắt lên trên đường RSI MA3.
Sell: Sử dụng hàm Cross(rsiMA3, rsiMA2) để xác định khi đường RSI MA2 cắt xuống dưới đường RSI MA3.
Điều chỉnh Filter:
Ban đầu, trong code của bạn có Filter = Buy AND Sell; điều này luôn luôn sai vì một giao dịch không thể vừa mua vừa bán cùng một lúc. Thay vào đó, chúng ta sử dụng Filter = Buy OR Sell; để lọc các giao dịch mua và bán riêng biệt.
Thêm Các Cột Hiển Thị (Tu yong):
Sử dụng AddColumn để hiển thị các giá trị RSI và các đường MA tương ứng trong kết quả backtest, giúp bạn dễ dàng theo dõi và phân tích.
Ghi chú:
Nếu bạn muốn thêm các điều kiện bổ sung cho tín hiệu mua bán (ví dụ: chỉ mua khi RSI trên 50), bạn có thể kết hợp các điều kiện bằng toán tử AND hoặc OR như trong ví dụ đã thêm.
Hãy đảm bảo rằng bạn kiểm tra lại logic và kết quả backtest để xác nhận rằng tín hiệu mua bán hoạt động như mong đợi.
Scalping asuuini buat scalping ya rencang rencang, jadi ini saya buat agar memudahkan ketika scalping, digunakan time frame 1, 5. dan 15 untuk tren arah
Implied and Historical VolatilityAbstract
This TradingView indicator visualizes implied volatility (IV) derived from the VIX index and historical volatility (HV) computed from past price data of the S&P 500 (or any selected asset). It enables users to compare market participants' forward-looking volatility expectations (via VIX) with realized past volatility (via historical returns). Such comparisons are pivotal in identifying risk sentiment, volatility regimes, and potential mispricing in derivatives.
Functionality
Implied Volatility (IV):
The implied volatility is extracted from the VIX index, often referred to as the "fear gauge." The VIX represents the market's expectation of 30-day forward volatility, derived from options pricing on the S&P 500. Higher values of VIX indicate increased uncertainty and risk aversion (Whaley, 2000).
Historical Volatility (HV):
The historical volatility is calculated using the standard deviation of logarithmic returns over a user-defined period (default: 20 trading days). The result is annualized using a scaling factor (default: 252 trading days). Historical volatility represents the asset's past price fluctuation intensity, often used as a benchmark for realized risk (Hull, 2018).
Dynamic Background Visualization:
A dynamic background is used to highlight the relationship between IV and HV:
Yellow background: Implied volatility exceeds historical volatility, signaling elevated market expectations relative to past realized risk.
Blue background: Historical volatility exceeds implied volatility, suggesting the market might be underestimating future uncertainty.
Use Cases
Options Pricing and Trading:
The disparity between IV and HV provides insights into whether options are over- or underpriced. For example, when IV is significantly higher than HV, options traders might consider selling volatility-based derivatives to capitalize on elevated premiums (Natenberg, 1994).
Market Sentiment Analysis:
Implied volatility is often used as a proxy for market sentiment. Comparing IV to HV can help identify whether the market is overly optimistic or pessimistic about future risks.
Risk Management:
Institutional and retail investors alike use volatility measures to adjust portfolio risk exposure. Periods of high implied or historical volatility might necessitate rebalancing strategies to mitigate potential drawdowns (Campbell et al., 2001).
Volatility Trading Strategies:
Traders employing volatility arbitrage can benefit from understanding the IV/HV relationship. Strategies such as "long gamma" positions (buying options when IV < HV) or "short gamma" (selling options when IV > HV) are directly informed by these metrics.
Scientific Basis
The indicator leverages established financial principles:
Implied Volatility: Derived from the Black-Scholes-Merton model, implied volatility reflects the market's aggregate expectation of future price fluctuations (Black & Scholes, 1973).
Historical Volatility: Computed as the realized standard deviation of asset returns, historical volatility measures the intensity of past price movements, forming the basis for risk quantification (Jorion, 2007).
Behavioral Implications: IV often deviates from HV due to behavioral biases such as risk aversion and herding, creating opportunities for arbitrage (Baker & Wurgler, 2007).
Practical Considerations
Input Flexibility: Users can modify the length of the HV calculation and the annualization factor to suit specific markets or instruments.
Market Selection: The default ticker for implied volatility is the VIX (CBOE:VIX), but other volatility indices can be substituted for assets outside the S&P 500.
Data Frequency: This indicator is most effective on daily charts, as VIX data typically updates at a daily frequency.
Limitations
Implied volatility reflects the market's consensus but does not guarantee future accuracy, as it is subject to rapid adjustments based on news or events.
Historical volatility assumes a stationary distribution of returns, which might not hold during structural breaks or crises (Engle, 1982).
References
Black, F., & Scholes, M. (1973). "The Pricing of Options and Corporate Liabilities." Journal of Political Economy, 81(3), 637-654.
Whaley, R. E. (2000). "The Investor Fear Gauge." The Journal of Portfolio Management, 26(3), 12-17.
Hull, J. C. (2018). Options, Futures, and Other Derivatives. Pearson Education.
Natenberg, S. (1994). Option Volatility and Pricing: Advanced Trading Strategies and Techniques. McGraw-Hill.
Campbell, J. Y., Lo, A. W., & MacKinlay, A. C. (2001). The Econometrics of Financial Markets. Princeton University Press.
Jorion, P. (2007). Value at Risk: The New Benchmark for Managing Financial Risk. McGraw-Hill.
Baker, M., & Wurgler, J. (2007). "Investor Sentiment in the Stock Market." Journal of Economic Perspectives, 21(2), 129-151.
MTF Supertrend and RSI momentum Trendmultiple super trend combine with RSI direction for confirmation
combined MTF Supertrend and RSI Momentum Trend from Tzack88
Thanks and credit to original developers
Doji NattawatSure! Here's a detailed explanation of the Pine Script code in English. This code is designed to detect Doji candles, draw horizontal lines at the open and close prices of these candles, and display the price values near those lines.
RSI & Williams %R StrategyRSI 14 is calculated using the default rsi formula.
RSI's Moving Average is calculated using a simple moving average (default length is 7 but adjustable).
Williams %R is calculated over the specified length (default is 14).
Buy Signal:
RSI crosses above its moving average.
Williams %R crosses above the -80 level.
Sell Signal:
RSI crosses below its moving average.
Williams %R crosses below the -20 level.
Visual Indicators:
Green upward labels for buy signals.
Red downward labels for sell signals.
Williams %R and RSI are plotted for better visualization with threshold levels.
Moving average densityMoving average density,This is a method of using SMA and EMA moving averages to determine the direction of price rise and fall.
Trading TimesThis script is based on the 9 and 20 EMA Strategy and combines Fibonacci Levels for added confluence.
When the price retests after breaking the EMAs, we take the trade in the same direction. That is on breakup, we take a long and on a breakdown we take a short.
VWAP can be enabled from settings for more data. institutions use it to average out their trades for both buy and sell orders.
Sag MacdThe main change in this code is the src variable. Instead of using an input for the source, it now calculates the 14-period RSI of the close price:
text
src = ta.rsi(close, 14)
This modification means that the MACD indicator will now be based on the RSI values rather than the original price data. The RSI is calculated using the default period of 14, which is a commonly used setting.
The rest of the code remains the same, applying the MACD calculations to the RSI values. This will result in a MACD indicator that reflects the momentum of the RSI rather than the price directly, potentially providing different insights into the market dynamics
Volume-Based RSI Color Indicator with MAsVolume-Based RSI Color Indicator with MAs
Overview
This script combines the Relative Strength Index (RSI) with volume analysis to provide an enhanced perspective on market conditions. By dynamically coloring the RSI line based on overbought/oversold conditions and volume thresholds, this indicator helps traders quickly identify high-probability reversal zones. Additionally, it incorporates short-term and long-term moving averages (MAs) of the RSI for trend analysis, making it a versatile tool for scalping and swing trading strategies.
Key Features
Dynamic RSI Color Coding:
The RSI line changes color based on two conditions:
Overbought/High Volume: RSI is above the overbought threshold (default: 70) and volume exceeds the average volume by a user-defined multiplier (default: 2.0). The line turns red, indicating potential reversal zones.
Oversold/High Volume: RSI is below the oversold threshold (default: 30) and volume exceeds the average volume by the multiplier. The line turns green, suggesting potential buying opportunities.
Neutral Conditions: Default blue color for all other scenarios.
Volume Integration:
Unlike standard RSI indicators, this script incorporates volume data to refine signals, helping traders avoid false signals in low-volume environments.
RSI Moving Averages:
Two moving averages of the RSI (short-term and long-term) provide trend context:
200-period MA: Highlights the long-term trend in RSI values.
20-period MA: Shows short-term fluctuations for quick decision-making.
Both MAs can be calculated using Simple or Exponential methods, giving users flexibility.
Visual Aids:
Horizontal lines at the overbought (70) and oversold (30) levels help define the boundaries of expected price action extremes.
How It Works
The script calculates the RSI over a user-defined length (default: 14).
Volume data is compared to its moving average to determine if it exceeds the user-defined high-volume threshold.
When RSI and volume conditions align, the RSI line is dynamically colored to indicate potential overbought/oversold zones.
The RSI moving averages provide additional context to confirm trends or reversals.
How to Use
Identify Reversal Zones:
Look for green RSI signals in oversold conditions to identify potential buying opportunities.
Look for red RSI signals in overbought conditions to identify potential selling opportunities.
Use Moving Averages for Confirmation:
When the RSI is above its 200-period MA, the long-term trend is bullish; consider only long trades.
When the RSI is below its 200-period MA, the trend is bearish; consider only short trades.
Combine with Other Tools:
This indicator works best when used alongside price action analysis, candlestick patterns, or support/resistance levels.
Originality
This script is unique in combining volume analysis with RSI and RSI-specific moving averages. While many indicators focus on RSI or volume separately, this script marries these two key metrics to filter out weak signals and improve trade decision accuracy.
Chart Recommendations
Clean Chart: Use this indicator on a clean chart without additional overlays for maximum clarity.
Timeframes: Works well on intraday charts (e.g., 5m, 15m) for scalping and on higher timeframes (e.g., 1H, 4H, Daily) for swing trading.
Disclaimer
This indicator is a tool to aid trading decisions and should not be used in isolation. Always consider other factors such as market conditions, news events, and risk management.