Buy/Sell Break and RetestThis script is a Pine Script indicator for TradingView titled **"Buy/Sell Break and Retest"**. Here's a description of its functionality:
### Purpose:
The script identifies potential **buy** and **sell entry levels** based on break-and-retest patterns in the market. It works by analyzing higher timeframe data (e.g., 1-hour) and marking entries on a lower timeframe (e.g., 1-minute).
### Key Features:
1. **Configurable Timeframes**:
- `Analysis Timeframe`: Used for identifying break-and-retest signals (default: 1-hour).
- `Entry Timeframe`: Used for marking and plotting entries (default: 1-minute).
2. **Buy and Sell Signals**:
- A **sell entry** is triggered when a bearish candle (close < open) is identified in the analysis timeframe.
- A **buy entry** is triggered when a bullish candle (close > open) is identified in the analysis timeframe.
3. **Retest Logic**:
- For sell signals: The retest is validated when the price breaks below the identified sell level.
- For buy signals: The retest is validated when the price breaks above the identified buy level.
4. **Visual Indicators**:
- Entry levels are marked with labels:
- **Buy Entry**: Green labels are placed at bullish candle opens.
- **Sell Entry**: Red labels are placed at bearish candle closes.
- Plots the levels for easy reference:
- **Sell Level**: Displayed as red circles on the chart.
- **Buy Level**: Displayed as green circles on the chart.
5. **Dynamic Updates**:
- Levels are cleared when invalidated by the price action.
### Use Case:
This indicator helps traders spot break-and-retest opportunities by:
- Allowing higher timeframe analysis to determine trend direction and key levels.
- Providing actionable buy and sell entry points on lower timeframes for precision.
Let me know if you'd like further clarification or improvements!
Padrões gráficos
RSI Divergence with Bullish CandleKey Concepts in the Script:
RSI Calculation: The RSI is calculated with the user-defined period (rsiLength). The script uses the default 14-period RSI but you can adjust it.
Bullish Divergence:
Price Low: The script checks for the lowest price over the last 20 bars (ta.lowest(close, 20)).
RSI Low: The script checks for the lowest RSI over the same 20 bars.
Divergence Condition: Bullish divergence is identified when the price forms a lower low (priceLow1 < priceLow2), while the RSI forms a higher low (rsiLow1 > rsiLow2), and the RSI is below the oversold level (typically 30).
Bullish Candle Pattern:
A Bullish Engulfing pattern is defined as the current candle closing higher than it opened, and the close being above the previous candle's high.
A Hammer pattern is defined as a candlestick where the close is higher than the open, and the low is the lowest of the last 5 bars.
Buy Signal: The script generates a buy signal when both the bullish divergence and bullish candle are confirmed at the same time.
Ichimoku Cloud / Owl of ProfitIchimoku Cloud Strategy
This strategy uses the Ichimoku Cloud indicator to detect trend direction and momentum for generating entry and exit signals.
Features:
Ichimoku Cloud Components:
Tenkan-Sen (Conversion Line): Calculated as the midpoint of the highest high and lowest low over the past 9 periods (default).
Kijun-Sen (Base Line): Calculated as the midpoint of the highest high and lowest low over the past 26 periods (default).
Senkou Span A (Leading Span A): The average of Tenkan-Sen and Kijun-Sen, displaced 26 periods into the future.
Senkou Span B (Leading Span B): The midpoint of the highest high and lowest low over the past 52 periods, displaced 26 periods into the future.
Chikou Span (Lagging Span): The current close, displaced 26 periods into the past.
Entry Conditions:
Long: Price is above the cloud (Span A and Span B) and Tenkan-Sen is above Kijun-Sen.
Short: Price is below the cloud (Span A and Span B) and Tenkan-Sen is below Kijun-Sen.
Exit Conditions:
Positions are exited when the opposite signal is generated.
Visualization:
The Ichimoku Cloud (Kumo) is displayed with a green fill for bullish trends and a red fill for bearish trends.
Tenkan-Sen and Kijun-Sen are plotted as dynamic support and resistance levels.
This strategy is ideal for identifying strong trends and capturing momentum-based trade opportunities. Use it for backtesting and further adaptation to your trading preferences.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
BuyTheDips Trade on Trend and Fixed TP/SL
This strategy is designed to trade in the direction of the trend using exponential moving average (EMA) crossovers as signals while employing fixed percentages for take profit (TP) and stop loss (SL) to manage risk and reward. It is suitable for both scalping and swing trading on any timeframe, with its default settings optimized for short-term price movements.
How It Works
EMA Crossovers:
The strategy uses two EMAs: a fast EMA (shorter period) and a slow EMA (longer period).
A buy signal is triggered when the fast EMA crosses above the slow EMA, indicating a potential bullish trend.
A sell signal is triggered when the fast EMA crosses below the slow EMA, signaling a bearish trend.
Trend Filtering:
To improve signal reliability, the strategy only takes trades in the direction of the overall trend:
Long trades are executed only when the fast EMA is above the slow EMA (bullish trend).
Short trades are executed only when the fast EMA is below the slow EMA (bearish trend).
This filtering ensures trades are aligned with the prevailing market direction, reducing false signals.
Risk Management (Fixed TP/SL):
The strategy uses fixed percentages for take profit and stop loss:
Take Profit: A percentage above the entry price for long trades (or below for short trades).
Stop Loss: A percentage below the entry price for long trades (or above for short trades).
These percentages can be customized to balance risk and reward according to your trading style.
For example:
If the take profit is set to 2% and the stop loss to 1%, the strategy operates with a 2:1 risk-reward ratio. BINANCE:BTCUSDT
Bearish Wick Reversal█ STRATEGY OVERVIEW
The "Bearish Wick Reversal Strategy" identifies potential bullish reversals following significant bearish price rejection (long lower wicks). This counter-trend approach enters long positions when bearish candles show exaggerated downside wicks relative to closing prices, then exits on bullish confirmation signals. Includes optional EMA trend filtering for improved reliability.
█ What is a Bearish Wick?
A price rejection pattern where:
Bearish candle (close < open) forms with extended lower wick
Wick represents failed selloff: Low drops significantly below close
Measured as: (Low - Close)/Close × 100 (Negative percentage indicates downward extension)
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
Bearish candle forms with close < open
Lower wick exceeds user-defined threshold (Default: -1% of close price)
The signal occurs within the specified time window
If enabled, the close price must also be above the 200-period EMA (Exponential Moving Average)
2. EXIT CONDITION
A Sell Signal is generated when the current closing price exceeds the highest high of the previous seven bars (`close > _highest `). This indicates that the price has shown strength, potentially confirming the reversal and prompting the strategy to exit the position.
█ PERFORMANCE OVERVIEW
Ideal Market: Volatile instruments with frequent price rejections
Key Risk: False signals in sustained bearish trends
Optimization Tip: Test various thresholds
Filter Impact: EMA reduces trades but improves win rate and reduces drawdown
7 Indicator Bottom and Top finder
The script is a trading indicator for the TradingView platform designed to generate and visualise buy and sell signals based on various technical indicators. It utilises short periods and smoothes data to achieve high sensitivity to volatile markets. The functionality, application and use of the script are explained below:
1. how it works
The script combines several technical indicators to create a summarised signal for buy and sell decisions. It includes:
a. Calculation of the indicators:
BBTrend: Determines the difference between two moving averages (shorter and longer period).
VMC (RSI): Uses the Relative Strength Index (RSI) for trend evaluation.
SMI (Stochastic Momentum Index): Measures the difference in current and previous prices.
RSI: A classic momentum indicator.
OBV RSI: Combines the On-Balance Volume indicator with the RSI.
SQMOM_LB (Squared Momentum): Measures the speed of price changes.
MACD: Utilises the difference between fast and slow moving averages and their signal.
b. Generation of signals:
Each indicator provides an individual signal based on set thresholds:
Each indicator provides an individual signal based on defined threshold values:
1: Signal for buy (strongly positive).
-1: Sell signal (strongly negative).
0: No signal (neutral).
c. Signal evaluation and aggregation:
All signals are totalled to calculate a strength for buy and sell signals.
The stronger signal (buy or sell) is prioritised, smoothed and limited to a maximum signal value.
d. Identification of extremes (tops and bottoms):
Extrema detection uses dynamic thresholds that depend on market volatility.
Peaks (tops) and troughs (bottoms) are marked, signalling potential turning points in the market.
e. Visualisation:
A histogram shows the strength of buy and sell signals (green for buy, red for sell).
Circles mark tops and bottoms in the chart.
Threshold lines (upper and lower limits) and a centre line help with interpretation.
2. application
The script is used as follows:
Installation:
Copy the code into a new indicator in the TradingView environment.
Add the indicator to a chart.
Customisation of parameters:
Users can customise the input values (input) to suit their trading strategy and market conditions, e.g. indicator length, thresholds and smoothing parameters.
Signal interpretation:
Green bars: Strong buying opportunity.
Red bars: Strong selling opportunity.
Circles: Potential reversal points (top/bottom).
Optimisation:
The indicator can be fine-tuned by adjusting the periods (shorter for volatile markets) and threshold values.
3. use
Short-term trading: The indicators' short periods and high sensitivity are ideal for volatile markets and short-term strategies.
Recognising market turns: Extrema detection helps to find potential tops and bottoms.
Evaluate signal strength: The histogram allows you to visually assess the signal strength.
Note: This indicator should not be used alone, but in combination with other analysis methods, such as fundamental analysis or additional technical analysis.
Summary
The ‘Volatile and Optimised Multi-Signal Evaluator’ script combines several indicators in a flexible and sensitive tool that identifies buy and sell signals as well as market reversal points in volatile environments. It offers the user a variety of customisation options and a clear visual representation of market dynamics.
Gap Down Reversal Strategy█ STRATEGY OVERVIEW
The "Gap Down Reversal Strategy" capitalizes on price recovery patterns following bearish gap-down openings. This mean-reversion approach enters long positions on confirmed intraday recoveries and exits when prices breach previous session highs. This strategy is NOT optimized.
█ What is a Gap Down Reversal?
A gap down reversal occurs when:
An instrument opens significantly below its prior session's low (price gap)
Selling pressure exhausts itself during the session
Buyers regain control, pushing price back above the opening level
Creates a candlestick with:
• Open < Prior Session Low (true gap)
• Close > Open (bullish reversal candle)
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
Previous candle closes BELOW its opening price (bearish candle)
Current session opens BELOW prior candle's low (gap down)
Current candle closes ABOVE its opening price (bullish reversal)
Executes market order at session close
2. EXIT CONDITION
A Sell Signal is generated when the current closing price exceeds the highest high of the previous seven bars (`close > _highest `). This indicates that the price has shown strength, potentially confirming the reversal and prompting the strategy to exit the position.
█ PERFORMANCE OVERVIEW
Ideal Market: High volatility instruments with frequent gaps
Key Risk: False reversals in sustained downtrends
Optimization Tip: Test varying gap thresholds (1-3% ranges)
Monthly Start LinesThis script automatically draws vertical lines on the chart at the start of each new month
ATR + Pivot Points / Owl of ProfitThis strategy combines ATR (Average True Range) and Pivot Points for trade entries and exits. It uses dynamic stop loss and take profit levels based on ATR, and incorporates daily Pivot Points as key levels for decision-making.
Features:
Pivot Points: Calculates standard daily Pivot Points (Pivot, R1, R2, S1, S2) for support and resistance levels.
ATR Integration: Uses ATR to dynamically set stop loss and take profit levels with customizable multipliers.
Entry Conditions:
Long: Price crosses above R1.
Short: Price crosses below S1.
Exit Conditions:
Optional closing of positions when crossing the main pivot point.
Fully visualized Pivot Points for easy reference on the chart.
Customization Options:
Adjust Pivot Points calculation period.
Modify ATR length and multiplier for tailored risk management.
Enable or disable Pivot Points visualization.
This strategy is designed for demonstration and educational purposes. Use it as a foundation for further backtesting and customization.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
3 Line Strike + EMA / Owl of ProfitThis script is based on the TMA Overlay by Arty and extended with an ATR and EMA filter for enhanced strategy conditions.
Features:
Detects Bullish and Bearish 3 Line Strike patterns:
Bullish: Three consecutive red candles followed by a large green engulfing candle.
Bearish: Three consecutive green candles followed by a large red engulfing candle.
Adds an EMA filter:
Bullish signals only trigger if the price is above the EMA.
Bearish signals only trigger if the price is below the EMA.
Uses ATR to calculate dynamic Take Profit (TP) and Stop Loss (SL) levels.
Includes alert conditions for automation or monitoring of key signals.
Strategy entries are based on combined candlestick patterns and trend validation.
Customization Options:
Adjust ATR and EMA lengths for flexibility.
Enable/disable specific signals (e.g., Bullish or Bearish 3 Line Strike).
This strategy is designed for educational and testing purposes. Use it as a foundation for further customization and backtesting on your preferred markets.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
3 Line Strike + ADX / Owl of ProfitThis script is based on the TMA Overlay by Arty and extended with an ATR and ADX filter for enhanced strategy conditions.
Features:
Detects Bullish and Bearish 3 Line Strike patterns:
Bullish: Three consecutive red candles followed by a large green engulfing candle.
Bearish: Three consecutive green candles followed by a large red engulfing candle.
Adds an ADX filter to ensure strong trend conditions before generating signals.
Uses ATR to calculate dynamic Take Profit (TP) and Stop Loss (SL) levels.
Includes alert conditions for automation or monitoring of key signals.
Strategy entries are based on combined candlestick patterns and trend strength.
Customization Options:
Adjust ATR and ADX lengths, as well as the ADX threshold for trend validation.
Enable/disable specific signals (e.g., Bullish or Bearish 3 Line Strike).
This strategy is designed for educational and testing purposes. Use it as a foundation for further customization and backtesting on your preferred markets.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
3 Line Strike (TheTrdFloor) / Owl of Profit remakeThis script is based on the TMA Overlay by Arty and converted to a simple strategy example. A huge thank you to TheTrdFloor for the inspiration!
Features:
Detects Bullish and Bearish 3 Line Strike patterns:
Bullish: Three consecutive red candles followed by a large green engulfing candle.
Bearish: Three consecutive green candles followed by a large red engulfing candle.
Identifies Bullish and Bearish Engulfing Candles (optional).
Includes alert conditions for all signals, supporting automation or monitoring.
Plots visual markers for signals, with an optional meme icon overlay.
Strategy entries are executed based on signal detections.
Customization Options:
Enable/disable specific patterns/signals (e.g., 3 Line Strike or Engulfing Candles).
Choose between meme icons or standard chart shapes.
This strategy is designed for educational and testing purposes. Use it as a foundation for further customization and backtesting on your preferred markets.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
SPY/TLT Strategy█ STRATEGY OVERVIEW
The "SPY/TLT Strategy" is a trend-following crossover strategy designed to trade the relationship between TLT and its Simple Moving Average (SMA). The default configuration uses TLT (iShares 20+ Year Treasury Bond ETF) with a 20-period SMA, entering long positions on bullish crossovers and exiting on bearish crossunders. **This strategy is NOT optimized and performs best in trending markets.**
█ KEY FEATURES
SMA Crossover System: Uses price/SMA relationship for signal generation (Default: 20-period)
Dynamic Time Window: Configurable backtesting period (Default: 2014-2099)
Equity-Based Position Sizing: Default 100% equity allocation per trade
Real-Time Visual Feedback: Price/SMA plot with trend-state background coloring
Event-Driven Execution: Processes orders at bar close for accurate backtesting
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
TLT closing price crosses ABOVE SMA
Occurs within specified time window
Generates market order at next bar open
2. EXIT CONDITION
TLT closing price crosses BELOW SMA
Closes all open positions immediately
█ ADDITIONAL SETTINGS
SMA Period: Simple Moving Average length (Default: 20)
Start Time and End Time: The time window for trade execution (Default: 1 Jan 2014 - 1 Jan 2099)
Security Symbol: Ticker for analysis (Default: TLT)
█ PERFORMANCE OVERVIEW
Ideal Market Conditions: Strong trending environments
Potential Drawbacks: Whipsaws in range-bound markets
Backtesting results should be analyzed to optimize the MA Period and EMA Filter settings for specific instruments
Enhanced UT Bot with Long & Short TradesThis Pine Script implements a UT Bot Strategy based on ATR (Average True Range) trailing stop levels to generate buy and sell signals. It features:
Customizable Sensitivity:
Adjust the Key Value and ATR Period to control signal sensitivity.
Trailing Stop Logic:
A dynamic trailing stop tracks price movements based on ATR, switching between buy and sell zones.
Trade Automation:
Uses strategy.entry and strategy.close to automate long and short trades.
Triggers webhook alerts for buy and sell signals (UT Bot Buy and UT Bot Sell).
Visual Signals:
Displays trailing stop levels on the chart.
Plots buy/sell labels when crossover or crossunder events occur.
Webhook Integration:
Supports automated trade execution via webhook alerts.
Ideal for traders looking for a simple yet effective ATR-based trading strategy that works with automated systems like webhook triggers.
Fear & Greed Index (Zeiierman) copyThe Fear & Greed Index (Zeiierman) is a sentiment analysis tool designed to measure market emotions, ranging from extreme fear to extreme greed. It typically aggregates various market indicators—such as volatility, momentum, demand, and technical analysis—to determine the prevailing sentiment among investors.
Extreme Fear: Suggests that investors are highly pessimistic, which may indicate a potential buying opportunity.
Fear: Shows a cautious or bearish market sentiment.
Neutral: Reflects a balanced market outlook.
Greed: Indicates rising optimism and potentially overbought conditions.
Extreme Greed: Suggests excessive investor confidence, which could be a sign of an overheated market and possible corrections.
Refined Highs and Lows MarkerSince having been at this Trading thing since 1983 I know for a fact that marking and following Highs and Lows and the Higher highs and Lower lows in between "Tops" and "Bottoms" since nearly the beginning of time. This script shows those highs and lows based on three candles where the middle candle will be your Hi or Lo. The idea here is to at say a "Bottom" to locate the Red lowest Lo, then a red or Green Hi and finally a "Green" higher Lo. This outline typically can indicate a reversal point. The same is also true of "Tops" in where you will see the "green" highest hi followed by a green or red Lo. The last point should be a "RED" lower Hi from which to potentially sell. The script does not always abandon a Hi for a newer hi where there is no lo between them, and the same is also true of lows. You can manually place in a triangle icon and putting a proper color to it. Higher "Highs" and higher "Lows" are marked in Green and lower highs and lower lows are marked with red. I personally use a 13 SMA which shows candles/price fully below it when heading down and fully above the SMA when heading up. This script should be used in conjunction with perhaps one other indicator of your preference. Enjoy and build.
TF_VXMV Active Trend FollowingTF_VXMV Active Trend Following Algorithm
// Version 1.1
// Date : 26. June 2023
// (28/06/2023) Update 1.1 : added crypto as input.
// Scope:
// - can be used for Stocks, Futures, Indices, Bonds, ETFs, Forex
// Features:
// - the algorithm adjusts the stop-loss multiplier according to the market cap of the security (stocks only)
// - furthermore the multiplier gets adjusted by the VIX regime that is currently prevailing (high vol-> increased multiplier)
// - all multipliers have default values prescribed that are derived from benchmark calibration back-tests, they can be
// manually adjusted in TradingView indicator settings.
//
// The original algorithm is based on Wilders Trend Following algorithm.
// Details can be found in his book, or better in the two papers that were published on the indicator, which can be found here
// (1) www.researchgate.net
// (2) www.researchgate.net
//
// Copyright ©TradeFlags, Andreas Aigner 2023
// For implementation of this algorithm into your own application please contact me.
Trader Martiny IndicatorTrader Martiny Indicator
Based on the 8-period exponential moving average, colors the candles according to the possible reversal. Green for buy, red for sell.
Change Candle Color When 5 EMA Not ConnectedThis custom TradingView indicator changes the color of candlesticks to yellow whenever the 5-period Exponential Moving Average (EMA) is not "connected" to the current candle.
How It Works:
The 5 EMA is calculated based on the closing prices of the last 5 candles.
A candle is considered "not connected" to the EMA if:
The high and low of the current candle are both either above or below the 5 EMA, implying a significant deviation from the EMA.
When this condition is met, the candle color is changed to yellow to highlight this disconnection.
The default behavior of the script is to not display the 5 EMA line, keeping the chart uncluttered while focusing on the candlestick colors.
Usage:
This indicator is useful for scalping or short-term trading strategies, as it helps identify when the price has moved significantly away from the 5 EMA. A yellow candle could signal potential overextension or a possible reversal if the price is far from the EMA. Traders can use this as part of their risk management or entry/exit decision-making process.
Customization:
The indicator doesn't display the 5 EMA line, but you can modify the script to show it if needed by uncommenting the plot(ema5) line.
You can adjust the period of the EMA by modifying the ema5 period in the code, though the default setting is 5 periods.
crt - b1r1nc1winning circle crt indicator
b1r1nc1
Candle Range Trading (CRT) Indicator
The CRT Indicator identifies potential trading opportunities by analyzing specific candlestick patterns. This script is designed to detect both bullish and bearish CRT patterns and provides visual cues directly on your chart.
Features:
Pattern Detection:
Analyzes two consecutive candles to identify the CRT pattern.
Detects both bullish and bearish setups based on the relative positions of the candles.
IB of New Hour (Customizable)Purpose: Tracks first x candles of each hour to define a price range
Customizable settings:
Border color of the IB box
Fill color of the IB box
Number of candles to define IB
Box width in hours (1-24)
Functionality:
Calculates highest high and lowest low for specified number of candles
Creates a rectangular box representing the initial balance
Adapts to different timeframes (1, 5, 15, 30, 60-minute charts)
Limits storage of boxes to prevent memory overload
Box Placement:
Starts at first candle of the hour
Width calculated based on current timeframe and user-specified hours
Maintains consistent visual representation across different chart timeframes
Indicator for helping you with bias
bhushan s Trades ZonesExpected Behavior on the Chart
Upper Zone: When the price crosses or goes above the highest high over the past length bars, the background color will change to the color you set (default is blue, with transparency 80%).
Lower Zone: Similarly, when the price drops below the lowest low over the past length bars, the background color will also change.
Lines: The upper and lower boundaries (highest high and lowest low) will be marked with horizontal lines in green and red, respectively.
Alerts: If the price breaks above or below these zones, the respective alert will trigger.
Example Scenario:
If you're using this on a 1-hour chart and set the length to 20, the script will look back 20 hourly bars to calculate the highest and lowest prices during that period. If the price breaks above the highest or below the lowest level, the background color will change accordingly, and you'll be alerted if you have set up an alert.
Auto Fibonacci LinesThis TradingView script is a modded version of the library called "VisibleChart" created by Pinecoder.
This version has the option for users to change the Fibonacci lines and price labels. This makes the script user-friendly.
Fibonacci extensions are a tool that traders can use to establish profit targets or estimate how far a price may travel after a retracement/pullback is finished. Extension levels are also possible areas where the price may reverse. This study automatically draws horizontal lines that are used to determine possible support and resistance levels.
It's designed to automatically plot Fibonacci retracement levels on chart, aiding in technical analysis for traders.
First, the highest and lowest bars on the chart are calculated. These values are used for Fibonacci extensions.
These values update as traders scroll or zoom their charts, this shows that it is a useful indicator that can dynamically calculate and draw visuals on visible bars only.