Trend Trader-RemasteredThe script was originally coded in 2018 with Pine Script version 3, and it was in invite only status. It has been updated and optimised for Pine Script v5 and made completely open source.
Overview
The Trend Trader-Remastered is a refined and highly sophisticated implementation of the Parabolic SAR designed to create strategic buy and sell entry signals, alongside precision take profit and re-entry signals based on marked Bill Williams (BW) fractals. Built with a deep emphasis on clarity and accuracy, this indicator ensures that only relevant and meaningful signals are generated, eliminating any unnecessary entries or exits.
Key Features
1) Parabolic SAR-Based Entry Signals:
This indicator leverages an advanced implementation of the Parabolic SAR to create clear buy and sell position entry signals.
The Parabolic SAR detects potential trend shifts, helping traders make timely entries in trending markets.
These entries are strategically aligned to maximise trend-following opportunities and minimise whipsaw trades, providing an effective approach for trend traders.
2) Take Profit and Re-Entry Signals with BW Fractals:
The indicator goes beyond simple entry and exit signals by integrating BW Fractal-based take profit and re-entry signals.
Relevant Signal Generation: The indicator maintains strict criteria for signal relevance, ensuring that a re-entry signal is only generated if there has been a preceding take profit signal in the respective position. This prevents any misleading or premature re-entry signals.
Progressive Take Profit Signals: The script generates multiple take profit signals sequentially in alignment with prior take profit levels. For instance, in a buy position initiated at a price of 100, the first take profit might occur at 110. Any subsequent take profit signals will then occur at prices greater than 110, ensuring they are "in favour" of the original position's trajectory and previous take profits.
3) Consistent Trend-Following Structure:
This design allows the Trend Trader-Remastered to continue signaling take profit opportunities as the trend advances. The indicator only generates take profit signals in alignment with previous ones, supporting a systematic and profit-maximising strategy.
This structure helps traders maintain positions effectively, securing incremental profits as the trend progresses.
4) Customisability and Usability:
Adjustable Parameters: Users can configure key settings, including sensitivity to the Parabolic SAR and fractal identification. This allows flexibility to fine-tune the indicator according to different market conditions or trading styles.
User-Friendly Alerts: The indicator provides clear visual signals on the chart, along with optional alerts to notify traders of new buy, sell, take profit, or re-entry opportunities in real-time.
E-signal
Dynamic Sentiment RSI [UAlgo]The Dynamic Sentiment RSI is a technical analysis tool that combines the classic RSI (Relative Strength Index) concept with dynamic sentiment analysis, offering traders enhanced insights into market conditions. Unlike the traditional RSI, this indicator integrates volume weighting, sentiment factors, and smoothing features to provide a more nuanced view of momentum and potential market reversals. It is designed to assist traders in detecting overbought/oversold conditions, momentum shifts, and to generate potential buy or sell signals using crossover and crossunder techniques. By dynamically adjusting based on sentiment and volume factors, this RSI offers better adaptability to varying market conditions, making it suitable for different trading styles and timeframes.
This tool is particularly helpful for traders who wish to explore not only price movement but also the underlying market sentiment, offering a more comprehensive approach to momentum analysis. The sentiment factor amplifies the RSI's sensitivity to price shifts, making it easier to detect early signals of market reversals or the continuation of a trend.
🔶 Key Features
Dynamic Sentiment Calculation: The indicator incorporates a "Sentiment Factor" that adjusts the RSI length dynamically based on a multiplier, helping traders better understand market sentiment at different time intervals.
Volume Weighting: When enabled, the RSI calculations are weighted by volume, allowing traders to give more importance to price movements with higher trading volume, which may provide more accurate signals.
Smoothing Feature: A customizable smoothing period is applied to the RSI to help filter out noise and make the signal smoother. This feature is particularly useful for traders who prefer to focus on long-term trends while minimizing false signals.
Step Size Customization: A "Step Size" input allows users to round the sentiment RSI to predefined intervals, making the results easier to interpret and act upon. This feature allows you to focus on significant sentiment changes and ignore minor fluctuations.
Crossover/Crossunder Alerts: The indicator includes crossover and crossunder signals on the zero-line, helping traders identify potential buy and sell opportunities as the smoothed RSI crosses these levels.
The indicator offers a clear visual display with multiple color-coded lines and areas:
Sentiment RSI: Plotted as an area chart, color-coded based on sentiment strength.
Raw RSI: A purple line representing the raw adjusted RSI.
Smoothed RSI: A dynamic line, color-coded aqua or orange based on its position relative to the zero line.
Buy/Sell Signals: Triangle shapes are plotted at crossovers and crossunders, providing clear entry and exit points.
🔶 Interpreting the Indicator
Sentiment RSI
-This line represents the sentiment-adjusted RSI, where the higher the value, the stronger the bullish sentiment, and the lower the value, the stronger the bearish sentiment. It is rounded to step intervals, making it easier to detect significant shifts in sentiment.
- A positive sentiment RSI (above 0) suggests bullish market conditions, while a negative sentiment RSI (below 0) suggests bearish conditions.
Smoothed RSI
The smoothed RSI helps reduce noise and shows the trend more clearly.
Crossovers of the zero line are significant:
- Crossover above zero: Indicates that bullish momentum is building, potentially signaling a buying opportunity.
- Crossunder below zero: Signals a shift towards bearish momentum, potentially indicating a sell signal.
Traders should look for these crossovers in conjunction with other signals for more accurate entry/exit points.
Raw RSI (Adjusted)
The raw adjusted RSI offers a less smoothed, more responsive version of the RSI. While it may be noisier, it provides early signals of market reversals and trends.
Crossover/Crossunder Signals
- When the smoothed RSI crosses above the zero line, a "Signal Up" triangle appears, indicating a potential buying opportunity.
- When the smoothed RSI crosses below the zero line, a "Signal Down" triangle appears, signaling a potential sell opportunity.
These signals help traders time their entries and exits by identifying momentum shifts.
Volume Weighting (Optional)
- If volume weighting is enabled, the RSI will give more weight to periods of higher trading volume, making the signals more reliable when the market is highly active.
Strong Up/Down Levels (40/-40)
- These dotted lines represent extreme sentiment levels. When the sentiment RSI reaches 40 or -40, the market may be nearing an overbought or oversold condition, respectively. This could be a signal for traders to prepare for potential reversals or shifts in momentum.
By combining the various components of this indicator, traders can gain a comprehensive view of market sentiment and price action, helping them make more informed trading decisions. The combination of sentiment factors, volume weighting, and smoothing makes this indicator highly flexible and suitable for a variety of trading strategies.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
RCYC Bullish Bearish Indicator
Summary: The RCYC Bullish Bearish Indicator is a custom trading tool designed to help traders identify potential bullish and bearish conditions in the market using a combination of KDJ and RSI indicators. This indicator uses color-coded candles to visually represent bullish and bearish signals, making it easy to identify trend changes on the chart. The script is particularly useful for traders who prefer visual signals and want to incorporate both trend momentum (KDJ) and relative strength (RSI) in their analysis.
Description:
The RCYC Bullish Bearish Indicator is a unique mashup of the KDJ and RSI indicators, optimized to provide a clear visual representation of market conditions through color-coded candles. This indicator not only identifies the potential trend shifts but also provides alerts for significant crossover points, enhancing a trader's ability to make informed decisions.
How It Works:
KDJ Calculation:
The KDJ is a variation of the Stochastic Oscillator that includes the %J line, which can go beyond the typical 0-100 range of %K and %D.
The KDJ component of this indicator calculates the highest high and lowest low over a specified period (KDJ Length), using these values to derive the %K line.
The %D line is a smoothed version of %K, and the %J line is derived from %K and %D using the formula: J = 3 * %K - 2 * %D.
This indicator focuses on the behavior of the %J line in relation to a mid-point level (50), identifying crossovers and crossunders that signal potential shifts in market sentiment.
RSI Calculation:
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It is widely used to identify overbought or oversold conditions.
In this indicator, RSI values are adjusted and plotted to align visually with the KDJ values, providing a complementary momentum analysis.
Crossover Logic and Candle Coloring:
The indicator tracks two main events:
CrossOver50: When the %J line crosses above the 50 level, indicating potential bullish momentum.
CrossUnder50: When the %J line crosses below the 50 level, indicating potential bearish momentum.
Depending on the crossover events, the script changes the color of the candles on the chart:
Red candles on the initial crossover above 50, followed by dark blue candles to maintain bullish sentiment.
Yellow candles on the initial crossover below 50, followed by light blue candles to maintain bearish sentiment.
Alerts:
The indicator includes alert conditions for both bullish and bearish signals:
Red Candle Alert: Notifies the trader when the %J line crosses above 50.
Yellow Candle Alert: Notifies the trader when the %J line crosses below 50.
These alerts allow traders to react promptly to key market signals without continuously monitoring the chart.
Usage and Benefits:
This indicator is designed for traders looking to combine momentum and trend analysis into a single visual tool. It is particularly useful for those trading in trending markets or looking for entry/exit signals based on momentum shifts.
The color-coded candles provide an intuitive way to assess market conditions at a glance, reducing the complexity associated with analyzing multiple indicators separately.
By integrating both KDJ and RSI, the RCYC Bullish Bearish Indicator offers a balanced approach to trend detection and momentum confirmation, making it versatile for various trading styles, including scalping, swing trading, and position trading.
Originality and Usefulness:
While the indicator builds upon the familiar concepts of KDJ and RSI, it uniquely merges them into a cohesive visual tool with distinct crossover-based alerts and candle coloring.
This approach makes the indicator original, as it simplifies the interpretation of complex signals into straightforward visual cues, enhancing the decision-making process for traders who prefer chart-based analysis.
MVSF 6.0[ELPANO]The "MVSF 6.0 " indicator, which stands for Multi-Variable Strategy Framework, overlays on price charts to aid in trading decisions. It combines various moving averages and volume data to generate buy and sell signals based on predefined conditions.
Key features of the indicator include:
Moving Averages: It uses three exponential moving averages (EMAs) with lengths of 200, 100, and 50, and two simple moving averages (SMAs) with lengths of 14 and 9. These averages are combined into a single average line to detect trends.
Volume Analysis: The volume is assessed over a specified period (default is 2 bars) to determine its trend relative to its average, influencing the color and interpretation of signals.
Price Source and VWAP: Users can select the price (close, low, or high) used for calculations. The volume-weighted average price (VWAP) serves as a potential benchmark or condition in signal generation.
Signal Generation: Buy and sell signals are based on the relationship of the price to the average line and VWAP, the direction of the last candle, and the trend direction of the average line. These signals are visually represented on the chart.
Customization: Traders can toggle the visibility of signals, entry points, the average line, and even use these elements as conditions for filtering signals.
This script is designed to be flexible, allowing traders to modify settings according to their strategy needs. The description and implementation aim to provide clarity on how each component works together to assist in trading decisions, adhering to best practices for creating and publishing trading scripts.
*************************************
Der Indikator "MVSF 6.0 ", der für Multi-Variable Strategy Framework steht, wird über Preisdiagramme gelegt, um bei Handelsentscheidungen zu helfen. Er kombiniert verschiedene gleitende Durchschnitte und Volumendaten, um Kauf- und Verkaufssignale basierend auf vordefinierten Bedingungen zu generieren.
Wesentliche Merkmale des Indikators umfassen:
Gleitende Durchschnitte: Es werden drei exponentielle gleitende Durchschnitte (EMAs) mit Längen von 200, 100 und 50 sowie zwei einfache gleitende Durchschnitte (SMAs) mit Längen von 14 und 9 verwendet. Diese Durchschnitte werden zu einer einzelnen Durchschnittslinie kombiniert, um Trends zu erkennen.
Volumenanalyse: Das Volumen wird über einen festgelegten Zeitraum (standardmäßig 2 Balken) bewertet, um seinen Trend im Vergleich zum Durchschnitt zu bestimmen, was die Farbe und Interpretation der Signale beeinflusst.
Preisquelle und VWAP: Benutzer können den für Berechnungen verwendeten Preis (Schluss-, Tief- oder Hochkurs) auswählen. Der volumengewichtete Durchschnittspreis (VWAP) dient als mögliche Benchmark oder Bedingung bei der Generierung von Signalen.
Signalgenerierung: Kauf- und Verkaufssignale basieren auf dem Verhältnis des Preises zur Durchschnittslinie und zum VWAP, der Richtung der letzten Kerze und der Trendrichtung der Durchschnittslinie. Diese Signale werden visuell auf dem Diagramm dargestellt.
Anpassung: Händler können die Sichtbarkeit von Signalen, Einstiegspunkten, der Durchschnittslinie und sogar deren Verwendung als Bedingungen für die Filterung von Signalen ein- und ausschalten.
Dieses Skript ist so konzipiert, dass es flexibel ist und Händlern erlaubt, die Einstellungen gemäß ihren Strategiebedürfnissen zu modifizieren. Die Beschreibung und Implementierung zielen darauf ab, Klarheit darüber zu schaffen, wie jede Komponente zusammenarbeitet, um bei Handelsentscheidungen zu helfen, und halten sich an die besten Praktiken für die Erstellung und Veröffentlichung von Handelsskripten.
Swing Failure Pattern (SFP) [LuxAlgo]The Swing Failure Pattern indicator highlights Swing Failure Patterns (SFP) on the user chart, a pattern occurring during liquidity generation from significant market participants.
A Confirmation level used to confirm a trend reversal is also included. Users can additionally filter out SFP based on a set Volume % Threshold .
🔶 USAGE
Swing failure patterns occur when candle wicks exceed (above/below) a recent swing level but close back below/above it, and occur from more significant market participants engineering liquidity. This pattern can be indicative of a potential trend reversal.
A label and an accentuated wick line highlight the SFP (both can be disabled).
Using a higher "Swings" period will not return different SFP but will however potentially reduce their detection rate.
🔹 Confirmation Level
The confirmation level is the highest point between the previous swing and SFP for a bullish SFP, and the lowest point for a bearish SFP. This level allows confirming a trend reversal after an SFP once the price breaks it.
A small triangle will be displayed when the price closes beyond the confirmation level.
A more reactive and contrarian approach could use the SFP as an entry point, and the confirmation level for taking (partial) profit, or stop loss. The example below shows a possible scenario:
🔹 Volume % Threshold
During the occurrence of an SFP, the Volume % Threshold option allows comparing the cumulative volume outside the Swing level to the total volume of the candle. The following options are included:
Volume outside swing < Threshold: Volume outside the Swing level needs to be lower than x % of total candle volume. Prevent excessive liquidity generation.
Volume outside swing > Threshold: Volume outside the Swing level needs to be higher than x % of total candle volume. Requires more significant liquidity to be generated.
None: No extra filter is applied
Note that in the above case, the left SFP is no longer highlighted because the volume above the swing level was higher than the 25% threshold of the total volume.
When we change the setting to "Volume outside swing > Threshold", we get the reversed situation.
The "Volume outside Swing level" is obtained using intrabar - Lower TimeFrame (LTF) data.
At the intrabar (LTF) level, there are a maximum of 100K bars available. When using the Volume % Threshold filter, a vertical line will highlight the maximum period during which intrabars are available.
🔶 DETAILS
🔹 LTF Settings
When 'Auto' is enabled (Settings, LTF), the LTF will be the nearest possible x times smaller TF than the current TF. When 'Premium' is disabled, the minimum TF will always be 1 minute to ensure TradingView plans lower than Premium don't get an error.
Examples with current Daily TF (when Premium is enabled):
500 : 3-minute LTF
1500 (default): 1-minute LTF
5000: 30 seconds LTF (1 minute if Premium is disabled)
The concerning LTF can be seen at the right-top (default) corner.
🔶 SETTINGS
Swings: Period used for the swing detection, with higher values returning longer-term Swing Levels.
Bullish SFP: enable/disable bullish Swing Failure Patterns.
Bearish SFP: enable/disable bearish Swing Failure Patterns.
🔹 Volume Validation
Validation:
Volume outside swing < Threshold: The volume outside the swing level needs to be lower than x % of the total volume.
Volume outside swing > Threshold: The volume outside the swing level needs to be higher than x % of the total volume.
None: No extra validation is applied.
Volume % Threshold: % of total volume as threshold.
Auto + multiple: Adjusts the initial set LTF
LTF: LTF setting
Premium: Enable when your TradingView plan is Premium or higher
🔹 Dashboard
Show Dashboard: Display applied Lower Timeframe (LTF)
Location: Location of the dashboard
Size: Size of the dashboard
🔹 Style
Swing Lines
Confirmation Lines
Swing Failure Wick
Swing Failure Label
Lines / Labels: Color for lines and labels
SFP Wicks: Color for SFP wick line
Fibonacci Entry SignalsЭтот индикатор "Fibonacci Entry Signals" помогает определить точки входа в покупку и продажу на основе уровней Фибоначчи и скользящей средней.
Ключевые особенности:
Уровни Фибоначчи: Индикатор рисует на графике несколько уровней Фибоначчи, таких как 38.2%, 50% и 61.8%. Эти уровни определяются на основе крайних точек цены за последние 100 баров. Уровень 0% соответствует самой низкой точке, а уровень 100% - самой высокой.
Точки входа: При наступлении условий входа в покупку или продажу, индикатор отмечает на графике точки входа в виде треугольников вверх или вниз соответственно. Условия входа в покупку определяются, когда цена пересекает уровень Фибоначчи 38.2% вверх и находится выше скользящей средней за последние 50 баров. Условия входа в продажу аналогичны, но цена пересекает уровень Фибоначчи 61.8% вниз.
Этот индикатор может быть полезен для трейдеров, которые используют уровни Фибоначчи в своей торговой стратегии и ищут точки входа в рынок. Однако, перед использованием на реальном счете, рекомендуется провести тщательное тестирование и адаптацию к своим индивидуальным потребностям и стратегии торговли.
Давайте рассмотрим, как пользоваться индикатором "Fibonacci Entry Signals":
Установка на график: Для начала необходимо добавить индикатор на график вашего торгового актива. Вы можете сделать это, выбрав его из списка индикаторов в торговой платформе.
Интерпретация уровней Фибоначчи: Индикатор отображает на графике несколько уровней Фибоначчи, таких как 38.2%, 50% и 61.8%. Понимание этих уровней поможет вам определить возможные точки входа в рынок. Обычно, уровень 38.2% используется как уровень поддержки, а уровень 61.8% - как уровень сопротивления.
Точки входа в покупку и продажу: Индикатор помогает определить моменты, когда можно войти в покупку или продажу. При наступлении условий входа в покупку, индикатор отмечает на графике точку входа в виде зеленого треугольника вверх. При наступлении условий входа в продажу, индикатор отмечает точку входа на графике в виде красного треугольника вниз.
Управление позициями: После получения сигнала от индикатора, решение о входе в позицию остается за вами. Важно помнить, что индикатор является только инструментом, который помогает в принятии решений, и его сигналы всегда следует подтверждать другими аспектами вашей торговой стратегии, такими как подтверждение другими индикаторами или анализ фундаментальных данных.
Тестирование и адаптация: Прежде чем использовать индикатор на реальном счете, рекомендуется провести тщательное тестирование на исторических данных и адаптировать его к своим индивидуальным торговым потребностям и стратегии.
Индикатор "Fibonacci Entry Signals" может быть полезным инструментом для трейдеров, которые используют уровни Фибоначчи в своей торговой стратегии и ищут точки входа в рынок.
his "Fibonacci Entry Signals" indicator helps identify entry points for buying and selling based on Fibonacci levels and moving averages.
Key features:
Fibonacci Levels: The indicator draws several Fibonacci levels on the chart, such as 38.2%, 50%, and 61.8%. These levels are determined based on the extreme price points over the last 100 bars. The 0% level corresponds to the lowest point, and the 100% level corresponds to the highest point.
Entry Points: When conditions for buying or selling occur, the indicator marks entry points on the chart as upward or downward triangles, respectively. Entry conditions for buying are determined when the price crosses above the 38.2% Fibonacci level and remains above the 50-bar moving average. Entry conditions for selling are similar, but the price crosses below the 61.8% Fibonacci level.
This indicator can be useful for traders who use Fibonacci levels in their trading strategy and look for entry points in the market. However, before using it on a real account, it is recommended to conduct thorough testing and adaptation to your individual trading needs and strategy.
Let's look at how to use the "Fibonacci Entry Signals" indicator:
Installation on the Chart: First, you need to add the indicator to the chart of your trading asset. You can do this by selecting it from the list of indicators in the trading platform.
Interpreting Fibonacci Levels: The indicator displays several Fibonacci levels on the chart, such as 38.2%, 50%, and 61.8%. Understanding these levels will help you identify potential entry points in the market. Usually, the 38.2% level is used as support, and the 61.8% level is used as resistance.
Entry Points for Buying and Selling: The indicator helps identify moments when you can enter buying or selling positions. When conditions for buying occur, the indicator marks the entry point on the chart as a green upward triangle. When conditions for selling occur, the indicator marks the entry point on the chart as a red downward triangle.
Position Management: After receiving a signal from the indicator, the decision to enter a position is up to you. It's important to remember that the indicator is just a tool to help you make decisions, and its signals should always be confirmed by other aspects of your trading strategy, such as confirmation from other indicators or fundamental analysis.
Testing and Adaptation: Before using the indicator on a real account, it's recommended to conduct thorough testing on historical data and adapt it to your individual trading needs and strategy.
The "Fibonacci Entry Signals" indicator can be a useful tool for traders who use Fibonacci levels in their trading strategy and look for entry points in the market.
Smart Money Setup 02 [TradingFinder] Mitigated Major OB Proof🔵 Introduction
"Smart money" is money invested by knowledgeable individuals at the right time, and this investment can yield the highest returns.
The concept we focus on in this indicator is whether the market is in an uptrend or downtrend. The market briefly takes a weak and reversal trend with "Minor BoS" without being able to break the major pivot.
In the next step, it returns to its main trend with a strong bullish move and continues its trend with a "Major BoS". The "order block" behind this rapid and powerful movement can be a valid order block for trading.
To better understand this setup, please refer to the explanations in the two images below.
Bullish Setup Details :
Bearish Setup Details :
🔵 How to Use
After adding the indicator to the chart, you should wait for trading opportunities to form. By changing the "Time Frame" and "Period Pivot", you can see different trading positions. In general, the lower the "Time Frame" and "Period Pivot", the higher the likelihood of forming trading opportunities.
Bullish Setup Details on Chart :
Bearish Setup Details on Chart :
You can access "Period Pivot" via settings as an input.
Prior Day LevelsA simple script that plots the previous day's high, midway, and low points. You can also set alerts with this script, allowing you the ability to not have to stare at the charts all day.
Ranges With Targets [ChartPrime]The Ranges With Targets indicator is a tool designed to assist traders in identifying potential trading opportunities on a chart derived from breakout trading. It dynamically outlines ranges with boxes in real-time, providing a visual representation of price movements. When a breakout occurs from a range, the indicator will begin coloring the candles. A green candle signals a long breakout, suggesting a potential upward movement, while a red candle indicates a short breakout, suggesting a potential downward movement. Grey candles indicate periods with no active trade. Ranges are derived from daily changes in price action.
This indicator builds upon the common breakout theory in trading whereby when price breaks out of a range; it may indicate continuation in a trend.
Additionally, users have the ability to customize their risk-reward settings through a multiplier referred to as the Target input. This allows traders to set their Take Profit (TP) and Stop Loss (SL) levels according to their specific risk tolerance and trading strategy.
Furthermore, the indicator offers an optional stop loss setting that can automatically exit losing trades, providing an additional layer of risk management for users who choose to utilize this feature.
A dashboard is provided in the top right showing the statistics and performance of the indicator; winning trades; losing trades, gross profit and loss and PNL. This can be useful when analyzing the success of breakout trading on a particular asset or timeframe.
RMI Trend SniperThe "RMI Trend Sniper" is a powerful trend-following indicator designed to help traders identify potential buy and sell signals in the market.
It combines elements of the Relative Strength Index (RSI) and the Money Flow Index (MFI) to provide a comprehensive view of market momentum and strength.
🔷 Key Features:
🔹 Customizable Settings : Tailor the indicator to your trading preferences with customizable input parameters, including RSI and MFI lengths, threshold levels, and visual settings.
🔹 Momentum Signals : The indicator generates clear bullish and bearish momentum signals, allowing you to spot potential trend reversals or continuations.
🔹 The positive condition considers the previous RMI value, current RMI value, and positive change in the 5-period exponential moving average (EMA) of the closing price.
🔹 The negative condition looks at the current RMI value and negative change in the 5-period EMA.
🔹 Visual Bands : Visualize market volatility with dynamically plotted bands around the Range Weighted Moving Average (RWMA), providing insights into potential price fluctuations.
🔹 Candlestick Coloring : Easily identify bullish and bearish conditions with color-coded candlesticks, helping you make informed trading decisions.
The "RMI Trend Sniper" is a versatile tool suitable for traders of all experience levels. Whether you are a novice or an experienced trader, this indicator can help you enhance your technical analysis and improve your trading strategies.
Fibonacci Ranges (Real-Time) [LuxAlgo]The "Fibonacci Ranges" indicator combines Fibonacci ratio-derived ranges (channels), together with a Fibonacci pattern of the latest swing high/low.
🔶 USAGE
The indicator draws real-time ranges based on Fibonacci ratios as well as retracements. Breakouts from a Fibonacci Channel are also indicated by labels, indicating a potential reversal.
Each range extremity/area can also be used as support/resistance.
🔶 CONCEPTS
Fibonacci Channels
Latest Fibonacci
Both, Latest Fibonacci and Fibonacci Channels , display different Fibonacci levels (labels not included in the code):
However, the 2 react in a totally different way.
🔹 Fibonacci Channels
2 conditions must be fulfilled until a Fibonacci Channel is displayed:
New swing high/low
close has to be between chosen limits/levels ( Break level )
As visual guidance, chosen Break levels are accentuated by 2 small gray blocks:
Once the channel is displayed, it will remain visible until x consecutive bars break out of the chosen Break level at closing time.
• x consecutive bars is set by Break count .
The amount of breaks is counted in the code. When the price, without breaking the user-set limit, closes back between the 2 levels, the count is reset to 0.
By enabling Channels and Shadows you can see previous channels (" Shadows ", which is always delayed with 1 bar)
Previous channels can be helpful in finding potential support/resistance areas, especially from large channel blocks
The more narrow Break levels are set the less chance the price closes between these 2 levels, and the quicker close breaks out.
In other words, narrow levels give fewer & smaller channels, broader levels give more & larger channels.
Note:
• swing settings: L & R
• Break count (x consecutive bars that close outside chosen levels to invalidate the Fibonacci Channel )
will also be of influence in displaying the channels.
• Show breaks enable you to visualize signals when there is a break:
• Alerts can also be set ( Break Down / Break Up )
🔹 Latest Fibonacci
This displays the Fibonacci levels between the latest swing high and swing low, independently from the Fibonacci Channel .
The Lastest Fibonacci can be helpful in detecting the current trend against the larger Fibonacci Channel .
🔶 SETTINGS
🔹 Swing Settings
L: set left of pivothigh / pivotlow
R: set right of pivothigh / pivotlow
🔹 Fibonacci Channels
Channel : Channel / Channels + Shadows / None
Break level
-0.382 - 1.382
0.000 - 1.000
0.236 - 0.764
0.382 - 0.618
Break count
🔹 Fibonacci
Toggle
Colours: [ -0.382 - 0 ], [ 0.236 - 0.382 ], [ 0.5 ], [ 0.618 - 0.764 ], [ 1 - 1.382 ]
Signal ComposerThis Signal Composer script can compose existing signals from other "Signal Indicators" into one and can forward it to the "Template Trailing Strategy".
It allows the user to combine the logic of two signals and define the conditions that will trigger the start, end, cancel start, and cancel end deals of the produced signal. A signal will be composed from those user-defined conditions.
For example, one signal indicator may have the main logic and the other the filter logic. If you want to combine more signals you may add two Signal Composer scripts and pipe the output of the first composer to the second one.
This is the "main building block" of creating a bit more complex strategies without writing any code.
The "indicator on indicator" feature is needed so you can forward the resulting signal to the "Template Trailing Strategy" so that you can set take profits, stop losses, custom alerts, and all other nifty features this framework provides.
Thus, you should be a Plus or Premium user to get its full potential. It is very convenient for those who want to create a strategy without coding their own signal indicator and for those who want to fast-prototype various ideas based on simple but composable conditions.
It can nicely be combined with the "Signal Adapter" which combines simple (non-signal) indicators and produces a signal. This is a recipe to build fast and backtest more complex strategy logic.
This approach has a fail-fast mentality! Keep, in mind that you can code a single signal indicator with your composed logic later on only if the idea turns out to be "good enough".
Signal AdapterThis Signal Adapter script can compose a signal based on inputs from other simple (non-signal) indicators and can forwards it to the "Template Trailing Strategy".
It allows the user to combine up to eight external inputs and define the conditions that will trigger the start, end, cancel start and cancel end deals.
A signal will be composed from those user-defined conditions. The "indicator on indicator" feature is needed so you can forward the resulted signal to the "Template Trailing Strategy".
Thus you should be Plus or Premium user to get it's full potential. It is very convenient for those who want to create a strategy without coding their own signal indicator and for those
who want to fast prototype various ideas based on simple conditions.
TTP Green/Red Consecutive CandlesThis indicator counts consecutive green/red candles offering some basic statistics and signals/alerts.
Features
- Counts consecutive green/red candles in an oscillator chart
- Moving average of the counting helps spotting when the consecutive candles are away from the mean. MA length and multiplier to adjust the signal sensitivity.
- Thresholds can be set to backtest and send alerts on any number of arbitrary consecutive candles of the same color.
- All time highs: the indicator keeps track of when the maximum has been reached
- Distribution data: the number of times each number of consecutive color candles has been reached is offered
Signals
- Threshold signal triggers when the number of candles of the same color is above the specified threshold.
- MA cross signal triggers when the number of candles of the same color is above the MA.
Smoothing ATR bandThere are two bands calculated with the ATR and I added "Smoothing" into the script.
Smoothing ATR with multiplier can display two bands above and below the price.
We can ONLY find some ATR bands in Community Scripts with "Basic" setting which is used to set Stop Loss.
And yet , Smoothing ATR with multiplier is capable of making traders manifestly recognize OverBought & OverSold.
FurtherMore, I added a condition with "plotshape", which is "Stop Hunt"
Stop Hunt is an absolutely usual strategy to clean the leverage and it always makes high volatility moves.
When high> above band and close< above band , long signal, it means it had been abundantly bought but the larger traders weren't satisfied; therefore, they quickly sold out to lower the price. The sell condition is on the contrary.
The signals mainly make traders manifestly recognize OverBought & OverSold.
Parabolic SAR + EMA 200 + MACD SignalsParabolic SAR + EMA 200 + MACD Signals Indicator, a powerful tool designed to help traders identify optimal entry points in the market.
This indicator combines three popular technical indicators: Parabolic SAR (Stop and Reverse), EMA200 (Exponential Moving Average 200) and MACD (Moving Average Convergence Divergence) - to provide clear and concise buy and sell signals based on market trends.
The MACD component of this indicator calculates the difference between two exponentially smoothed moving averages, providing insight into the trend strength of the market. The Parabolic SAR component helps identify potential price reversals, while the EMA200 acts as a key level of support and resistance, providing additional confirmation of the overall trend direction.
Whether you're a seasoned trader or just starting out, the MACD-Parabolic SAR-EMA200 Indicator is a must-have tool for anyone looking to improve their trading strategy and maximize profits in today's dynamic markets.
Buy conditions
The price should be above the EMA 200
Parabolic SAR should show an upward trend
MACD Delta should be positive
ُSell conditions
The price should be below the EMA 200
Parabolic SAR should show an downward trend
MACD Delta should be negative
Reversal Signals [LuxAlgo]The Reversal Signals indicator is a technical analysis tool that aims to identify when a trend is fading and potentially starting to reverse.
As a counter-trend tool, the Reversal Signals indicator aims to solve the problem of several technical analysis indicators that perform well during trending markets but struggle in ranging markets. By understanding the key concepts and applications of the tool, traders can enhance their market timing and improve their trading strategies.
Note: It's important to explore the settings of the indicator to customize to your own usage & display as there are various options available as covered below.
🔶 USAGE
The Reversal Signals indicator is comprised of two main phases: Momentum Phase and Trend Exhaustion Phase . These phases help identify potential trend reversals in bullish, bearish, and ranging markets.
🔹The Momentum Phase
The momentum phase consists of a 9-candle count and in rare cases 8-candle count. In a bullish trend, a starting number ‘1’ is plotted if a candle closes higher than the close of a candle four periods ago. In a bearish trend, a starting number ‘1’ is plotted if a candle closes lower than the close of a candle four periods ago.
The following numbers are plotted when each successive candle satisfies the four-period rule. The potential reversal point comes when the Reversal Signals plot a label on top of a candle in a bullish trend or at the bottom of a candle in a bearish trend. The momentum phase is immediately canceled if, at any point, a candle fails to satisfy the four-period rule.
Based on the extremes of the momentum phase, the Reversal Signals generate support & resistance levels as well as risk/stop levels.
🔹 The Trend Exhaustion Phase
The trend exhaustion phase starts after completing the momentum phase and consists of a 13-candle count. In a bullish trend exhaustion phase, each candle’s close is compared to the close of two candles earlier, and the close must be greater than the close two periods earlier. In a bearish trend exhaustion phase, each candle’s close is compared to the close of two candles earlier, and the close must be lower than the close two periods earlier.
The trend exhaustion phase does not require a consecutive sequence of candles; if the order of candles is interrupted, the trend exhaustion phase is not canceled. The trend exhaustion phase generates stronger trading signals than the momentum phase, with the potential for longer-lasting price reversals.
🔹 Trading Signals
The Reversal Signals script presents an overall setup and some phase-specific trade setup options, where probable trades might be considered. All phase-specific trade setups, presented as options, are triggered once the selected phase is completed and followed by a price flip in the direction of the trade setup.
Please note that those setups are presented for educational purposes only and do not constitutes professional and/or financial advice
- Momentum: Enter a trade at momentum phase completion, and search for buy (sell) when the bullish (bearish) momentum phase pattern is complete. Ideally, the momentum phase completion should close near its support/resistance line but shall not be above them, which indicates continuation of the trend
- Exhaustion: Enter a trade on trend exhaustion phase completion, and search for buy (sell) when the bullish (bearish) trend exhaustion phase is complete
- Qualified: Buy (sell) when a bullish (bearish) trend exhaustion phase combined with another bullish (bearish) momentum phase sequence is complete
Long trade setups are presented with "L" label and short trade setups with "S" label, where the content of the label displays details related to the probable trade opportunity
Once a phase-specific trade setup is triggered then the Reversal Signals script keeps checking the status of the price action relative to the phase-specific trade setups and in case something goes wrong presents a caution label. Pay attention to the content of the caution labels as well as where they appear. A trade signal, followed immediately by a warning indication can be assumed as a continuation of the underlying trend and can be traded in the opposite direction of the suggested signal
It is strongly advised to confirm trading setups in conjunction with other forms of technical and fundamental analysis, including technical indicators, chart/candlestick pattern analysis, etc.
🔶 DETAILS
The Reversal Signals script performs the detection of the phases by counting the candlestick meeting the specific conditions, which includes:
- Detection of the 8th and 9th candle perfection during the momentum phase
- In some cases, the 8th count will be assumed as momentum phase completion
- Trend exhaustion phase counting stops in case any type of momentum phase completion is detected during the counting process
- Postponing the last count of the trend exhaustion phase, the 13th candle must be below/above the 8th candle and if not the candles will be indicated with '+' sign under them and the script continues to search for a 13th candle at the next ones until the conditions are met
🔶 ALERTS
When an alert is configured, the user will have the ability to be notified in case;
Momentum / Trend Exhaustion phase completion
Support & Resistance level cross detection
Stop / Risk level cross detection
Long / Short Trade Setups are triggered
Please note, alerts are available with 'any alert() function call' and the alerts will be received only for the features that are enabled during alert configuration
🔶 SETTINGS
🔹 Momentum Phase
Display Phases: displays the momentum phases, where the Completed option allows the display of only completed momentum phases. The detailed option allows the display of the entire process of the momentum phase processes
Support & Resistance Levels: Toggles the visibility of the Support & Resistance Levels and Line Styling options
Momentum Phase Risk Levels: Toggles the visibility of the momentum phase Stop/Risk Levels and Line Styling options
For color options please refer to the options available under the style tab
🔹 Trend Exhaustion Phase
Display Phases: displays the trend exhaustion phases, where the Completed option allows the display of only completed trend exhaustion phases. The detailed option allows the display of the entire process of the trend exhaustion phase processes
Trend Exhaustion Phase Risk Levels: Toggles the visibility of the trend exhaustion phase Stop/Risk Levels
Trend Exhaustion Phase Target Levels: Toggles the visibility of the trend exhaustion phase Target Levels
For color options please refer to the options available under the style tab
🔹 Trade Setups
Overall Trend Direction & Trade Setup: displays the overall trend and probable trade setup levels, the users should search for a price flip and confirm with other means of technical and fundamental analysis for the trade setups once the label is plotted
Phase-Specific Trade Setup Options
Momentum: Searches for a trade setup after momentum phase completion
Exhaustion: Searches for a trade setup after trend exhaustion phase completion, stronger trend reversal possibility compared to momentum phase setup
Qualified: Searches for a trade setup after the trend exhaustion phase followed by a momentum phase completion
None: No trade setups are presented
Price Flips against the Phase Specific Trade Setups: enables checking the price action relative to the phase-specific trade setups
🔶 RELATED SCRIPTS
Here are the scripts that may add additional insight during potential trading decisions.
Buyside-Sellside-Liquidity
Support-Resistance-Classification
DojiCandle body size RSI-SMMA filter MTF
DojiCandle body size RSI-SMMA filter MTF
Hi. I was inspired by a public script written by @ahmedirshad419, .
I thank him for his idea and hard work.
His script is the combination of RSI and Engulfing Pattern.
//------------------------------------------------------------
I decided to tweak it a bit with Open IA.
I have changed:
1) candle pattern to DojiCandle Pattern;
2) I added the ability for the user to change the size of the candlestick body;
3) Added SMMA 200;
4) Changed the colour of SMMA 200 depending on price direction;
5) Added a change in the colour of candlesticks, depending on the colour of the SMMA 200;
6) Added buy and sell signals with indicator name, ticker and close price;
7) Added ability to use indicator on multi time frame.
How it works
1. when RSI > 70 > SMMA 200 and form the bullish DojiCandle Pattern. It gives sell signal
2. when RSI < 30 < SMMA 200 and form the bearish DojiCandle Pattern. It gives buy signal
settings:
basic setting for RSI, SMMA 200 has been enabled in the script to set the levels accordingly to your trades
Enjoy
Signal ViewerThe "Signal Viewer" script is a debugging tool that can be used for the signal of a Signal Indicator script like the "Two MA Signal Indicator" or the "Template Signal Indicator". This script will visualize the signal based on the convention that was defined in the settings. Also, alerts will be produced based on this convention. It's useful to be used before you connect the signal indicator script to a template strategy like the "Template Trailing Strategy" script. You can cross-validate the correctness of the signal that the indicators emit and make sure it is aligned with the expected behavior after the decomposition of the signal using the convention described in the settings. Please make sure that the connection in the "Signal Viewer" script matches the convention used by the template strategy script.
Daily Number/Trend Reversal IndicatorIndicator identifies potential price trend exhaustion.
Compares this period against the 4th prior period for the condition.
9 periods (or more) with the same condition is an indicator that the trend is ending soon.
Band of Filtered RS by Mustafa ÖZVERBand of Filtered RS by Mustafa ÖZVER
This code shows a range (max-min values) price may get if we get strong movements. These values is based on RSI (Relative Strange Index). And also these are calculated using RSI, if we get trades to make rsi is equal to 25 (or rsi down limit) or 75 (rsi up limit) or any value you set, how much will price value get? This code calculate these and shows these to you on graph.
This price are between these band limits because we expect cross reaction to hard movements on price.
For scalping, we can use these values as
long signal when price under down limit,
short signal when price over up limit,
But only these values can not guarantee good results for trading. BE CAREFUL
HeikinAshi / MS-Signal (HA-MS)Hello?
Traders, welcome.
If you "Follow", you can always get new information quickly.
Please also click "Boost".
Have a good day.
-------------------------------------
I would like to take the time to explain the indicators needed for trading among the two indicator formulas previously disclosed.
The HA-MS indicator is an indicator created using the Heikin Ashi formula and the MACD formula.
Therefore, the reliability of the indicator is considered to be high.
If you want a comprehensive indicator, you can share the chart being published as an idea and use the MRHAB-T indicator.
The shared indicators can be used without any restrictions if you are a paid member of TradingView.
(Free members have many restrictions on sharing charts.)
The MS-Signal indicator using MACD is an indicator composed of M-Signal and S-Signal lines.
I made it possible to display the M-Signal line of the 1D, 1W, and 1M charts separately so that the trend can be checked on other timeframe charts.
Therefore, by looking at the 15m chart or 1h chart to check the overall trend when trading, we prevented getting caught up in temporary volatility, that is, a whipsaw, and made this M-Signal line to be used as support and resistance.
If you touch these M-Signal lines when a surge or plunge occurs, it means that there is a high possibility of indicating support or resistance.
If the 5EMA line on the 1D chart rises above the 5EMA line enough to be called a soaring moving average, it means that there is a high possibility of a sudden movement.
Therefore, the 5EMA line of the 1D chart is displayed separately so that it can be checked in time frames other than 1D (15m, 1h charts, etc.).
This 5EMA line can also be used as support and resistance like the M-Signal line of the 1D, 1W, and 1M charts described above.
The MS-Signal indicator is for viewing trends.
So, if the price stays above the MS-Signal indicator and the MS-Signal indicator turns into a bullish sign, it means that the uptrend is likely to continue.
Conversely, if the price stays below the MS-Signal indicator and the MS-Signal indicator turns to a bearish sign, then the downtrend is likely to continue.
Therefore, even if it temporarily rises above the MS-Signal indicator, it cannot be said that it will show an uptrend unless it is converted to an uptrend.
So, when the price surges and rises above the MS-Signal indicator, it is important to hold the price until the MS-Signal indicator turns into an uptrend.
If the HA-Low line or HA-High line is passing through these movements, you should respond by looking at whether you are supported or resisted on these lines.
The HA-Low line and the HA-High line are lines created for trading using Heikin Ashi candles.
Therefore, it can be interpreted that if it is supported by the HA-Low or HA-High line, it is highly likely to show an uptrend.
However, since the HA-Low and HA-High lines are calculated together with the RSI indicator, they are displayed on the chart as interactions.
The HA-Low line is a line created near the low point,
The HA-High line is a line created near the high point.
Therefore, if it shows support at the HA-Low line, it is time to buy.
And, if the price rises and rises above the HA-High line, it is likely to show a sharp movement.
Because of this movement, the HA-Low line is called the buy line, and the HA-High line is called the soaring line.
Since the HA-High line is a soaring line, if it is resisted by the HA-High line, it also means that there is a high possibility of a sharp decline.
If you see support at the HA-High line, you can buy it, but as I said, it is a sharp rise line, so you have to respond from a short-term perspective.
The Heikin Ashi body indicator is significant as it marks the first trend reversal.
So, you can see the first reversal move, either when the price first makes a move from a downtrend to an uptrend, or when the price first makes a move from an uptrend to a downtrend.
For example, if the price is in a downtrend and stops falling and moves sideways or rises slightly, the Heikin Ashi body indicator is likely to turn into an uptrend.
If this turns into a bullish sign, aggressive buying is possible.
However, since there is a high possibility that it will not rise higher and fall immediately, it is better to think of a trading strategy when it shows support by rising above the 5EMA line, HA-Low line, and MS-Signal indicator.
Let's assume that from an uptrend in price, the Heikin Ashi body indicator turns to a downtrend.
Then, if you touch the 5EMA line, the HA-High line, and the MS_Signal indicator, I think you can buy some time to think about a selling strategy.
-------------------------------------------------- -
It doesn't matter how you trade and what tools you use.
What matters is whether you can create a trading strategy.
We tend to spend more time on analysis like chart analysis, economic analysis.
Also, many analytical techniques are studied to do this kind of analysis.
I have spent a lot of time studying various analysis techniques and putting a lot of effort into using them in trading.
However, I realized that acquiring all of these things did not make me a good trader.
The indicators released today also do not mean much in reality.
It merely provides minimal information for creating a trading strategy.
I think it is better to put aside the idea of investing a lot of time in chart analysis and economic analysis and proceeding with trading.
Instead, I recommend spending a lot of time thinking about how to buy at the point or section you are trading, how to sell if the price rises, and how to stop loss if the price falls.
Quickly learn that learning difficult analytical techniques doesn't make you profitable on your trades.
I hope you understand.
An analytical technique or tool that allows you to earn a steady income is the best technique.
Creating a trading strategy is not difficult.
It's just that it feels difficult because I haven't organized my thoughts until now.
trading strategy
1. Investment period
2. Investment scale
3. Trading method and profit realization method
You just need to think in order and then start trading.
The most important thing in this trading strategy is the investment period.
The most important thing is whether to trade the coin (token) you want to trade by investing for a period such as the same day, short term, mid term, or long term.
This is because even though this first button is not connected properly, the following fund management and trading methods are all wrong.
I hope the day will come soon when you can play with the movement of the chart and get away from wrestling with the chart.
thank you.
---------------------------------
Candlestick Pattern Criteria and Analysis Indicator█ OVERVIEW
Define, then locate the presence of a candle that fits a specific criteria. Run a basic calculation on what happens after such a candle occurs.
Here, I’m not giving you an edge, but I’m giving you a clear way to find one.
IMPORTANT NOTE: PLEASE READ:
THE INDICATOR WILL ALWAYS INITIALLY LOAD WITH A RUNTIME ERROR. WHEN INITIALLY LOADED THERE NO CRITERIA SELECTED.
If you do not select a criteria or run a search for a criteria that doesn’t exist, you will get a runtime error. If you want to force the chart to load anyway, enable the debug panel at the bottom of the settings menu.
Who this is for:
- People who want to engage in TradingView for tedious and challenging data analysis related to candlestick measurement and occurrence rate and signal bar relationships with subsequent bars. People who don’t know but want to figure out what a strong bullish bar or a strong bearish bar is.
Who this is not for:
- People who want to be told by an indicator what is good or bad or buy or sell. Also, not for people that don’t have any clear idea on what they think is a strong bullish bar or a strong bearish bar and aren’t willing to put in the work.
Recommendation: Use on the candle resolution that accurately reflects your typical holding period. If you typically hold a trade for 3 weeks, use 3W candles. If you hold a trade for 3 minutes, use 3m candles.
Tldr; Read the tool tips and everything above this line. Let me know any issues that arise or questions you have.
█ CONCEPTS
Many trading styles indicate that a certain candle construct implies a bearish or bullish future for price. That said, it is also common to add to that idea that the context matters. Of course, this is how you end up with all manner of candlestick patterns accounting for thousands of pages of literature. No matter the context though, we can distill a discretionary trader's decision to take a trade based on one very basic premise: “A trader decides to take a trade on the basis of the rightmost candle's construction and what he/she believes that candle construct implies about the future price.” This indicator vets that trader’s theory in the most basic way possible. It finds the instances of any candle construction and takes a look at what happens on the next bar. This current bar is our “Signal Bar.”
█ GUIDE
I said that we vet the theory in the most basic way possible. But, in truth, this indicator is very complex as a result of there being thousands of ways to define a ‘strong’ candle. And you get to define things on a very granular level with this indicator.
Features:
1. Candle Highlighting
When the user’s criteria is met, the candle is highlighted on the chart.
The following candle is highlighted based on whether it breaks out, breaks down, or is an inside bar.
2. User-Defined Criteria
Criteria that you define include:
Candle Type: Bull bars, Bear bars, or both
Candle Attributes
Average Size based on Standard Deviation or Average of all potential bars in price history
Search within a specific price range
Search within a specific time range
Clarify time range using defined sessions and with or without weekends
3. Strike Lines on Candle
Often you want to know how price reacts when it gets back to a certain candle. Also it might be true that candle types cluster in a price region. This can be identified visually by adding lines that extend right on candles that fit the criteria.
4. User-Defined Context
Labeled “Alternative Criteria,” this facet of the script allows the user to take the context provided from another indicator and import it into the indicator to use as a overriding criteria. To account for the fact that the external indicator must be imported as a float value, true (criteria of external indicator is met) must be imported as 1 and false (criteria of external indicator is not met) as 0. Basically a binary Boolean. This can be used to create context, such as in the case of a traditional fractal, or can be used to pair with other signals.
If you know how to code in Pinescript, you can save a copy and simply add your own code to the section indicated in the code and set your bull and bear variables accordingly and the code should compile just fine with no further editing needed.
Included with the script to maximize out-of-the-box functionality, there is preloaded as alternative criteria a code snippet. The criteria is met on the bull side when the current candle close breaks out above the prior candle high. The bear criteria is met when the close breaks below the prior candle. When Alternate Criteria is run by itself, this is the only criteria set and bars are highlighted when it is true. You can qualify these candles by adding additional attributes that you think would fit well.
Using Alternative Criteria, you are essentially setting a filter for the rest of the criteria.
5. Extensive Read Out in the Data Window (right side bar pop out window).
As you can see in the thumbnail, there is pasted a copy of the Data Window Dialogue. I am doubtful I can get the thumbnail to load up perfectly aligned. Its hard to get all these data points in here. It may be better suited for a table at this point. Let me know what you think.
The primary, but not exclusive, purpose of what is in the Data Window is to talk about how often your criteria happens and what happens on the next bar. There are a lot of pieces to this.
Red = Values pertaining to the size of the current bar only
Blue = Values pertaining or related to the total number of signals
Green = Values pertaining to the signal bars themselves, including their measurements
Purple = Values pertaining to bullish bars that happen after the signal bar
Fuchsia = Values pertaining to bearish bars that happen after the signal bar
Lime = Last four rows which are your percentage occurrence vs total signals percentages
The best way I can explain how to understand parts you don’t understand otherwise in the data window is search the title of the row in the code using ‘ctrl+f’ and look at it and see if it makes more sense.
█ [b}Available Candle Attributes
Candle attributes can be used in any combination. They include:
[*}Bodies
[*}High/Low Range
[*}Upper Wick
[*}Lower Wick
[*}Average Size
[*}Alternative Criteria
Criteria will evaluate each attribute independently. If none is set for a particular attribute it is bypassed.
Criteria Quantity can be in Ticks, Points, or Percentage. For percentage keep in mind if using anything involving the candle range will not work well with percentage.
Criteria Operators are “Greater Than,” “Less Than,” and “Threshold.” Threshold means within a range of two numbers.
█ Problems with this methodology and opportunities for future development:
#1 This kind of work is hard.
If you know what you’re doing you might be able to find success changing out the inputs for loops and logging results in arrays or matrices, but to manually go through and test various criteria is a lot of work. However, it is rewarding. At the time of publication in early Oct 2022, you will quickly find that you get MUCH more follow through on bear bars than bull bars. That should be obvious because we’re in the middle of a bear market, but you can still work with the parameters and contextual inputs to determine what maximizes your probability. I’ve found configurations that yield 70% probability across the full series of bars. That’s an edge. That means that 70% of the time, when this criteria is met, the next bar puts you in profit.
#2 The script is VERY heavy.
Takes an eternity to load. But, give it a break, it’s doing a heck of a lot! There is 10 unique arrays in here and a loop that is a bit heavy but gives us the debug window.
#3 If you don’t have a clear idea its hard to know where to start.
There are a lot of levers to pull on in this script. Knowing which ones are useful and meaningful is very challenging. Combine that with long load times… its not great.
#4 Your brain is the only thing that can optimize your results because the criteria come from your mind.
Machine learning would be much more useful here, but for now, you are the machine. Learn.
#5 You can’t save your settings.
So, when you find a good combo, you’ll have to write it down elsewhere for future reference. It would be nice if we could save templates on custom indicators like we can on some of the built in drawing tools, but I’ve had no success in that. So, I recommend screenshotting your settings and saving them in Notion.so or some other solid record keeping database. Then you can go back and retrieve those settings.
#6 no way to export these results into conditions that can be copy/pasted into another script.
Copy/Paste of labels or tables would be the best feature ever at this point. Because you could take the criteria and put it in a label, copy it and drop it into another strategy script or something. But… men can dream.
█ Opportunities to PineCoders Learn:
1. In this script I’m importing libraries, showing some of my libraries functionality. Hopefully that gives you some ideas on how to use them too.
The price displacement library (which I love!)
Creative and conventional ways of using debug()
how to display arrays and matrices on charts
I didn’t call in the library that holds the backtesting function. But, also demonstrating, you can always pull the library up and just copy/paste the function out of there and into your script. That’s fine to do a lot of the time.
2. I am using REALLY complicated logic in this script (at least for me). I included extensive descriptions of this ? : logic in the text of the script. I also did my best to bracket () my logic groups to demonstrate how they fit together, both for you and my future self.
3. The breakout, built-in, “alternative criteria” is actually a small bit of genius built in there if you want to take the time to understand that block of code and think about some of the larger implications of the method deployed.
As always, a big thank you to TradingView and the Pinescript community, the Pinescript pros who have mentored me, and all of you who I am privileged to help in their Pinescripting journey.
"Those who stay will become champions" - Bo Schembechler