Moving Average Consecutive Up/Down Strategy (by ChartArt)This simple strategy goes long (or short) if there are several consecutive increasing (or decreasing) moving average values in a row in the same direction. The bars can be colored using the raw moving average trend. And the background can be colored using the consecutive moving average trend setting. In addition a experimental line of the moving average change can be drawn.
The strategy is based upon the "Consecutive Up/Down Strategy" which was created by Tradingview.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
Cari dalam skrip untuk "chart"
Rounded Weekly Pivot (by ChartArt)Trade with the trend. This is an overlay indicator which shows the weekly pivot (rounded) either as line or circle drawing, select-able by the user. The width of the pivot line (or circle) overlay is also adjustable.
In addition the bars can be colored by the trend, depending if the close price is above or below both the weekly and monthly pivots. If the close price is neither above or below both the weekly and monthly pivot prices the trend color is neutral blue.
The weekly pivot indicator with the optional setting that the pivot price is drawn as circles instead of a line:
And here with the pivot drawing disabled, showing only the pivot bar trend color
Outsidebar vs Insidebar, Illusion Strategy (by ChartArt)WARNING: This strategy does not work! Please don't trade with this strategy
I'm sharing this strategy for the following three educational reasons:
1. You can easily find 100% strategies, but if they only seem to work 100% on one asset, they actually don't work at all. Therefore never backtest your strategy only on one asset, especially forward testing is useless, because it tends to repeat the old patterns. Your strategy has to work on as many different assets as possible.
2. The pyramiding of orders can have an impact on the strategy. In this case if you manually change the strategy settings by increasing it from 1 to 100 pyramiding orders changes the percent profitable on "UKOIL" monthly from 100% to 90% profitable. On other assets you can see very different results. Allowing much more pyramiding orders in this case results in opening orders where the background color highlights appear.
3. The Tradingview backtest beta version currently does not close the last open trade during the backtest. In this case going long on "UKOIL" near the top in 2011 as this strategy did would result in a big loss in 2015. But since the trade is still open and not canceled out by a new short order it still appears as if this strategy works 100% profitable. Which it doesn't.
Moving Average Cross Alert, Multi-Timeframe (MTF) (by ChartArt)See when two moving averages cross. With the option to choose between four moving average calculations:
SMA = simple moving average
EMA = exponential moving average (default)
WMA = weighted moving average
Linear = linear regression
The moving averages can be plotted from different time-frames, like e.g. the weekly or 4 hour time-frame using HL2, HLC3 or OHLC4 as price source for the calculation. In addition there is a background color alert and arrows when the moving averages cross each other when the price also rises or falls. And the moving averages are colored depending on their trend direction (if they are trending up or down).
Market Trend Strength (MTS) (by ChartArt)See the current trend strength of the market. An additional filter makes trend consolidation areas visible. The color changes there each bar back and forth between green and red.
This area was interesting. Would have been a better example:
If the filter is deactivated the indicator shows the last measured price trend (green for up and down for red).
Inside/Outside Bar Sequence Detector# Inside/Outside Bar Sequence Detector
## English Description
**Inside/Outside Bar Sequence Detector**
This indicator identifies and visualizes sequences of Inside and Outside bars on any chart. It highlights important price action patterns that can signal potential market reversals or continuation moves.
**Key Features:**
- Automatically detects consecutive Inside bars (where price action is contained within the previous bar's range) and Outside bars (where price action exceeds the previous bar's range)
- Displays sequences with customizable labels showing the pattern type
- Highlights the price range of each sequence with a transparent box
- Marks individual Inside bars with "i" and Outside bars with "o" below each candle
- Applies special pattern recognition rules for more accurate trade signals
- Fully customizable appearance including colors, opacity, and label positioning
Adjust the minimum sequence length according to your trading timeframe and strategy to filter out noise and focus on significant patterns.
## 中文描述
**内包/外包K线序列检测器**
这个指标可以识别并可视化任何图表上的内包和外包K线序列。它突出显示重要的价格行为模式,这些模式可能预示市场潜在的反转或延续走势。
**主要特点:**
- 自动检测连续的内包K线(价格活动被限制在前一根K线范围内)和外包K线(价格活动超出前一根K线范围)
- 通过可自定义的标签显示模式类型
- 用透明框突出显示每个序列的价格范围
- 在每根K线下方用"i"标记内包蜡烛,用"o"标记外包蜡烛
- 应用特殊模式识别规则,提供更准确的交易信号
- 完全可自定义的外观,包括颜色、透明度和标签位置
根据您的交易时间框架和策略调整最小序列长度,以过滤噪音并专注于重要模式。
Weekly ManipulationUnderstanding the "Weekly Manipulation" Indicator
The "Weekly Manipulation" indicator is a powerful tool designed to identify false breakouts in the market—moments. Let me explain how it works in simple terms.
What This Indicator Detects
This indicator spots two specific market behaviors that often indicate manipulation:
1. Single-Day Manipulation (Red/Green Labels)
This occurs when price briefly breaks through a significant daily level but fails to maintain the momentum:
Bearish Manipulation (Red): Price pushes above the previous day's high, but then reverses and closes below that high.
Bullish Manipulation (Green): Price drops below the previous day's low), but then reverses and closes above that low.
2. Two-Day Manipulation (Black Labels)
This is a more complex version of the same pattern, but occurring over a 2-day period. These signals can indicate even stronger manipulation attempts and potentially more powerful reversals.
Why This Matters for Your Trading
By identifying these patterns, you can:
- Avoid getting caught in false breakouts
- Find potential entry points after the manipulation is complete
- Understand when market action might not be genuine price discovery
How to Use This Indicator
1. Look for Red Markers: These appear when price has attempted to break higher but failed. This often suggests bearish potential going forward.
2. Look for Green Markers: These appear when price has attempted to break lower but failed. This often suggests bullish potential going forward.
3. Pay Attention to Black Markers: These 2-day patterns can signal stronger reversals and might be worth giving extra weight in your analysis.
The indicator labels these patterns clearly as "Manipulation" right on your chart, giving you an immediate visual cue when these potential setups occur.
Bearish Pennant DetectorHere’s a simple Pine Script that attempts to identify bearish pennant patterns and plot a clear visual on TradingView. This version uses:
A downtrend check using moving averages.
A tight consolidation (pennant body) via narrowing Bollinger Bands.
A bearish breakout trigger.
A red triangle visual on the chart when a bearish pennant is detected.
MACD Bullish Crossover Signal//@version=5
indicator("MACD Bullish Crossover Signal", overlay=true)
// MACD Calculation
fastLength = 12
slowLength = 26
signalSmoothing = 9
= ta.macd(close, fastLength, slowLength, signalSmoothing)
// Detect Bullish Crossover
bullishCross = ta.crossover(macdLine, signalLine)
// Plot signal on chart
plotshape(bullishCross, title="MACD Bullish Crossover", location=location.belowbar, color=color.green, style=shape.labelup, text="MACD+", textcolor=color.white, size=size.small)
// Create alert condition
alertcondition(bullishCross, title="Alert: MACD Bullish Crossover", message="MACD Bullish Crossover on {{ticker}} at {{close}}")
Opening Range Retest█ OVERVIEW
This indicator shows the opening range as a box. It also draws markers and triggers alerts when the opening range is retested. The opening range time is configurable, as is the period of time that must elapse before each return to the opening range is considered a retest.
█ FEATURES
Opening range time configurable in bars or minutes
Configurable "resting" period between the end of the opening range or since the last retest before a new retest is considered valid
Configurable tolerance so that a retest can trigger sooner
Active time range can be used to filter alerts and markers to a specific time window
Visual box showing the opening range, which can be optionally limited to the above-mentioned active time window
Well-documented, high-quality, open-source code for those interested
█ CONCEPTS
This indicator can be used for an opening range retest trading strategy, where long or short positions are taken on the retest of the opening range.
The opening range can be user-configured, so it is suitable for use with any opening range time period (e.g., 1-min, 5-min, 15-min, etc.).
The markers and alerts are equivalent, in the sense that whenever a marker appears, an alert will also trigger (assuming the user has set an alert up).
The alert active time range is simply used as a filter for markers and alerts, meaning that these will not draw or trigger outside of the specified time range.
█ LIMITATIONS
The indicator is intended for equities that have a highly active regular market open. For other security types, it will draw the opening range box from whenever TradingView specifies the market open time.
Pivot Reversal Markers (3-bar strength)### Pivot Reversal Markers (3-Bar Strength)
**Overview:**
This indicator identifies and marks pivot high and pivot low reversal points on your chart using a customizable pivot strength. Ideal for traders seeking clear visual signals of potential reversals.
**Settings:**
* **Pivot Strength:** Number of bars checked before and after to confirm a pivot (default = 3).
**Signals:**
* 🔺 **Red Triangle (Pivot High):** Potential short entry or reversal from upward to downward trend.
* 🔻 **Green Triangle (Pivot Low):** Potential long entry or reversal from downward to upward trend.
**Usage:**
Combine these pivot signals with other technical analysis tools or indicators for optimal results.
Reintegration OPR zone 9h30📝 Indicator Description (for TradingView):
Name: Reintegration OPR Zone – 9:30 AM EST (UTC-4)
Purpose:
This indicator is designed for US indices like NAS100, US30, or SPX500. It helps identify potential false breakouts or retests by tracking when the price re-enters the Opening Price Range (OPR) after an initial breakout.
🔍 How it works:
At 9:30 AM New York time (UTC-4), the script captures the high and low of the first 15-minute candle (which is key for the US session open).
It then draws a horizontal box (rectangle) from the high to the low of that candle.
The box extends horizontally for 7 hours (28 candles on a 15-minute chart).
The script tracks if price:
Breaks above or below the OPR zone
Then re-enters the zone (a potential "fakeout" or "retest" signal)
No label or text is displayed on the chart (you requested it to be hidden).
🕒 Timeframe:
Designed for the 15-minute chart (M15)
Assumes New York session open at 9:30 AM EST (UTC-4)
3+ Consecutive Higher or Lower Closes (Full Highlight)This indicator identifies 3 or more sequential bars of higher/lower candle closes and highlights them on the chart.
Candle colour is adjustable.
This is the first edition and has a small issue where it only starts highlighting from the 3rd bar in the sequence.
I'll continue working on this to try to debug
2HH2LL [CCE_Charts]Detects the "Two Higher Highs, Two Lower Lows" (2HH2LL) pattern formation and provides strength analysis with trade signals. The indicator displays visual markers, S/R zones, and clear signals for LONG or SHORT positions.
Pattern Description
The 2HH2LL pattern consists of two consecutive higher highs and two consecutive lower lows. This formation can signal potential trend reversals or continuations depending on market context.
Key Features
• Pattern strength analysis using S/R zone and volume confirmation
• Clear LONG or SHORT trade signals
• Visual markers highlighting pattern components
• Support/Resistance zone visualization
• Customizable alerts for real-time notifications
• Detailed information panel
How to Use This Indicator
1. Add the indicator to your chart
2. Configure settings based on your trading style
3. Look for the "2HH2LL" label when a valid pattern forms
4. Check the pattern strength (STRONG, MEDIUM, WEAK)
5. Note the trade direction signal (LONG or SHORT)
6. Verify the pattern with other technical tools
7. Set up alerts for real-time notifications
Settings Guide
Pattern Settings
• Lookback Period: Controls pivot point detection (5-50)
• Minimum Swing Strength: Required percentage change between highs/lows
Confirmation Settings
• S/R Zone Size: Size of support/resistance zone
• Volume Confirmation Threshold: Volume multiple required for confirmation
• Volume Average Period: Bars used for volume average calculation
Visual Settings
• Show H1/H2/L1/L2 Labels: Toggle pattern component labels
• Show S/R Zone: Toggle support/resistance zone display
Signal Settings
• Trade Direction: How trade direction is determined (SHORT, LONG, AUTO)
Alert Settings
• Alert on All Patterns: Trigger alerts for all valid patterns
• Alert on STRONG Patterns Only: Only alert on strong patterns
• Alert on Direction: Filter alerts by trade direction
Pattern Strength Analysis
The indicator classifies pattern strength into three categories:
• STRONG: Both confirmation factors present (S/R test and volume)
• MEDIUM: One confirmation factor present
• WEAK: No confirmation factors present
For best results, use this indicator in combination with other technical tools and always consider the broader market context.
The LBF modelThe LBF Model is a structural pattern detector that highlights potential reversal zones using a specific sequence of pivot points. It identifies both bearish (LL → LH → LL → HH → LH) and bullish (HH → HL → HH → LL → HL) formations, marking moments where price shows signs of exhaustion and directional shift.
Built purely on price action, the LBF Model avoids indicators and focuses on clean structure. It draws patterns directly on the chart, with customizable sensitivity and colors. Whether used on its own or with other tools, it helps traders spot key turning points with clarity and precision.
[blackcat] L3 Magic-9/13 with Reversal Points ConfirmationOVERVIEW
The L3 Magic-9/13 with Reversal Points Confirmation indicator is designed to help traders identify potential reversal points in the market using a sequential approach. This indicator adopts the "buy when fearful, sell when greedy" philosophy, focusing on capturing key reversal moments 📉↗️. It plots labels on the chart to indicate these reversal points and uses custom functions to filter occurrences based on specific conditions.
FEATURES
Identifies consecutive price movements to detect potential reversals.
Plots labels for various sequential patterns:
High Sequentials: 5, 6, 7, 8, 9, 12, 13
Low Sequentials: 5, 6, 7, 8, 9, 12, 13
Uses custom functions to count consecutive occurrences and filter conditions.
Provides visual confirmation of reversal points with colored labels 🏷️.
Allows customization of sequence lengths and lookback periods ⚙️.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted labels indicating potential reversal zones:
Green labels for buy signals ('B').
Red labels for sell signals ('S').
Customize the sequence lengths and lookback periods as needed in the settings panel.
Combine this indicator with other tools for confirmation before making trading decisions.
LIMITATIONS
The indicator relies heavily on sequential patterns, which might not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Understand the concept of buying at bottoms and selling at tops before using this indicator.
[blackcat] L3 Magic-9 Sequential SetupOVERVIEW
The L3 Magic-9 Sequential Setup indicator is designed to identify potential reversal points in the market using a sequential pattern analysis. This script plots specific labels on the chart based on predefined conditions, helping traders spot key levels where price reversals might occur 📉↗️.
FEATURES
Identifies consecutive occurrences of price movements above or below certain thresholds.
Plots labeled markers on the chart for easy visualization:
Red Labels: Indicate potential sell signals (e.g., '5', '6', '7', etc.).
Green Labels: Indicate potential buy signals (e.g., '5', '6', '7', etc.)
Uses custom functions to filter and count occurrences over specified lookback periods ⚙️.
Changes bar colors based on detected signals for enhanced visual cues 🎨.
Supports extensive customization through input parameters for fine-tuning the setup.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted labels ('5', '6', '7', etc.) indicating potential reversal zones.
Pay attention to bar color changes that confirm the identified patterns.
Combine this indicator with other tools for confirmation before making trading decisions.
LIMITATIONS
The indicator relies heavily on sequential patterns, which may not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize input parameters as needed to fit your trading strategy.
[blackcat] L3 Magic-9 Sequential within HighlightsOVERVIEW
The L3 Magic-9 Sequential within Highlights indicator is designed to identify potential buy and sell signals based on sequential price patterns. This script uses custom functions to detect consecutive occurrences of specific conditions and highlights these patterns on the chart with labels and background colors 📊🔍.
FEATURES
Detects sequential price patterns for both bullish and bearish movements:
High sequences: 5, 6, 7, 8, 9, 12, 13 bars.
Low sequences: 5, 6, 7, 8, 9, 12, 13 bars.
Plots characters ('5', '6', etc.) and shapes (arrows) on the chart to indicate detected sequences 🏷️↗️↘️.
Uses a customizable period for calculating averages of price differences.
Highlights overbought and oversold conditions using background colors 🎨.
Generates buy ('B') and sell ('S') labels based on filtered occurrences and index values.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted characters and arrows indicating detected sequential patterns.
Monitor the background color changes to identify overbought and oversold conditions.
Look for generated buy ('B') and sell ('S') labels for potential trading opportunities.
Customize the period and thresholds in the settings panel as needed ⚙️.
LIMITATIONS
The indicator relies heavily on sequential price patterns, which might not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis before making trading decisions.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Adjust the period and threshold inputs to fit your preferred trading strategy.
Master Simple IndicatorThe streamlined Pine Script, created by masterbtcltc, is a technical analysis indicator that overlays on a price chart to provide buy and sell signals based on a dynamic 120-day simple moving average (SMA). Here's how it works:
Dynamic Moving Average: Calculates a 120-day SMA (ma_dynamic) using closing prices to smooth out price fluctuations and identify trends.
Buy/Sell Signals:
Buy Signal: Triggered when the closing price crosses above the 120-day SMA (longSignal), indicating potential bullish momentum. A white triangle with "close" text appears below the bar.
Sell Signal: Triggered when the closing price crosses below the 120-day SMA (shortSignal), suggesting bearish momentum. A yellow triangle with "Short" text appears above the bar.
Alerts: Generates alerts for buy (Long Signal Alert) and sell (Short Signal Alert) signals, notifying users when the price crosses the SMA.
Visual Highlights:
Price vs. SMA: The area between the closing price and the 120-day SMA is filled with yellow if the price is above the SMA (bullish) or blue if below (bearish).
50-day vs. 120-day SMA: The area between the 50-day SMA and 120-day SMA is filled green when the 50-day SMA is above the 120-day SMA, indicating a stronger bullish trend.
Created by masterbtcltc, this indicator helps traders identify trend changes and potential entry/exit points based on price interactions with the 120-day SMA, with clear visual cues and alerts for decision-making.
Master Litecoin Network Growth BandsThe "Master Litecoin Network Growth Bands" indicator (Pine Script v5) plots 26 horizontal bands on the Litecoin price chart (VANTAGE:LTCUSD) by dividing IntoTheBlock’s total Litecoin addresses by divisors (400 to 20,000,000). Each band (Band1 to Band26) is drawn with a white, thin line (linewidth=1), showing network growth relative to price to help identify support, resistance, or valuation levels. Note that this indicator does not include addresses on Litecoin’s MWEB (MimbleWimble Extension Blocks).
Master Litecoin Hashrate IndicatorThis script is a custom indicator called "Master Litecoin Hashrate Indicator," designed to track and visualize Litecoin's hashrate trends in the form of both a moving average and raw hashrate data. Here’s a breakdown of how it works:
Overview:
Indicator Type: It’s an overlay set to false, meaning it won’t be plotted directly on the price chart but on a separate pane beneath it.
Litecoin Hashrate: This tracks the computational power used to mine Litecoin, in PH/s (Peta Hashes per second).
Key Components:
Inputs:
ma_length: This is the length of the moving average, calculated as half of 7 (which equals 3.5), to smooth out the hashrate data.
Hashrate Data:
hashrate: The script pulls real-time Litecoin hashrate data using the INTOTHEBLOCK:LTC_HASHRATE security symbol from TradingView.
ma_hashrate: A simple moving average (SMA) is applied to the raw hashrate data over the defined period (ma_length), helping to smooth out short-term fluctuations.
Plotting:
hashrate: The raw hashrate is plotted in yellow with a linewidth of 2.
ma_hashrate: The moving average of the hashrate is plotted in white with a linewidth of 2.
Background Color:
The background color changes dynamically depending on the relationship between the raw hashrate and its moving average:
If the raw hashrate is greater than the moving average, the background turns a yellow color (with 90% transparency).
If the raw hashrate is less than the moving average, the background turns blue (with 90% transparency).
If they are equal, there is no background color change.
Purpose:
This indicator helps to visualize the current hashrate trends and compare them with the longer-term moving average. By doing so, it can highlight periods where the hashrate is either increasing or decreasing significantly, giving traders insights into network activity and mining strength.
Session Highs and Lows IndicatorSession Highs and Lows Indicator
This indicator automatically tracks and displays the High and Low prices for major trading sessions:
London
New York
Asia
New York Close
For each session, it plots:
A label at the highest and lowest price point reached during the session.
A dashed line showing the high and low levels extended to the right (until the current bar), helping traders visualize key support/resistance zones.
You can toggle visibility for each session individually through the settings panel.
Session times are set in GMT+8, but you can adjust them in the code if needed.
Color code:
London: Blue
New York: Red
Asia: Green
New York Close: Orange
All lines and labels are semi-transparent to avoid chart clutter.
Ideal for intraday and session-based trading strategies.
Intraday vs Overnight Change TrackerThis indicator tracks a synthetic price path based on either intraday or overnight return behavior, allowing users to analyze which component of daily price movement is contributing more to long-term performance.
***THIS INDICATOR ONLY WORKS ON THE DAILY TIMEFRAME***
Intraday mode compounds price change from market open to close: close / open
Overnight mode compounds price change from previous close to current open: open / close
The user can select one of these two modes using a dropdown input. The synthetic price series starts from the second bar of the chart and compounds forward bar-by-bar using the selected return type. The result is a line that reflects cumulative return based solely on either intraday or overnight activity.
⚙️ Inputs
Synthetic Price Type: Select between "Intraday" or "Overnight" to visualize the respective compounded price series.
📈 Usage Notes
This indicator is intended for visual comparison of intraday vs. overnight price dynamics over time. It can be useful for identifying behavioral patterns, session-based return anomalies, or testing session bias strategies.
Only one synthetic line is shown at a time based on user selection.
If you want to view both intraday and overnight lines, then you can add the indicator twice, which is shown above.