Daily Close Comparison Strategy (by ChartArt via sirolf2009)Comparing daily close prices as a strategy.
This strategy is equal to the very popular "ANN Strategy" coded by sirolf2009(1) which calculates the percentage difference of the daily close price, but this bar-bone version works completely without his Artificial Neural Network (ANN) part.
Main difference besides stripping out the ANN is that my version uses close prices instead of OHLC4 prices, because they perform better in backtesting. And the default threshold is set to 0 to keep it simple instead of 0.0014 with a larger step value of 0.001 instead of 0.0001. Just like the ANN strategy this strategy goes long if the close of the current day is larger than the close price of the last day. If the inverse logic is true, the strategy goes short (last close larger current close). (2)
This basic strategy does not have any stop loss or take profit money management logic. And I repeat, the credit for the fundamental code idea goes to sirolf2009.
(2) Because the multi-time-frame close of the current day is future data, meaning not available in live-trading (also described as repainting), is the reason why this strategy and the original "ANN Strategy" coded by sirolf2009 perform so excellent in backtesting.
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.
(1) You can get the original code by sirolf2009 including the ANN as indicator here:
(1) and this is sirolf2009's very popular strategy version of his ANN:
Cerca negli script per "chart"
MACD + Stochastic, Double Strategy (by ChartArt)This strategy combines the classic stochastic strategy to buy when the stochastic is oversold with a classic MACD strategy to buy when the MACD histogram value goes above the zero line. Only difference to the classic stochastic is a default setting of 71 for overbought (classic setting 80) and 29 for oversold (classic setting 20).
Therefore this strategy goes long if the MACD histogram goes above zero and the stochastic indicator detects a oversold condition (value below 29). If the inverse logic is true, the strategy goes short (stochastic overbought condition with a value above 71 and the MACD histogram falling below the zero line value).
Please be aware that this pure double strategy using simply two classic indicators does not have any stop loss or take profit money management logic.
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.
Bollinger + RSI, Double Strategy (by ChartArt) v1.1This strategy uses the RSI indicator together with the Bollinger Bands to sell when the price is above the upper Bollinger Band (and to buy when this value is below the lower band). This simple strategy only triggers when both the RSI and the Bollinger Band indicators are at the same time in a overbought or oversold condition.
UPDATE
In this updated version 1.1 the strategy was both simplified for the user (less inputs) and made more successful in backtesting by now using a 200 period for the SMA which is the basis for the Bollinger Band. I also reduced the number of color alerts to show fewer, but more relevant trading opportunities.
And just like the first version this strategy does not use close prices from higher-time frame and should not repaint after the current candle has closed. It might repaint like every Tradingview indicator while the current candle hasn't closed.
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.
P.S. For advanced users if you want access to more functions of this strategy script, then please use version 1.0:
Bollinger + RSI, Double Strategy (by ChartArt)Bollinger Bands + RSI, Double Strategy
This strategy uses a slower RSI with period 16 to sell when the RSI increases over the value of 55 (or to buy when the value falls below 45), with the classic Bollinger Bands strategy to sell when the price is above the upper Bollinger Band and falls below it (and to buy when the price is below the lower band and rises above it). This strategy only triggers when both the RSI and the Bollinger Bands indicators are at the same time in the described overbought or oversold condition. In addition there are color alerts which can be deactivated.
This basic strategy is based upon the "RSI Strategy" and "Bollinger Bands Strategy" which were created by Tradingview and uses no money management like a trailing stop loss and no scalping methods. Every win/loss trade is simply counted from the last overbought/oversold condition to the next one.
This strategy does not use close prices from higher-time frame and should not repaint after the current candle has closed. It might repaint like every Tradingview indicator while the current candle hasn't closed.
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.
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.
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).
Pin Bar Highlighter OnlyAbsolutely — here’s a full **description and breakdown** of what the script does:
---
## 📜 Script Name:
**"Pin Bar Highlighter Only"**
---
## 🎯 Purpose:
This script **detects and highlights classic pin bar reversal candles** directly on the chart — without plotting any entry, stop loss, or take profit levels.
It’s designed for traders who:
* Want to manually assess trades
* Prefer a clean chart
* Use pin bar price action as a signal for potential reversals
---
## ✅ What It Does:
* **Scans each candle** to check if it qualifies as a **bullish** or **bearish pin bar**
* If valid:
* Plots a **green triangle below** bullish pin bars
* Plots a **red triangle above** bearish pin bars
* Keeps your chart **minimal and uncluttered**
---
## 📌 How It Detects a Pin Bar:
### 🔹 1. Candle Structure:
* Measures the total candle range: `high - low`
* Calculates the **body size**: `abs(close - open)`
* Calculates the **upper and lower wick sizes**
### 🔹 2. Pin Bar Criteria:
* The **wick (nose)** must be at least **2/3 of the total candle length**
* The **body** must be small — **≤ 1/3** of the total range
* The **body** must be located at **one end** of the candle
* The wick must **pierce the high/low** of the previous candle
---
## 📍 Bullish Pin Bar Requirements:
* Close > Open (green candle)
* Lower wick ≥ 66% of candle range
* Body ≤ 33% of range
* Candle **makes a new low** (current low < previous low)
### 📍 Bearish Pin Bar Requirements:
* Close < Open (red candle)
* Upper wick ≥ 66% of candle range
* Body ≤ 33% of range
* Candle **makes a new high** (current high > previous high)
---
## 🖼️ Visual Output:
* 🔻 Red triangle **above** bearish pin bars
* 🔺 Green triangle **below** bullish pin bars
---
## 🛠️ Example Use Cases:
* Identify **reversal points** at support/resistance
* Confirm signals with **VWAP**, supply/demand zones, or AVWAP (manually plotted)
* Use in **conjunction with other strategies** — without clutter
---
5/10MA Once per occur)I created this script to detect a pullback or reversal in the current trend utilizing the 5EMA
10 MA and RSI. When the 5/10MAs drop from high and RSI drops 2 points it triggers a PUT and plots the label put on the chart and CALL for the opposite conditions. It only plots when the conditions are initially met and after pullback to keep chart clean. The conditions for how much MAs or RSI moves is adjustable to better fit personal strategies. You can also change the MA's. I utilize this indicator on the 15 min timeframe and pair it with another indicator that utilizes the reversal of the 2ma to close positions. That indicator is named 2MA reversal sell strategy which plots sell CALL or PUT when conditions are met.
200 SMA Buy/Sell SignalThis indicator is based on the widely used 200-period Simple Moving Average (SMA), a long-term trend indicator favored by traders and investors for identifying the overall market direction.
🔍 Key Features:
200 SMA Line: Plotted on the chart to visualize the long-term trend.
Buy Signal: Triggered when the price crosses above the 200 SMA, suggesting a possible shift to an uptrend.
Sell Signal: Triggered when the price crosses below the 200 SMA, indicating a potential downtrend.
Visual Cues: Clear BUY and SELL labels on the chart for easy decision-making.
Alert Support: Includes alert conditions to notify you of crossover events in real-time.
📈 Use Case:
Ideal for swing traders, trend followers, or position traders who prefer to enter trades aligned with the major trend.
Can be used on any timeframe, but it's most reliable on higher timeframes (e.g., 1H, 4H, Daily).
⚠️ Note:
This is a trend-following tool and may generate false signals in sideways or choppy markets.
Consider combining it with other indicators (like RSI, MACD, or volume analysis) for confirmation and improved accuracy.
Failure Swing IndicatorIdentify Failure Swing nice and easy
J. Welles Wilder Jr. describes Failure Swings as specific chart patterns used in conjunction with the Relative Strength Index (RSI) to identify potential reversals in price trends.
These patterns signal weakening momentum and can indicate a shift in market direction
Wilder emphasized that these patterns are more reliable when confirmed by price action or other technical indicators.
Screener: Golden Cross & Price ProximityThe screener will now automatically update and display a list of only the cryptocurrency pairs that meet your exact conditions:
They are on the 4-hour chart.
The 50 SMA has crossed or is currently above the 200 SMA.
The current price is within 5% (either above or below) of the 200 SMA.
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.
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.