13E2113E21 is a strategy based on the concept of "Buy-on-Dip" and "Sell-on-Rise". The strategy is built around the concept that as the market starts trending in a particular direction it will give a retrace to it's 13 exponential moving average price and then continue in it's trend thus forming higher lows (or lower highs) in the process.
The indicator 13E21 helps determine the 2 EMAs (13 and 21) and also highlights the candle that touches either EMAs and closes accordingly.
The edge in the code is that it makes use of the difference between the two EMAs as a signal of the market trending. It will trigger an entry only when the difference between the two EMAs is greater than 0.02% thus implying that the market is actually trending and not consolidating.
The indicator will give bullish triggers only when the price touches 13EMA or 21EMA, the closing price is greater than 13EMA and the difference between 13EMA and 21EMA is greater than 0.02% or 10 points.
Similarly, the indicator will give bearish triggers only when the price touches 13EMA or 21EMA, the closing price is less than 13EMA and the difference between 13EMA and 21EMA is greater than 0.02% or 10 points.
Chart patterns
Custom SMA Plot It creates a custom indicator named "Custom SMA Plot (CSP)" that overlays on a price chart. The indicator fetches the closing prices and calculates a 14-period simple moving average (SMA) of these prices. This SMA is then visually represented as a blue line, which starts from the SMA value of the bar 100 candles ago and extends to the current bar's SMA value. The line has a thickness of 1 unit.
When price breaks over wave go long.
When price breaks below wave go short.
TrapZone ProThis script combines the concepts of Price Action, Trend and Momentum to identify Price Zones (Red and Green filled areas) and Price Bars (Red, Green and Gray) where traders can get trapped in the Market.
It will clearly mark the bars which favor the prevailing Trend and those bars which just don't have the momentum anymore. TrapZone moves with the market trend and will often provide it support. As the TrapZone changes direction & its color, traders can change their trade bias.
Features:
Identify strong & weak price action - By leveraging a regression calculation of price movement on Y axis against the x axis, we identify the strength of current bars. Increasing relative strength of bars indicate Bullish (Green Bars) & Bearish (Red Bars) price movement, respectively. As the relative strength starts to decrease in Bullish or Bearish price action, the indicator immediately changes the color of these bars to Gray (by default). We call these TrapBars .
Current price trend - By using the highs and lows of price in multiple periods, we are calculating the trend of the price. The Bullish trend is shown by the Green zone and Bearish trend is shown by the Red zone. These zones are the shaded areas which are plotted on the chart. If the price is in these Zones, Longs or Short trades are not advised as that price action is weak. We call these TrapZones .
Strength of the Momentum - the thickness of the TrapZone shows the strength of the current Bullish or Bearish trend. That means the wider the shaded area grows the stronger is the current market momentum. A Flat TrapZone indicates sideways price action.
Knowing when NOT to Trade is as important as when to Trade. While this indicator is designed to avoid taking bad trades such as FOMO, Catching a Falling Knife or Fighting The Trend , it successfully reveals the good trade setups!
How these features of this indicator helps Traders avoids common mistakes:
FOMO or Fear of Missing Out - If a Trader Sees TrapBars in a Bullish or Bearish Trend, they will avoid entry as the price action is weak at that time. This will avoid late entries.
Catching a Falling Knife (a.k.a. Picking a Bottom) - When Red TrapZone is being plotted, Traders can avoid taking Long Entries hoping for a price reversal.
Fighting The Trend (a.k.a Picking a Top) - When Green TrapZone is being plotted, Traders can avoid taking Short entries hoping for a price reversal.
TrapZone Pro does all this in a single panel of the chart irrespective of the market or timeframe.
How to use TrapZone Pro indicator for trading [
A. Market Analysis
Green TrapZone is Bullish and traders should not take Shorts. If Green TrapZone is moving higher, Market is Strong
Red TrapZone is Bearish and traders should not take Longs. If Red TrapZone is moving Lower, Market is Strong
No trades when TrapBars are forming
No trades inside the TrapZone
B. Trade Guidance System
Establish Market Bias - Bullish or Bearish using the TrapZone Color
Only Enter Long in Long Color Bars i.e. Green by default
Only Enter Short in Short Color Bars i.e. Red by default
3 Classes of Trades are Possible Class A, B & C. A being the best Reward : Risk ratio and C being the least rewarding. So use trade size accordingly.
Class A - Best bars are always the first & Second, close to the TrapZone
Class B - Long Bar or Short Bar Forming after TrapBar away from the TrapZone in a Strong Market
Class C - Long Bar or Short Bar Forming after TrapBar close to the TrapZone in a Flat Market (identified by Flat TrapZone )
Take profits when Price moves away from the TrapZone & TrapBars start forming OR Your Target is hit !
See a few examples of Trade Classes & Entries/ Exits for a better understanding
Recommendations
Select Session to “Electronic Trading Hours” in chart settings so you can see the Post & Pre Market trading as well. You can change the color of these sessions to the same color as chart background, so it is not distracting.
Start by Trading in the Hourly or Daily time frame to get used to the new indicator and its Trade Guidance System .
Position Size is the best form of Risk Management. Have a fixed dollar loss per trade pre-determined and adjust the size based on market volatility.
Even though this indicator is designed to work on any market or timeframe, trade the markets that you are familiar with and timeframe that matches your lifestyle. Your understanding of the instrument's behavior and knowledge of what makes it move is valuable.
Basic Set-Up
Add the Indicator to the chart
Open Chart Settings and in Symbol Section
Switch off “ Borders ”
Switch off “ Wick ” or Change the colors to a same non-distracting color like Black or Gray
Open TrapZone Pro Settings
Set the colors for the “ Long Bars ”, “ Short Bars ” & “ No Entry Bars ” if you wish to change the default colors
Change “ TrapZone ” colors to your Taste or leave the defaults
Green for “Color 0” that represents Bullish Price Action
Red for “Color 1” that represents Bearish Price Action
Important Advice & Disclaimer: This indicator does not guarantee that you will make money. It is a tool that performs market analysis for you and presents it in a easy to consume fashion. Markets are truly random and can change direction on a dime. You must use prudent risk and money management strategy based on your investor profile, investment objectives and risk appetite.
To Get Access - See Author’s instructions below
Elliott Wave with Supertrend Exit - Strategy [presentTrading]## Introduction and How it is Different
The Elliott Wave with Supertrend Exit provides automated detection and validation of Elliott Wave patterns for algorithmic trading. It is designed to objectively identify high-probability wave formations and signal entries based on confirmed impulsive and corrective patterns.
* The Elliott part is mostly referenced from Elliott Wave by @LuxAlgo
Key advantages compared to discretionary Elliott Wave analysis:
- Wave Labeling and Counting: The strategy programmatically identifies swing pivot highs/lows with the Zigzag indicator and analyzes the waves between them. It labels the potential impulsive and corrective patterns as they form. This removes the subjectivity of manual wave counting.
- Pattern Validation: A rules-based engine confirms valid impulsive and corrective patterns by checking relative size relationships and fib ratios. Only confirmed wave counts are plotted and traded.
- Objective Entry Signals: Trades are entered systematically on the start of new impulsive waves in the direction of the trend. Pattern failures invalidate setups and stop out positions.
- Automated Trade Management: The strategy defines specific rules for profit targets at fib extensions, trailing stops at swing points, and exits on Supertrend reversals. This automates the entire trade lifecycle.
- Adaptability: The waveform recognition engine can be tuned by adjusting parameters like Zigzag depth and Supertrend settings. It adapts to evolving market conditions.
ETH 1hr chart
In summary, the strategy brings automation, objectivity and adaptability to Elliott Wave trading - removing subjective interpretation errors and emotional trading biases. It implements a rules-based, algorithmic approach for systematically trading Elliott Wave patterns across markets and timeframes.
## Trading Logic and Rules
The strategy follows specific trading rules based on the detected and validated Elliott Wave patterns.
Entry Rules
- Long entry when a new impulsive bullish (5-wave) pattern forms
- Short entry when a new impulsive bearish (5-wave) pattern forms
The key is entering on the start of a new potential trend wave rather than chasing.
Exit Rules
- Invalidation of wave pattern stops out the trade
- Close long trades on Supertrend downturn
- Close short trades on Supertrend upturn
- Use a stop loss of 10% of entry price (configurable)
Trade Management
- Scale out partial profits at Fibonacci levels
- Move stop to breakeven when price reaches 1.618 extension
- Trail stops below key swing points
- Target exits at next Fibonacci projection level
Risk Management
- Use stop losses on all trades
- Trade only highest probability setups
- Size positions according to chart timeframe
- Avoid overtrading when no clear patterns emerge
## Strategy - How it Works
The core logic follows these steps:
1. Find swing highs/lows with Zigzag indicator
2. Analyze pivot points to detect impulsive 5-wave patterns:
- Waves 1, 3, and 5 should not overlap
- Waves 3 and 5 must be longer than wave 1
- Confirm relative size relationships between waves
3. Validate corrective 3-wave patterns:
- Look for overlapping, choppy waves that retrace the prior impulsive wave
4. Plot validated waves and Fibonacci retracement levels
5. Signal entries when a new impulsive wave pattern forms
6. Manage exits based on pattern failures and Supertrend reversals
Impulsive Wave Validation
The strategy checks relative size relationships to confirm valid impulsive waves.
For uptrends, it ensures:
```
Copy code- Wave 3 is longer than wave 1
- Wave 5 is longer than wave 2
- Waves do not overlap
```
Corrective Wave Validation
The strategy identifies overlapping corrective patterns that retrace the prior impulsive wave within Fibonacci levels.
Pattern Failure Invalidation
If waves fail validation tests, the strategy invalidates the pattern and stops signaling trades.
## Trade Direction
The strategy detects impulsive and corrective patterns in both uptrends and downtrends. Entries are signaled in the direction of the validated wave pattern.
## Usage
- Use on charts showing clear Elliott Wave patterns
- Start with daily or weekly timeframes to gauge overall trend
- Optimize Zigzag and Supertrend settings as needed
- Consider combining with other indicators for confirmation
## Default Settings
- Zigzag Length: 4 bars
- Supertrend Length: 10 bars
- Supertrend Multiplier: 3
- Stop Loss: 10% of entry price
- Trading Direction: Both
OBV Oscillator Volume FilterOBV Oscillator Volume Filter
Introduction
The On-Balance Volume (OBV) is a widely-used technical indicator that aims to relate price and volume in trading. Price and volume are two of the most basic and yet crucial concepts in price movement. Together, they can reveal a lot about the instruments trends and the market's sentiment. This On Balance Volume (OBV) Oscillator incorporates enhanced features like a volume filter using a rolling window to detect outliers in accumulated volume, making it an advanced and more refined version of the standard OBV.
Interpreting the OBV Indicator
The primary function of the OBV is to accumulate volume. In simpler terms:
When the market closes higher than the previous candle, all of that candle's volume is considered 'up-volume'.
Conversely, when the market closes lower than the previous day, all of that candle's volume is considered 'down-volume'.
A rising OBV suggests that volume is being accumulated, indicating bullish market sentiment. A declining OBV, on the other hand, points to a bearish sentiment.
Features of the Script
1. Moving Averages Selection:
The script provides users with the option to select among six types of moving averages (EMA, DEMA, TEMA, SMA, WMA, HMA) to calculate the OBV. This feature offers flexibility and enables traders to choose an MA type they're most comfortable with or find the most effective.
2. Smoothing Option:
To reduce the inherent noise in the indicator, there's an option to apply smoothing. It uses a Simple Moving Average (SMA) to produce a clearer signal, making it easier for traders to interpret and respond to. If you don't want to use smoothing, just simply change the input length of smoothing to 1 in the settings.
3. Outlier Detection:
One of the standout features is the use of a rolling window to detect volume outliers. This ensures that the OBV only reacts to significant volume changes and isn't overly influenced by random spikes or drops. The volume filter is calculated based on a % of the highest OBV volume of X number of bars back. Users can adjust the time (# bars) and the sensitivity (%) of the volume filter. A longer timeperiode (# bars) and a higher % (sensitivity) in the settings result to less signals presented by the indicator.
4. Divergence Detection:
The script automatically highlights both regular and hidden divergences on the chart. Divergences can be a powerful signal of potential price reversals. This feature aids traders in spotting potential buy or sell opportunities based on divergences between price and OBV.
Regular Bullish Divergence: When the price makes lower lows, but the OBV makes higher lows.
Hidden Bullish Divergence: When the price makes higher lows, but the OBV makes lower lows.
Regular Bearish Divergence: When the price makes higher highs, but the OBV makes lower highs.
Hidden Bearish Divergence: When the price makes lower highs, but the OBV makes higher highs.
5. Alerts for Trend Reversals:
The script incorporates alerts that notify traders when the OBV indicates potential trend reversals. This feature can be instrumental in catching early entries or exits.
Disclaimer
It's crucial to understand that no single indicator should be used in isolation. To increase the probability of making accurate market predictions, always use the OBV Oscillator in conjunction with other indicators and tools. Remember that all trading involves risk, and it's possible to lose your invested capital. Always seek advice from a financial advisor before making any trading decisions. By enhancing the OBV with features like the volume filter, multiple MA types, smoothing, and divergence detection, this script becomes a potent tool in a trader's arsenal. Use it wisely, and always ensure to maintain proper risk management.
TASC 2023.09 The Weekly Factor█ OVERVIEW
TASC's September 2023 edition of Traders' Tips features an article written by Andrea Unger titled “The Weekly Factor", discussing the application of price patterns as filters for trade entries. This script implements a sample trading strategy presented in the article for demonstration purposes only. It explores how the strategy's equity curve might benefit from filtering trade entries using a specific price pattern.
█ CONCEPTS
Pattern filters represent valuable tools that assess current market conditions based on price movements and determine when those conditions become more favorable for trade entries.
The filter used and tested in this article is a metric called the "weekly factor", which measures the price range over the last five trading days and compares it to the open of the session five days ago and the close of the session one day ago (i.e., the "body" of the five-day period). When the five-day body is small compared to the five-day range, this could indicate "indecision" or "compression", potentially followed by a price expansion. Thus, the weekly factor metric can help identify areas in the market where a period of compression might signal a potential breakout.
This script demonstrates the use of the weekly factor for a sample intraday trading strategy (intended for educational and exploratory purposes only). In this strategy, the entry signal is triggered when a 15-minute bar breaks out of the previous day's high-low range, and the position is closed at the end of the day.
█ CALCULATIONS
The script uses two timeframes:
• The strategy entries are processed on the 15-minute timeframe.
• The weekly factor is obtained from the daily timeframe using the request.security function and the following formula:
math.abs(open - close ) < RangeFilter * (ta.highest(5) - ta.lowest(5) )
Here, RangeFilter is an input that can be optimized to find the favorable ratio between the five-day body and the five-day range. Smaller RangeFilter values will lead to fewer trade entries. A RangeFilter value of 1 is equivalent to turning off the filtering altogether.
Historical Pattern Matcher [Trendoscope]Do you believe in patterns and think price movements are more likely to follow historical patterns? If yes, this is an indicator for you.
🎲 Concept
The patterns in this script are not a named or known pattern. But, it can be any pattern that happen to repeat again and again over a period of time.
The indicator collects the following information over a period of time.
Collects all possible patterns for specified number of pivots based on relation between each pivot prices. (Default 6)
Keeps track of all the possible patterns for the given pivots and number of occurrences of such patterns over a period of time.
Collects the movement of next pivot (in terms of retracement ratio) after the pattern has formed for each occurrence.
Keeps track of the last occurrence of each pattern collected
And the indicator presents on chart following information
Current Pattern drawing based on last confirmed pivot.
Current Pattern drawing based on current unconfirmed pivot in the opposite direction.
Projection range based on historical retracement ratio for both patterns
Detailed info on last occurrence and overall occurrences.
Last occurrence of both confirmed and unconfirmed pivot patterns.
Please note that, if the patterns have not been repeated over a period, then it will not be shown on the screen. Hence, it is perfectly normal to not see any projection. This can happen when the current pattern has not been repeated any time before.
🎲 Details
When you load the indicator on the chart, you may see the following patterns and projections.
You may also notice, in the pattern details, information about the last occurrence of the pattern. If you scroll on your chart to the left to the given data and time, you can observe how the past occurrence of the pattern has formed and the price movement past that point.
For example, last occurrence of pattern based on confirmed pivot happened on 02-Jun-2023 00:00 UTC time
And last occurrence of pattern based on unconfirmed pivot happened on 27-Apr-2023 22:00 UTC time
🎲 Settings
Settings are minimal, and here is the meaning of them.
Most important setting here is the number of pivots forming the pattern.
🎲 Caution
The indicator is designed to present the projection based on historical occurrences of similar price pattern. This does not necessarily mean the patterns are supposed to be bullish or bearish. But, it will certainly give users an idea of what happened when similar price action presented historically.
Note to developers This script makes use of new pine script feature - maps
Clownpumps Higher/Lower Close Analysis (HLCA) IndicatorThe Clownpumps Higher/Lower Close Analysis" (HLCA) indicator offers a visual breakdown of the weekly behavior of a market, illustrating how often it closes higher or lower than its opening price. This comprehensive tool assists traders and analysts in pinpointing recurrent patterns that pertain to specific weekdays, forming a solid basis for a systematic trading strategy.
Features and Interpretation:
Color-Coded Analysis: The HLCA uses two intuitive colors to depict the daily trend:
Green: Indicates that, on average, the market closes higher than its opening price more frequently on that day.
Red: Highlights days when the market generally closes lower than its opening price.
Identifying Recurrent Patterns: Using the HLCA can reveal if a specific weekday consistently sees an asset closing higher or lower. For example, a consistent bullish sentiment on Mondays for a particular stock becomes easily observable.
Comparative Analysis: Deploying the HLCA across a range of assets can uncover trends that are either sector-wide or unique to individual stocks or cryptocurrencies.
Strategic Entry & Exit Points: Knowledge of which days an asset generally closes higher can guide traders in timing their market entries and exits.
Complementary to Other Tools: While the HLCA is a robust tool in itself, its true potential is unlocked when used in tandem with other market indicators. Pairing the daily closing patterns with volume data, for instance, can shed light on the strength of the observed trends.
Cautionary Notes:
Past behavior doesn't predict future performance. Always remember that correlation doesn't guarantee causation, especially when external market-shifting events come into play.
It's recommended to backtest any insights on historical data before committing to live trades.
EMA Deviation ReboundThe " EMA Deviation Rebound " indicator I've created utilizes calculations involving the standard deviation of closing prices and exponential moving averages (EMA) to generate a line. The color of this line changes based on whether the EMA value is above or below the current closing price. This can be interpreted as an indicator for potential buy or sell signals:
Buy Signal: If the price crosses the indicator from bottom to top, this can be considered a buy signal. This could indicate that the price has overcome a resistance and a potential upward movement may be forthcoming.
Sell Signal: If the price crosses the indicator from top to bottom, this could serve as a sell signal. This might suggest that the price has broken a support downward and possibly indicates an impending downward movement.
The indicator is named "EMA Deviation Rebound" because I use it to identify potential resistance and support levels. When the price rebounds at the indicator, this could signify a price movement in the opposite direction.
It's important to use such indicators in conjunction with other analysis techniques and market information to make informed trading decisions.
MTF Break of Structure(BOS) & Market Structure Shift(MSS)Brief Introduction
Hello fellow traders and coders, let me introduce to you the ultimate multi time-frame market structure indicator to cater to all your market structure needs. The script is extremely customizable with a maximum of 3 time-frames since I love top down analysis as I’m sure you do to, so without wasting any more time here are the available features.
List of Features
A maximum of 3 time-frames that can all be customized independently.
The ability to change individual swing lengths that create the market structure plots, all time-frames will come set at 7, you can however set this to whatever you are comfortable with.
BOS (Break of Structure) and MSS (Market Structure Shift) functionality fo all the individual time-frames.
The option to show market structure in the form of HH (Higher highs), HL (Higher Lows), LL (Lower Lows) and LH(Lower Highs).
The ability to either use (highs and lows) or closes for breaks of structure and market structure shifts, meaning a break of structure will only be valid if either a high or close (depending on your chosen input) crosses above the previous high for a bullish structural break.
The ability to change lines types for BOS and MSS.
The ability to change text sizes for the all the plots.
The ability to change the colors for nearly anything on the chart independently of any other line or plot.
The ability to change any time-frame to the chart’s time-frame.
The ability to prevent lower time frame structure from showing on higher time frames which I don’t advice as it will provide you with an inaccurate perception of the lower time frame structure hence I’ve made the feature available but set it to false.
The script also has a section called general settings that will allow you to hide all the market structure plots as well as all the lines on the chart and on all time-frames using just one input.
General Settings Functionality.
Input 1 if true will hide all market structure if true
Input 2 if true will hide all structural breaks (BOS and MSS)
Input 3 if false will show lower time frame structure on a higher time frame. High advice using it while its true as I work on this feature as it provide an innacurate depiction of structure.
Bull and Bear Market '20% IndicatorThis indicator uses the somewhat crude method of calculating bear/bull markets using the following popular ' 20% rule ':
A bear market begins when an asset trades 20% below its recent high for more than two months, a bear market ends when an asset trades 20% above its recent low for one month or more.
The 1d time-frame should be used, here's why:
"A bear market begins when an asset trades 20% below its recent high for more than two months."
If we take the standard trading month to be around 20-22 days (excluding weekends), then two months would be approximately 40-44 days. This is why we set the `bearDuration` to 60 days in the script to capture the "more than two months" criteria. Using a daily timeframe, 60 bars represent roughly 3 months (since markets are not open every day due to weekends and holidays).
"...a bear market ends when an asset trades 20% above its recent low for one month or more."
This is why the `bullDuration` is set to 20 days in the script, which represents roughly one trading month on a daily timeframe.
So, to capture the mentioned bear and bull market definitions, you'd want to apply the script on a daily (1d/1D) chart.
daily bias @ttrades x joshuuuDaily bias is one of the most powerful tools when it comes to intraday trading.
Ttrades published a youtube video, in which he showcases his mechanical way of determing the daily bias based on ICTs and the MMXM Traders Teachings.
This indicator is based on those concepts.
The rules for this indicator are simple.
scenario 1 - first line of table
Close above previous days high gives a bullish bias.
Close below previous days low gives a bearish bias.
scenario 2 - second line of the table
Wick below previous days low and close within previous days body or above gives a bullish bias.
Wick above previous days high and close within previous days body or below gives a bearish bias.
"Bullish" bias is valid until previous daily high (pdh) is reached.
"Bearish" bias is valid until previous daily low (pdl) is reached.
If none of the above mentioned conditions is met OR the target (pdh/pdl) is reached, the bias is set to "Neutral".
On the daily timeframe, probabilities are visible on the table to reach pdh when the bias is "Bullish" or to reach pdl when the bias is "Bearish".
If the bias is bullish, the ideal buy would be below ny midnights opening price.
If the bias is bearish, the ideal sell would be above the ny midnights opening price.
Candles In Row (Expo)█ Overview
The Candles In Row (Expo) indicator is a powerful tool designed to track and visualize sequences of consecutive candlesticks in a price chart. Whether you're looking to gauge momentum or determine the prevailing trend, this indicator offers versatile functionality tailored to the needs of active traders. The Candles In Row indicator can be an integral part of a multi-timeframe trading strategy, allowing traders to understand market momentum, and set trading bias. By recognizing the patterns and likelihood of future price movements, traders can make more informed decisions and align their trades with the overall market direction.
█ How to use
The indicator enhances traders' understanding of the consecutive candle patterns, helping them to uncover trends and momentum. Consecutive candles in the same direction may indicate a strong trend. The Candles In Row indicator can be an essential tool for traders employing a multiple timeframes strategy.
Analyzing a Higher Timeframe:
Understanding Momentum: By analyzing consecutive green or red candles in a higher timeframe, traders can identify the prevailing momentum in the market. A series of green candles would suggest an upward trend, while a series of red candles would indicate a downward trend.
Predicting Next Candle: The indicator's predictive feature calculates the likelihood of the next candle being green or red based on historical patterns. This probability helps traders gauge the potential continuation of the trend.
Setting the Trading Bias: If the likelihood of the next candle being green is high, the trader may decide to focus on long (buy) opportunities. Conversely, if the likelihood of the next candle being red is high, the trader may look for short (sell) opportunities.
In this example, we are using the Heikin Ashi candles.
Moving to a Lower Timeframe:
Finding Entry Points: Once the trading bias is set based on the higher timeframe analysis, traders can switch to a lower timeframe to look for entry points in the direction of the bias. For example, if the higher timeframe suggests a high likelihood of a green candle, traders may look for buy opportunities in the lower timeframe.
Combining Timeframes for a Comprehensive Strategy:
Confirmation and Alignment: By analyzing the higher timeframe and confirming the direction in the lower timeframe, traders can ensure that they are trading in alignment with the broader trend.
Avoiding False Signals: By using a higher timeframe to set the trading bias and a lower timeframe to find entries, traders can avoid false signals and whipsaws that might be present in a single timeframe analysis.
█ Settings
Price Input Selection: Choose between regular open and close prices or Heikin Ashi candles as the basis for calculation.
Data Window Control: Decide between displaying the full data window or only the active data. You can also enable a counter that keeps track of the number of candles.
Alert Configuration: Set the desired number and color of consecutive candles that must occur in a row to trigger an alert.
Table Display Customization: Customize the location and size of the display table according to your preferences.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Structure High LowsThis indicator identifies and tracks swing highs and lows in any market and timeframe, plotting them as solid lines on a chart. It offers customizable line features and can follow rules to update highs and lows based on bullish or bearish conditions.
In bullish ranges, the indicator updates the high until a swing high forms, while in bearish ranges, it updates the low until a swing low forms. These swings determine the final high or low. The indicator's unique approach incorporates market structure insights to potentially identify price movement trends and validate strategies across timeframes.
In bearish conditions, the indicator updates the low until a swing low forms, while the high adjusts when a candle's body surpasses the prior high. Swing highs entail lower highs on both sides, and swing lows involve higher lows. This indicator's innovation lies in its use of market structure to track price movement and validate trend strategies across timeframes.
VWAP, AVWAP and MVWAP - Omkar BanneThis indicator plots the VWAP, MVWAP and Anchored VWAP.
AVWAP: Anchored VWAP sometimes doesn't work the way it should. In such times, trades can use the default AVWAP on the right ribbon.
MVWAP: Moving average length can be changed; the default is 10.
Weekly BoxThe indicator shows a box based on the high and low of the previous week that extends into the current week. The box is used to monitor breakouts or break downs of the price with respect to the previous week levels.
The box is colored:
- green, if there is a breakout above the previous week high; or
- red, if there is a break down below the previous week low; or
- yellow, if the price stays inside of the box.
during the current week.
Labels for the box top and bottom prices can be enabled or disabled in the settings.
True Range/Expected MoveThis indicator plots the ratio of True Range/Expected Move of SPX. True Range is simple the high-low range of any period. Expected move is the amount that SPX is predicted to increase or decrease from its current price based on the current level of implied volatility. There are several choices of volatility indexes to choose from. The shift in color from red to green is set by default to 1 but can be adjusted in the settings.
Red bars indicate the true range was below the expected move and green bars indicate it was above. Because markets tend to overprice volatility it is expected that there would be more red bars than green. If you sell SPX or SPY option premium red days tend to be successful while green days tend to get stopped out. On a 1D chart it is interesting to look at the clusters of bar colors.
Brake Of Structure (BOS) By GadatasThis indicator is designed to identify and track swing highs and lows in a given market on any timeframe. It plots these swing highs and lows as solid lines on the chart. The indicator allows for customization of the line color and width and using another timeframe.
The indicator follows specific rules to determine when a new high or low is created. If the current range is considered bullish (meaning the most recent breakout was to the topside), the indicator will only update the low if a candle's body falls below the current low. However, if the current range is bearish (most recent breakout to the downside), the indicator will only update the high if a candle's body rises above the current high.
When a range is identified as bullish, the indicator will continue updating the high until a swing high is formed, denoting the high of the range. The high will only change if a candle's body surpasses the previous high. The low, on the other hand, will be updated based on the last time a candle's body falls below a previous candle's low. The lowest low after this condition is met will be assigned as the low of the range.
Conversely, when a range is identified as bearish, the indicator will continue updating the low until a swing low is formed, denoting the low of the range. The low will only change if a candle's body falls below the previous low. The high, in this case, will be updated based on the last time a candle's body rises above a previous candle's high. The highest high after this condition is met will be assigned as the high of the range.
Swing highs are determined by having lower highs to the left and right, while swing lows have higher lows to the left and right. These swings are used to determine the final high or low of a bullish or bearish range, respectively.
Tis Indicator differs from other indicators by incorporating this concept to track market structure. The indicator assumes that significant market players sell before making heavy purchases in bullish ranges and buy before selling heavily in bearish ranges. The lines on the chart represent prior highs and lows, as well as the current updated highs and lows based on this theory. By using this indicator, one can gain insights into the structure of price movement and potentially identify bullish or bearish continuations. It can also provide confluence when analyzing multiple timeframes to validate trend-following strategies.
SMC Structures and FVGThe SMC Structures and FVG indicator allows the user to easily identify trend continuations (Break Of Structure) or trend changes (CHange Of CHaracter) on any time frame. In addition, it display all FVG areas, whether they are bullish, bearish, or even mitigated.
Fair Value Gap :
The FVG process shows every bullish, bearish or even mitigated FVG liquidity area. When a FVG is fully mitigated it will directly be removed of the chart.
There is an history of FVG to show. By selecting specific number of FVG to show in the chart, the user can focus its analysis on lasts liquidity area.
Here's the rules for FVG color :
Green when it's a bullish FVG and has not been mitigated
Red when it's a bearish FVG and has not been mitigated
Gray when the bullish / bearish FVG has been mitigated
Removed when the FVG has been fully mitigated
Structures analysis:
The Structure process show BOS in grey lines and CHoCH in yellow lines. It shows to the user the lasts price action pattern.
The blue lines are the high value and the low value of the current structure.
TrendGuard Flag Finder - Strategy [presentTrading]
Introduction and How It Is Different
In the vast world of trading strategies, the TrendGuard Flag Finder stands out as a unique blend of traditional flag pattern detection and the renowned SuperTrend indicator.
- A significant portion of the Flag Pattern detection is inspired by the "Flag Finder" code by @Amphibiantrading, which serves as one of foundational element of this strategy.
- While many strategies focus on either trend-following or pattern recognition, this strategy harmoniously combines both, offering traders a more holistic view of the market.
- The integration of the SuperTrend indicator not only provides a clear direction of the prevailing trend but also offers potential stop-loss levels, enhancing the strategy's risk management capabilities.
AAPL 1D chart
ETHBTC 6hr chart
Strategy: How It Works
The TrendGuard Flag Finder is primarily built on two pillars:
1. Flag Pattern Detection : At its core, the strategy identifies flag patterns, which are continuation patterns suggesting that the prevailing trend will resume after a brief consolidation. The strategy meticulously detects both bullish and bearish flags, ensuring traders can capitalize on opportunities in both rising and falling markets.
What is a Flag Pattern? A flag pattern consists of two main components:
1.1 The Pole : This is the initial strong price move, which can be either upwards (for bullish flags) or downwards (for bearish flags). The pole represents a strong surge in price in a particular direction, driven by significant buying or selling momentum.
1.2 The Flag : Following the pole, the price starts consolidating, moving against the initial trend. This consolidation forms a rectangular shape and is characterized by parallel trendlines. In a bullish flag, the consolidation will have a slight downward tilt, while in a bearish flag, it will have a slight upward tilt.
How the Strategy Detects Flags:
Identifying the Pole: The strategy first identifies a strong price movement over a user-defined number of bars. This movement should meet a certain percentage change to qualify as a pole.
Spotting the Flag: After the pole is identified, the strategy looks for a consolidation phase. The consolidation should be counter to the prevailing trend and should be contained within parallel lines. The depth (for bullish flags) or rally (for bearish flags) of this consolidation is calculated to ensure it meets user-defined criteria.
2. SuperTrend Integration : The SuperTrend indicator, known for its simplicity and effectiveness, is integrated into the strategy. It provides a dynamic line on the chart, signaling the prevailing trend. When prices are above the SuperTrend line, it's an indication of an uptrend, and vice versa. This not only confirms the flag pattern's direction but also offers a potential stop-loss level for trades.
When combined, these components allow traders to identify potential breakout (for bullish flags) or breakdown (for bearish flags) scenarios, backed by the momentum indicated by the SuperTrend.
Usage
To use the SuperTrend Enhanced Flag Finder:
- Inputs : Begin by setting the desired parameters. The strategy offers a range of user-controlled settings, allowing for customization based on individual trading preferences and risk tolerance.
- Visualization : Once the parameters are set, the strategy will identify and visually represent flag patterns on the chart. Bullish flags are represented in green, while bearish flags are in red.
- Trade Execution : When a breakout or breakdown is identified, the strategy provides entry signals. It also offers exit signals based on the SuperTrend, ensuring that traders can capitalize on the momentum while managing risk.
Default Settings
The strategy comes with a set of default settings optimized for general use:
- SuperTrend Parameters: Length set to 10 and Factor set to 5.0.
- Bull Flag Criteria: Max Flag Depth at 7, Max Flag Length at 10 bars, Min Flag Length at 3 bars, Prior Uptrend Minimum at 9%, and Flag Pole Length between 7 to 13 bars.
- Bear Flag Criteria: Similar settings adjusted for bearish patterns.
- Display Options: By default, both bullish and bearish flags are displayed, with breakout and breakdown points highlighted.
MTF FVGThis script finds Imbalance (Fair Value Gap (FVG)) on multi timeframes.
If needed all TF can be used at once: 1, 3, 5, 15, 30, 45, 60, 120, 180, 240, D, W.
It finds FVG on any desired TF that is greater or equal than TF on the chart.
FVG stands for fair value gap, which is a three-candle structure that indicates an imbalance or inefficiency in the market. An imbalance means that the buying and selling is not equal, and there is a gap between the fair value and the market value of an asset. A bullish FVG shows that the market value is lower than the fair value, and a bearish FVG shows the opposite.
FVG takes place in a series of 3 candles when the middle candle gaps up or down. This signals strong buying or selling pressure in the direction of the gap. When a gap occurs the wicks of the candles do not overlap each other.
Price Range BlockThe price range block indicator. User input divides the price into blocks (eg a block of 1 dollar) if the price would go from 1 dollar to greater than 1 dollar, the next block is drawn including the center line. Same for if it went down. Trading choices could be made through the behavior of the price in such a block.
Sublime Trading | Trend Strength FilterWhat kind of traders/investors are we?
We are trend followers. Our scripts are designed to be used on the higher timeframes (weekly/daily) to catch the large moves/trends in the market.
Most have heard of long-term trend following. Few know how to execute the strategy.
Our scripts are designed specifically to identify and invest in long-term market trends.
What does this script do?
Identifying trends is at the heart of sound investing.
This script is colour coded to help identify long-term trends and environments where you will want to consider taking positions.
It is also designed to identify sideways/consolidating markets, environments where you will want to consider standing aside.
How is the trailing stoploss produced?
The script uses two sets of Bollinger Bands, one with setting Standard Deviation 1 and the other with Standard Deviation 2.
These settings help to create 3 zones - Buy, Sell and Stand Aside.
The bars will change colour according to which zone they are in.
The Buy zone is colour-coded green, and when a bull market or the start of a bull trend is in play. The green switches from light green to dark green as the asset’s price moves above the Buy zone.
This switch in colour serves as a warning that a reversal/pullback may occur next from bullish to bearish.
The Sell zone is colour-coded red and when a bear market or the start of a bear trend is in play. The red switches from light red to dark red as the asset’s price moves below the Sell zone.
This switch in colour serves as a warning that a reversal/pullback may occur next from bearish to bullish.
The Stand Aside is confirmed when the colour-code changes to grey. This may not necessarily mean a trend reversal but simply a time to apply patience before a trend continuation.
A sustained mixture of red, green and grey bars confirms a consolidation or sideways market and when investors/traders will want to stand aside and consider another asset.
What is the best timeframe to use the script?
Long-term trends are identified on the daily and weekly timeframes where traders and investors take fewer positions but hold for longer time periods.
We recommend using the script in unison on the weekly and daily timeframes.
When both timeframes fall into the Buy zone and colour-coded green, it signifies a strong bull market.
When both timeframes fall into the Sell zone and colour-coded red, it signifies a strong bear market.
When there is a mixture of green, red and grey bars across the two timeframes, it signifies a sideways market and when investors stand aside and protect their capital.
The weekly timeframe will also help mask the noise on the daily timeframe, allowing you to hold positions longer.
The Trailing Strength Filter script is for investors who want to identify and invest in long-term trends whilst simultaneously eliminating intraday swings.
What makes this script unique?
Identifying the start of long-term trends and then riding out established trends are among the main struggles budding investors face. This script has been coded specifically for the daily and weekly timeframe to:
Seamlessly identify the start, middle and end of trends
Align with the market and remove social media noise calling market tops and bottoms
Allow for discretion when entering but particularly exiting of positions if a market trend has not ended
This trend filter script ensures alignment with long-term market trends.