PumpC Opening Range Breakout (ORB) Stretch RangePumpC ORB Stretch
The PumpC ORB Stretch is a volatility-based indicator that helps traders identify potential breakout zones by analyzing how price typically behaves around the open. This tool is inspired by concepts introduced by Toby Crabel in his well-known book “Day Trading with Short-Term Price Patterns and Opening Range Breakout.”
Rather than predicting market direction, this indicator highlights areas where price is likely to expand based on recent volatility. It is designed for traders who prefer dynamic, data-driven breakout levels over static support and resistance zones.
What Is the "Stretch"?
In Toby Crabel’s framework, the Stretch is the average of the smaller of two price moves:
The distance from the open to the high of the bar
The distance from the open to the low of the bar
This smaller value captures the “quiet side” of the candle and reflects recent price compression. Averaged over multiple periods (commonly 10 daily bars), it creates a baseline to assess how far price may move away from the open under typical market conditions.
How the Indicator Works
The PumpC ORB Stretch follows this process:
Uses a higher timeframe (such as daily) to calculate the open, high, and low.
For each bar, measures the smaller of the two distances: open to high or open to low.
Applies a moving average to the result over a user-defined number of bars (default is 10).
Multiplies the average stretch by customizable levels (e.g., 0.382, 1.0, 2.0).
Plots breakout levels above and below the open of the selected timeframe.
The result is a set of adaptive levels that expand or contract with market volatility.
Customization Options
Stretch Timeframe: Choose the timeframe used for stretch calculation (default: Daily).
Stretch Length: Set the number of bars to include in the moving average.
Breakout Levels: Enable or disable individual levels and define multipliers.
Color Settings: Customize colors for each range level for easy visual distinction.
Plot Style: Circular markers are used to reduce chart clutter and improve readability.
How to Use It
Use plotted levels to anticipate possible breakouts from the open.
Adjust stretch length to reflect short-term or longer-term volatility trends.
Combine this tool with momentum indicators, volume, or price action for confirmation.
Use levels to help guide stop placement or profit targets in breakout strategies.
Important Notes
This script is based on an interpretation of Crabel’s concepts and is not affiliated with Crabel Capital or the original author.
The indicator does not predict direction; it is a tool for context and structure.
It is recommended that users test and validate this tool in a simulated environment before applying it to live trading.
This indicator is intended for educational purposes only.
Licensing and Attribution
This script is built entirely in Pine Script v5 and follows TradingView’s open-source standards. It does not include any third-party or proprietary code. If you modify or share it, please credit the original idea and follow all TradingView script publishing rules.
Indicators and strategies
Nasan Risk Score & Postion Size Estimator** THE RISK SCORE AND POSITION SIZE WILL ONLY BE CALCUTAED ON DIALY TIMEFRAME NOT IN OTHER TIMEFRAMES.
The typically accepted generic rule for risk management is not to risk more than 1% - 2 % of the capital in any given trade. It has its own basis however it does not take into account the stocks historic & current performance and does not consider the traders performance metrics (like win rate, profit ratio).
The Nasan Risk Score & Position size calculator takes into account all the listed parameters into account and estimates a Risk %. The position size is calculated using the estimated risk % , current ATR and a dynamically adjusted ATR multiple (ATR multiple is adjusted based on true range's volatility and stocks relative performance).
It follows a series of calculations:
Unadjusted Nasan Risk Score = (Min Risk)^a + b*
Min Risk = ( 5 year weighted avg Annual Stock Return - 5 year weighted avg Annual Bench Return) / 5 year weighted avg Annual Max ATR%
Max Risk = ( 5 year weighted avg Annual Stock Return - 5 year weighted avg Annual Bench Return) / 5 year weighted avg Annual Min ATR%
The min and max return is calculated based on stocks excess return in comparison to the Benchmark return and adjusted for volatility of the stock.
When a stock underperforms the benchmark, the default is, it does not calculate a position size , however if we opt it to calculate it will use 1% for Min Risk% and 2% for Max Risk% but all the other calculations and scaling remain the same.
Rationale:
Stocks outperforming their benchmark with lower volatility (ATR%) score higher.
A stock with high returns but excessive volatility gets penalized.
This ensures volatility-adjusted performance is emphasized rather than absolute returns.
Depending on the risk preference aggressive or conservative
Aggressive Risk Scaling: a = max (m, n) and b = min (m, n)
Conservative Scaling: a = min (m, n) and b = max (m, n)
where n = traders win % /100 and m = 1 - (1/ (1+ profit ratio))
A default of 50% is used for win factor and 1.5 for profit ratio.
Aggressive risk scaling increases exposure when the strategy's strongest factor is favorable.
Conservative risk scaling ensures more stable risk levels by focusing on the weaker factor.
The Unadjusted Nasan risk is score is further refined based on a tolerance factor which is based on the stocks maximum annual drawdown and the trader's maximum draw down tolerance.
Tolerance = /100
The correction factor (Tolerance) adjusts the risk score based on downside risk. Here's how it works conceptually:
The formula calculates how much the stock's actual drawdown exceeds your acceptable limit.
If stocks maximum Annual drawdown is smaller than Trader's maximum acceptable drawdown % , this results in a positive correction factor (indicating the drawdown is within your acceptable range and increases the unadjusted score.
If stocks maximum Annual drawdown exceeds Trader's maximum acceptable drawdown %, the correction factor will decrease (indicating that the downside risk is greater than what you are comfortable with, so it will adjust the risk exposure).
Once the Risk Score (numerically equal to Risk %) The position size is calculated based on the current market conditions.
Nasan Risk Score (Risk%) = Unadjusted Nasan Risk Score * Tolerance.
Position Size = (Capital * Risk% )/ ATR-Multiplier * ATR
The ATR Multiplier is dynamically adjusted based on the stocks recent relative performance and the variability of the true range itself. It would range between 1 - 3.5.
The multiplier widens when conditions are not favorable decreasing the position size and increases position size when conditions are favorable.
This Calculation /Estimate Does not give you a very different result than the arbitrary 1% - 2%. However it does fine tune the % based on sock performance, traders performance and tolerance level.
RochitThe Rochit Singh Indicator is a technical analysis tool designed to help traders identify market trends, reversals, and potential entry or exit points. It combines multiple price action factors, momentum signals, and volatility metrics to provide a comprehensive view of market conditions. The indicator is tailored for various asset classes, including stocks, forex, and cryptocurrencies, making it a versatile addition to any trader’s toolkit.
Rochit SinghThe Rochit Singh Indicator is a technical analysis tool designed to help traders identify market trends, reversals, and potential entry or exit points. It combines multiple price action factors, momentum signals, and volatility metrics to provide a comprehensive view of market conditions. The indicator is tailored for various asset classes, including stocks, forex, and cryptocurrencies, making it a versatile addition to any trader’s toolkit.
Rainbow Bands🌈 Rainbow Bands Indicator 🌈
The Rainbow Bands indicator is a dynamic tool designed to help traders identify potential trends with ease. It uses a series of 15 Exponential Moving Averages (EMAs) ranging from 9 to 51 periods to create a colorful representation of market momentum. When the EMAs align to form a rainbow 🌈, it signals a potential uptrend, while an upside-down rainbow 🌧️ suggests a possible downtrend. This intuitive visual layout helps traders quickly assess the market direction, reducing the need for multiple indicators.
📊 How It Works 📊
The Rainbow Bands indicator smooths out price fluctuations by blending shorter and longer-term EMAs. As the EMAs stack in order from short to long, they create a "rainbow" effect that is easy to spot on the chart. This method not only offers trend confirmation but also shows market strength and potential reversal points. Whether you're a scalper or swing trader, the Rainbow Bands add another layer of clarity to your trading decisions.
🚀 How To Use It 🚀
To step up your trading game, simply use the Rainbow Bands as a confirmation tool in your strategies. Look for the rainbow pattern to indicate a strong uptrend and the upside-down rainbow to highlight possible downtrends. By incorporating this indicator into your toolkit, you'll have a visual, reliable source of confirmation that can help improve your win rate.
Add it to your charts and see how it elevates your trading strategy today!
Fractal BoxesBased on the Nephew Sam Range Boxes indicator, this super charged version adds additional session options and a more customized experience.
MACD Crossover IndicatorSimple MACD "Crossover" script. This indicator shows a symbol of your choice "+" on the chart when signal line crosses over the MACD.
Settings can be adjusted like the MACD indicator. This is helpeful as sometimes it can be hard to see when it actually crosses over.
Stop-Loss Buy Orderbuying and selling at a certain value to keep your portfolio never below a certain value. The idea is to make sure for example that if btc falls bellow 100k you sell, and if it goes up you buy. Never mind the small loss for each trade as you are selling fraction below 100k and buying at a 100k.
RSI14 + EMA9 + WMA45, with price ladderSummary of Main Functions
✅ Displays RSI along with EMA and WMA: Plots the 14-period RSI, 9-period EMA, and 45-period WMA to analyze price momentum.
✅ Determines price levels corresponding to specific RSI values: Calculates and displays the price needed for RSI to reach predefined levels (e.g., 20, 30, 40, 50, 60, 70, 80).
✅ Displays price labels on the chart: Adds target price labels to make it easier to identify key price zones based on RSI.
Practical Applications
🔹 Identifies potential price levels when RSI reaches key thresholds, helping predict price momentum.
🔹 Supports RSI-based trading: Traders can use this information to set buy/sell strategies at specific RSI levels.
🔹 Tracks RSI trends with EMA and WMA: EMA reacts quickly to price changes, while WMA smooths out long-term trends.
RSI Price LadderSummary of Main Functions
✅ Converts RSI values into corresponding price levels: Helps predict how much the price needs to change to reach a specific RSI value.
✅ Displays labels and horizontal lines on the chart: Makes it easy to observe key price levels related to RSI.
✅ Provides dynamic RSI levels: RSI, EMA RSI, and WMA RSI are all plotted as target price levels.
Practical Applications
🔹 Identify potential price levels when RSI reaches overbought or oversold zones.
🔹 Support RSI-based trading: Traders can place buy/sell orders based on RSI target prices.
🔹 Monitor dynamic RSI trends with EMA and WMA lines.
Multi-MA Strategy Analyzer with BacktestMulti-MA Strategy Analyzer with Backtest
This TradingView Pine Script indicator is designed to analyze multiple moving averages (SMA or EMA) dynamically and identify the most profitable one based on historical performance.
Features
Dynamic MA Range:
Specify a minLength, maxLength, and step size.
Automatically calculates up to 20 MAs.
Custom MA Calculation:
Uses custom SMA and EMA implementations to support dynamic length values.
Buy/Sell Logic:
Buy when price crosses above a MA.
Sell when price crosses below.
Supports both long and short trades.
Performance Tracking:
Tracks PnL, number of trades, win rate, average profit, and drawdown.
Maintains individual stats for each MA.
Best MA Detection:
Automatically highlights the best-performing MA.
Optional showBestOnly toggle to focus only on the best line and its stats.
Visualization:
Up to 20 plot() calls (static) for MAs.
Green highlight for the best MA.
Color-coded result table and chart.
Table View
When showBestOnly = false, the table displays all MAs with stats.
When showBestOnly = true, the table displays only the best MA with a summary row.
Includes:
Best MA length
Total PnL
Number of trades
Win rate
Avg PnL per trade
Max Drawdown
Configuration
minLength (default: 10)
maxLength (default: 200)
step (default: 10)
useEMA: Toggle between EMA and SMA
showBestOnly: Focus on best-performing MA only
Notes
MA plotting is static, limited to 20 total.
Table supports highlighting and is optimized for performance.
Script is structured to run efficiently using arrays and simple int where required.
Potential Extensions
Add visual buy/sell arrows
Export stats to CSV
Strategy tester conversion
Custom date range filtering for backtesting
Author: Muhammad Wasim
Version: 1.0
External Signals Strategy TesterExternal Signals Strategy Tester
This strategy is designed to help you backtest external buy/sell signals coming from another indicator on your chart. It is a flexible and powerful tool that allows you to simulate real trading based on signals generated by any indicator, using input.source connections.
🔧 How It Works
Instead of generating signals internally, this strategy listens to two external input sources:
One for buy signals
One for sell signals
These sources can be connected to the plots from another indicator (for example, custom indicators, signal lines, or logic-based plots).
To use this:
Add your indicator to the chart (it must be visible on the same pane as this strategy).
Open the settings of the strategy.
In the fields Buy Signal and Sell Signal, select the appropriate plot (line, value, etc.) from the indicator that represents the buy/sell logic.
The strategy will open positions when the selected buy signal crosses above 0, and sell signal crosses above 0.
This logic can be easily adapted by modifying the crossover rule inside the script if your signal style is different.
⚙️ Features Included
✅ Configurable trade direction:
You can choose whether to allow long trades, short trades, or both.
✅ Optional close on opposite signal:
When enabled, the strategy will exit the current position if an opposite signal appears.
✅ Optional full position reversal:
When enabled, the strategy will close the current position and immediately open an opposite one on the reverse signal.
✅ Risk Management Tools:
You can define:
Take Profit (TP): Position will be closed once the specified profit (in %) is reached.
Stop Loss (SL): Position will be closed if the price drops to the specified loss level (in %).
BreakEven (BE): Once the specified profit threshold is reached, the strategy will move the stop-loss to the entry price.
📌 If any of these values (TP, SL, BE) are set to 0, the feature is disabled and will not be applied.
🧪 Best Use Cases
Backtesting signals from custom indicators, without rewriting the logic into a strategy.
Comparing the performance of different signal sources.
Testing external indicators with optional position management logic.
Validating strategies using external filters, oscillators, or trend signals.
📌 Final Notes
You can visualize where the strategy detected buy/sell signals using green/red markers on the chart.
All parameters are customizable through the strategy settings panel.
This strategy does not repaint, and it processes signals in real-time only (no lookahead bias).
Money printer machine update - By Farshid Ehsani]Ready to take your trend-following strategy to the next level?
Say hello to Zero Lag Trend Signals, a precision-engineered Pine Script™ indicator designed to eliminate lag and provide rapid trend insights across multiple timeframes. 💡 This tool blends zero-lag EMA (ZLEMA) logic with volatility bands, trend-shift markers, and dynamic alerts. The result? Timely signals with minimal noise for clearer decision-making, whether you're trading intraday or on longer horizons
How It Works 🧠
The script calculates the zero-lag EMA (ZLEMA) by compensating for data lag, giving traders more responsive moving averages. It checks for volatility shifts using the Average True Range (ATR), multiplied to create upper and lower deviation bands. If the price crosses above or below these bands, it marks the start of new trends. Additionally, the indicator aggregates trend data from up to five configurable timeframes and displays them in a neat summary table. This helps you confirm trends across different intervals—ideal for multi-timeframe analysis. The visual signals include upward and downward arrows on the chart, denoting potential entries or exits when trends align across timeframes. Traders can use these cues to make well-timed trades and avoid lag-related pitfalls.
Fractal & Weierstrass Trend Reversal ZonesThe script combines weierstrass function and fractal dimension index to search for possible ends of the waves in Eliott Waves analysis.
Experimental. DYOR. Feel free to play with settings or suggest improvements.
Auto TrendLines [TradingFinder] Support Resistance Signal Alerts🔵 Introduction
The trendline is one of the most essential tools in technical analysis, widely used in financial markets such as Forex, cryptocurrency, and stocks. A trendline is a straight line that connects swing highs or swing lows and visually indicates the market’s trend direction.
Traders use trendlines to identify price structure, the strength of buyers and sellers, dynamic support and resistance zones, and optimal entry and exit points.
In technical analysis, trendlines are typically classified into three categories: uptrend lines (drawn by connecting higher lows), downtrend lines (formed by connecting lower highs), and sideways trends (moving horizontally). A valid trendline usually requires at least three confirmed touchpoints to be considered reliable for trading decisions.
Trendlines can serve as the foundation for a variety of trading strategies, such as the trendline bounce strategy, valid breakout setups, and confluence-based analysis with other tools like candlestick patterns, divergences, moving averages, and Fibonacci levels.
Additionally, trendlines are categorized into internal and external, and further into major and minor levels, each serving unique roles in market structure analysis.
🔵 How to Use
Trendlines are a key component in technical analysis, used to identify market direction, define dynamic support and resistance zones, highlight strategic entry and exit points, and manage risk. For a trendline to be reliable, it must be drawn based on structural principles—not by simply connecting two arbitrary points.
🟣 Selecting Pivot Types Based on Trend Direction
The first step is to determine the market trend: uptrend, downtrend, or sideways.
Then, choose pivot points that match the trend type :
In an uptrend, trendlines are drawn by connecting low pivots, especially higher lows.
In a downtrend, trendlines are formed by connecting high pivots, specifically lower highs.
It is crucial to connect pivots of the same type and structure to ensure the trendline is valid and analytically sound.
🟣 Pivot Classification
This indicator automatically classifies pivot points into two categories :
Major Pivots :
MLL : Major Lower Low
MHL : Major Higher Low
MHH : Major Higher High
MLH : Major Lower High
These define the primary structure of the market and are typically used in broader structural analysis.
Minor Pivots :
mLL: minor Lower Low
mHL: minor Higher Low
mHH: minor Higher High
mLH: minor Lower High
These are used for drawing more precise trendlines within corrective waves or internal price movements.
Example : In a downtrend, drawing a trendline from an MHH to an mHH creates structural inconsistency and introduces noise. Instead, connect points like MHL to MHL or mLH to mLH for a valid trendline.
🟣 Drawing High-Precision Trendlines
To ensure a reliable trendline :
Use pivots of the same classification (Major with Major or Minor with Minor).
Ensure at least three valid contact points (three touches = structural confirmation).
Draw through candles with the least deviation (choose wicks or bodies based on confluence).
Preferably draw from right to left for better alignment with current market behavior.
Use parallel lines to turn a single trendline into a trendline zone, if needed.
🟣 Using Trendlines for Trade Entries
Bounce Entry: When price approaches the trendline and shows signs of reversal (e.g., a reversal candle, divergence, or support/resistance), enter in the direction of the trend with a logical stop-loss.
Breakout Entry: When price breaks through the trendline with strong momentum and a confirmation (such as a retest or break of structure), consider trading in the direction of the breakout.
🟣 Trendline-Based Risk Management
For bounce entries, the stop-loss is placed below the trendline or the last pivot low (in an uptrend).
For breakout entries, the stop-loss is set behind the breakout candle or the last structural level.
A broken trendline can also act as an exit signal from a trade.
🟣 Combining Trendlines with Other Tools (Confluence)
Trendlines gain much more strength when used alongside other analytical tools :
Horizontal support and resistance levels
Moving averages (such as EMA 50 or EMA 200)
Fibonacci retracement zones
Candlestick patterns (e.g., Engulfing, Pin Bar)
RSI or MACD divergences
Market structure breaks (BoS / ChoCH)
🔵 Settings
Pivot Period : This defines how sensitive the pivot detection is. A higher number means the algorithm will identify more significant pivot points, resulting in longer-term trendlines.
Alerts
Alert :
Enable or disable the entire alert system
Set a custom alert name
Choose how often alerts trigger (every time, once per bar, or on bar close)
Select the time zone for alert timestamps (e.g., UTC)
Each trendline type supports two alert types :
Break Alert : Triggered when price breaks the trendline
React Alert : Triggered when price reacts or bounces off the trendline
These alerts can be independently enabled or disabled for all trendline categories (Major/Minor, Internal/External, Up/Down).
Display :
For each of the eight trendline types, you can control :
Whether to show or hide the line
Whether to delete the previous line when a new one is drawn
Color, line style (solid, dashed, dotted), extension direction (e.g., right only), and width
Major lines are typically thicker and more opaque, while minor lines appear thinner and more transparent.
All settings are designed to give the user full control over the appearance, behavior, and alert system of the indicator, without requiring manual drawing or adjustments.
🔵 Conclusion
A trendline is more than just a line on the chart—it is a structural, strategic, and flexible tool in technical analysis that can serve as the foundation for understanding price behavior and making trading decisions. Whether in trending markets or during corrections, trendlines help traders identify market direction, key zones, and high-potential entry and exit points with precision.
The accuracy and effectiveness of a trendline depend on using structurally valid pivot points and adhering to proper market logic, rather than relying on guesswork or personal bias.
This indicator is built to solve that exact problem. It automatically detects and draws multiple types of trendlines based on actual price structure, separating them into Major/Minor and Internal/External categories, and respecting professional analytical principles such as pivot type, trend direction, and structural location.
EMA 10x20 CrossRecommended to use in 4H or above
"The EMA 10x20 Cross Indicator is a clean, efficient tool to help traders identify trend changes using two exponential moving averages (EMAs).
This script plots:
A fast EMA (10-period) in green
A slow EMA (20-period) in red
Blue circles at crossover points (appearing directly on the EMA 20 line for easy spotting)
Unlike complex indicators, this keeps your chart clutter-free while providing clear visual signals for potential trend reversals. Whether you're a day trader, swing trader, or long-term investor, this classic EMA crossover strategy helps you:
✔ Catch early trend shifts
✔ Filter out minor price noise
✔ Improve entry & exit timing
Simply add it to your chart and let the blue circles guide your next trade! 🚀
Customize lengths in inputs if needed—works on any timeframe!"
MACD Crossover Breakout Rays with VWAP & Breakout ConfirmationOverview
This script is designed to highlight potential strong breakout moves by combining MACD crossovers, VWAP confirmation, and price action breakouts. It helps traders identify momentum shifts and filter high-probability trade setups.
How It Works
1. MACD Crossover Detection
- The script detects bullish crossovers (MACD line crossing above the signal line) and bearish crossovers (MACD line crossing below the signal line).
- A horizontal ray is drawn at the high (bullish) or low (bearish) of the crossover candle.
2. Multi-Timeframe MACD Confirmation
- A secondary MACD crossover is checked on a lower timeframe (default: 5 minutes) to confirm the strength of the move.
- The script ensures alignment between the primary and lower timeframe MACD crossovers before signaling a strong move.
3. VWAP Confirmation
- A bullish breakout is valid only if the price is above the VWAP.
- A bearish breakout is valid only if the price is below the VWAP.
4. Breakout Validation
- The script waits for price action confirmation—a breakout is only valid when a candle closes above (bullish) or below (bearish) the horizontal ray.
- Once confirmed, the ray color changes to blue to signal a strong move.
5. Label Alerts for Strong Moves
- When all conditions align, the script prints "STRONG 💪 MOVE" above or below the breakout candle.
- The previous label is automatically removed to keep the chart clean.
Customization Options
- MACD Settings: Adjust fast/slow lengths and signal smoothing.
- Lower Timeframe Confirmation: Choose a different timeframe for multi-timeframe MACD validation.
- VWAP Filtering: Ensure breakouts align with volume-weighted trends.
- Ray Length & Colors: Customize the horizontal ray length, width, and colors.
- Breakout Confirmation Window: Adjust how many bars to check for MACD alignment.
Best Use Cases
✅ Identifying high-probability breakouts with trend confirmation.
✅ Filtering out false signals by requiring multi-timeframe agreement.
✅ Helping traders stay in momentum-driven moves with strong confirmation.
⚠ Note: This script is for educational purposes only and does not constitute financial advice. Always conduct your own analysis before making trading decisions.
Wick Sweep EntriesThis 2 Candle Setup is designed by Finweal Finance, This Setup suggests the HFT Setup for Instant entry on 5min candles.
WMA and Intraday Highest Volume Candle Levels🔹 WMA Calculation (Weighted Moving Averages)
Custom WMA Function:
Uses a manual weighted average calculation.
Assigns more weight to recent prices for smoother trend detection.
Three Timeframes:
5-Minute WMA (Yellow)
15-Minute WMA (Blue)
30-Minute WMA (Red)
🔹 Intraday Highest Volume Candle Levels
Finds the candle with the highest volume for the selected intraday timeframe.
Stores its High & Low levels to act as support/resistance.
Deletes and redraws lines daily to reflect the latest session's highest volume candle.
Plots horizontal lines:
Green Line: High of the highest volume candle.
Red Line: Low of the highest volume candle.
Customization: User can choose the analysis timeframe (default: 3 minutes).
✅ Benefits of This Indicator
✔ Multi-timeframe trend analysis using WMA.
✔ Key intraday levels based on highest volume candle.
✔ Dynamic support & resistance levels based on real-time volume activity.
✔ Customizable timeframe for volume analysis.
Elliott Wave Identification By Akash Patel
This script is designed to visually highlight areas on the chart where there are consecutive bullish (green) or bearish (red) candles. It also identifies sequences of three consecutive candles of the same type (bullish or bearish) and highlights those areas with adjustable box opacity. Here's a breakdown of the functionality:
---
### Key Features:
1. **Bullish & Bearish Candle Identification:**
- **Bullish Candle:** When the closing price is higher than the opening price (`close > open`).
- **Bearish Candle:** When the closing price is lower than the opening price (`close < open`).
2. **Consecutive Candle Counter:**
- The script counts consecutive bullish and bearish candles, which resets when the direction changes (from bullish to bearish or vice versa).
- The script tracks these counts using the `bullishCount` and `bearishCount` variables, which are incremented based on whether the current candle is bullish or bearish.
3. **Highlighting Candle Areas:**
- If there are **3 or more consecutive bullish candles**, the script will highlight the background in a green color with 90% transparency (adjustable).
- Similarly, if there are **3 or more consecutive bearish candles**, the script will highlight the background in a red color with 90% transparency (adjustable).
4. **Three-Candle Sequence:**
- The script checks if there are three consecutive bullish candles (`threeBullish`) or three consecutive bearish candles (`threeBearish`).
- A box is drawn around these areas to visually highlight the sequence. The boxes extend to the right edge of the chart, and their opacity can be adjusted.
5. **Box Creation:**
- For bullish sequences, a green box is created using the high and low prices of the three candles in the sequence.
- For bearish sequences, a red box is created in the same manner.
- The box size is determined by the highest high and the lowest low of the three consecutive candles.
6. **Box Opacity:**
- You can adjust the opacity of the boxes through the input parameters `Bullish Box Opacity` and `Bearish Box Opacity` (ranging from 0 to 100).
- A higher opacity will make the boxes more solid, while a lower opacity will make them more transparent.
7. **Box Cleanup:**
- The script also includes logic to remove boxes when they are no longer needed, ensuring the chart remains clean without excessive box overlays.
8. **Extending Boxes to the Right:**
- When a bullish or bearish sequence is identified, the boxes are extended to the right edge of the chart for continued visibility.
---
### How It Works:
- **Bullish Area Highlight:** When three or more consecutive bullish candles are detected, the background will turn green to indicate a strong bullish trend.
- **Bearish Area Highlight:** When three or more consecutive bearish candles are detected, the background will turn red to indicate a strong bearish trend.
- **Three Consecutive Candle Box:** A green box will appear around three consecutive bullish candles, and a red box will appear around three consecutive bearish candles. These boxes can be extended to the right edge of the chart, making the sequence visually clear.
---
### Adjustable Parameters:
1. **Bullish Box Opacity:** Set the opacity (transparency) level of the bullish boxes. Ranges from 0 (completely transparent) to 100 (completely opaque).
2. **Bearish Box Opacity:** Set the opacity (transparency) level of the bearish boxes. Ranges from 0 (completely transparent) to 100 (completely opaque).
---
This indicator is useful for identifying strong trends and visually confirming market momentum, especially in situations where you want to spot sequences of bullish or bearish candles over multiple bars. It can be customized to suit different trading styles and chart preferences by adjusting the opacity of the boxes and background highlights.
Hossa SignalsHow It Works
The "Hossa Signals" indicator generates trading signals based on four distinct strategy modes:
Mode 1 & 2 (Counter Trade Strategies):
These modes trigger buy signals when the price falls below a moving average (SMA50 for Mode 1, SMA200 for Mode 2) combined with a low RSI (having been below 26), and sell signals when the price rises above these SMAs combined with a high RSI (previously above 74).
Mode 3 & 4 (Trend Respect Strategies):
These modes generate buy signals when the price crosses above the respective moving average (SMA50 for Mode 3, SMA200 for Mode 4) and the RSI is strong (above 55 after touching 50), and sell signals when the price crosses below these levels with the RSI dropping below 45.
Additional conditions for taking profit are built into each mode, and the indicator tracks position status to help reset the conditions after a trade is closed.
Signals are plotted directly on the chart with labels (displaying "KUP" for buy and "SPRZEDAJ" for sell) and shapes for visual clarity. The current RSI value is also shown in the top-right corner.
How to Use It
Trade Entry:
For example, in Mode 1, if the price dips below SMA50, the RSI has been low (below 26) and is now rising above 30, a buy signal is generated. This may signal a counter-trend opportunity when the price has oversold.
Trade Exit:
Conversely, if the price rises above SMA50 while the RSI is falling (having been high above 74 and now dropping below 70), a sell signal is generated to exit the trade.
Risk Management:
Take profit (TP) conditions are set based on price action or RSI levels. These conditions help you exit a trade once the market moves in your favor, ensuring you lock in profits.
Example Strategy
Counter-Trend Setup (Mode 1):
Buy: Enter a long position when the price drops below the 50-period SMA and the RSI has been oversold (below 26) but starts to recover (rises above 30).
Sell/TP: Exit when the price moves above the SMA or the RSI reaches a high level (above 70).
Trend Respect Setup (Mode 3):
Buy: Enter when the price crosses above the 50-period SMA and the RSI, after touching around 50, moves up above 55.
Sell/TP: Exit when the price reverses (crosses below the SMA) or the RSI drops below 45.
Combine this indicator with other analysis tools (like volume or support/resistance levels) to refine your entry and exit points.
Please Share
If you find the "Hossa Signals" indicator useful for your trading strategy, please share it with your fellow traders. Sharing helps grow our community and encourages the development of more innovative trading tools.
Enjoy your trading!
Hossa OTF 4-candles"Hossa OTF 4-candles," overlays mini-representations of the higher timeframe candle on your current chart and displays a countdown timer showing how much time remains until that higher timeframe candle closes. Here’s how it works and how you might use it:
How It Works
Multi-Timeframe Display:
The indicator fetches the open, high, low, and close of a higher timeframe candle based on the timeframe you select (for example, 1H, 4H, 8H, 1D, or 1W). It then draws four mini-candles that update as new higher timeframe candles are formed.
Simple Stopwatch Countdown:
It retrieves the open time of the current higher timeframe candle and calculates its full duration (using the timeframe’s minutes converted to milliseconds). The indicator then subtracts the elapsed time from the total duration to show a countdown (formatted in hours and minutes) that tells you how long until the current candle closes.
How to Use It
Multi-Timeframe Analysis:
Use this indicator to see at a glance the status of the higher timeframe candle while you trade on a lower timeframe. For instance, if you're trading on a 5-minute chart but want to see what the 4-hour candle is doing, this indicator places a mini-representation of that 4-hour candle right on your chart.
Time-Based Entries/Exits:
The countdown helps you prepare for potential shifts in market sentiment as the higher timeframe candle closes. For example, if you notice a pattern or reversal setup on your lower timeframe near the end of the higher timeframe candle, it could signal an opportunity to enter or exit a trade.
Confluence with Other Indicators:
Combine this tool with other technical indicators (like RSI, MACD, or moving averages) to build a strategy. For instance, you might wait for a divergence on the lower timeframe as the higher timeframe candle nears its close, which can serve as an extra signal for a potential reversal or breakout.
Example Strategy
Trend Confirmation:
Suppose the 4-hour candle is trending upward. Use the mini-candles and countdown timer to monitor when the current 4-hour candle is about to close.
Entry Signal:
If you see a bullish divergence on your lower timeframe (say, on a 15-minute chart) near the end of the 4-hour candle (as the countdown nears zero), this could signal that the uptrend might continue, suggesting a potential buy signal.
Exit Signal:
Conversely, if you see bearish price action or a breakdown of support as the candle closes, you might consider exiting long positions or even taking a short trade.
Please Share
If you find this indicator useful for your multi-timeframe analysis and timing-based strategies, please consider sharing it with your fellow traders. Sharing helps improve our community's tools and fosters collaboration among traders!