Previous Close LabelSee the previous close price label. Combine it with Multi Timeframe Bar Replay Fix indicator in the Bar Replay mode.
Indicators and strategies
QQQ Bullish Order Block - July 2, 2025//@version=6
indicator("QQQ Bullish Order Block - July 2, 2025", overlay=true)
// Define the OB candle manually (July 2, 2025)
ob_date = timestamp("2025-07-02T00:00:00")
// Conditions: Bullish order block from last bearish candle before rally
is_ob_candle = time == ob_date
// Get OB candle open and close
ob_open = request.security(syminfo.tickerid, "D", open, lookahead=barmerge.lookahead_on)
ob_close = request.security(syminfo.tickerid, "D", close, lookahead=barmerge.lookahead_on)
// Use min/max to draw OB zone correctly (in case of red candle)
ob_high = math.max(ob_open, ob_close)
ob_low = math.min(ob_open, ob_close)
// Only show zone if price is at or above it (optional filter)
show_zone = close >= ob_high
// Draw the OB zone as a filled box
if is_ob_candle and show_zone
var box ob_box = box.new(left = bar_index, right = bar_index + 30, top = ob_high, bottom = ob_low,
border_color = color.green, bgcolor = color.new(color.green, 85))
box.set_extend(ob_box, extend = extend.right)
Current Price Horizonal LineDisplays a horizonal line across the chart of the current price.
For some reason the screenshot does not capture the indicator horizonal line.
Adjustable Percentage Range Moving Average - Add'l LinesThe Adjustable Percentage Range Moving Average (APRMA), originally developed by @ReallyWendy, is a versatile PineScript indicator designed for traders and market analysts to analyze market volatility and identify trends dynamically. Building on the original concept, this updated version plots a central moving average (MA) with four customizable percentage-based range bands around it. Users can select the MA type (SMA, EMA, HMA, RMA, SWMA, TMA, WMA, VWMA), timeframe, and length, tailoring the indicator to their trading style. Each range band (upper and lower) is calculated as a percentage offset from the MA, with adjustable colors and transparency settings for enhanced visual clarity. Extension lines project the latest values forward, with customizable styles (solid, dashed, dotted). The indicator includes toggleable display options for the MA and each range pair, making it an effective tool for identifying price ranges, support/resistance levels, and trend dynamics.
Credit to @ReallyWendy for the foundational concept.
Position Sizing Based on 42-Day Volatility (30 Holdings)30 stocks portfolio sizing based on 2x leverage. Vol targeting.
Session Prep (RTH only, UTC-4)corrected Session Prep (RTH only, UTC-4) now its working properly. hope it helps! :)
Internal Pivot Pattern [LuxAlgo]The Internal Pivot Pattern indicator is a novel method allowing traders to detect pivots without excessive delay on the chart timeframe, by using the lower timeframe data from a candle.
It features custom colors for candles and zigzag lines to help identify trends. A dashboard showing the accuracy of the pattern is also included.
🔶 USAGE
We define a pivot as the occurrence where the middle candle over a specific interval (for example, the most recent 21 bars) is the highest (pivot high) or the lowest (pivot low). This method commonly allows for identifying swing highs/lows on a trader's chart; however, this pattern can only be identified after a specific number of bars has been formed, rendering this pattern useless for real-time detection of swing highs/lows.
This indicator uses a different approach, removing the need to wait for candles to form on the user chart; instead, we check the lower timeframe data of the current candle and evaluate for the presence of a pivot given the internal data, effectively providing pivot confirmation at the candle close.
An internal pivot low pattern is indicative of a potential uptrend, while an internal pivot high is indicative of a potential downtrend.
Candles are colored based on the last internal pivot detected, with blue candle colors indicating that the most recent internal pivot is a pivot low, indicating an uptrend, while an orange candle color indicates that the most recent internal pivot is a pivot high, indicating a downtrend.
🔹 Timeframes
The timeframe setting allows controlling the amount of lower timeframe data to consider for the internal pivot detection. This setting must be lower than the user's chart timeframe.
Using a timeframe significantly lower than the user chart timeframe will evaluate a larger amount of data for the pivot detection, making it less frequent, while using a timeframe closer to the chart timeframe can make the internal pivot detection more frequent, and more prone to false positives.
🔹 Accuracy Dashboard
The Accuracy Dashboard allows evaluating how accurate the detected patterns are as a percentage, with a pattern being judged accurate if subsequent patterns are detected higher or lower than a previous one.
For example, an internal pivot low is judged accurate if the following internal pivot is higher than it, indicating that higher highs have been made.
This dashboard can be useful to determine the timeframe setting to maximize the respective internal pivot accuracy.
🔶 SETTINGS
Timeframe: Timeframe for detecting internal swings
Accuracy Dashboard: Enable or disable the Accuracy Dashboard.
🔹 Style
Internal Pivot High: Color of the dot displayed upon the detection of an internal pivot high
Internal Pivot Low: Color of the dot displayed upon the detection of an internal pivot low
Zig-Zag: Color of the zig-zag segments connecting each internal pivot
Candles: Enable candle coloring, with control over the color of the candles highlighting the detected trend
Position Sizing Based on 42-Day Volatility (20 Holdings)200% position sizing for 20 holdings. Just go up 100% until all spots are taken may be less then 20 stocks.
Position Sizing Based on 42-Day Volatility (20 Holdings, 1x Cap)Position sizing based on 20 stocks with 1x cap. Fully invested no leverage.
Premarket High/Low LabelThis is the premarket high low label that will persist through current trading session. hope it helps :)
Morning Break OutThis indicator visualizes a classic morning breakout setup for the DAX and other European markets. The first hour often sets the tone for the trading day — this tool helps you identify that visually and react accordingly.
🔍 How It Works:
Box Range Calculation:
The high and low between 09:00 and 10:00 define the top and bottom of the box.
Color Logic:
Green: Price breaks above the box after 10:00 → bullish breakout
Red: Price breaks below the box after 10:00 → bearish breakout
Gray: No breakout → neutral phase
📈 Use Cases:
Identify breakout setups visually
Ideal for intraday traders and momentum strategies
Combine with volume or trend filters
⚙️ Notes:
Recommended for timeframes 1-minute and above
Uses the chart’s local timezone (e.g. CET/CEST for XETRA/DAX)
Works on all instruments with data before 09:00 — perfect for DAX, EuroStoxx, futures, FX, CFDs, etc.
Momentum DivergenceOverview
The Momentum Divergence Oscillator is a valuable tool designed for traders who are familiar with basic charting but want to deepen their market insights. This indicator combines a momentum calculation with divergence detection, presenting the data in an intuitive way with a blue momentum line and colored divergence signals ("Bull" and "Bear"). It’s perfect for refining entry and exit points across various timeframes, especially for scalping or swing trading strategies.
Understanding the Concepts
What is Momentum?
Momentum measures the speed and strength of a price movement by comparing the current closing price to a previous close over a set period. In this indicator, it’s calculated as the difference between the current close and the close from a user-defined number of bars ago (default: 10). A rising momentum line indicates accelerating upward momentum, while a falling line suggests slowing momentum or a potential reversal. This helps you gauge whether a trend is gaining power or losing steam, making it a key indicator for spotting overbought or oversold conditions.
What is a Divergence?
A divergence occurs when the price action and the momentum indicator move in opposite directions, often signaling a potential trend reversal. The Momentum Divergence Oscillator highlights two types:
Bullish Divergence: When the price forms a lower low (indicating weakness), but the momentum shows a higher low (suggesting underlying strength). This can foreshadow an upward reversal.
Bearish Divergence: When the price reaches a higher high (showing strength), but the momentum records a lower high (indicating fading momentum). This may hint at an impending downward turn.
How the Indicator Works
The indicator plots a momentum line in a separate pane below your chart, giving you a clear view of price momentum over time. It also scans for divergences using adjustable lookback periods (default: 5 bars left and right) and a range window (default: 5-60 bars) to ensure relevance. When a divergence is detected, it’s visually highlighted, and you can customize the sensitivity through input settings like the momentum length and pivot lookback. Alerts are included to notify you of new divergence signals in real-time, saving you from constant monitoring.
How to Apply It
Identifying Opportunities: Use bullish divergences ("Bull") as a cue to consider long positions, especially when confirmed by support levels or a moving average crossover. Bearish divergences ("Bear") can signal short opportunities, particularly near resistance zones.
Combining with Other Tools: Pair this oscillator with indicators like the Relative Strength Index (RSI) or volume analysis to filter out false signals and increase confidence in your trades. For example, a bullish divergence with rising volume can be a stronger buy signal.
Timeframe Flexibility: Test it on shorter timeframes (e.g., 5-minute charts) for quick scalping trades or longer ones (e.g., 1-hour or 4-hour charts) for swing trading, adjusting the momentum length to suit the market’s pace.
Alert Setup: Enable the built-in alerts to get notified when a divergence forms, allowing you to react promptly without staring at the screen all day.
Strategy Example
Spot a bullish divergence on a 15-minute chart where the price hits a lower low, but the momentum rises.
Confirm with a break above a 20-period EMA and increasing volume.
Enter a long position with a stop-loss below the recent low and a take-profit near the next resistance level.
Customization Tips
Adjust the "Momentum Length" (default: 10) to make the oscillator more or less sensitive—shorter lengths react faster, while longer ones smooth out noise.
Tweak the "Pivot Lookback" settings to widen or narrow the divergence detection range based on your trading style.
Use the "Range Upper/Lower" inputs to focus on divergences within a specific timeframe that matches your strategy.
Important Considerations
b]This indicator is a technical analysis tool, not a guaranteed trading system. Always pair it with a solid strategy and strict risk management, such as setting stop-losses.
In strong trending markets, divergences can sometimes produce false signals. Consider adding a trend filter (e.g., ADX below 25) to avoid whipsaws.
Experiment with the settings on a demo account or backtest to find what works best for your preferred markets and timeframes.
MERV: Market Entropy & Rhythm Visualizer [BullByte]The MERV (Market Entropy & Rhythm Visualizer) indicator analyzes market conditions by measuring entropy (randomness vs. trend), tradeability (volatility/momentum), and cyclical rhythm. It provides traders with an easy-to-read dashboard and oscillator to understand when markets are structured or choppy, and when trading conditions are optimal.
Purpose of the Indicator
MERV’s goal is to help traders identify different market regimes. It quantifies how structured or random recent price action is (entropy), how strong and volatile the movement is (tradeability), and whether a repeating cycle exists. By visualizing these together, MERV highlights trending vs. choppy environments and flags when conditions are favorable for entering trades. For example, a low entropy value means prices are following a clear trend line, whereas high entropy indicates a lot of noise or sideways action. The indicator’s combination of measures is original: it fuses statistical trend-fit (entropy), volatility trends (ATR and slope), and cycle analysis to give a comprehensive view of market behavior.
Why a Trader Should Use It
Traders often need to know when a market trend is reliable vs. when it is just noise. MERV helps in several ways: it shows when the market has a strong direction (low entropy, high tradeability) and when it’s ranging (high entropy). This can prevent entering trend-following strategies during choppy periods, or help catch breakouts early. The “Optimal Regime” marker (a star) highlights moments when entropy is very low and tradeability is very high, typically the best conditions for trend trades. By using MERV, a trader gains an empirical “go/no-go” signal based on price history, rather than guessing from price alone. It’s also adaptable: you can apply it to stocks, forex, crypto, etc., on any timeframe. For example, during a bullish phase of a stock, MERV will turn green (Trending Mode) and often show a star, signaling good follow-through. If the market later grinds sideways, MERV will shift to magenta (Choppy Mode), warning you that trend-following is now risky.
Why These Components Were Chosen
Market Entropy (via R²) : This measures how well recent prices fit a straight line. We compute a linear regression on the last len_entropy bars and calculate R². Entropy = 1 - R², so entropy is low when prices follow a trend (R² near 1) and high when price action is erratic (R² near 0). This single number captures trend strength vs noise.
Tradeability (ATR + Slope) : We combine two familiar measures: the Average True Range (ATR) (normalized by price) and the absolute slope of the regression line (scaled by ATR). Together they reflect how active and directional the market is. A high ATR or strong slope means big moves, making a trend more “tradeable.” We take a simple average of the normalized ATR and slope to get tradeability_raw. Then we convert it to a percentile rank over the lookback window so it’s stable between 0 and 1.
Percentile Ranks : To make entropy and tradeability values easy to interpret, we convert each to a 0–100 rank based on the past len_entropy periods. This turns raw metrics into a consistent scale. (For example, an entropy rank of 90 means current entropy is higher than 90% of recent values.) We then divide by 100 to plot them on a 0–1 scale.
Market Mode (Regime) : Based on those ranks, MERV classifies the market:
Trending (Green) : Low entropy rank (<40%) and high tradeability rank (>60%). This means the market is structurally trending with high activity.
Choppy (Magenta) : High entropy rank (>60%) and low tradeability rank (<40%). This is a mostly random, low-momentum market.
Neutral (Cyan) : All other cases. This covers mixed regimes not strongly trending or choppy.
The mode is shown as a colored bar at the bottom: green for trending, magenta for choppy, cyan for neutral.
Optimal Regime Signal : Separately, we mark an “optimal” condition when entropy_norm < 0.3 and tradeability > 0.7 (both normalized 0–1). When this is true, a ★ star appears on the bottom line. This star is colored white when truly optimal, gold when only tradeability is high (but entropy not quite low enough), and black when neither condition holds. This gives a quick visual cue for very favorable conditions.
What Makes MERV Stand Out
Holistic View : Unlike a single-oscillator, MERV combines trend, volatility, and cycle analysis in one tool. This multi-faceted approach is unique.
Visual Dashboard : The fixed on-chart dashboard (shown at your chosen corner) summarizes all metrics in bar/gauge form. Even a non-technical user can glance at it: more “█” blocks = a higher value, colors match the plots. This is more intuitive than raw numbers.
Adaptive Thresholds : Using percentile ranks means MERV auto-adjusts to each market’s character, rather than requiring fixed thresholds.
Cycle Insight : The rhythm plot adds information rarely found in indicators – it shows if there’s a repeating cycle (and its period in bars) and how strong it is. This can hint at natural bounce or reversal intervals.
Modern Look : The neon color scheme and glow effects make the lines easy to distinguish (blue/pink for entropy, green/orange for tradeability, etc.) and the filled area between them highlights when one dominates the other.
Recommended Timeframes
MERV can be applied to any timeframe, but it will be more reliable on higher timeframes. The default len_entropy = 50 and len_rhythm = 30 mean we use 30–50 bars of history, so on a daily chart that’s ~2–3 months of data; on a 1-hour chart it’s about 2–3 days. In practice:
Swing/Position traders might prefer Daily or 4H charts, where the calculations smooth out small noise. Entropy and cycles are more meaningful on longer trends.
Day trader s could use 15m or 1H charts if they adjust the inputs (e.g. shorter windows). This provides more sensitivity to intraday cycles.
Scalpers might find MERV too “slow” unless input lengths are set very low.
In summary, the indicator works anywhere, but the defaults are tuned for capturing medium-term trends. Users can adjust len_entropy and len_rhythm to match their chart’s volatility. The dashboard position can also be moved (top-left, bottom-right, etc.) so it doesn’t cover important chart areas.
How the Scoring/Logic Works (Step-by-Step)
Compute Entropy : A linear regression line is fit to the last len_entropy closes. We compute R² (goodness of fit). Entropy = 1 – R². So a strong straight-line trend gives low entropy; a flat/noisy set of points gives high entropy.
Compute Tradeability : We get ATR over len_entropy bars, normalize it by price (so it’s a fraction of price). We also calculate the regression slope (difference between the predicted close and last close). We scale |slope| by ATR to get a dimensionless measure. We average these (ATR% and slope%) to get tradeability_raw. This represents how big and directional price moves are.
Convert to Percentiles : Each new entropy and tradeability value is inserted into a rolling array of the last 50 values. We then compute the percentile rank of the current value in that array (0–100%) using a simple loop. This tells us where the current bar stands relative to history. We then divide by 100 to plot on .
Determine Modes and Signal : Based on these normalized metrics: if entropy < 0.4 and tradeability > 0.6 (40% and 60% thresholds), we set mode = Trending (1). If entropy > 0.6 and tradeability < 0.4, mode = Choppy (-1). Otherwise mode = Neutral (0). Separately, if entropy_norm < 0.3 and tradeability > 0.7, we set an optimal flag. These conditions trigger the colored mode bars and the star line.
Rhythm Detection : Every bar, if we have enough data, we take the last len_rhythm closes and compute the mean and standard deviation. Then for lags from 5 up to len_rhythm, we calculate a normalized autocorrelation coefficient. We track the lag that gives the maximum correlation (best match). This “best lag” divided by len_rhythm is plotted (a value between 0 and 1). Its color changes with the correlation strength. We also smooth the best correlation value over 5 bars to plot as “Cycle Strength” (also 0 to 1). This shows if there is a consistent cycle length in recent price action.
Heatmap (Optional) : The background color behind the oscillator panel can change with entropy. If “Neon Rainbow” style is on, low entropy is blue and high entropy is pink (via a custom color function), otherwise a classic green-to-red gradient can be used. This visually reinforces the entropy value.
Volume Regime (Dashboard Only) : We compute vol_norm = volume / sma(volume, len_entropy). If this is above 1.5, it’s considered high volume (neon orange); below 0.7 is low (blue); otherwise normal (green). The dashboard shows this as a bar gauge and percentage. This is for context only.
Oscillator Plot – How to Read It
The main panel (oscillator) has multiple colored lines on a 0–1 vertical scale, with horizontal markers at 0.2 (Low), 0.5 (Mid), and 0.8 (High). Here’s each element:
Entropy Line (Blue→Pink) : This line (and its glow) shows normalized entropy (0 = very low, 1 = very high). It is blue/green when entropy is low (strong trend) and pink/purple when entropy is high (choppy). A value near 0.0 (below 0.2 line) indicates a very well-defined trend. A value near 1.0 (above 0.8 line) means the market is very random. Watch for it dipping near 0: that suggests a strong trend has formed.
Tradeability Line (Green→Yellow) : This represents normalized tradeability. It is colored bright green when tradeability is low, transitioning to yellow as tradeability increases. Higher values (approaching 1) mean big moves and strong slopes. Typically in a market rally or crash, this line will rise. A crossing above ~0.7 often coincides with good trend strength.
Filled Area (Orange Shade) : The orange-ish fill between the entropy and tradeability lines highlights when one dominates the other. If the area is large, the two metrics diverge; if small, they are similar. This is mostly aesthetic but can catch the eye when the lines cross over or remain close.
Rhythm (Cycle) Line : This is plotted as (best_lag / len_rhythm). It indicates the relative period of the strongest cycle. For example, a value of 0.5 means the strongest cycle was about half the window length. The line’s color (green, orange, or pink) reflects how strong that cycle is (green = strong). If no clear cycle is found, this line may be flat or near zero.
Cycle Strength Line : Plotted on the same scale, this shows the autocorrelation strength (0–1). A high value (e.g. above 0.7, shown in green) means the cycle is very pronounced. Low values (pink) mean any cycle is weak and unreliable.
Mode Bars (Bottom) : Below the main oscillator, thick colored bars appear: a green bar means Trending Mode, magenta means Choppy Mode, and cyan means Neutral. These bars all have a fixed height (–0.1) and make it very easy to see the current regime.
Optimal Regime Line (Bottom) : Just below the mode bars is a thick horizontal line at –0.18. Its color indicates regime quality: White (★) means “Optimal Regime” (very low entropy and high tradeability). Gold (★) means not quite optimal (high tradeability but entropy not low enough). Black means neither condition. This star line quickly tells you when conditions are ideal (white star) or simply good (gold star).
Horizontal Guides : The dotted lines at 0.2 (Low), 0.5 (Mid), and 0.8 (High) serve as reference lines. For example, an entropy or tradeability reading above 0.8 is “High,” and below 0.2 is “Low,” as labeled on the chart. These help you gauge values at a glance.
Dashboard (Fixed Corner Panel)
MERV also includes a compact table (dashboard) that can be positioned in any corner. It summarizes key values each bar. Here is how to read its rows:
Entropy : Shows a bar of blocks (█ and ░). More █ blocks = higher entropy. It also gives a percentage (rounded). A full bar (10 blocks) with a high % means very chaotic market. The text is colored similarly (blue-green for low, pink for high).
Rhythm : Shows the best cycle period in bars (e.g. “15 bars”). If no calculation yet, it shows “n/a.” The text color matches the rhythm line.
Cycle Strength : Gives the cycle correlation as a percentage (smoothed, as shown on chart). Higher % (green) means a strong cycle.
Tradeability : Displays a 10-block gauge for tradeability. More blocks = more tradeable market. It also shows “gauge” text colored green→yellow accordingly.
Market Mode : Simply shows “Trending”, “Choppy”, or “Neutral” (cyan text) to match the mode bar color.
Volume Regime : Similar to tradeability, shows blocks for current volume vs. average. Above-average volume gives orange blocks, below-average gives blue blocks. A % value indicates current volume relative to average. This row helps see if volume is abnormally high or low.
Optimal Status (Large Row) : In bold, either “★ Optimal Regime” (white text) if the star condition is met, “★ High Tradeability” (gold text) if tradeability alone is high, or “— Not Optimal” (gray text) otherwise. This large row catches your eye when conditions are ripe.
In short, the dashboard turns the numeric state into an easy read: filled bars, colors, and text let you see current conditions without reading the plot. For instance, five blue blocks under Entropy and “25%” tells you entropy is low (good), and a row showing “Trending” in green confirms a trend state.
Real-Life Example
Example : Consider a daily chart of a trending stock (e.g. “AAPL, 1D”). During a strong uptrend, recent prices fit a clear upward line, so Entropy would be low (blue line near bottom, perhaps below the 0.2 line). Volatility and slope are high, so Tradeability is high (green-yellow line near top). In the dashboard, Entropy might show only 1–2 blocks (e.g. 10%) and Tradeability nearly full (e.g. 90%). The Market Mode bar turns green (Trending), and you might see a white ★ on the optimal line if conditions are very good. The Volume row might light orange if volume is above average during the rally. In contrast, imagine the same stock later in a tight range: Entropy will rise (pink line up, more blocks in dashboard), Tradeability falls (fewer blocks), and the Mode bar turns magenta (Choppy). No star appears in that case.
Consolidated Use Case : Suppose on XYZ stock the dashboard reads “Entropy: █░░░░░░░░ 20%”, “Tradeability: ██████████ 80%”, Mode = Trending (green), and “★ Optimal Regime.” This tells the trader that the market is in a strong, low-noise trend, and it might be a good time to follow the trend (with appropriate risk controls). If instead it reads “Entropy: ████████░░ 80%”, “Tradeability: ███▒▒▒▒▒▒ 30%”, Mode = Choppy (magenta), the trader knows the market is random and low-momentum—likely best to sit out until conditions improve.
Example: How It Looks in Action
Screenshot 1: Trending Market with High Tradeability (SOLUSD, 30m)
What it means:
The market is in a clear, strong trend with excellent conditions for trading. Both trend-following and active strategies are favored, supported by high tradeability and strong volume.
Screenshot 2: Optimal Regime, Strong Trend (ETHUSD, 1h)
What it means:
This is an ideal environment for trend trading. The market is highly organized, tradeability is excellent, and volume supports the move. This is when the indicator signals the highest probability for success.
Screenshot 3: Choppy Market with High Volume (BTC Perpetual, 5m)
What it means:
The market is highly random and choppy, despite a surge in volume. This is a high-risk, low-reward environment, avoid trend strategies, and be cautious even with mean-reversion or scalping.
Settings and Inputs
The script is fully open-source; here are key inputs the user can adjust:
Entropy Window (len_entropy) : Number of bars used for entropy and tradeability (default 50). Larger = smoother, more lag; smaller = more sensitivity.
Rhythm Window (len_rhythm ): Bars used for cycle detection (default 30). This limits the longest cycle we detect.
Dashboard Position : Choose any corner (Top Right default) so it doesn’t cover chart action.
Show Heatmap : Toggles the entropy background coloring on/off.
Heatmap Style : “Neon Rainbow” (colorful) or “Classic” (green→red).
Show Mode Bar : Turn the bottom mode bar on/off.
Show Dashboard : Turn the fixed table panel on/off.
Each setting has a tooltip explaining its effect. In the description we will mention typical settings (e.g. default window sizes) and that the user can move the dashboard corner as desired.
Oscillator Interpretation (Recap)
Lines : Blue/Pink = Entropy (low=trend, high=chop); Green/Yellow = Tradeability (low=quiet, high=volatile).
Fill : Orange tinted area between them (for visual emphasis).
Bars : Green=Trending, Magenta=Choppy, Cyan=Neutral (at bottom).
Star Line : White star = ideal conditions, Gold = good but not ideal.
Horizontal Guides : 0.2 and 0.8 lines mark low/high thresholds for each metric.
Using the chart, a coder or trader can see exactly what each output represents and make decisions accordingly.
Disclaimer
This indicator is provided as-is for educational and analytical purposes only. It does not guarantee any particular trading outcome. Past market patterns may not repeat in the future. Users should apply their own judgment and risk management; do not rely solely on this tool for trading decisions. Remember, TradingView scripts are tools for market analysis, not personalized financial advice. We encourage users to test and combine MERV with other analysis and to trade responsibly.
-BullByte
1 Hour HA Venkat Sir CommoditiesHere’s a clear and professional description you can use for your TradingView script:
---
### **Script Name:**
**1 Hour HA Venkat Sir Commodities**
### **Description:**
This indicator is designed for identifying potential **buy and sell signals** in commodity markets using **Heikin Ashi candlestick patterns** combined with a **Relative Strength Index (RSI) filter**. It works on the **1-hour timeframe** and aims to capture early trend reversals or momentum shifts.
### **Key Features:**
* ✅ **Heikin Ashi Pattern Detection:**
Detects the following reversal candlestick patterns on calculated Heikin Ashi candles:
* **Bullish Engulfing**
* **Bullish Harami**
* **Bearish Engulfing**
* **Bearish Harami**
* ✅ **RSI Confirmation Filter:**
Adds an extra layer of confirmation using the standard 14-period RSI on regular price candles:
* **Buy signals** trigger only when RSI < 40 (oversold zone).
* **Sell signals** trigger only when RSI > 60 (overbought zone).
* ✅ **Visual Signals:**
* **Green upward triangles** below candles for buy signals.
* **Red downward triangles** above candles for sell signals.
* ✅ **Alert Conditions:**
Built-in alerts to notify users when valid buy or sell conditions are met.
### **Usage Tip:**
Best used on commodities charts set to the **1-hour timeframe**. Ensure you're not using Heikin Ashi chart mode, as the script calculates its own Heikin Ashi values for accuracy and consistency.
---
Let me know if you’d like a shorter version or want this translated into Hindi or another language.
Safety TradeSafety Trade Free, Green - the lowest correction on bullmarket, Red the highest raise on bear market.
2% Averaging Buy-Sell Strategy📘 Strategy Description: 2% Averaging Buy-Sell Strategy
This strategy is designed to simulate an averaging-down and scaling-out approach based on percentage-based price movements.
Entry Logic (Buy):
Initial buy of 1 lot is triggered at the start of the strategy.
Every time the price drops by 2% from the last executed buy level, the strategy adds 2 more lots.
Exit Logic (Sell):
When the price rises 2% from the last buy level, the strategy sells 2 lots.
Selling continues in batches of 2 lots as long as the upward movement continues and lots are available.
Core Idea:
This is a dynamic averaging system that increases exposure during drawdowns and reduces it during rallies, aiming to capture mean reversion or trend reversals.
Customizable Inputs:
Initial lot size
Additional lot size
Percentage threshold (default 2%)
⚠️ Note: This strategy is for simulation/backtesting purposes. It does not account for slippage, fees, or real-world order execution conditions.
BTC Futures Top Trading Indicators//@version=5
indicator("BTC Futures Top Trading Indicators", overlay=true)
// Moving Averages
fast_ma = ta.sma(close, 20)
slow_ma = ta.sma(close, 50)
// RSI
rsi = ta.rsi(close, 14)
// MACD
= ta.macd(close, 12, 26, 9)
// Bollinger Bands
bb_middle = ta.sma(close, 20)
bb_upper = bb_middle + 2 * ta.stdev(close, 20)
bb_lower = bb_middle - 2 * ta.stdev(close, 20)
// Plot Moving Averages
plot(fast_ma, color=color.blue, linewidth=2, title="20 SMA")
plot(slow_ma, color=color.orange, linewidth=2, title="50 SMA")
// Plot Bollinger Bands
plot(bb_upper, color=color.gray, title="Upper BB")
plot(bb_lower, color=color.gray, title="Lower BB")
plot(bb_middle, color=color.gray, title="Middle BB")
// Plot RSI in a separate window
rsi_plot = rsi
hline(70, "Overbought", color=color.red, linestyle=hline.style_dashed)
hline(30, "Oversold", color=color.green, linestyle=hline.style_dashed)
plot(rsi_plot, title="RSI", color=color.purple)
// Plot MACD
plot(macdLine, color=color.green, title="MACD Line")
plot(signalLine, color=color.red, title="Signal Line")
// Entry and Exit signals
buy_signal = ta.crossover(fast_ma, slow_ma) and rsi < 30 and macdLine > signalLine and close > bb_lower
sell_signal = ta.crossunder(fast_ma, slow_ma) and rsi > 70 and macdLine < signalLine and close < bb_upper
// Plot signals on chart
plotshape(buy_signal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, size=size.small)
plotshape(sell_signal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small)
RSI Divergence(CompactFX)This is the standard "RSI" with "divergence" displayed. Additionally, it has the following features:
- The line color shifts above and below the RSI 50 threshold.
- The MA can be displayed on the RSI.
- Signs of an expected reversal are displayed.
**Examples of Use**
*For Swing Traders
In addition to using the standard RSI, the divergence display can serve as a trigger for further consideration.
*For Scalpers
For athletic traders who prefer intuition over logic and calculation, we recommend customizing the RSI color to your liking for bulls and bears. Consider extending the price until the RSI color changes. Below is my example.
-One-Minute Scalping
When prices are moving above the long-term and short-term MAs, you can hold a position as long as the RSI is above 55 (below 45 for bears). In this case, pivot signs can also be used as a guide for closing positions. Of course, this is best done during periods of high momentum. Five- and 15-minute scalping also works well. However, these only work if you adhere to my logic. Don't forget to adhere to your own logic and framework.
The above is just an example. Feel free to use it as you like.
SCTI-MACDEnglish Description
SCTI-MACD is an advanced multi-feature MACD indicator that combines traditional MACD analysis with divergence detection and flexible display options. This enhanced version offers:
Key Features:
Customizable MACD parameters (fast EMA, slow EMA, signal line periods)
Multi-timeframe capability - analyze MACD from different timeframes on your current chart
Visual customization:
Toggle MACD line, signal line, and histogram visibility
Color-changing MACD line based on signal line crossovers
4-color histogram for better trend visualization
Signal cross markers
Advanced divergence detection:
Regular and hidden divergences for both histogram and MACD line
Configurable lookback periods and price reference (wicks or bodies)
Visual labels for easy identification
Flexible display options to show only the elements you need
The indicator helps identify trend direction, momentum shifts, and potential reversal points through its comprehensive divergence detection system.
中文描述
SCTI-MACD 是一个集成了多种功能的高级MACD指标,结合了传统MACD分析与背离检测功能,并提供灵活的显示选项。这个增强版本提供:
主要功能:
可定制的MACD参数(快EMA、慢EMA、信号线周期)
多时间周期功能 - 在当前图表上分析不同时间周期的MACD
可视化定制:
可切换显示MACD线、信号线和直方图
根据信号线交叉变化颜色的MACD线
四种颜色的直方图,提供更好的趋势可视化
信号交叉标记点
高级背离检测:
直方图和MACD线的常规背离和隐藏背离
可配置的回溯周期和价格参考(影线或实体)
视觉标签便于识别
灵活的显示选项,只显示您需要的元素
该指标通过其全面的背离检测系统,帮助识别趋势方向、动量变化和潜在反转点。
Publishing Notes
When uploading to the community, you may want to include:
Suggested Settings: Recommend your preferred parameter combinations
Usage Tips: Explain how to interpret the different divergence signals
Screenshots: Include images showing the indicator in action with different features enabled
Version Info: Note that it requires Pine Script v5
The indicator name "SCTI-MACD" suggests it may be part of a trading system or methodology - you may want to explain what "SCTI" stands for if it's meaningful to your approach.
SCTI-RSKSCTI-RSK 是一个多功能技术指标合集,整合了多种常用技术指标于一个图表中,方便交易者综合分析市场状况。该指标包含以下五个主要技术指标模块,每个模块都可以单独显示或隐藏:
Stoch RSI - 随机相对强弱指数
KDJ - 随机指标
RSI - 相对强弱指数
CCI - 商品通道指数
Williams %R - 威廉指标
主要特点
模块化设计:每个指标都可以单独开启或关闭显示
交叉信号可视化:Stoch RSI和KDJ的金叉/死叉信号有彩色填充标识
多时间框架分析:支持不同长度的参数设置
直观界面:清晰的参数分组和颜色区分
适用场景
趋势判断
超买超卖区域识别
交易信号确认
多指标共振分析
English Description
SCTI-RSK is a comprehensive technical indicator that combines multiple popular indicators into a single chart for traders to analyze market conditions holistically. The indicator includes the following five main technical indicator modules, each can be toggled on/off individually:
Stoch RSI - Stochastic Relative Strength Index
KDJ - Stochastic Oscillator
RSI - Relative Strength Index
CCI - Commodity Channel Index
Williams %R - Williams Percent Range
Key Features
Modular Design: Each indicator can be shown or hidden independently
Visual Crossover Signals: Golden/Death crosses are highlighted with color fills for Stoch RSI and KDJ
Multi-Timeframe Analysis: Supports different length parameters
Intuitive Interface: Clear parameter grouping and color differentiation
Use Cases
Trend identification
Overbought/Oversold zone recognition
Trade signal confirmation
Multi-indicator confluence analysis
参数说明 (Parameter Explanation)
指标参数分为6个主要组别:
基础指标设置 - 控制各指标的显示/隐藏
Stoch RSI 设置 - 包括K值、D值、RSI长度等参数
KDJ 设置 - 包括周期、信号线等参数
RSI 设置 - 包括RSI长度、中期长度等参数
CCI 设置 - 包括CCI长度、中期长度等参数
Williams %R 设置 - 包括长度参数
使用建议 (Usage Suggestions)
初次使用时,可以先开启所有指标观察它们的相互关系
根据个人交易风格调整各指标的长度参数
关注多指标同时发出信号时的交易机会
结合价格行为和其他分析工具确认信号
更新日志 (Changelog)
v1.0 初始版本,整合五大技术指标
SCTI V28Indicator Overview | 指标概述
English: SCTI V28 (Smart Composite Technical Indicator) is a multi-functional composite technical analysis tool that integrates various classic technical analysis methods. It contains 7 core modules that can be flexibly configured to show or hide components based on traders' needs, suitable for various trading styles and market conditions.
中文: SCTI V28 (智能复合技术指标) 是一款多功能复合型技术分析指标,整合了多种经典技术分析工具于一体。该指标包含7大核心模块,可根据交易者的需求灵活配置显示或隐藏各个组件,适用于多种交易风格和市场环境。
Main Functional Modules | 主要功能模块
1. Basic Indicator Settings | 基础指标设置
English:
EMA Display: 13 configurable EMA lines (default shows 8/13/21/34/55/144/233/377/610/987/1597/2584 periods)
PMA Display: 11 configurable moving averages with multiple MA types (ALMA/EMA/RMA/SMA/SWMA/VWAP/VWMA/WMA)
VWAP Display: Volume Weighted Average Price indicator
Divergence Indicator: Detects divergences across 12 technical indicators
ATR Stop Loss: ATR-based stop loss lines
Volume SuperTrend AI: AI-powered super trend indicator
中文:
EMA显示:13条可配置EMA均线,默认显示8/13/21/34/55/144/233/377/610/987/1597/2584周期
PMA显示:11条可配置移动平均线,支持多种MA类型(ALMA/EMA/RMA/SMA/SWMA/VWAP/VWMA/WMA)
VWAP显示:成交量加权平均价指标
背离指标:12种技术指标的背离检测系统
ATR止损:基于ATR的止损线
Volume SuperTrend AI:基于AI预测的超级趋势指标
2. EMA Settings | EMA设置
English:
13 independent EMA lines, each configurable for visibility and period length
Default shows 21/34/55/144/233/377/610/987/1597/2584 period EMAs
Customizable colors and line widths for each EMA
中文:
13条独立EMA均线,每条均可单独配置显示/隐藏和周期长度
默认显示21/34/55/144/233/377/610/987/1597/2584周期的EMA
每条EMA可设置不同颜色和线宽
3. PMA Settings | PMA设置
English:
11 configurable moving averages, each with:
Selectable types (default EMA, options: ALMA/RMA/SMA/SWMA/VWAP/VWMA/WMA)
Independent period settings (12-1056)
Special ALMA parameters (offset and sigma)
Configurable data source and plot offset
Support for fill areas between MAs
Price lines and labels can be added
中文:
11条可配置移动平均线,每条均可:
选择不同类型(默认EMA,可选ALMA/RMA/SMA/SWMA/VWAP/VWMA/WMA)
独立设置周期长度(12-1056)
设置ALMA的特殊参数(偏移量和sigma)
配置数据源和绘图偏移
支持MA之间的填充区域显示
可添加价格线和标签
4. VWAP Settings | VWAP设置
English:
Multiple anchor period options (Session/Week/Month/Quarter/Year/Decade/Century/Earnings/Dividends/Splits)
3 configurable standard deviation bands
Option to hide on daily and higher timeframes
Configurable data source and offset settings
中文:
多种锚定周期选择(会话/周/月/季/年/十年/世纪/财报/股息/拆股)
3条可配置标准差带
可选择在日线及以上周期隐藏
支持数据源选择和偏移设置
5. Divergence Indicator Settings | 背离指标设置
English:
12 detectable indicators: MACD, MACD Histogram, RSI, Stochastic, CCI, Momentum, OBV, VWmacd, Chaikin Money Flow, MFI, Williams %R, External Indicator
4 divergence types: Regular Bullish/Bearish, Hidden Bullish/Bearish
Multiple display options: Full name/First letter/Hide indicator name
Configurable parameters: Pivot period, data source, maximum bars checked, etc.
Alert functions: Independent alerts for each divergence type
中文:
检测12种指标:MACD、MACD柱状图、RSI、随机指标、CCI、动量、OBV、VWmacd、Chaikin资金流、MFI、威廉姆斯%R、外部指标
4种背离类型:正/负常规背离,正/负隐藏背离
多种显示选项:完整名称/首字母/不显示指标名称
可配置参数:枢轴点周期、数据源、最大检查柱数等
警报功能:各类背离的独立警报
6. ATR Stop Loss Settings | ATR止损设置
English:
Configurable ATR length (default 13)
4 smoothing methods (RMA/SMA/EMA/WMA)
Adjustable multiplier (default 1.618)
Displays long and short stop loss lines
中文:
可配置ATR长度(默认13)
4种平滑方法(RMA/SMA/EMA/WMA)
可调乘数(默认1.618)
显示多头和空头止损线
7. Volume SuperTrend AI Settings | Volume SuperTrend AI设置
English:
AI Prediction:
Configurable neighbors (1-100) and data points (1-100)
Price trend length and prediction trend length settings
SuperTrend Parameters:
Length (default 3)
Factor (default 1.515)
5 MA source options (SMA/EMA/WMA/RMA/VWMA)
Signal Display:
Trend start signals (circle markers)
Trend confirmation signals (triangle markers)
6 Alerts: Various trend start and confirmation signals
中文:
AI预测功能:
可配置邻居数(1-100)和数据点数(1-100)
价格趋势长度和预测趋势长度设置
SuperTrend参数:
长度(默认3)
因子(默认1.515)
5种MA源选择(SMA/EMA/WMA/RMA/VWMA)
信号显示:
趋势开始信号(圆形标记)
趋势确认信号(三角形标记)
6种警报:各类趋势开始和确认信号
Usage Recommendations | 使用建议
English:
Trend Analysis: Use EMA/PMA combinations to determine market trends, with long-period EMAs (e.g., 144/233) as primary trend references
Divergence Trading: Look for potential reversals using price-indicator divergences
Stop Loss Management: Use ATR stop loss lines for risk management
AI Assistance: Volume SuperTrend AI provides machine learning-based trend predictions
Multiple Timeframes: Verify signals across different timeframes
中文:
趋势分析:使用EMA/PMA组合判断市场趋势,长周期EMA(如144/233)作为主要趋势参考
背离交易:结合价格与指标的背离寻找潜在反转点
止损设置:利用ATR止损线管理风险
AI辅助:Volume SuperTrend AI提供基于机器学习的趋势预测
多时间框架:建议在不同时间框架下验证信号
Parameter Configuration Tips | 参数配置技巧
English:
For short-term trading: Focus on 8-55 period EMAs and shorter divergence detection periods
For long-term investing: Use 144-2584 period EMAs with longer detection parameters
In ranging markets: Disable some EMAs, mainly rely on VWAP and divergence indicators
In trending markets: Enable more EMAs and SuperTrend AI
中文:
对于短线交易:可重点关注8-55周期的EMA和较短的背离检测周期
对于长线投资:建议使用144-2584周期的EMA和较长的检测参数
在震荡市:可关闭部分EMA,主要依靠VWAP和背离指标
在趋势市:可启用更多EMA和SuperTrend AI
Update Log | 更新日志
English:
V28 main updates:
Added Volume SuperTrend AI module
Optimized divergence detection algorithm
Added more EMA period options
Improved UI and parameter grouping
中文:
V28版本主要更新:
新增Volume SuperTrend AI模块
优化背离检测算法
增加更多EMA周期选项
改进用户界面和参数分组
Final Note | 最后说明
English: This indicator is suitable for technical traders with some experience. We recommend practicing with demo trading to familiarize yourself with all features before live trading.
中文: 该指标适合有一定经验的技术分析交易者使用,建议先通过模拟交易熟悉各项功能后再应用于实盘。