Sweep DetectorThe Sweep Detector identifies liquidity sweeps by detecting when a swing high or low is broken only by the wick of a candle, ensuring the body does not close beyond the level. It highlights these sweep points with markers and draws a line from the broken level to the candle that triggered the sweep. This helps traders spot potential reversals and liquidity grabs in the market.
אינדיקטורים ואסטרטגיות
RSI Squared (Cutlers - Normal)Regular RSI calculation based on Cutler's RSI derived from price.
Credits to @TanHef for the original script for the Cutler's RSI, which is used in this script to generate the final RSI calculation.
ATR Table with Average [filatovlx]ATR indicator with advanced analytics
Description:
The ATR (Average True Range) indicator is a powerful tool for analyzing market volatility. Our indicator not only calculates the classic ATR, but also provides additional metrics that will help traders make more informed decisions. The indicator displays key values in a convenient table, which makes it ideal for trading in any market: stocks, forex, cryptocurrencies and others.
Main functions:
Current ATR value:
Current ATR (Points) — the current ATR value in points. It shows the absolute level of volatility.
Current ATR (%) — the current ATR value as a percentage of the price. It helps to estimate the volatility relative to the current price of an asset.
The ATR value on the previous bar:
ATR 1 Bar Ago (Points) — the ATR value on the previous bar in points. Allows you to compare the current volatility with the previous one.
ATR 1 Bar Ago (%) — the ATR value on the previous bar as a percentage. It is convenient for analyzing changes in volatility
Индикатор ATR с расширенной аналитикой
Описание:
Индикатор ATR (Average True Range) — это мощный инструмент для анализа волатильности рынка. Наш индикатор не только рассчитывает классический ATR, но и предоставляет дополнительные метрики, которые помогут трейдерам принимать более обоснованные решения. Индикатор отображает ключевые значения в удобной таблице, что делает его идеальным для использования в торговле на любых рынках: акции, форекс, криптовалюты и другие.
Основные функции:
Текущее значение ATR:
Current ATR (Points) — текущее значение ATR в пунктах. Показывает абсолютный уровень волатильности.
Current ATR (%) — текущее значение ATR в процентах от цены. Помогает оценить волатильность относительно текущей цены актива.
Значение ATR на предыдущем баре:
ATR 1 Bar Ago (Points) — значение ATR на предыдущем баре в пунктах. Позволяет сравнить текущую волатильность с предыдущей.
ATR 1 Bar Ago (%) — значение ATR на предыдущем баре в процентах. Удобно для анализа изменения волатильности.
Среднее значение ATR за последние 5 баров:
ATR Avg (5 Bars) (Points) — среднее значение ATR за последние 5 баров в пунктах. Показывает сглаженный уровень волатильности.
ATR Avg (5 Bars) (%) — среднее значение ATR за последние 5 баров в процентах. Помогает оценить общий тренд волатильности.
Преимущества индикатора:
Удобство использования: Все ключевые значения выводятся в компактной таблице, что экономит время на анализ.
Гибкость: Возможность настройки периода ATR и длины скользящего среднего под ваши торговые стратегии.
Универсальность: Подходит для любых рынков и таймфреймов.
Наглядность: Процентные значения ATR помогают быстро оценить уровень волатильности относительно цены актива.
Повышение точности: Дополнительные метрики (например, среднее значение ATR) позволяют лучше понимать текущую рыночную ситуацию.
Для кого этот индикатор?
Трейдеры, которые хотят лучше понимать волатильность рынка.
Скальперы и внутридневные трейдеры, которым важно быстро оценивать изменения волатильности.
Инвесторы, которые используют ATR для определения стоп-лоссов и тейк-профитов.
Разработчики торговых стратегий, которым нужны точные данные для тестирования и оптимизации.
Как это работает?
Индикатор автоматически рассчитывает все значения и выводит их в таблицу на графике. Вам не нужно вручную считать или анализировать данные — просто добавьте индикатор на график, и вся информация будет перед вами.
Enhanced KLSE Banker Flow Oscillator# Enhanced KLSE Banker Flow Oscillator
## Description
The Enhanced KLSE Banker Flow Oscillator is a sophisticated technical analysis tool designed specifically for the Malaysian stock market (KLSE). This indicator analyzes price and volume relationships to identify potential smart money movements, providing early signals for market reversals and continuation patterns.
The oscillator measures the buying and selling pressure in the market with a focus on detecting institutional activity. By combining money flow calculations with volume filters and price action analysis, it helps traders identify high-probability trading opportunities with reduced noise.
## Key Features
- Dual-Timeframe Analysis: Combines long-term money flow trends with short-term momentum shifts for more accurate signals
- Adaptive Volume Filtering: Automatically adjusts volume thresholds based on recent market conditions
- Advanced Divergence Detection: Identifies potential trend reversals through price-flow divergences
- Early Signal Detection: Provides anticipatory signals before major price movements occur
- Multiple Signal Types: Offers both early alerts and strong confirmation signals with clear visual markers
- Volatility Adjustment: Adapts sensitivity based on current market volatility for more reliable signals
- Comprehensive Visual Feedback: Color-coded oscillator, signal markers, and optional text labels
- Customizable Display Options: Toggle momentum histogram, early signals, and zone fills
- Organized Settings Interface: Logically grouped parameters for easier configuration
## Indicator Components
1. Main Oscillator Line: The primary banker flow line that fluctuates above and below zero
2. Early Signal Line: Secondary indicator showing potential emerging signals
3. Momentum Histogram: Visual representation of flow momentum changes
4. Zone Fills: Color-coded background highlighting positive and negative zones
5. Signal Markers: Visual indicators for entry and exit points
6. Reference Lines: Key levels for strong and early signals
7. Signal Labels: Optional text annotations for significant signals
## Signal Types
1. Strong Buy Signal (Green Arrow): Major bullish signal with high probability of success
2. Strong Sell Signal (Red Arrow): Major bearish signal with high probability of success
3. Early Buy Signal (Blue Circle): First indication of potential bullish trend
4. Early Sell Signal (Red Circle): First indication of potential bearish trend
5. Bullish Divergence (Yellow Triangle Up): Price making lower lows while flow makes higher lows
6. Bearish Divergence (Yellow Triangle Down): Price making higher highs while flow makes lower highs
## Parameters Explained
### Core Settings
- MFI Base Length (14): Primary calculation period for money flow index
- Short-term Flow Length (5): Calculation period for early signals
- KLSE Sensitivity (1.8): Multiplier for flow calculations, higher = more sensitive
- Smoothing Length (5): Smoothing period for the main oscillator line
### Volume Filter Settings
- Volume Filter % (65): Minimum volume threshold as percentage of average
- Use Adaptive Volume Filter (true): Dynamically adjusts volume thresholds
### Signal Levels
- Strong Signal Level (15): Threshold for strong buy/sell signals
- Early Signal Level (10): Threshold for early buy/sell signals
- Early Signal Threshold (0.75): Sensitivity factor for early signals
### Advanced Settings
- Divergence Lookback (34): Period for checking price-flow divergences
- Show Signal Labels (true): Toggle text labels for signals
### Visual Settings
- Show Momentum Histogram (true): Toggle the momentum histogram display
- Show Early Signal (true): Toggle the early signal line display
- Show Zone Fills (true): Toggle background color fills
## How to Use This Indicator
### Installation
1. Add the indicator to your TradingView chart
2. Default settings are optimized for KLSE stocks
3. Customize parameters if needed for specific stocks
### Basic Interpretation
- Oscillator Above Zero: Bullish bias, buying pressure dominates
- Oscillator Below Zero: Bearish bias, selling pressure dominates
- Crossing Zero Line: Potential shift in market sentiment
- Extreme Readings: Possible overbought/oversold conditions
### Advanced Interpretation
- Divergences: Early warning of trend exhaustion
- Signal Confluences: Multiple signal types appearing together increase reliability
- Volume Confirmation: Signals with higher volume are more significant
- Momentum Alignment: Histogram should confirm direction of main oscillator
### Trading Strategies
#### Trend Following Strategy
1. Identify market trend direction
2. Wait for pullbacks shown by oscillator moving against trend
3. Enter when oscillator reverses back in trend direction with a Strong signal
4. Place stop loss below/above recent swing low/high
5. Take profit at previous resistance/support levels
#### Counter-Trend Strategy
1. Look for oscillator reaching extreme levels
2. Identify divergence between price and oscillator
3. Wait for oscillator to cross Early signal threshold
4. Enter position against prevailing trend
5. Use tight stop loss (1 ATR from entry)
6. Take profit at first resistance/support level
#### Breakout Confirmation Strategy
1. Identify stock consolidating in a range
2. Wait for price to break out of range
3. Confirm breakout with oscillator crossing zero line in breakout direction
4. Enter position in breakout direction
5. Place stop loss below/above the breakout level
6. Trail stop as price advances
### Signal Hierarchy and Reliability
From highest to lowest reliability:
1. Strong Buy/Sell signals with divergence and high volume
2. Strong Buy/Sell signals with high volume
3. Divergence signals followed by Early signals
4. Strong Buy/Sell signals with normal volume
5. Early Buy/Sell signals with high volume
6. Early Buy/Sell signals with normal volume
## Complete Trading Plan Example
### KLSE Market Trading System
#### Pre-Trading Preparation
1. Review overall market sentiment (bullish, bearish, or neutral)
2. Scan for stocks showing significant banker flow signals
3. Note key support/resistance levels for watchlist stocks
4. Prioritize trade candidates based on signal strength and volume
#### Entry Rules for Long Positions
1. Banker Flow Oscillator above zero line (positive flow environment)
2. One or more of the following signals present:
- Strong Buy signal (green arrow)
- Bullish Divergence signal (yellow triangle up)
- Early Buy signal (blue circle) with confirming price action
3. Entry confirmation requirements:
- Volume above 65% of 20-day average
- Price above short-term moving average (e.g., 20 EMA)
- No immediate resistance within 3% of entry price
4. Entry on the next candle open after signal confirmation
#### Entry Rules for Short Positions
1. Banker Flow Oscillator below zero line (negative flow environment)
2. One or more of the following signals present:
- Strong Sell signal (red arrow)
- Bearish Divergence signal (yellow triangle down)
- Early Sell signal (red circle) with confirming price action
3. Entry confirmation requirements:
- Volume above 65% of 20-day average
- Price below short-term moving average (e.g., 20 EMA)
- No immediate support within 3% of entry price
4. Entry on the next candle open after signal confirmation
#### Position Sizing Rules
1. Base risk per trade: 1% of trading capital
2. Position size calculation: Capital × Risk% ÷ Stop Loss Distance
3. Position size adjustments:
- Increase by 20% for Strong signals with above-average volume
- Decrease by 20% for Early signals without confirming price action
- Standard size for all other valid signals
#### Stop Loss Placement
1. For Long Positions:
- Place stop below the most recent swing low
- Minimum distance: 1.5 × ATR(14)
- Maximum risk: 1% of trading capital
2. For Short Positions:
- Place stop above the most recent swing high
- Minimum distance: 1.5 × ATR(14)
- Maximum risk: 1% of trading capital
#### Take Profit Strategy
1. First Target (33% of position):
- 1.5:1 reward-to-risk ratio
- Move stop to breakeven after reaching first target
2. Second Target (33% of position):
- 2.5:1 reward-to-risk ratio
- Trail stop at previous day's low/high
3. Final Target (34% of position):
- 4:1 reward-to-risk ratio or
- Exit when opposing signal appears (e.g., Strong Sell for long positions)
#### Trade Management Rules
1. After reaching first target:
- Move stop to breakeven
- Consider adding to position if new confirming signal appears
2. After reaching second target:
- Trail stop using banker flow signals
- Exit remaining position when:
- Oscillator crosses zero line in opposite direction
- Opposing signal appears
- Price closes below/above trailing stop level
3. Maximum holding period:
- 20 trading days for trend-following trades
- 10 trading days for counter-trend trades
- Re-evaluate if targets not reached within timeframe
#### Risk Management Safeguards
1. Maximum open positions: 5 trades
2. Maximum sector exposure: 40% of trading capital
3. Maximum daily drawdown limit: 3% of trading capital
4. Mandatory stop trading rules:
- After three consecutive losing trades
- After reaching 5% account drawdown
- Resume after two-day cooling period and strategy review
#### Performance Tracking
1. Track for each trade:
- Signal type that triggered entry
- Oscillator reading at entry and exit
- Volume relative to average
- Price action confirmation patterns
- Holding period
- Reward-to-risk achieved
2. Review performance metrics weekly:
- Win rate by signal type
- Average reward-to-risk ratio
- Profit factor
- Maximum drawdown
3. Adjust strategy parameters based on performance:
- Increase position size for highest performing signals
- Decrease or eliminate trades based on underperforming signals
## Advanced Usage Tips
1. Combine with Support/Resistance:
- Signals are more reliable when they occur at key support/resistance levels
- Look for banker flow divergence at major price levels
2. Multiple Timeframe Analysis:
- Use the oscillator on both daily and weekly timeframes
- Stronger signals when both timeframes align
- Enter on shorter timeframe when confirmed by longer timeframe
3. Sector Rotation Strategy:
- Compare banker flow across different sectors
- Rotate capital to sectors showing strongest positive flow
- Avoid sectors with persistent negative flow
4. Volatility Adjustments:
- During high volatility periods, wait for Strong signals only
- During low volatility periods, Early signals can be more actionable
5. Optimizing Parameters:
- For more volatile stocks: Increase Smoothing Length (6-8)
- For less volatile stocks: Decrease KLSE Sensitivity (1.2-1.5)
- For intraday trading: Reduce all length parameters by 30-50%
## Fine-Tuning for Different Markets
While optimized for KLSE, the indicator can be adapted for other markets:
1. For US Stocks:
- Reduce KLSE Sensitivity to 1.5
- Increase Volume Filter to 75%
- Adjust Strong Signal Level to 18
2. For Forex:
- Increase Smoothing Length to 8
- Reduce Early Signal Threshold to 0.6
- Focus more on divergence signals than crossovers
3. For Cryptocurrencies:
- Increase KLSE Sensitivity to 2.2
- Reduce Signal Levels (Strong: 12, Early: 8)
- Use higher Volume Filter (80%)
By thoroughly understanding and properly implementing the Enhanced KLSE Banker Flow Oscillator, traders can gain a significant edge in identifying institutional money flow and making more informed trading decisions, particularly in the Malaysian stock market.
EMA 5 Alert Candle ShortThe 5 EMA (Exponential Moving Average) Strategy is a simple yet effective trading strategy that helps traders identify short-term trends and potential entry and exit points. This strategy is widely used in intraday and swing trading, particularly in forex, stocks, and crypto markets.
Components of the 5 EMA Strategy
5 EMA: A fast-moving average that reacts quickly to price movements.
15-minute or 1-hour timeframe (commonly used, but adaptable to other timeframes).
Candlestick Patterns: To confirm entry signals.
How the 5 EMA Strategy Works
Buy (Long) Setup:
Price Above the 5 EMA: The price should be trading above the 5 EMA.
Pullback to the 5 EMA: A minor retracement or consolidation near the 5 EMA.
Bullish Candlestick Confirmation: A bullish candle (e.g., engulfing or pin bar) forms near the 5 EMA.
Entry: Enter a long trade at the close of the bullish candle.
Stop Loss: Place below the recent swing low or 5-10 pips below the 5 EMA.
Take Profit: Aim for a risk-reward ratio of at least 1:2 or trail the stop using a higher EMA (e.g., 10 or 20 EMA).
Sell (Short) Setup:
Price Below the 5 EMA: The price should be trading below the 5 EMA.
Pullback to the 5 EMA: A small retracement towards the 5 EMA.
Bearish Candlestick Confirmation: A bearish candle (e.g., engulfing or pin bar) near the 5 EMA.
Entry: Enter a short trade at the close of the bearish candle.
Stop Loss: Place above the recent swing high or 5-10 pips above the 5 EMA.
Take Profit: Aim for a 1:2 risk-reward ratio or use a trailing stop.
Additional Filters for Better Accuracy
Higher Timeframe Confirmation: Check the trend on a higher timeframe (e.g., 1-hour or 4-hour).
Volume Confirmation: Enter trades when volume is increasing.
Avoid Sideways Market: Use the strategy only when the market is trending.
Advantages of the 5 EMA Strategy
✔️ Simple and easy to use.
✔️ Works well in trending markets.
✔️ Helps traders capture short-term momentum.
Disadvantages
❌ Less effective in choppy or sideways markets.
❌ Requires discipline in following stop-loss rules.
Mayer Multiple ZonesMayer Multiple Zones
The Mayer Multiple Zones indicator is a powerful market valuation tool that helps traders identify key price zones based on multiples of the 200-period moving average. Originally inspired by the Bitcoin Mayer Multiple concept, this versatile indicator works across all markets and timeframes to visualize the relative valuation of any asset.
Key Features:
Color-coded valuation zones: Instantly recognize if the current price represents a strong buy opportunity, fair value, or potential bubble territory
Customizable multiplier levels: Adjust all zone thresholds to suit specific markets or trading strategies
Real-time status indicator: Clear market status display showing current valuation zone
Comprehensive information table: View all critical price levels and current multiple at a glance
Multi-timeframe compatible: Works seamlessly across all timeframes while maintaining accurate MA200 reference
Visual zone labeling: Clear labels for each price zone directly on the chart
How to Use:
The indicator divides price action into six distinct zones based on the MA200:
Strong Buy Zone (default: below 0.6x MA200): Extreme undervaluation, historically excellent buying opportunities
Value Buy Zone (default: 0.6x-0.8x MA200): Attractive buying range for long-term value
Accumulation Zone (default: 0.8x-1.0x MA200): Price building strength below the MA200
Fair Value Zone (default: 1.0x-2.0x MA200): Reasonable valuation range
Take Profit Zone (default: 2.0x-2.5x MA200): Overvaluation suggesting partial profit taking
Bubble Zone (default: above 2.5x MA200): Extreme overvaluation, historically unsustainable levels
This indicator serves as both a strategic planning tool for long-term investors and a tactical guide for shorter-term traders, helping identify potential reversal zones and price targets based on historical valuation patterns.
Settings:
MA Length: Adjust the moving average period (default: 200)
Multipliers: Customize each zone threshold to adapt to specific market characteristics
Perfect for all traders seeking to understand relative market valuation across any timeframe.
Multiple Moving Averages5 days Moving Averages
20 days Moving Averages
60 days Moving Averages
120 days Moving Averages
+ Stochastic S/R ZonesHey, all. I have a new indicator here that displays zones on your price chart where the stochastic oscillator has moved out of overbought or oversold back into the range of the indicator that is bounded by those two levels.
I know there are many support and resistance indicators on TradingView already, at least a couple of which use the RSI in a similar way as I am using the stochastic here, but I still believe this is a fairly novel interpretation of the stochastic, and it is, in my opinion, a better oscillator than the RSI to be used in this way.
In addition to the zones being plotted on the chart, the indicator also, optionally, can color candles or plot shapes above candles when the 50 line is crossed, so if you want to use this as a simple momentum indicator without desire of having the below chart indicator taking up screen space, you're pretty much covered on the typical signals you might want from it (with the exception of %K / %D crosses, but there are alerts for that).
Visually, it is a simple, clean indicator. There are the zones, and then candle colors or shapes if you opt to add those. These zones are actually drawn from the candle preceding the cross over or cross under. Reason for that is often times the candle of the cross is fairly impulsive and exiting a consolidation. That period of consolidation is what is important to highlight, at least as far as I am concerned. The zones themselves extend until they are broken by a candle. A support zone stops at the candle that closes below its low. Vice versa for a resistance zone.
Usage is fairly simple. All the standard stochastic inputs are available for you to adjust to your heart's content. Additionally, you can choose either the %K or %D line to use as the source from which the zones are drawn, candles are colored, and shapes are plotted. Not sure if this will matter to most people, but I figured it should be made available.
This should be obvious, but I feel it must be said, just because an oscillator (any oscillator) has exited overbought or oversold does not mean that there must be a reversal (or in the case of a trend pullback, continuation). The oscillator can always simply immediately move back into overbought/sold. Just because a support box prints does not mean you should mortgage your house on a long trade. In strong trends, and depending on your oscillator settings, the indicator might draw a box then only a couple of candles later break it, continuing on with the trend. This of course is telling you something, and you would be wise to listen. As with all things trading, context is important.
Here are a few extra screens for you.
I really hope you all like this. It's been ages since I've created anything new, and despite its simplicity and the few lines of code that make it up, it took a lot of work, as I am a poor coder.
Enjoy,
Scott
Dynamic Breakout Master by tradingbauhaus 🌟 Code Description:
This Pine Script implements a trading strategy called "Dynamic Breakout Master" 💥. The core idea of the strategy is to identify breakouts (price movements) at key support 💙 and resistance 🔴 levels, through a dynamic channel that adapts to the market’s conditions. Here's how it works:
🔧 Customizable Input Parameters:
🧭 Pivot Period: This defines the number of bars (candles) to the left and right used to detect pivots (highs and lows) that mark the support and resistance zones.
📊 Data Source: You can choose whether to use highs and lows or closes and opens of the candles to identify the pivots.
📏 Max Channel Width: Specifies the maximum width allowed for the support/resistance channel, expressed as a percentage over the last 300 bars.
💪 Minimum Pivot Strength: This defines the minimum number of pivots needed for a support or resistance level to be considered valid.
🏔 Max Support/Resistance Zones: Limits the number of key zones displayed on the chart.
📅 Lookback Period: Adjusts how many bars back the system should check to find and validate support and resistance levels.
🎨 Custom Colors: You can choose colors for the support, resistance, and in-channel zones.
📉 Moving Averages (MA): The strategy allows adding up to two moving averages (SMA or EMA) to assist in making trading decisions.
📊 Calculating Support/Resistance Levels:
The system uses an algorithm to identify pivots from prices and calculates dynamic support and resistance zones 🔒🔓.
The closer the pivots are and the stronger their influence, the more relevant the zone becomes for the strategy.
The dynamic channel is drawn on the chart, with a maximum width limit for these zones defined by the input parameter.
📈 Trading Logic:
🚀 Identifying Breakouts:
The strategy looks for when the price breaks (breakouts) a resistance or support level.
If the price breaks upward through the resistance level, a buy order 📈 is triggered.
If the price breaks downward through the support level, a sell order 📉 is triggered.
🔔 Alerts:
Resistance Break (ResBreak) and Support Break (SupBreak) alerts are configured to notify users when a significant breakout occurs.
💰 Commissions:
The strategy includes a commission (0.1%) to simulate transaction costs for each trade.
📊 Chart Visualization:
The support and resistance zones are displayed as colored rectangles:
🔴 Resistance (red) and
🔵 Support (blue).
Pivots of support and resistance can be labeled as P (for resistance) and V (for support).
Breakouts of support or resistance levels are marked with triangles that appear on the chart 🔺🔻.
📈 Trading Strategy:
If the price breaks upward through the resistance level, a long position (buy) 📈 is opened.
If the price breaks downward through the support level, a short position (sell) 📉 is opened.
🏆 Conclusion:
This script is a dynamic breakout strategy 💥 that allows traders to capture significant price movements when support or resistance channels break. The customizable parameters let users fine-tune the strategy according to their preferences, while the visual alerts on the chart make it easier to follow trading opportunities. The inclusion of moving averages and key price zones adds an extra layer of analysis to improve decision-making 💡.
6F Signals (With Labels)6F Signals (With Labels)
This TradingView indicator plots potential buy and sell signals.
Signals
- Buy signals: "Buy: " labels appear below the bar.
- Sell signals: "Sell: " labels appear above the bar.
Perfect for traders looking for straightforward, labeled entry and exit points directly on their price chart!
EMA 200 Price Deviation AlertsThis script is written in Pine Script v5 and is designed to monitor the difference between the current price and its 200-period Exponential Moving Average (EMA). Here’s a quick summary:
200 EMA Calculation: It calculates the 200-period EMA of the closing prices.
Threshold Input: Users can set a threshold (default is 65) that determines when an alert should be triggered.
Price Difference Calculation: The script computes the absolute difference between the current price and the 200 EMA.
Alert Condition: If the price deviates from the 200 EMA by more than the specified threshold, an alert condition is activated.
Visual Aids: The 200 EMA is plotted on the chart for reference, and directional arrows are drawn:
A sell arrow appears above the bar when the price is above the EMA.
A buy arrow appears below the bar when the price is below the EMA.
This setup helps traders visually and programmatically identify significant price movements relative to a key moving average.
Dollar Difference (High-Low)This script shows the difference between the High and Low - indicating the complete range of movement of each candle, in all time frames. This enables you to get a birds eye view of the movement without having to see the values on the Chart top for each candle mouseover.
200-Day & 50-Day Moving Averages### **Description of the TradingView Script**
This **TradingView Pine Script** plots two key moving averages used in technical analysis:
- **200-day moving average** (light pink/purple, 60% transparent)
- **50-day moving average** (light yellow, 60% transparent)
The script enhances visualization by making the lines thinner (**linewidth = 1**) and applying **semi-transparent colors** to avoid overwhelming the chart.
#### **Features of the Script:**
✅ **Plots a 200-day simple moving average (SMA) in light pink/purple** with 60% transparency.
✅ **Plots a 50-day SMA in light yellow** with 60% transparency.
✅ **Displays "200" and "50" labels only on the rightmost end** of their respective lines to reduce clutter.
✅ **Identifies key crossover signals:**
- **Golden Cross (Green Dot):** When the **200-day MA crosses above** the 50-day MA (bullish signal).
- **Death Cross (Black Dot):** When the **50-day MA crosses below** the 200-day MA (bearish signal).
#### **How to Use the Script:**
1. Open **TradingView** and navigate to the **Pine Script Editor**.
2. Copy and paste the script.
3. Click **"Add to Chart"** to apply it.
This script is designed for **traders and analysts** who want a **clean and minimalistic visualization** of long-term and short-term trend crossovers while keeping the chart readable. 🚀
Adaptive MA Crossover - LemonSqueazyAdaptive Moving Average Crossover with buy sell signals. by LemonSqueazy
You can interchange each moving average from:
SMA
EMA
KAMA
VIDYA
You Change the speed of each MA.
You can also edit the color and thickness of each MA.
You can also edit the Buy Sell signal Shape, Color and Font color.
You can also adjust the signal strength. This will help eliminate false signal. The signal is in conjunction with the number of bars. So if you have a signal strength of 4 it will wait 4 bars before printing a Buy or Sell signal. Not sure if this works though.
Bauhaus Reversal MasterWelcome to the Bauhaus Reversal Master!
A Pine Script (v6) creation for TradingView that detects market reversals using classic candlestick patterns. Think of yourself as a chart detective—this script does the heavy lifting by spotting signals, labeling them, and running an automated trading strategy with built-in risk management.
🔍 What Does This Script Do?
Identifies Candlestick Patterns: Recognizes formations like Hammer Time, Falling Star, Bullish Munch, and more.
Confirms the Trend: Uses stochastic to ensure patterns appear in extreme zones (overbought/oversold), increasing reliability.
Automates Trading: Places buy/sell orders with predefined risk parameters.
Labels the Chart: Displays clear tags (e.g., "HAM" or "STAR") for instant visualization.
Manages Risk: Calculates risk and reward based on market volatility (ATR-based).
It’s like having a trading assistant with precision and style! 🎯
🛠 How It Works: Step by Step
1️⃣ Setup (Control Panel)
Capital Allocation: Bets 10% per trade (adjustable).
Commission: Default 0.1% per trade (modifiable for your broker).
Custom Options:
ATR Period: Measures volatility (default 14 bars).
Profit & Loss: Multipliers for Take Profit (1.5x ATR) & Stop Loss (1x ATR).
Trend Lookback: Number of candles analyzed (default 14).
Reversal Threshold: Overbought/Oversold levels (default 80).
Smoothing Factor: Helps reduce noise (default 20).
2️⃣ Candlestick Patterns (The Stars of the Show)
📈 Bullish Patterns (Buy Signals)
Hammer Time: Long lower wick in a downtrend.
Inverted Hammer: Long upper wick in a downtrend.
Bullish Munch: A big green candle swallowing a red one.
Tweezer Bottom: Two candles with identical lows, one red, one green.
📉 Bearish Patterns (Sell Signals)
Hanging Man: A hammer-like candle but in an uptrend.
Falling Star: Long upper wick in an uptrend.
Bearish Gobble: A big red candle engulfing a green one.
Tweezer Top: Two candles with identical highs, one green, one red.
✅ Each pattern can be toggled ON/OFF.
3️⃣ Trend Confirmation (The Filter)
Uses stochastic (kTrend) to detect extreme market conditions:
Overbought (>80) → Bearish Zone
Oversold (<20) → Bullish Zone
Averages it (smoothK) to filter out false signals.
Buys only in bearish zones, sells only in bullish zones.
4️⃣ Candlestick Math (For Nerds 🤓)
Breaks each candle into:
Body
Upper Wick
Lower Wick
Measures proportions of each to detect valid patterns.
5️⃣ Risk & Reward (Your Money’s Bodyguard)
Uses ATR (atrVal) to set dynamic profit & loss levels:
Buy Trade:
Take Profit = Price + (ATR × 1.5)
Stop Loss = Price - (ATR × 1)
Sell Trade:
Take Profit = Price - (ATR × 1.5)
Stop Loss = Price + (ATR × 1)
Ensures a Risk/Reward Ratio favoring larger wins over losses.
6️⃣ Execution (Let’s Trade!)
Spots a bullish pattern? Places a Buy Order (GoLong).
Detects a bearish pattern? Places a Sell Order (GoShort).
Exits automatically at Take Profit or Stop Loss.
7️⃣ Chart Labels (Visual Cues)
Displays clear signals:
Bullish: "HAM" (hammer), "INV" (inverted hammer), "BULL" (bullish engulfing), "TWZB" (tweezer bottom) → Green Labels
Bearish: "STAR" (shooting star), "HANG" (hanging man), "BEAR" (bearish engulfing), "TWZT" (tweezer top) → Red Labels
📊 Why Use This Script?
✅ Automated Trading – Execute trades on TradingView effortlessly.✅ Visual Insights – Labels help identify patterns instantly.✅ Backtesting – Simulate past performance (e.g., starting with $10,000).✅ Customizable – Modify settings for risk, market type (stocks, forex, crypto), and strategy.
💡 Pro Tips for Users
Test Before Trading – Run TradingView’s backtest to evaluate performance.
Adjust Risk Settings – Increase Stop Loss or lower Take Profit in volatile markets.
Choose the Right Timeframe – Works best on H1 (1-hour) and H4 (4-hour) charts.
Match Commissions – Set the commission rate to match your broker’s fees.
Use Additional Analysis – Patterns aren’t 100% reliable; combine this with your own insights.
Enhanced Zigzag [victhoreb] (V2)** This is the updated version of my pre-existing Zigzag indicator **
Enhanced Zigzag is an optimized version of the classic zigzag indicator, crafted using 50 lines of Pine Script code compared to TradingView’s native version which exceeds 300 lines. Its compact logic efficiently detects pivot highs and lows using customizable lookback periods, then dynamically connects these key points with clear, color-adjustable zigzag lines. With options to toggle the zigzag display and enable repainting, this indicator offers both performance and flexibility—providing traders with a streamlined tool for identifying market swings and potential reversals with minimal code complexity.
FVG Breakout Lite by tradingbauhausExplanation of "FVG Breakout Lite by tradingbauhaus"
This script is a trading strategy built for TradingView that helps you spot and trade "Fair Value Gaps" (FVGs)—price areas where the market moved quickly, leaving a gap that might act as support or resistance later. It’s designed to catch breakout opportunities when the price moves strongly in one direction, with extra filters to make trades more reliable. Here’s how it works and how you can use it:
What It Does
1. Finds Fair Value Gaps (FVGs):
A "Bullish FVG" happens when the price jumps up quickly, leaving a gap below where it didn’t trade much (e.g., today’s low is higher than the high from two bars ago).
A "Bearish FVG" is the opposite: the price drops fast, leaving a gap above (e.g., today’s high is lower than the low from two bars ago).
The script draws colored boxes on your chart to show these gaps: green for bullish, red for bearish.
2. Spots Breakouts:
It looks for "strong" FVGs by comparing them to a trend (based on the highest highs and lowest lows over a set period).
If a bullish gap forms above the recent highs, or a bearish gap below the recent lows, it’s marked as a breakout opportunity.
3. Adds a Volume Check:
Trades only happen if the market’s volume is higher than usual (e.g., 1.2x the average volume over the last 20 bars). This helps ensure the breakout has real momentum behind it.
4. Trades Automatically:
Long Trades (Buy): If a bullish breakout FVG forms and volume is high, it buys at the current price.
Short Trades (Sell): If a bearish breakout FVG forms with high volume, it sells short.
Each trade comes with a stop loss (to limit losses) and a take profit (to lock in gains), both adjustable by you.
5. Shows Mitigation Lines (Optional):
If you turn on "Display Mitigation Zones," it draws lines at the edge of each breakout FVG. These lines show where the price might return to "fill" the gap later, helping you see key levels.
6. Includes Webull Costs:
The script factors in real trading fees from Webull, like tiny SEC and FINRA fees for selling, and a daily margin cost if you’re borrowing money to trade. These don’t show up on the chart but affect the strategy’s performance in backtesting.
How to Use It
1. Add to Your Chart:
Copy the script into TradingView’s Pine Editor, click "Add to Chart," and it’ll start drawing FVGs and running the strategy.
2. Customize Settings:
Trend Period (Default: 25): How many bars it looks back to define the trend. Longer periods mean fewer but stronger signals.
Volume Lookback (Default: 20) & Volume Threshold (Default: 1.2): Adjust how it measures "high volume." Increase the threshold for stricter trades.
Stop Loss % (Default: 1.5%) & Take Profit % (Default: 3%): Set how much you’re willing to lose or aim to gain per trade.
Margin Rate % (Default: 8.74%): Webull’s rate for borrowing money—lower it if your account qualifies for a better rate.
Display Mitigation Zones (Default: On): Toggle this to see or hide the gap lines.
Colors: Change the green (bullish) and red (bearish) shades to suit your chart.
3. Backtest It:
Go to the "Strategy Tester" tab in TradingView to see how it performs on past data. It’ll show trades, profits, losses, and Webull fees included.
4. Watch It Work:
Green boxes mean bullish FVGs; red boxes mean bearish FVGs. If volume spikes and the price breaks out, you’ll see trades happen automatically.
What to Expect
Visuals: You’ll see colored boxes for FVGs and optional lines showing where they start. These help you spot key price zones even if you’re not trading.
Trades: It’s selective—only trades when FVGs align with a breakout and volume confirms it. Expect fewer trades but with higher potential.
Risk: The stop loss keeps losses in check, while the take profit aims for a 2:1 reward-to-risk ratio by default (3% gain vs. 1.5% loss).
Costs: Webull’s fees are small but baked into the results, so you’re seeing a realistic picture of profits.
Tips for Users
Test it on a small timeframe (like 5-minute charts) for day trading or a larger one (like daily) for swing trading.
Play with the volume threshold—if you get too few trades, lower it (e.g., 1.1); if too many, raise it (e.g., 1.5).
Watch how price reacts to the mitigation lines—they’re often support or resistance zones traders target.
This strategy is lightweight, focused, and built for traders who like breakouts with a bit of confirmation. It’s not foolproof (no strategy is!), but it gives you a clear way to trade FVGs with some smart filters.
Auto Fib Retracement [victhoreb]Auto Fib Retracement is an automated Fibonacci retracement tool for TradingView that dynamically identifies key swing points and plots Fibonacci levels to help traders visualize potential support and resistance areas. Using a Zigzag algorithm, the indicator detects recent pivot highs and lows and calculates retracement levels based on these significant price swings. Key features include:
- Dynamic Pivot Detection: Automatically identifies recent swing highs and lows using configurable lookback periods, ensuring the Fibonacci levels adjust as the market evolves.
- Customizable Fibonacci Levels: Users can tailor the Fibonacci retracement levels (0, 0.214, 0.382, 0.5, 0.618, 0.786,) along with individual colors, offering flexibility to match various trading strategies.
- Zigzag Visualization: Optionally displays a Zigzag line that connects the detected pivot points, providing a clear visual representation of the price swing dynamics.
- Adjustable Line Extension: Retracement lines can be extended for a specified number of bars.
- Repainting Option: Includes an option to repaint the Zigzag, ensuring that the most current price action is reflected in the indicator’s output.
- The Auto Fibonacci Retracement itself DOES NOT REPAINT : )
This indicator streamlines the analysis process by automatically drawing Fibonacci retracement levels, allowing traders to quickly identify potential reversal areas and make more informed trading decisions.
Buy/Sell Signals by ATX LaloThis indicator generates buy and sell signals based on the crossover of the 5EMA and 13EMA. Like any other indicator, it is not infallible and should not be relied upon as the sole basis for trading decisions. Instead, it is recommended to use this indicator as a supplementary tool to enhance your overall analysis.
PAULS DOG HOUSEThe **3 EMA (Exponential Moving Average) Smooth Moving Average** is a technical indicator used in trading to identify trends and potential market reversals with greater accuracy. Unlike a simple moving average (SMA), the **Exponential Moving Average (EMA)** gives more weight to recent price data, making it more responsive to current market conditions. A **3 EMA smooth moving average** applies three EMAs in succession, further refining the signal by reducing noise and smoothing out fluctuations. This method helps traders recognize short-term price movements while filtering out false signals, making it a valuable tool for identifying trends in volatile markets. It is commonly used in forex, stocks, and cryptocurrency trading to enhance decision-making and improve entry and exit strategies.
T5-T55 Price Pulse ConfluenceThis script combines multiple technical indicators and price action analysis to generate clear and actionable buy and sell signals, offering a balanced approach to identifying trading opportunities. The inclusion of dynamic stop-loss, take-profit, and 20% profit targets allows for effective risk management while maximizing profit potential.
Short Screener: Declining EPSWhat This Script Does
🔹 Screens for Shorting Opportunities
🔹 Checks if EPS is declining (Current < Next Year)
🔹 Confirms Downtrend (Price < SMA 200)
🔹 Uses RSI & MACD for Bearish Signals
🔹 Checks Debt-to-Equity (> 1.5)
Money Flow (MFI)The Money Flow (MFI) indicator is a custom tool that blends price action with volume analysis to help you assess market momentum. It calculates a Money Flow value by taking the difference between the close and open, normalized by the price range (high minus low), then multiplies this by a user-defined factor and smooths the result using a simple moving average. An offset is subtracted to set a zero reference, which helps you quickly determine if the indicator is in positive territory (suggesting bullish money flow) or negative territory (suggesting bearish money flow).