Trend Breakout and Reversal Detectorbeautifully done to help all of us make the best. i also believe you will find it help ful
Chart patterns
SMA Crossover 150/20SMA Crossover 150/20
It shows when is the entry point.
When SMA 150 sticks cross by the SMA 20 sticks.
By Eli Elezra
Golden Cross & Death Cross - 20 Day SEA & 200 Day EMAbuy signalon golden cross and sell signal on death cross to use for stock screener to search for assets to trade
Simplified Crossover StrategyA simple strategy with about 5 hours of research behind it. Appliead to Onyxcoin. Starting with $1000 USD. Trading 5 days a week on the weekdays.
CALL/PUT Signals with Flexible EMA By VIKKAS VERMACALL/PUT Signals with Flexible EMA By VIKKAS VERMA
**Overview**
This indicator is designed to identify indecisive market conditions and generate CALL (Buy) and PUT (Sell) signals based on candle patterns and the trend of a user-defined Exponential Moving Average (EMA). By filtering signals with EMA trends, it helps traders make more informed entry decisions while avoiding trades against the prevailing market direction.
**Key Features**
1. **Indecisive Candle Detection**
- A candle is considered **indecisive** if its body is small compared to its overall range (high - low).
- These candles indicate market hesitation, often preceding strong moves.
- Such candles are visually marked with a gray background for easy identification.
2. **Candle Classification**
- **Green Candle**: Open price equals the low of the candle.
- **Red Candle**: Open price equals the high of the candle.
- **Black Candle**: Any other type of candle that doesn’t fit the above two conditions.
3. EMA-Based Trend Confirmation
- A **user-defined EMA (default: 9-period) is plotted on the chart.
- **Green EMA**: EMA is rising (bullish trend).
- **Red EMA**: EMA is falling (bearish trend).
- **Blue EMA**: Neutral or flat movement.
4. CALL & PUT Signal Logic
- CALL Signal (Buy): Appears when a black candle is followed by a green candle, provided the EMA is not falling.
- **PUT Signal (Sell)**: Appears when a **black candle** is followed by a **red candle**, provided the EMA is not rising.
- Signals are displayed as arrows on the chart (green for CALL, red for PUT).
5. **Visual Enhancements**
- The indicator colors candles based on their relation to the EMA trend.
- EMA color changes help traders identify trend shifts.
- Indecisive candles are highlighted for additional context.
How to Use This Indicator
- Trend Confirmation: Use the EMA’s color to gauge market direction before taking trades.
- Entry Points: Look for CALL and PUT signals after indecisive candles in alignment with EMA trends.
- Risk Management: Use this indicator alongside other technical tools for better confirmation.
This indicator is useful for traders looking for a structured approach to identify potential reversals and momentum shifts while avoiding trades against the trend.
4H Trade Alert StrategySteps to Configure Alerts in TradingView
Add this script to the Pine Editor and save it.
Click "Add to Chart".
Go to the Alerts tab in TradingView.
Create a new alert:
Select the script (e.g., "4H Trade Alert Strategy").
Set the condition to "4H Trade Alert".
Customize the alert frequency and notification method (e.g., pop-up, email, webhook).
Save the alert, and it will trigger whenever the conditions are met.
Manojgowda Testing oneSample testing strategy developed to share wit friends for the purpose of learning and tweaking it
ML-Based BankNifty Strategy//@version=5
strategy("ML-Based BankNifty Strategy", overlay=true)
// Simulated ML Signal (Replace with Webhook Integration)
ml_signal = input.bool(true, "ML Buy Signal")
// Trade Execution Based on ML Prediction
if (ml_signal)
strategy.entry("Long", strategy.long)
strategy.exit("Take Profit", from_entry="Long", limit=close * 1.02, stop=close * 0.98)
[ARN]Reversal finderThe script is designed to identify potential reversal points in the market using a 5-period Exponential Moving Average (EMA) and specific candlestick patterns. Below is a detailed breakdown of the script:
1. Inputs and Settings
Toggle for 5 EMA:toggle5EMA = input.bool(true, title="Show 5 EMA")
This allows the user to enable or disable the display of the 5 EMA on the chart.
EMA Length: emaLength5 = 5
The length of the EMA is fixed at 5 periods.
2.EMA Calculation: EMA Value: emaValue5 = ta.ema(close, emaLength5)
The script calculates the 5-period EMA using the closing price of the candles.
EMA Color: emaColor5 = emaValue5 > emaValue5 ? color.green : color.red
The color of the EMA line is determined by its direction:
- Green if the current EMA value is greater than the previous EMA value (uptrend).
- Red if the current EMA value is less than the previous EMA value (downtrend).
Plotting the EMA: plot(toggle5EMA ? emaValue5 : na, title="5 EMA", color=emaColor5,
linewidth=2)
The EMA is plotted on the chart if the toggle is enabled (`toggle5EMA` is `true`).
3. Candle Color Identification: Green Candle:close > open; Red Candle:close < open
4. Signal Candle Identification:
Long Signal Candle: signalLong5 = isGreen and (low < emaValue5 and high < emaValue5)
A long signal candle is a green candle where both the low and high prices are below the 5
EMA. This suggests a potential bullish reversal.
Short Signal Candle: signalShort5 = isRed and (low > emaValue5 and high > emaValue5)
A short signal candle is a red candle where both the low and high prices are above the 5
EMA. This suggests a potential bearish reversal.
5. Confirmation Candle Identification:
confirmationCandleLong5 = signalLong5 and isGreen and (low <= emaValue5 and high >=
emaValue5)
A confirmation candle for a long signal is a green candle that occurs after a long signal
candle. It must touch or cross the 5 EMA (i.e., the low is below the EMA and the high is above
the EMA).
Confirmation Candle for Short:confirmationCandleShort5 = signalShort5 and isRed and (low
<= emaValue5 and high >= emaValue5)
A confirmation candle for a short signal is a red candle that occurs after a short signal
candle. It must touch or cross the 5 EMA (i.e., the low is below the EMA and the high is above
the EMA).
6. Plotting Buy/Sell Signals: A green triangle is plotted below the confirmation candle for a
long signal and a pink triangle is plotted above the confirmation candle for a short signal.
How the Script Works:
1. The script calculates the 5 EMA and plots it on the chart.
2. It identifies signal candles (candles that do not touch the 5 EMA) and confirmation candles (candles that touch or cross the 5 EMA).
3. Buy and sell signals are generated based on the confirmation candles.
4. Stop-loss levels are plotted for each signal to help manage risk.
Customization:
- You can adjust the `extendBars` variable to change how far the stop-loss lines extend.
- You can modify the colors and styles of the EMA, signals, and stop-loss lines to suit your preferences.
This script is a useful tool for traders looking to identify potential reversals using the 5 EMA and candlestick patterns. However, like any trading tool, it should be used in conjunction with other indicators and analysis techniques for better accuracy.
SMA Crossover SignalThis Pine Script plots 5, 20, and 50-period simple moving averages and highlights trade signals. It shades the background green if the price is above the 50 SMA and red if below. A "BUY SIGNAL" appears only when the 5 SMA crosses above the 20 SMA while the background is green, and a "SELL SIGNAL" appears only when the 5 SMA crosses below the 20 SMA while the background is red.
Swing Breakout System (SBS)The Swing Breakout Sequence (SBS) is a trading strategy that focuses on identifying high-probability entry points based on a specific pattern of price swings. This indicator will identify these patterns, then draw lines and labels to show confirmation.
How To Use:
The indicator will show both Bullish and Bearish SBS patterns.
Bullish Pattern is made up of 6 points: Low (0), HH (1), LL (2 | but higher than initial Low), New HH (3), LL (5), LL again (5)
Bearish Patten is made up of 6 points: High (0), LL (1), HH (2 | but lower than initial high), New LL (3), HH (5), HH again (5)
A label with an arrow will appear at the end, showing the completion of a successful sequence
Idea behind the strategy:
The idea behind this strategy, is the accumulation and then manipulation of liquidity throughout the sequence. For example, during SBS sequence, liquidity is accumulated during step (2), then price will push away to make a new high/low (step 3), after making a minor new high/low, price will retrace breaking the key level set up in step (2). This is price manipulating taking liquidity from behind high/low from step (2). After taking liquidity price the idea is price will continue in the original direction.
Step 0 - Setting up initial direction
Step 1 - Setting up initial direction
Step 2 - Key low/high establishing liquidity
Step 3 - Failed New high/low
Step 4 - Taking liquidity from step (2)
Step 5 - Taking liquidity from step 2 and 4
Pattern Detection:
- Uses pivot high/low points to identify swing patterns
- Stores 6 consecutive swing points in arrays
- Identifies two types of patterns:
1. Bullish Pattern: A specific sequence of higher lows and higher highs
2. Bearish Pattern: A specific sequence of lower highs and lower lows
Note: Because the indicator is identifying a perfect sequence of 6 steps, set ups may not appear frequently.
Visualization:
- Draws connecting lines between swing points
- Labels each point numerically (optional)
- Shows breakout arrows (↑ for bullish, ↓ for bearish)
- Generates alerts on valid breakouts
User Input Settings:
Core Parameters
1. Pivot Lookback Period (default: 2)
- Controls how many bars to look back/forward for pivot point detection
- Higher values create fewer but more significant pivot points
2. Minimum Pattern Height % (default: 0.1)
- Minimum required height of the pattern as a percentage of price
- Filters out insignificant patterns
3. Maximum Pattern Width (bars) (default: 50)
- Maximum allowed width of the pattern in bars
- Helps exclude patterns that form over too long a period
50-Point Market Move LevelsHelp me graph charts the information for the line information line for every 50 pts the market move for the last 300 days
[Weekly Heatmap 1h]This script is an upgrade of the editors pick heatmap script from @BobRivera990, so all credit really goes to him.
I added the most requested features from the original scripts comments and some of my personal preferences:
- I added some new metrics like Range, Winrate (probability of beeing a green candle) and Close - Open.
- I marked the current hour in the table.
- I added an hour-offset so you can match the heatmap to your favorite timezone.
- I added a lookback period (in weeks) with a start and end so you can find out if the inefficiency you discovered occured, if it is still active and so on. If you are unsure how the heatmap works, set lookback to 1 week and compare the map to the chart.
- I added white dots that visually show the lookback period (did some glitching there).
Please feel free to suggest more metrics and functionalities, I will add them in a future update.
An example how to find an inefficiency:
- "Weekday Colorizer" colors every day of the week.
- a script that marks every 16:00 candle.
- the OG-Volume heatmap by @BobRivera990 that shows that volume around 15:00-17:00 is high.
- my new heatmap, that shows that the shitcoin pumps at the start of this period and dumps later.
I think some automatic buyer is getting frontrun here.
BTC Aggregate trend indicatorThis script calculates a composite score based on multiple weighted metrics to classify the market trend into categories (Strong Bullish, Bullish, Neutral, Bearish). It combines on-chain metrics, technical indicators, sentiment data, and macroeconomic factors to provide a holistic view of Bitcoin's market conditions.
Purpose
The primary goal of this script is to:
Aggregate Multiple Metrics : Combine various metrics (e.g., SOPR, MVRV Z-Score, RSI, MACD, Fear & Greed Index, DXY, Regulatory Sentiment) into a single composite score.
Classify Market Trends : Use the composite score to classify the market trend into actionable categories.
Visualize Results : Plot the composite score and display trend labels on the chart for quick interpretation.
SuperTrend ULTIMATE RamiIndicators & Setup:
EMA (Exponential Moving Averages): Use 9 EMA & 21 EMA for trend direction.
VWAP (Volume Weighted Average Price): For price positioning relative to market strength.
RSI (Relative Strength Index - 14 period): Use for overbought/oversold conditions (above 70 = sell, below 30 = buy).
MACD (Moving Average Convergence Divergence): For momentum confirmation.
Divergence Detector (Two Correlated Markets)This script is supposed to be an SMT divergence indicator for the S&P and NASDAQ markets. This script was made by chatgpt and was the second script formed
Chart Pattern DetectionChart patterns are visual representations of price movements in a financial market. Traders use them to predict future price actions. Here are the key types of chart patterns:
DRKFRX INDICTOR GOL BUY SNIPESIndicator Overview
The LWMA-MA is a hybrid trading tool combining Linear Weighted Moving Averages (LWMA) with EMA trend filtering, designed for disciplined trend-following strategies. It generates clear buy/sell signals while enforcing strict risk management rules.
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.