HTF Candles Overlay [Trendoscope®]🎲 HTF Candles Overlay is a simple indicator where you can overlay higher timeframe candles on current timeframe chart.
Most of the code is encapsulated in the library HTFCandlesLib . After publishing the library as open source, many people requested to convert that into an indicator. Based on this, we decided to publish this small code for the use of community.
🎯 Usage
The indicator is simple, it helps users visualise higher timeframe candles. We majorly use this for debugging or validating our implementations based on higher timeframe. Instead of switching back and forth to different timeframes, it helps us visualise higher timeframe candles on the same chart when we are validating the implementation that involves higher timeframe calculations.
🎯 Components
The indicator provides two types of displays
Candles - overlay candles built through lines and labels
Plot - close price of higher timeframe plotted on chart
🎯 Candles
The behaviour of the candles are similar to that of hollow candles. The color of the body and the border+wick demonstrates the movement of the candle.
Body color is lime if the HTF close is higher than HTF open. Body color is orange if the HTF close is lower than the HTF open.
Wick and border color is lime if HTF close price is higher than previous HTF close price. And they are orange if HTF close price is lower than the previous HTF close price
In most cases body color will be same as the wick color. In case of stocks and indices, it may happen that the open price is too far away from previous close price due to gaps. This can lead to close price being relatively in different direction when compared to open and previous close.
Wicks are not at the centre of the candle. Instead wicks are drawn on the current chart timeframe position where the current timeframe has reached the highest or lowest point within the given HTF candle
Candles also list OHLC price of HTF candle along with HTF bar index and the range of LTF bar index that the candle spawns
Here are some pictorial representations that can help understand better.
Here are the examples of candles with gaps where body and wick/border are in different directions (colours)
🎯 Indicator Settings
Simple settings allow users to select the timeframe, whether to display candles and plots and their specific colors.
🎯 Possible inconsistencies
The overlay can show inconsistent data in certain situations. Here are some of the scenarios where the indicator may not show consistent display of the data.
When the HTF data from request.security does not match that of combined LTF data . In such cases, HTF candles may not form inline with the current timeframe candles. This happens when there is a data issue of different OHLC data available in tradingview.
When using weekly candle as either chart timeframe or higher timeframe - end of week may not coincide with end of month or other timeframes. This can cause some inconsistencies in the visuals of the indicator.
When open and close time of either LTF or HTF falls under different day due to time zone used. - time is always the time on which the candle close. So, when we use time zone that causes the exchange day to open and close on different days, that can cause some inconsistencies in the candles being drawn.
Candlestick analysis
Daily Single Trade [SMRT Algo]The Daily Single Trade Indicator by SMRT Algo is a powerful yet simple tool designed for traders who value precision, discipline, and a focus on high-quality trade setups. With a unique approach, this indicator identifies just one signal daily, making it ideal for traders who prefer a structured and stress-free trading routine.
Please note that this indicator only works for timeframes below 1H.
Key Features:
Market Open & Pre-Market Analysis: The indicator focuses on the market’s opening range and identifies breakout opportunities based on price action during these critical periods.
Customizable Risk-Reward Ratio: Plan your trades with precision by setting your desired RR, ensuring that your take-profit (TP) levels are multiples of your stop-loss (SL). Stop loss is not shown with this indicator.
Price Offset for SL: Add a customizable buffer to your SL and TP levels. This offset accounts for market volatility, reducing the chances of premature stop-outs while maintaining alignment with your trading plan.
Increasing this value will lead to a greater invisible stop loss, which will increase the TP size. The opposite is occurs when decreasing this value (less than 0). If you set it as 2.5 for example for TSLA: price is 340 and SL is 330 for example, SL becomes 327.5. This calculation will then be applied to calculate the TP.
In simple terms, if the offset is positive, SL becomes larger, TP becomes larger as well.
Exit Point Visibility: Display exit points on your chart to better visualize trade targets and stop levels.
Adjustable Market Open Time: Easily modify the market open hour and minute to suit your asset’s trading session. For example, U.S. stock traders can set the market open time to 9:30 AM EST (UTC-5).
By providing a single signal each day, the indicator minimizes overtrading and keeps your focus on the best opportunities.
With predefined SL, TP, and RR settings, the indicator fosters disciplined trading, reducing the influence of emotional decision-making. Whether you’re trading stocks, indices, or forex, the customizable market open time and RR ratio make this indicator versatile and adaptable.
The combination of precise SL and TP calculations with offset pip adjustments helps protect your trades from market noise while maintaining a favorable RR.
Perfect for those who can’t monitor markets all day, the single-signal approach allows you to execute a high-quality trade and move on with your day.
How to Use:
Set the Market Open Time: Adjust the open time to align with your asset’s session. For example, set 9:30 AM EST for U.S. stocks.
Define Your Risk-Reward Ratio: Choose an RR multiple (e.g., 1:2 or 1:3) that aligns with your risk tolerance and trading goals.
Apply Pip Offset: Add a buffer to your SL and TP to account for market volatility and reduce false stops.
The Daily Single Trade Indicator simplifies trading by focusing on one high-probability setup per day. It’s perfect for traders looking to maintain consistency, improve risk management, and reduce the stress of overanalyzing the markets.
How Alerts Work:
Individual Alerts: Set separate notifications for specific actions, such as breakout signals, take-profit levels, or stop-loss activations.
Master Alert: Manage all notifications with one streamlined setting, ensuring you never miss an opportunity while keeping your setup simple and efficient.
Take control of your trading with a strategy built for clarity, precision, and success!
SiCInside Sweep Close (ISC):
This concept captures a specific price action behavior and can help refine trading strategies for better precision. Here's a detailed explanation:
Inside:
The closing price of the candle stays within the range of the previous candle.
This indicates a containment of price action, suggesting indecision or preparation for a significant move.
Sweep:
The wick of the candle takes out (or "sweeps") the low (or high) of the previous candle.
This sweep can trigger stop-losses of retail traders or activate pending orders, often used by smart money strategies.
Close:
The candle ultimately closes inside the range of the previous candle.
This close signifies that the sweep was a liquidity grab rather than a genuine breakout, providing an actionable trading signal.
How ISC Can Be Used in Trading:
Liquidity Grab Recognition:
ISC can indicate when liquidity is swept from the market, making it an ideal entry point for traders anticipating a reversal or continuation.
Smart Money Concept (SMC) Synergy:
If you follow SMC principles, ISC aligns with key concepts like liquidity sweeps, order blocks, and mitigation zones.
Risk Management:
By identifying the ISC setup, you can place tighter stop-loss levels just outside the sweep, optimizing risk-reward ratios.
Entry Signals:
When you spot an ISC, you can enter trades at the close of the candle, anticipating a move in the direction opposite to the sweep.
Example of ISC in Action:
Imagine a bearish candle:
The wick sweeps the low of the previous candle, possibly triggering stop-losses.
However, the close stays inside the previous candle’s range.
This setup might indicate a reversal, where price moves upward after grabbing liquidity.
Why This Name Works:
It’s concise, professional, and directly linked to the trading action you’re describing.
The short form, ISC, is easy to remember and discuss within trading circles or while teaching others.
It ties into widely known concepts like smart money, price action, and liquidity sweeps, making it relatable yet unique.
Does this align with how you envision using the concept? Let me know if you’d like more refinements or visual examples!
Newday_smaThis algorithm is based on SMA (Simple Moving Average) to identify price trends, detecting "positive price zones" (where the price is above the SMA) and "negative price zones" (where the price is below the SMA), and then connecting turning points within those zones with lines.
Key Steps:
SMA Period Selection: The user can select the SMA period to be 5, 10, or 20.
SMA Calculation: The SMA of the current price is calculated based on the selected period.
Identify Positive and Negative Price Zones:
Positive Price Zone: When the closing price is higher than the SMA, it’s considered a positive price zone.
Negative Price Zone: When the closing price is lower than the SMA, it’s considered a negative price zone.
Identify Turning Points:
In the positive price zone, if the current closing price falls below the SMA, a potential turning point is detected, and the algorithm looks for the lowest point (the lowest high in that zone).
In the negative price zone, if the current closing price rises above the SMA, a potential turning point is detected, and the algorithm looks for the highest point (the highest low in that zone).
Connect the Turning Points:
When transitioning from the negative price zone to the positive price zone, a line is drawn from the lowest point of the negative zone to the highest point of the positive zone.
When transitioning from the positive price zone to the negative price zone, a line is drawn from the highest point of the positive zone to the lowest point of the negative zone.
Dynamic Updates: As new candles form, the algorithm continuously updates the turning points and draws the lines accordingly.
Key Features:
Flexible SMA Period Selection: The user can choose from different SMA periods (5, 10, or 20).
Dynamic Turning Point Recognition: The algorithm dynamically identifies turning points based on the relationship between the price and the SMA, marking fluctuations in price.
Connecting Turning Points: The algorithm connects the key points in positive and negative price zones with lines to help identify price trends.
Use Cases:
This algorithm is useful for technical analysis, especially for short-term trading.
It helps identify support and resistance levels, assisting users in making buy and sell decisions.
No Wick Setup Indicator
**No Wick Setup Indicator**
This is a custom trading indicator designed to identify and signal potential buy and sell opportunities based on candlestick patterns with no wicks. Specifically, it looks for candles with no wicks at the bottom (bullish setup) or no wicks at the top (bearish setup). Here's how it works:
**Key Features:**
- **Bullish Setup**: A green candlestick with no bottom wick (i.e., the open price is equal to the low price of the candle) is considered a potential bullish signal. A trendline is drawn at the bottom of this candle. When the market price returns to this trendline, a buy signal is generated.
- **Bearish Setup**: A red candlestick with no top wick (i.e., the open price is equal to the high price of the candle) is considered a potential bearish signal. A trendline is drawn at the top of this candle. When the market price returns to this trendline, a sell signal is generated.
- **Timeframe**: This indicator works exclusively on the **30-minute timeframe**.
**How It Works:**
1. When a candlestick pattern with no bottom wick (bullish setup) is identified, a trendline is drawn at the low of the candlestick.
2. When a candlestick pattern with no top wick (bearish setup) is identified, a trendline is drawn at the high of the candlestick.
3. The indicator then tracks the market price and waits for it to return to the respective trendline level.
4. **Buy Signal**: When the market price touches or goes below the bullish trendline, a **Buy** signal is displayed on the chart with an upward arrow.
5. **Sell Signal**: When the market price touches or goes above the bearish trendline, a **Sell** signal is displayed on the chart with a downward arrow.
**Visual Elements:**
- **Trendlines**: Horizontal lines drawn at the bottom (bullish) or top (bearish) of the candlesticks with no wick.
- **Buy/Sell Labels**: Labels indicating "Buy" or "Sell" appear when the market price returns to the trendline.
**Why Use This Indicator?**
- This indicator helps identify specific price levels where the market might reverse or consolidate based on candlestick structure, offering potential entry points for trades.
- It allows traders to focus on price action and market behavior without relying on more complex indicators.
VRDisplays the volume ratio of the currently analyzed trading pair compared to the BTC/USD trading pair on Coinbase. It uses the ratio of their respective trading volumes and visualizes the data as a histogram (columns) with different colors based on specific thresholds.
Grey backgrounds on weekends.
Candlestick DataCandlestick Data Indicator
The Candlestick Data indicator provides a comprehensive overview of key metrics for analyzing price action and volume in real-time. This overlay indicator displays essential candlestick data and calculations directly on your chart, offering an all-in-one toolkit for traders seeking in-depth insights.
Key Features:
Price Metrics: View the daily high, low, close, and percentage change.
Volume Insights: Analyze volume, relative volume, and volume buzz for breakout or consolidation signals.
Range Analysis: Includes closing range, distance from low of day (LoD), and percentage change in daily range expansion.
Advanced Metrics: Calculate ADR% (Average Daily Range %), ATR (Average True Range), and % from 52-week high.
Moving Averages: Supports up to four customizable moving averages (EMA or SMA) with distance from price.
Market Context: Displays the sector and industry group for the asset.
This indicator is fully customizable, allowing you to toggle on or off specific metrics to suit your trading style. Designed for active traders, it brings critical data to your fingertips, streamlining decision-making and enhancing analysis.
Perfect for momentum, swing, and day traders looking to gain a data-driven edge!
Bullish Candlestick with No or Small Bottom Wickthis indicator highlights bullish candles with no lower wick of with a very small lower wick. the idea is that when this occurs, price will sooner or later get back to this area. you could use it for a strategy that sets up shorts just below the bullish candle.
Fractal candles by RadonirinaThis script is used for HTF fractality.
Advantages
User can focus on LTF when he/she knows the biais
User can see what happens on HTF without switching between TF
Here the concept :
User can switch between TF, the script will show the HTF (<15m it uses 15min HTF, <1H it uses 1H, < 1D it uses Daily, < 1W it uses Weekly, Weekly and more the script is disabled)
User can choose a fixed TF for the fractality, this TF will be use for all TF
User can set up the candles to plot
Here are some screenshot
1min x 15min
15min x 1H
1h x 4H
1D x 1W
PDH & PDL Indicator: Previous Day's High/Low with AlertsThe PDH & PDL Indicator plots the Previous Day's High (PDH) and Previous Day's Low (PDL) directly on the chart, providing a clear visual reference for key price levels. These levels are often used by traders to identify potential breakout or breakdown zones and to gauge market strength or weakness.
Features:
PDH (Green Line) : Represents the high of the previous trading day.
PDL (Red Line): Represents the low of the previous trading day.
Alerts:
Get notified when the price crosses above PDH or below PDL.
Custom alert messages to keep you informed in real-time.
Use Cases:
Identify key breakout and breakdown points for potential trade entries or exits.
Confirm the strength of a trend by monitoring price action relative to PDH and PDL.
Useful for intraday, swing, and positional traders who rely on historical price levels for strategy development.
DCA Performance AnalysisDollar-Cost Averaging (DCA) Performance Calculator
This indicator helps you analyze the performance of a DCA investment strategy by simulating regular periodic investments into an asset. Perfect for long-term investors who want to evaluate or backtest their DCA strategy.
Key Features:
- Flexible Investment Scheduling: Choose between daily, weekly, or monthly investments
- Custom Date Range: Set specific start and end dates for your analysis
- Adjustable Investment Amount: Input any dollar amount for your regular investments
- Clear Visual Markers: Green triangles show entry points, red triangle marks the end date
- Comprehensive Performance Metrics: View total investment, days invested, unrealized yield, and portfolio value
The indicator displays a clean, easy-to-read table showing:
1. Total Invested: The cumulative amount of money invested
2. Investment Days: Total number of investment entries executed
3. Unrealized Yield: Both dollar amount and percentage return (calculated at end date)
4. Portfolio Worth: Total value of holdings at the specified end date
Usage Tips:
- Best used on BTCUSD or other cryptocurrency pairs
- Works on all timeframes, but matching the timeframe to your DCA frequency provides the clearest visualization
- Calculations use opening prices for entries and closing price at end date for final valuation
- All calculations are based on UTC+0 time
This tool is ideal for:
- Backtesting DCA strategies
- Understanding historical DCA performance
- Comparing different DCA frequencies
- Planning future DCA investments
- Educational purposes about DCA investing
Note: This indicator is for informational purposes only and should not be considered financial advice. Past performance does not guarantee future results.
Liquid Pours XtremeStrategy Description: Liquid Pours Xtreme
The Liquid Pours Xtreme is an innovative trading strategy that combines the analysis of specific time-based patterns with price comparisons to identify potential opportunities in the forex market. Designed for traders seeking a structured methodology based on clear rules, this strategy offers integration with Telegram for real-time alerts and provides visual tools to enhance trade management.
Key Features:
Analysis of Specific Time Patterns: The strategy captures and compares closing prices at two key moments during the trading day, identifying recurring patterns that may indicate future market movements.
Dynamic SL and TP Levels Implementation: Utilizes tick-based calculations to set Stop-Loss and Take-Profit levels, adapting to the current market volatility.
Advanced Telegram Integration: Provides detailed alerts including information such as the asset, signal time, entry price, and SL/TP levels, facilitating real-time decision-making.
Complete Customization: Allows users to adjust key parameters, including operation schedules, weekdays, and visual settings, adapting to different trading styles.
Enhanced Chart Visualization: Includes visual elements like candle color changes based on signal state, event markers, and halos to highlight important moments.
Default Strategy Properties: Specific configuration for optimal risk management and simulation.
How the Strategy Works
Capturing Prices at Key Moments:
- The strategy records the closing price at two user-defined specific times. These times typically correspond to periods of high market volatility, such as the opening of the European session and the US pre-market.
- Rationale: Volatility and trading volume usually increase during these times, presenting opportunities for significant price movements.
Generating Signals Based on Price Comparison:
- Buy Signal: If the second closing price is lower than the first, it indicates possible accumulation and is interpreted as a bullish signal.
- Sell Signal: If the second closing price is higher than the first, it suggests possible distribution and is interpreted as a bearish signal.
- Signals are only generated on selected trading days, allowing you to avoid days with lower liquidity or higher risk.
Calculating Dynamic SL and TP Levels:
- Stop-Loss (SL) and Take-Profit (TP) levels are calculated based on the entry price and a user-defined number of ticks, adapting to market volatility.
- The strategy offers the option to base these levels on the close of the signal candle or the open of the next candle, providing flexibility according to the trader's preference.
- SL and TP boxes are drawn on the chart for visual reference, facilitating trade management.
Automatic Execution and Alerts:
- Upon signal generation, the strategy automatically executes a market order (buy or sell).
- Sends a detailed alert to your Telegram channel, including essential information for quick decision-making.
Visual Elements:
- Colors candles based on the signal state: buy, sell, or neutral, allowing for quick trend identification.
- Provides a smooth color transition between signal states and uses markers and halos to highlight important events and signals on the chart.
Trade Management:
- Manages open trades with automatic exit conditions based on the established SL and TP levels.
- Includes mechanisms to prevent exceeding TradingView's limitations on boxes and labels, ensuring optimal script performance.
Originality and utility:
- This strategy incorporates a unique approach focusing on specific time patterns and their relationship to institutional activity in the market.
How to Use the Strategy
Add the Script to the Chart:
- Go to the indicators menu in TradingView.
- Search for " Liquid Pours Xtreme " and add it to your chart.
Set Up Telegram Alerts:
- Enter your Telegram Chat ID in the script parameters to receive alerts.
- Customize the Buy and Sell alert messages as desired.
Configure Time Patterns:
- Set the hours and minutes for the two times you want to compare closing prices, aligning them with relevant market sessions or events.
Set SL and TP Parameters:
- Define the number of ticks for the Stop-Loss and Take-Profit levels, adapting them to the asset you're trading and your risk tolerance.
- Choose the basis for SL and TP calculation (close of the signal candle or open of the next candle).
Select Trading Days:
- Enable or disable trading on specific days of the week, allowing you to avoid days with lower activity or unexpected volatility.
Customize Visual Elements:
- Adjust the colors and styles of visual elements to enhance readability and suit your personal preferences.
Monitor the Strategy:
- Observe the chart for signals and use Telegram alerts to stay informed of new opportunities, even when you're not at your terminal.
Testing and Optimization:
- Use TradingView's backtesting features to evaluate the historical performance of the strategy with different parameters.
- Adjust and optimize the parameters based on the results and your own analysis.
Adjust the Strategy Properties:
- Ensure that the strategy properties (order size, commission, slippage) are aligned with your trading account and platform to obtain realistic results.
Strategy Properties (Important)
This script backtest is conducted on M30 EURUSD , using the following backtesting properties:
Initial Capital: $10,000
Order Size: 50,000 Contracts (equivalent to 0.5% of the capital)
Commission: $0.20 per order
Slippage: 1 tick
Pyramiding: 1 order
Verify Price for Limit Orders: 0 ticks
Recalculate on Order Execution: Enabled
Recalculate on Every Tick: Enabled
Recalculate After Order Filled: Enabled
Bar Magnifier for Backtesting Precision: Enabled
We use these properties to ensure a realistic preview of the backtesting system. Note that default properties may vary for different reasons:
- Order Size: It is essential to calculate the contract size according to the traded asset and desired risk level.
- Commission and Slippage: These costs can vary depending on the market and instrument; there is no default value that might return realistic results.
We strongly recommend all users adjust the Properties within the script settings to align with their accounts and trading platforms to ensure the results from the strategies are realistic.
Backtesting Results:
- Net Profit: $4,037.50 (40.37%)
- Total Closed Trades : 292
- Profitability Percentage: 26.71%
- Profit Factor: 1.369
- Max Drawdown: $769.30 (6.28%)
- Average Trade: $13.83 (0.03%)
- Average Bars in Trades: 11
These results were obtained under the mentioned conditions and properties, providing an overview of the strategy's historical performance.
Interpreting Results:
- The strategy has demonstrated profitability in the analyzed period, although with a win rate of 26.71%, indicating that success relies on a favorable risk-reward ratio.
- The profit factor of 1.369 suggests that total gains exceed total losses by that proportion.
- It is crucial to consider the maximum drawdown of 6.28% when evaluating the strategy's suitability to your risk tolerance.
Risk Warning:
Trading leveraged financial instruments carries a high level of risk and may not be suitable for all investors. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk tolerance. Past performance does not guarantee future results. It is essential to conduct additional testing and adjust the strategy according to your needs.
---
What Makes This Strategy Original?
Time-Based Pattern Approach: Unlike conventional strategies, this strategy focuses on identifying time patterns that reflect institutional activity and macroeconomic events that can influence the market.
Advanced Technological Integration: The combination of automatic execution and customized alerts via Telegram provides an efficient and modern tool for active traders.
Customization and Adaptability: The wide range of adjustable parameters allows the strategy to be tailored to different assets, time zones, and trading styles.
Enhanced Visual Tools: Incorporated visual elements facilitate quick market interpretation and informed decision-making.
Additional Considerations
Continuous Testing and Optimization: Users are encouraged to perform additional backtesting and optimize parameters according to their own observations and requirements.
Complementary Analysis: Use this strategy in conjunction with other indicators and fundamental analysis to reinforce decision-making.
Rigorous Risk Management: Ensure that SL and TP levels, as well as position sizing, align with your risk management plan.
Updates and Support: I am committed to providing updates and improvements based on community feedback. For inquiries or suggestions, feel free to contact me.
---
Example Configuration
Assuming you want to use the strategy with the following parameters:
Telegram Chat ID: Your unique Telegram Chat ID
First Time (Hour:Minute): 6:30
Second Time (Hour:Minute): 7:30
SL Ticks: 100
TP Ticks: 400
SL and TP Basis: Close of the Signal Candle
Trading Days: Tuesday, Wednesday, Thursday
Simulated Initial Capital: $10,000
Risk per Trade in Simulation: $50 (-0.5% of capital)
Slippage and Commissions in Simulation: 1 tick of slippage and $0.20 commission per trade
---
Conclusion
The Liquid Pours Xtreme strategy offers an innovative approach by combining specific time analysis with robust risk management and modern technological tools. Its original and adaptable design makes it valuable for traders looking to diversify their methods and capitalize on opportunities based on less conventional patterns.
Ready for immediate implementation in TradingView, this strategy can enrich your trading arsenal and contribute to a more informed and structured approach to your operations.
---
Final Disclaimer:
Financial markets are volatile and can present significant risks. This strategy should be used as part of a comprehensive trading approach and does not guarantee positive results. It is always advisable to consult with a professional financial advisor before making investment decisions.
---
TRBOalgoThe Trboalgo Alerts Indicator is a standard trend-following tool
that utilizes price position and trail stop to generate alerts.
When the price is above its trail stop, the indicator indicates an uptrend by coloring the candles green and displaying a buy alert , signaling the start of a new trend.
When the price is below its trail stop, the indicator indicates an downtrend by coloring the candles red and displaying a sell alert , signaling the start of a new trend.
by this alert trader can identify overbought and oversold condition..
Session Highs and Lows IndicatorThis indicator marks the high and low levels for key trading sessions, allowing traders to identify significant price zones across different markets. The default session times are defined in UTC and will automatically adjust to your local timezone:
- **London Session (07:00-09:00 UTC)**: Tracks intraday liquidity zones for potential highs/lows.
- **New York Session (12:00-14:00 UTC)**: Highlights volatility during market overlaps with Europe.
- **Asia Session (23:00-01:00 UTC)**: Confirms trend continuation and retracement opportunities.
- **New York Close Session (19:00-21:00 UTC)**: Focuses on reversals and breakout tests during global transitions.
The script dynamically updates session highs and lows with clear labels and dashed horizontal lines for better visualization. **Time ranges can be adjusted to suit your trading preferences.** This makes the indicator flexible and effective for liquidity hunting, trend trading, and breakout strategies.
Bullish and Bearish Harami DetectorHere’s a description of the script I built for you, designed for a **TradingView public indicator**:
### **Custom Bullish and Bearish Harami Detector with Timeframe Selection**
This custom Pine Script detects **Bullish Harami** and **Bearish Harami** candlestick patterns on the selected timeframe, with configurable settings for how many prior candles to consider for pattern detection.
---
### **Features:**
1. **Timeframe Selection:**
- **Input Field for Timeframe**: The script allows users to choose the timeframe for detecting patterns. For instance, you can set it to 1 hour, 4 hours, or even daily candles, ensuring the detection works as per your chosen market view.
- This is controlled by the `input.timeframe` function, and the user is prompted to select the desired timeframe (e.g., "1h", "4h", "1d").
2. **Enable/Disable Pattern Detection:**
- The user has the flexibility to enable or disable the detection of **Bullish Harami** and **Bearish Harami** patterns.
- The two toggles `detectBullishHarami` and `detectBearishHarami` allow users to turn on/off the detection for each pattern type.
3. **Customizable Bearish Candle Count for Bullish Harami:**
- The user can define how many prior **bearish candles** should be present before a **Bullish Harami** can be detected.
- The input variable `bearishCandleCountBullish` lets you choose how many previous bearish candles to consider for detecting a **Bullish Harami** (for example, the last 3, 5, or 6 bearish candles).
4. **Customizable Bullish Candle Count for Bearish Harami:**
- Similar to the Bullish Harami, the script allows the user to define how many prior **bullish candles** should be present before a **Bearish Harami** pattern is detected.
- The input variable `bearishCandleCountBearish` lets you select how many previous bullish candles to check for **Bearish Harami**.
5. **Pattern Detection Logic:**
- **Bullish Harami**: Detected when a bearish candle (open > close) is followed by a smaller bullish candle (open < close) where the entire body of the second candle is contained within the body of the first candle.
- **Bearish Harami**: Detected when a bullish candle (open < close) is followed by a smaller bearish candle (open > close) where the entire body of the second candle is contained within the body of the first candle.
- Both patterns are subject to the user-defined conditions (number of previous bearish or bullish candles).
6. **Visual Indicators:**
- **Bullish Harami**: A green label is plotted **below the bar** to indicate a **Bullish Harami** pattern.
- **Bearish Harami**: A red label is plotted **above the bar** to indicate a **Bearish Harami** pattern.
- The labels are displayed using the `plotshape` function with custom colors and text.
7. **Additional Settings**:
- The script includes tooltips and descriptions for each input to make the settings clear for users, allowing even those unfamiliar with candlestick patterns to understand and use the indicator effectively.
---
### **How It Works:**
- The script first checks the specified timeframe and identifies the current and previous candlesticks.
- It then applies the user-defined conditions for detecting the **Bullish Harami** and **Bearish Harami** patterns by checking the relative positions and sizes of the candlesticks over the selected number of previous candles.
- Once a pattern is detected, it plots a label on the chart (green for **Bullish Harami** and red for **Bearish Harami**) at the appropriate location (below or above the candle).
- The script updates dynamically as the price action unfolds.
---
### **Use Cases:**
- **Traders**: This script is useful for traders who want to identify reversal patterns like **Bullish Harami** and **Bearish Harami** on their chosen timeframes and adjust the sensitivity by changing the number of prior candles for pattern detection.
- **Customization**: Users can fine-tune the script’s settings based on their specific trading strategy, adjusting both the timeframe and the number of candles for pattern detection.
---
### **Conclusion:**
This indicator is an effective tool for detecting candlestick patterns, specifically **Bullish Harami** and **Bearish Harami**, on **TradingView**. By allowing customization in terms of timeframe and the number of prior candles to consider, users can tailor the script to fit their trading strategy and market conditions.
10% Drop from Current High - Akshay10% Drop from Current High TradingView Indicator
Description:
The "10% Drop from Current High" indicator dynamically tracks the highest price within a user-defined period and highlights when the current price drops by a specified percentage. This tool is invaluable for traders looking to monitor significant pullbacks or corrections from recent highs.
Key Features:
Customizable Drop Percentage:
Allows users to set the percentage drop to track, with a default value of 10%.
Configurable via an input field to suit different trading strategies and market conditions.
Lookback Period:
Tracks the highest price over a user-defined lookback period (default is 20 bars).
This ensures the indicator adapts to short-term or long-term market conditions based on user preferences.
Dynamic Levels:
Current High Level: Plots the highest price within the lookback period in blue.
Drop Level: Plots the calculated drop level (e.g., 10% below the current high) in red.
Visual Alerts:
Background Highlighting:
A translucent red background appears when the current price is at or below the drop level, signaling a significant pullback.
Shape Marker:
A downward label is plotted below the bar when the price touches or falls below the drop level, providing cSet Alerts:lear visual feedback.
Overlay on Price Chart:
The indicator is plotted directly on the price chart (overlay=true), ensuring seamless integration with other technical analysis tools.
Use Case:
This indicator is designed for traders who want to:
Monitor Pullbacks:
Identify when the price of an asset experiences a defined percentage drop from its recent high, signaling potential reversal zones or buying opportunities.
Use visual cues to react quickly to price movements.
Analyze Trends:
Combine with other indicators to assess the strength of trends and corrections.
Customization Options:
Drop Percentage: Adjust the percentage drop to track based on asset volatility and trading strategy.
Lookback Period: Modify the lookback period to focus on short-term (e.g., 5 bars) or long-term (e.g., 50 bars) price highs.
This indicator provides a flexible and intuitive way to track price pullbacks, helping traders make informed decisions and stay ahead in dynamic market conditions.
FU Candle Indicator V3.2What the FU Candle Indicator does:
First we need to understand what FU candles are. There's bullish and bearish FU candles.
Bullish FU candles are candles that have a long wick that takes out the previous candles low, then turns around and closes above the high of the previous candle.
Bearish FU candles are candles that have a long wick that takes out the previous candles high, then turns around and closes below the low of the previous candle.
Then there's so called attempted FU candles (ATT FU)
The difference between normal FU candles and ATT FU candles is, that the ATT FU candle doesn't close above/below the high/low of the previous candle but only above the previous candle's body close.
Bullish ATT FU Candle:
Bearish ATT FU Candle:
Detection of Bullish FU Candles:
Bullish FU Candles are detected by measuring the distance between the low of the previous candle and the low of the current candle.
Then the distance between the previous candles high and the current candles close price are measured.
If current candle low < previous candle low and current candle close > previous candle high = Bullish FU Candle.
Detection of Bullish ATT FU Candles:
Bullish ATT FU Candles are detected by measuring the distance between the low of the previous candle and the low of the current candle.
Then the distance between the previous candles close or open price and the current candles close price are measured. If the previous candle closed bearish, the open price is used for comparison, if the previous candle closed bullish, the close price is used for comparison.
If current candle low < previous candle low and current candle close > previous candle open or close = Bullish ATT FU Candle.
Detection of Bearish FU Candles:
Bearish FU Candles are detected by measuring the distance between the high of the previous candle and the high of the current candle.
Then the distance between the previous candles low, AND the current candles close price are measured.
If current candle high > previous candle high, AND current candle close < previous candle low = Bearish FU Candle.
Detection of Bearish ATT FU Candles:
Bearish ATT FU Candles are detected by measuring the distance between the high of the previous candle and the high of the current candle.
Then the distance between the previous candles close or open price and the current candles close price are measured. If the previous candle closed bearish, the open price is used for comparison, if the previous candle closed bullish, the close price is used for comparison.
If current candle high > previous candle high and current candle close < previous candle open or close = Bearish ATT FU Candle.
What makes this script unique?
It shows and liquidity grab and a break of structure on a lower timeframe in one candle.
It allows to adjust the settings for the asset and timeframe you're using
The built in filters (Fractal Filter and EMA Filter) are both optional but allow to filter out certain candles and most importantly it leaves room for experimentation and optimisation to your trading style.
Input Settings and how to use them:
Bullish FU Candle Color --> This setting is to set the color for bullish FU candles.
Bearish FU Candle Color --> This setting is to set the color for bearish FU candles.
Chart --> This setting enables you to display FU's on different timeframes instead of only the current time. It's set to current timeframe by default.
Liq. Grab in Points --> This is the strength of the liquidity grab. By how many points has the current candle taken out the low/ high of the previous candle. It's set to 20 by default but it has to be adjusted to the timeframe and asset you're using.
Engulfing in Points --> This the strength of the engulfing of the previous candle. It measures the distance of the current close price to the open, close, high or low of the previous candle. It depends if the current candle is bullish or bearish and if the previous candle was bullish or bearish and if ATT FUs are enabled but this setting applies to all methods. It's set to 20 by default but you have to adjust it to the asset and timeframe you're using.
Min. Size in Points --> This setting is to filter out tiny candles. It measures the overall size of the FU candle from low to high. It's set to 20 by default but you have to adjust it to the asset and timeframe you are using.
Min. Body Size in Points --> This setting is to filter out FU candles that have a tiny body. It measures the size of the body from open to close. It's set to 20 by default but you have to adjust it to the asset and timeframe you are using.
Max. Body Size in Points --> This setting is to filter out FU candles that have a huge body. It measures the size of the body from open to close. It's set to 10000 by default but you have to adjust it to the asset and timeframe you are using.
Show ATT FU Candles --> ATT FU Candles are FU's where the body only engulfs the previous candles body but not the wick. This type of FU candles is just as valid as the strong FU's where the Body and the wick of the previous Candle is engulfed. The setting is enabled by default.
Rejection Filter --> This setting is used filter out FU candles where the opposite side rejection is stronger than the body direction of the FU. This filters out a lot of traps. It's disabled by default.
Fractal Filter --> FU's are only valid if they broke a fractal of the past x candles. This filters out some of the FU candles that are inside a range and therefore invalid. This is an optional filter and disabled by default.
EMA Filter --> FU's are only if they are above/ below the EMA. This is to filter out most of the FU candles that are inside ranges. The EMA period can be set too. This is an optional filter and enabled and EMA length set to 7 by default. You can enable it and/ or change the length of the EMA to fit your trading style.
Show Entry Lines --> The entry line setting has been changed in terms of styling. The upper and lower line has been removed. Now only the 50% retracement line of the candle body is displayed and the line type, color, strength and length can be set to keep charts as clean as possible.
Alert Timeframes --> You can select the timeframes for which you want to receive an alert if you set and alert for the FU Candle indicator. If you set an alert for the FU Candle Indicator it will send an alert for every FU candle on every selected timeframe.
TF1-TF8 --> This setting is to enable or disable alerts for timeframe 1 - timeframe 8. By default all alerts are disabled, I recommend only enabling the ones that you actually use.
Recommended use:
A bullish FU candle doesn't necessarily mean it's a long and vice versa a bearish FU candle doesn't necessarily mean it's a short. In fact, most FU candles are traps. Often times you'll see a bullish FU candle starting a bearish reversal.
Whenever you see an FU Candle check the following:
Did the FU candle take relevant liquidity?
Is the FU Candle in line with the overall bias or does it go against the bias?
Where did the FU react? Example: A bearish FU candle that reacts in a bullish FVG is a perfect long entry and vice versa.
A bullish FU candle that takes out a relevant swing high can often be a fake-out and price can immediately reverse as the next candle opens.
Timing is also very important. Usually the valid FU candles happen after a strong move to one direction during high volume times and right before or right after a new candle opens on a higher timeframe.
Examples of valid setups:
Nr. 1) Mitigation Setup
Overall bullish on the higher time frame, liquidity grab to the downside, shift in momentum, strong move to the upside left a FVG. later price comes back into the FVG and forms a FU candle --> perfect long trade targeting the opposite side of the range.
Entry either at close of the FU or at the 50% retracement.
Nr. 2) Trap Setup
Clear bullish trend respecting the trend line, bearish FU candle forms but it didn't take any relevant liquidity to the upside. Only internal range liquidity. Perfect long entry using a buy limit below the lower wick of the FU candle with the SL below the nearest low.
Nr. 3) Liquidity Grab Setup
Bearish trend, price comes up aggressively and takes out a high and forms an FU Candle. Market entry short at close of the FU candle or at the 50% retracement of the FU candle or by putting a limit order right above the wick of the candle that follows the FU candle, targeting the opposite side of the range.
Nr. 4) Fake Breakout Setup
Price takes out a significant HTF low, then makes at least 2 BOS on the LTF and forms an Order Block or leaves an FVG. Price forms a bearish U that fails to close below the FVG or Orderblock.
Market entry long at the close of the bearish FU targeting the opposite side of the range. Vice versa for shorts. In simple terms: Bullish FUs at the top of the range and bearish FUs at the bottom of the range are usually always traps.
Sometimes price takes out the high/low of a trap FU before reversing aggressively so you can also have a limit order below the low of the bearish FU or above the high of a bullish FU in this case. But you risk missing the trade.
Entry Methods:
Entry Type 1) Market Entry at the close of the FU candle. --> Never miss a trade, not the best RRR.
Entry Type 2 Limit Entry at the 50% retracement of the body of the FU candle. --> Miss some of the trades but better RRR.
Entry Type 3 Limit order below the wick of the candle that follows the FU candle. --> Miss quite a lot of trades but by far best RRR.
Why this is a closed source script:
The source code of this script is not open because I have spent several years of my life developing it and I use it in all my trading bots.
Also I'm open for feedback and will modify/ update the script for free if I get input that can make it better.
For questions, please reach out via DM or check out my youtube channel. I have several videos explaining in detail how I use these candles, which are valid and which aren't.
Fourier Extrapolation of PriceThis advanced algorithm leverages Fourier analysis to predict price trends by decomposing historical price data into its frequency components. Unlike traditional algorithms that often operate in lower-dimensional spaces, this method harnesses a multidimensional approach to capture intricate market behaviors. By utilizing additional dimensions, the algorithm identifies and extrapolates subtle patterns and oscillations that are typically overlooked, providing a more robust and nuanced forecast.
Ideal for traders seeking a deeper understanding of market dynamics, this tool offers an enhanced predictive capability by aligning its calculations with the complexity of real-world financial systems.
Customizable Days Range HighlighterThis Pine Script highlights ranges where consecutive green candles (bullish candles) form a price move within a specified percentage range.
It draws a visual box to represent this move, with the ability to customize both the percentage range and the number of consecutive green candles required to trigger the highlight.
The script calculates the range based on the low to close of the candles, allowing you to focus on the body of the candle (excluding wicks).
Key Features:
Customizable Percentage Range: Set a range (from and to) for the percentage price move between the lowest low and the close of the candle. This enables you to target specific price moves based on your trading strategy.
Consecutive Green Candle Range: Highlight moves only after a specific number of consecutive green candles. You can define the minimum and maximum number of green candles (days) that must be present for the range to be considered valid.
Wick Option: Choose whether to include wicks in the price move calculation or focus purely on the low to close of each green candle (body of the candle).
Visual Highlights: When a valid range is identified, the script draws a green box around the price move and labels it with the calculated percentage move. This helps you visually spot significant bullish price moves.
Parameters:
Percentage Move From: Minimum percentage move between the low and close of the candle for the range to be highlighted.
Percentage Move To: Maximum percentage move for the range to be considered valid.
Minimum and Maximum Green Candles: Set the minimum and maximum number of consecutive green candles (bullish candles) to trigger the range highlight.
Include Wicks: Choose whether to include the candle wicks in the percentage calculation or focus on the body (low to close).
How It Works:
The script tracks consecutive green candles and calculates the range from the low to close of each green candle.
When a valid range is found, where the price move falls within the defined percentage range and the consecutive green candles are within the specified days range, a box is drawn around the price move.
A label is also placed on the chart, showing the percentage move, to help you quickly identify potentially significant price movements.
This tool is ideal for traders who are looking for specific bullish moves over a series of green candles and want to visually identify those opportunities based on price movement and percentage change.
Daily High/Low Levels with mitigationThis Pine Script script defines a TradingView indicator named "Daily High/Low Levels" designed to track and display the daily high and low levels of a trading session, with added functionality for marking levels as mitigated when certain conditions are met. Here's a breakdown of its functionality:
Key Features
Session Start Time: The script allows you to specify a custom session start time in 24-hour format. This ensures the levels align with your trading session preferences.
Daily Highs and Lows:
Tracks the high and low levels for each session.
Retains the highs and lows for a configurable number of previous days.
Visualization:
Creates horizontal lines for each session's high and low levels.
Supports customization of line colors and styles.
Mitigation Tracking:
Monitors whether a high or low level has been "mitigated" (touched or exceeded by subsequent price action).
Changes the line style and color to indicate mitigation.
Provides an alert when mitigation occurs.
Configurable Extensions:
Lines can be extended beyond mitigation or stopped at the bar index where mitigation occurs, depending on user preference.
Efficient Array Management:
Uses arrays to manage daily highs, lows, their respective indices, and lines.
Ensures the size of stored data does not exceed the configured limit (daysToTrack).
Alerts:
Sends alerts when high or low levels are mitigated, which can be used for trading decisions.
Inputs
Session Start Hour/Minute: Defines when a new session starts.
Days to Track: Sets the number of previous days to display high/low levels.
Colors: Allows customization of line colors for unmitigated and mitigated levels.
Extend Lines: Toggles whether lines should extend past the mitigation point.
Code Highlights
New Session Detection: The script detects the start of a new session based on the configured session start time and resets daily highs/lows.
Line Management: Horizontal rays are created for highs and lows, and mitigated lines are updated with a dashed style and faded color.
Mitigation Logic: The script checks whether current price action exceeds stored high or low levels and updates their status and appearance accordingly.
Memory Management: Ensures the size of the arrays (highs, lows, lines) does not exceed the configured daysToTrack, deleting the oldest elements as necessary.
This indicator is highly customizable and useful for traders who want to track and analyze daily support and resistance levels, incorporating mitigation as a dynamic feature.
Rejection Candle DetectorUsing the Rejection Candle Detector with Order Blocks
Plotting Order Blocks:
Identify Key Levels: Begin by identifying key levels on the chart where large buying or selling activity has taken place. These areas are often referred to as order blocks.
Draw the Blocks: Use horizontal lines or rectangular zones to mark these order blocks on your chart. These levels will act as potential support or resistance areas where price is likely to react.
Setting Up the Rejection Candle Detector:
Apply the Indicator: Add the Rejection Candle Detector to your TradingView chart.
Customize Settings: Adjust the look-back period, label colors, and transparency according to your preferences.
Monitoring Price Action:
Wait for Price to Reach an Order Block: Monitor the chart for when the price approaches one of your predefined order blocks.
Look for Rejection Candles: The Rejection Candle Detector will help you identify rejection candlestick patterns within the look-back period (default is 10 bars).
Entry Decision:
Confirm Rejection: Once the price touches an order block and a rejection candle is detected by the indicator, this could signal a potential entry point. Rejection candles indicate that the price tried to move past the order block but was pushed back, showing strong resistance or support at that level.
Align with Your Analysis: Ensure that the detected rejection candle aligns with your overall trading analysis and strategy. Consider other factors such as trend direction, volume, and market conditions before making an entry.
Managing the Trade:
Set Stop Loss: Place a stop loss just beyond the order block to manage your risk in case the price breaks through the level.
Target Levels: Define your target levels for taking profit based on the next significant support or resistance levels on the chart.
Monitor and Adjust: Continue to monitor the trade and adjust your stop loss or take profit levels as needed based on price action and market conditions.
Example Scenario:
Order Block: You identify an order block at the $50 level on your chart, marking it as a potential support zone.
Price Reaction: Price approaches and tests the $50 level.
Rejection Candle: The Rejection Candle Detector spots a hammer candlestick (a bullish rejection pattern) forming right at the $50 level.
Entry Point: You decide to enter a long trade at the close of the hammer candle, setting your stop loss just below the $50 level.
Trade Management: Set your target at the next resistance level, say $55, and monitor the trade, adjusting as necessary...
Cabal Dev IndicatorThis is a TradingView Pine Script (version 6) that creates a technical analysis indicator called the "Cabal Dev Indicator." Here's what it does:
1. Core Functionality:
- It calculates a modified version of the Stochastic Momentum Index (SMI), which is a momentum indicator that shows where the current close is relative to the high/low range over a period
- The indicator combines elements of stochastic oscillator calculations with exponential moving averages (EMA)
2. Key Components:
- Uses configurable input parameters for:
- Percent K Length (default 15)
- Percent D Length (default 3)
- EMA Signal Length (default 15)
- Smoothing Period (default 5)
- Overbought level (default 40)
- Oversold level (default -40)
3. Calculation Method:
- Calculates the highest high and lowest low over the specified period
- Finds the difference between current close and the midpoint of the high-low range
- Applies EMA smoothing to both the range and relative differences
- Generates an SMI value and further smooths it using a simple moving average (SMA)
- Creates an EMA signal line based on the smoothed SMI
4. Visual Output:
- Plots the smoothed SMI line in green
- Plots an EMA signal line in red
- Shows overbought and oversold levels as gray horizontal lines
- Fills the areas above the overbought level with light red
- Fills the areas below the oversold level with light green
This indicator appears designed to help traders identify potential overbought and oversold conditions in the market, as well as momentum shifts, which could be used for trading decisions.
Would you like me to explain any specific part of the indicator in more detail?
Supply and demand v2Supply and Demand v2
This Pine Script indicator is designed to identify and visualize supply and demand zones on a trading chart, using three different lookback periods for comprehensive analysis. The script features brightened colors for clear visibility and provides real-time alerts for price entry into these zones.
Key Features:
Multi-Period Analysis:
Near Lookback: Analyzes the most recent 30 bars to identify short-term supply and demand zones.
Medium Lookback: Uses a lookback period of 300 bars to capture intermediate supply and demand zones.
Far Lookback: Examines a larger timeframe of 3000 bars to detect long-term supply and demand zones.
Visual Representation:
Supply Zones: Plots the identified supply zones in brightened red shades for clear visibility.
Demand Zones: Marks the demand zones in brightened green shades for easy differentiation.
Opacity and Color Intensity: Adjusts the opacity and color intensity to distinguish between near, medium, and far lookback periods.
Alerts:
Provides real-time alerts when the price enters any of the identified supply or demand zones, enabling traders to take timely actions.
How It Works:
Supply Zones: The script identifies the highest high and lowest low within each lookback period (near, medium, far) and plots these levels as supply zones.
Demand Zones: Similarly, it identifies the lowest high and highest low within each lookback period to determine demand zones.
Alerts: When the price crosses into any of the plotted supply or demand zones, the script triggers an alert, helping traders stay informed about key levels.
This indicator helps traders to quickly identify significant supply and demand zones across different time frames, providing a clearer understanding of potential market reversals and trading opportunities. The visual cues and alert system make it an invaluable tool for technical analysis and strategic decision-making in trading...