kaspa rainbow fib level KASPAPERO COPYPlease visit the original open source author script : Kaspapero
"This indicator, called RainbowChart, displays the Fair Value and multiple colored bands based on Fibonacci levels.
Key Features:
Fair Value:
A central line that represents the fair value of the asset.
The Fair Value is calculated using a regression model with two parameters: ln(a) and b. These parameters can be adjusted to fine-tune the model according to your needs.
Colored Bands:
Eight colored bands calculated as multiples of the Fair Value.
Each band's visibility can be toggled on or off according to user preferences.
Additionally, four customizable bands are available (disabled by default), allowing users to modify their multiplicative factors and colors for enhanced personalization."
المؤشرات والاستراتيجيات
3x Supertrend (for Vietnamese stock market and vn30f1m)The 4Vietnamese 3x Supertrend Strategy is an advanced trend-following trading system developed in Pine Script™ and designed for publication on TradingView as an open-source strategy under the Mozilla Public License 2.0. This strategy leverages three Supertrend indicators with different ATR lengths and multipliers to identify optimal trade entries and exits while dynamically managing risk.
Key Features:
Option to build and hold long term positions with entry stop order. Try this to avoid market complex movement and retain long term investment style's benefits.
Advanced Entry & Exit Optimization: Includes configurable stop-loss mechanisms, pyramiding, and exit conditions tailored for different market scenarios.
Dynamic Risk Management: Implements features like selective stop-loss activation, trade window settings, and closing conditions based on trend reversals and loss management.
This strategy is particularly suited for traders seeking a systematic and rule-based approach to trend trading. By making it open-source, we aim to provide transparency, encourage community collaboration, and help traders refine and optimize their strategies for better performance.
License:
This script is released under the Mozilla Public License 2.0, allowing modifications and redistribution while maintaining open-source integrity.
Happy trading!
Breaks and Retests with MA Filter (SMA/EMA)This indicator is designed to identify breakouts at support and resistance levels, incorporating a Moving Average (MA) filter for further validation of the breakout conditions. Here's a brief explanation of the script:
Key Features:
Moving Average (MA) Filter:
Users can choose between two types of moving averages:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
The length of the selected MA can also be customized.
The script uses the MA to filter breakouts:
Bullish Breakout: A bullish breakout occurs when the price crosses above the resistance level, but the price must also be above the MA.
Bearish Breakout: A bearish breakout occurs when the price crosses below the support level, but the price must be below the MA.
Support and Resistance Levels:
Support is determined by the pivot lows (local minimum points) and Resistance is determined by the pivot highs (local maximum points) over a user-defined lookback range.
These levels are represented as boxes on the chart for easy visualization.
Breakout Detection:
The script detects when the price breaks above the resistance level (bullish breakout) or below the support level (bearish breakout).
The breakout conditions are validated using the selected Moving Average filter.
When a breakout occurs, a label is placed on the chart to mark the event ("Resistance Breakout" or "Support Breakout").
Alerts:
The script includes several alert conditions:
New Support Level (when a new support is identified)
New Resistance Level (when a new resistance is identified)
Resistance Breakout (when price breaks above resistance and MA filter is met)
Support Breakout (when price breaks below support and MA filter is met)
Alerts can be customized based on these conditions.
Conclusion:
This indicator helps traders by marking breakout points in the market with extra confirmation from a Moving Average filter, ensuring that breakouts occur in the direction of the trend. Traders can also get notified of these breakouts with customizable alerts, enhancing the decision-making process.
RSI/MACD Momentum Scalper TableThe RSI/MACD Momentum Scalper Table is a powerful technical analysis tool that evaluates market momentum across multiple timeframes using the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) . It displays a table with different timeframes, allowing traders to quickly assess trend strength and direction.
Why This Indicator is Unique
- Multi-Timeframe Analysis: Unlike traditional RSI/MACD indicators that only apply to a single timeframe, this indicator tracks trends across five customizable timeframes.
- Dynamic Color-Coding: The table updates in real-time, showing green for bullish momentum, red for bearish, and gray for neutral conditions.
- Customizable Moving Averages: Users can choose between EMA, DEMA, and HMA, providing flexibility in trend detection.
- Adjustable Positioning: The table can be placed in any corner of the chart using the **position input setting**.
Why This Indicator is Useful
- Quick Market Overview: Instantly see whether multiple timeframes align for a strong trend.
- Scalping & Swing Trading Support: Helps scalpers and swing traders identify optimal entry and exit points.
- Versatility: Can be applied to stocks, forex, crypto, and other financial instruments.
How to Use It
1. Set Timeframes: Choose up to five timeframes to monitor momentum.
2. Customize Trend Settings: Adjust RSI length, MACD settings, and moving average type.
3. Interpret the Table:
- Green cells indicate a bullish trend.
- Red cells indicate a bearish trend.
- Gray cells suggest neutral momentum.
4. Adjust Table Position: Move the table to a preferred location using the Table position input.
This indicator is ideal for traders who need a **quick and efficient** way to track market momentum across different timeframes. 🚀
b1r1nc1 - AI Trade Strategy v1RSI Entry Logic
In this script, you are going long when RSI crosses under 30. This means RSI has just moved below 30 from above (i.e., entering oversold territory). Typically, some traders prefer going long when RSI crosses above 30 (rebound from oversold). Your approach is contrarian—entering as soon as RSI becomes oversold. That may be intentional, but make sure it aligns with your trading logic.
Exit Logic
Similarly, you exit a long either when RSI crosses above 50 or the trend flips to bearish. You may want to experiment with different thresholds (e.g., RSI crossing back above 30 or 40) to see which performs best historically.
Stop/Take Profit
You used strategy.exit() with stop and limit parameters. This will submit both orders (stop and limit) at once. If you prefer the built-in stop_loss or profit_target approach, you could replace them. Both work well; it’s personal preference.
If you want to see your stop and TP lines drawn on the chart, you can use the optional plot(...) statements. They’ll appear only for active positions.
Trend Definition
You’re using a simple 50/200 SMA cross to define bullish/bearish. That’s a classic approach, but you can also experiment with EMAs or different lengths (e.g., 20/50 or 20/100) to find a better fit for your market or timeframe.
Date Range
The date range is set from 2018 to 2069, which is quite wide. It’s perfectly fine, but if your backtests only go so far, you can tighten those timestamps as needed.
Performance & Optimization
If you plan on heavily optimizing (e.g., searching for the best RSI length, ATR multipliers, etc.), you can expose them as inputs and run TradingView’s strategy tester optimizations. It helps to keep code clean and ensure each parameter is an input for easier tweaking.
Дивергенции Как этот скрипт будет отображаться на графике
1. Медвежьи дивергенции:
• Когда цена достигает нового максимума (обозначается стрелкой вниз с красным цветом), но RSI не подтверждает это движение (падает), вы увидите красную метку “🔻” над соответствующей свечой.
2. Бычьи дивергенции:
• Когда цена достигает нового минимума (обозначается стрелкой вверх с зеленым цветом), но RSI не подтверждает это движение (растет), вы увидите зеленую метку “🔺” под соответствующей свечой.
3. RSI:
• Индикатор RSI будет отображаться в отдельной панели под основным графиком. На этой панели будут горизонтальные линии для уровней перекупленности (70) и перепроданности (30).
BoqorreIndicator: Yesterday's High/Low Only
This custom TradingView indicator visually marks the high and low of the previous trading day on your chart, providing a clear reference for market conditions. It displays two key levels:
Yesterday's High (Green Line): Representing the highest price reached during the previous day, this level can often act as a resistance point.
Yesterday's Low (Red Line): Showing the lowest price of the previous day, this level may act as a support area.
Key Features:
Lines: The indicator draws dotted lines that extend to the right by 72 bars and infinitely to the left, making it easy to track these important levels.
Labels: Labels are placed directly at the high and low levels to give immediate clarity. The "Yesterday's High" label appears above the green line, while the "Yesterday's Low" label appears beneath the red line.
Previous Daily High/Low Labels: Additional labels are placed for both the previous daily high and low, positioned slightly above and below the respective lines for further clarity and context.
Benefits:
Helps traders identify key support and resistance zones based on the previous day's price action.
Improves technical analysis by visually marking significant price levels, making it easier to spot potential breakout or breakdown points.
The indicator is automatically updated daily, and the lines are drawn dynamically as soon as a new trading day begins.
Whether you're looking to track market movements, identify potential reversal points, or just need a reference for market structure, this indicator will add value to your charting setup
B!!7 wtf dp want itis not midne am dtired cant spellIf I rejected or deleted your annotation, it’s nothing personal. Just doing my job and keeping up with the current Genius standards. Please do not send me angry messages, demanding to know why your annotation was deleted, otherwise, you will be ignored and action may be taken on your account. Send me a constructive and calm message, then we can talk.
Multi-Timeframe Moving Averages by SPThis script is designed to provide traders with a comprehensive view of moving averages across multiple timeframes and types. It allows you to overlay moving averages from different timeframes (e.g., 5-minute, 15-minute, 60-minute, daily) on your current chart, along with customizable moving averages for the current timeframe. The script supports 7 types of moving averages (SMA, EMA, WMA, Hull MA, VWMA, RMA, TEMA) and includes features like color-coded direction, cross signals, and optional secondary moving averages for advanced analysis.
Key Features
Customizable Moving Averages:
Choose from 7 types of moving averages (SMA, EMA, WMA, Hull MA, VWMA, RMA, TEMA).
Adjust the lookback period for each moving average.
Multi-Timeframe Support:
Overlay moving averages from higher timeframes (e.g., 5-minute, 15-minute, 60-minute, daily) on your current chart.
Color-Coded Direction:
Moving averages change color based on their direction (upward or downward) for easy trend identification.
Optional Secondary Moving Average:
Add a second moving average to identify crossovers and potential trading signals.
Cross Signals:
Visual dots or crosses appear when the primary and secondary moving averages cross, signaling potential entry or exit points.
VWAP Integration:
Includes the Volume-Weighted Average Price (VWAP) for additional context.
User Instructions
Inputs to Configure:
Primary Moving Average:
Set the Moving Average Length (lookback period).
Choose the type of moving average (1=SMA, 2=EMA, 3=WMA, 4=Hull MA, 5=VWMA, 6=RMA, 7=TEMA).
Enable Change Color Based On Direction to visualize trend direction.
Secondary Moving Average (optional):
Enable the Optional 2nd Moving Average toggle.
Set the length and type for the second moving average.
Multi-Timeframe Moving Averages:
Configure the EMA lengths for 5-minute, 15-minute, 60-minute, and daily timeframes.
Cross Signals:
Enable Show Dots on Cross of Both MA's to display cross signals.
How to Use:
Trend Identification: Use the color-coded moving averages to identify the current trend direction.
Crossovers: Look for crossovers between the primary and secondary moving averages as potential entry or exit signals.
Multi-Timeframe Analysis: Observe how higher timeframe moving averages (e.g., daily) align with the current price action for confluence.
VWAP: Use the VWAP line to gauge intraday momentum and potential support/resistance levels.
Tips:
Combine this script with other indicators (e.g., RSI, MACD) for confirmation.
Use the cross signals in conjunction with higher timeframe trends for higher-probability trades.
Experiment with different moving average types and lengths to suit your trading style.
Example Use Cases
Trend Following: Use the primary moving average to identify the trend and the secondary moving average for confirmation.
Crossover Strategy: Enter trades when the primary moving average crosses above/below the secondary moving average.
Multi-Timeframe Analysis: Use the daily moving averages to identify long-term trends while using shorter timeframes for precise entries.
Notes
This script is highly customizable, so feel free to adjust the inputs to match your trading strategy.
Ensure you understand the strengths and limitations of each moving average type before relying on them for trading decisions.
EMA 10 y 55 + Perfil de Volumenindicador que se basa en el cruce de dos medias móviles las cuales al combinarse con la acción del precio mediante el volumen nos da como resultado excelentes entradas y una visión del punto de control y una mejor perspectiva de la dirección del precio
Enhanced Bollinger Bands Strategy with SL/TPThis Pine Script code implements a Bollinger Bands trading strategy with several enhancements:
strategy(...): Initializes the strategy with a name, sets it to overlay the chart, and includes a slippage parameter (set to 2 ticks) to simulate real-world trading conditions.
Input Parameters:
length: The period for calculating the Simple Moving Average (SMA) that forms the basis of the Bollinger Bands (default: 20).
mult: The standard deviation multiplier that determines the width of the bands (default: 2.0).
enableLong: A boolean (true/false) input to enable or disable long (buy) trades.
enableShort: A boolean input to enable or disable short (sell) trades.
pipValue: Crucially, this input defines the value of a single pip. This is essential for making the strategy work correctly across different currency pairs (e.g., USDJPY, EURUSD, GBPUSD) and even other instruments that don't use "pips" in the same way. For example, on USDJPY, a pip is usually 0.01, while on EURUSD it's 0.0001. The user must set this correctly for the instrument they are trading.
slPips: The stop-loss distance in pips.
tpPips: The take-profit distance in pips.
showBands: A boolean to control whether the Bollinger Bands are plotted on the chart.
showSignals: A boolean to control whether entry signals (triangles) are shown on the chart.
Bollinger Bands Calculation:
basis: Calculates the SMA of the closing price (close) over the specified length.
dev: Calculates the standard deviation of the closing price over the length, multiplied by mult.
upper: Calculates the upper Bollinger Band (SMA + standard deviation).
lower: Calculates the lower Bollinger Band (SMA - standard deviation).
Plotting (Visualization):
plot(showBands ? basis : na, ...): Plots the basis (SMA) line only if showBands is true. na prevents plotting when showBands is false.
u = plot(...), l = plot(...): Plots the upper and lower bands, and stores the plot objects in variables u and l. This is necessary for the fill function.
fill(u, l, ...): Fills the area between the upper and lower bands with a semi-transparent purple color.
Entry Conditions:
longCondition: A long entry signal is generated when the closing price crosses above the lower Bollinger Band and the closing price is above the lower band. The and enableLong part allows the user to disable long entries. The close > lower part makes it less susceptible to false signals.
shortCondition: A short entry signal is generated when the closing price crosses below the upper Bollinger Band and the closing price is below the upper band. The and enableShort part allows the user to disable short entries. The close < upper part makes it less susceptible to false signals.
Position Management (SL/TP Calculation):
calcSlPrice(price, isLong): A function that calculates the stop-loss price. It takes the entry price (price) and a boolean isLong (true for long positions, false for short positions) as input. It correctly uses the pipValue to convert pips to price.
calcTpPrice(price, isLong): A function that calculates the take-profit price, similar to calcSlPrice.
Entry & Exit Logic:
if longCondition: If the long entry condition is met:
strategy.entry("Long", strategy.long, limit=lower): Enters a long position using a limit order at the lower band. This helps to get a slightly better fill price.
strategy.exit("Long Exit", "Long", stop=..., limit=...): Sets a stop-loss and take-profit for the long position, using the calculated SL and TP prices.
if shortCondition: If the short entry condition is met:
strategy.entry("Short", strategy.short, limit=upper): Enters a short position using a limit order at the upper band.
strategy.exit("Short Exit", "Short", stop=..., limit=...): Sets a stop-loss and take-profit for the short position.
Signal Visualization:
plotshape(...): Plots a green upward-pointing triangle below the bar when a long entry signal occurs, and a red downward-pointing triangle above the bar when a short entry signal occurs. The showSignals input controls whether these are displayed.
Kutu Çizme GöstergesiDip ve Tepelerden dönüşleri yakalamaya yardımcı olabilecek bir kutu çizer. Geliştirme süreci devam etmektedir.
Valid H-L(Ichimoku Version)[Indicator-Chef]Live Movement form tenkan-sen and pasive form of other components before this signal!
This code is MTF and Multi Chart with Alarn!
Buy/Sell/Reversal with Support/Resistance & TrendlineIf the price is above the moving average and a bullish engulfing pattern forms, a BUY signal will appear.
If the price is below the moving average and a bearish engulfing pattern forms, a SELL signal will appear.
Swing Highs and Lows will be marked as RES and SUP, respectively.
Trendlines will be drawn between significant highs or lows.
High-Probability Sell Signal IndicatorThe code checks for a bearish RSI divergence on an overbought RSI, confirms high volume on the sell signal bar, and requires a bearish candlestick pattern (engulfing, dark cloud cover, or shooting star) to be present. When all conditions align on a confirmed daily bar close, it plots a “SELL” label above that bar and triggers an alert. This multifaceted approach – combining oscillator divergence, volume, and price action patterns – helps ensure the sell signals are high-probability and reduces the chance of false alarms
ATR as % of Price### **ATR as % of Price - TradingView Indicator**
📈 **Description:**
This indicator converts the **Average True Range (ATR)** into a **percentage of the closing price**, providing a clearer perspective on volatility relative to the stock’s price. Unlike the standard ATR, which is displayed in absolute price units (e.g., dollars), this version expresses ATR as a percentage, making it useful for comparing volatility across different stocks, ETFs, and crypto assets.
🔥 **Why Use This?**
- Easily compare volatility between stocks with different price levels.
- Identify high-volatility periods relative to a stock’s price.
- Adjust stop-loss and position sizing more effectively.
⚙️ **How It Works:**
- Calculates the **ATR** over a chosen period (default: 14).
- Divides ATR by the **closing price** and multiplies by **100** to get a percentage.
- Displays the result as a line chart.
🛠 **Customization:**
- Modify the **ATR length** in settings to match your trading style.
- Use in conjunction with support/resistance levels and moving averages for better trade decisions.
✅ **Ideal For:**
- Swing traders, day traders, and investors who want **relative volatility** insights.
- Stocks, forex, crypto, and commodities analysis.
🚀 **Try it now and enhance your volatility analysis!**
Multi Timeframe VWMA RibbonThis indicator is used to plot VWMA in multiple time frames on the same chart. You can also change the length and time frame of each as well.
Frank's custom indicator with Buy & Sell Signals (30% TP)Setup Conditions:
Works Best for Investment Plans. Keep the chart on Daily timeframe for better clarity.
Buy Conditions :
1. Always plan buy quantities in small, and invest once a Week or Month
2. Green arrows are shown in the buy zone, not necessarily buy everyday.
Sell Conditions :
1. Be aggressive in selling, sell signals are provided usually ahead of the major drawdown.
Anchored VWAP- STKThis Pine Script (version 5) calculates and plots an **Anchored Volume Weighted Average Price (VWAP)** along with its **standard deviation bands** on a trading chart. The VWAP helps traders identify the average price of an asset, weighted by volume, starting from a specific date chosen by the user.
### Key Components:
1. **Indicator Setup:**
The script is set as an overlay indicator, meaning it will be displayed directly on the price chart.
2. **User Inputs:**
- **VWAP Start Date:** Allows the user to select the date from which the VWAP calculation should begin (default is January 1, 2022).
- **VWAP Data Source:** Users can choose which price data to use for the calculation (default is `hlc3`, which is the average of the high, low, and close prices).
3. **VWAP Calculation:**
- The script keeps track of the cumulative sum of (price × volume) and the cumulative volume starting from the selected date.
- The VWAP is calculated as:
\
4. **Standard Deviation Calculation:**
- The script calculates the variance using the formula:
\
This ensures the variance is not negative.
- The standard deviation is then derived by taking the square root of the variance.
5. **Plotting:**
- **VWAP Line:** Displayed in blue.
- **Upper Band:** Plotted in orange, representing VWAP + standard deviation.
- **Lower Band:** Also in orange, representing VWAP - standard deviation.
### Purpose:
This indicator helps traders analyze price movements relative to the VWAP, providing insights into potential support/resistance levels. The standard deviation bands help identify overbought or oversold conditions based on price volatility.
Universal Mean-Reverting Swing StrategyThis Universal Mean-Reverting Swing Trading Strategy is designed for all stocks on the 1D timeframe, making it highly adaptable across markets. It generates long/short signals based on key mean reversion indicators:
📌 Indicators Used:
✅ Bollinger Bands – Identifies overbought and oversold conditions.
✅ RSI (Relative Strength Index) – Confirms momentum shifts.
✅ Z-Score – Measures price deviations from the statistical mean.
🎯 Entry Conditions:
🔹 Long Signal 🟢 – Triggered when price is below the lower Bollinger Band, RSI is below 30, and Z-score is extremely negative.
🔹 Short Signal 🔴 – Triggered when price is above the upper Bollinger Band, RSI is above 70, and Z-score is extremely positive.
⚙️ Customizable Inputs:
Bollinger Band Length & Multiplier
RSI Length
Z-Score Sensitivity
This strategy does not execute buy/sell orders but instead provides long/short signals, allowing traders to manually manage risk and execution. Works best in range-bound markets where mean reversion is dominant.
🔹 Recommended Use: Combine with fundamental analysis or additional technical indicators for optimal results.
🚀 Try it out and let me know your feedback!