Red Candles with Green Precedent
**Title**: Red Candles with Green Precedent Indicator
**Description**:
This TradingView indicator is designed to help traders identify potential reversal or continuation patterns based on the appearance of consecutive red candles following a green candle. The script marks a region starting from a green candle that precedes at least four consecutive red candles, extending a box forward for a predefined number of bars to analyze the continuation of the trend.
**Key Features**:
- **Consecutive Red Candles Detection**: The indicator counts consecutive red candles that close lower than they open.
- **Initial Green Candle Identification**: Identifies the last green candle before a series of red candles begins. This green candle must close higher than it opens.
- **Visual Box Extension**: Creates a visual box from the open to the high of the green candle and extends it forward to highlight the period of interest.
- **Dynamic Box Termination**: Optionally terminates the box early if a significant green candle appears within the extension period, suggesting a potential reversal.
**Usage**:
1. **Setup**: Apply the indicator to any chart in TradingView. Adjust the number of consecutive red candles to track based on your trading strategy.
2. **Interpretation**: A visual green box will appear when the criteria are met. This box helps focus on the price action following a potentially significant green candle. Traders should watch for price actions within and around the box to make informed decisions.
3. **Alerts**: Consider setting alerts for when a new box is created or when a significant green candle forms that might terminate the box early, indicating potential market movements.
**Suitable for**: This indicator is suitable for traders looking for visual cues about potential bearish exhaustion or the setup for a bullish reversal, particularly in volatile markets.
---
Feel free to customize the description and features according to any additional details or personal insights you might want to include based on your trading experience or the specific behaviors of the markets you track.
**Disclaimer**:
This script is provided as a tool for trading analysis and is not intended to be used as the sole basis for any trading decisions. While this indicator aims to identify potential trading opportunities, its effectiveness can depend on market conditions and individual trading strategies. Users should conduct their own research and consult with professional advisors before making any investment decisions. The creator of this script assumes no responsibility for any potential financial losses incurred from using this indicator. Trading in financial markets involves risk, and it is possible to lose more than your initial investment.
---
Candlestick analysis
Trend ChameleonThe Trend Chameleon, originally developed by Alex Cole for the Bloomberg Terminal, is a powerful tool designed to simplify trend identification and illuminate potential trading opportunities. It leverages a clear visual display to decode market movements, making it useful for traders of all experience levels.
🟠 Overview
Here's an illustration of how the indicator performs for ES (S&P 500 E-mini Future) on the daily chart:
Trend Chameleon employs a color-coded candle scheme, with each color corresponding to a specific level of trend strength. Purple candles represent the strongest bearish trends, while teal candles signal the most potent bullish momentum. Between these extremes lie red, yellow, and green candles, providing a spectrum of trend direction. This intuitive color coding allows you to quickly grasp the prevailing market sentiment and identify potential entry and exit points for your trades.
🟠 Algorithm
Under the hood, Trend Chameleon evaluates four conditions to provide a directional strength score:
1. Whether the MACD value is positive.
2. Whether the SMA 50 of open prices is above the SMA 50 of the close prices.
3. Whether the ROC indicator value is positive.
4. Whether the current close price is above the SMA 50.
The total number of fulfilled conditions (0 to 4) determines the trend strength, with 0 indicating the most bearish and 4 signifying the strongest bullish trend. This score is then visually represented by coloring the bars on the chart.
🟠 Note
If you don't see the bars being properly colored after adding this indicator, please ensure Trend Chameleon is positioned on top of all other indicators in your chart. This can be easily achieved by hovering over the indicator's name, clicking the three dots, selecting "Visual Order," and then choosing "Bring to front."
Holding Zone Input Parameters
The script has three input parameters:
· length: an integer input with a default value of 20, likely used for calculating moving averages or other indicators.
· zoneSize: a decimal input with a default value of 1.5, likely used to define the size of the "holding zone".
· entryZone: an integer input with a default value of 50, likely used to define the entry point for the strategy.
Calculate Holding Zone
The script calculates two values:
· highs: the highest high over the last length bars.
· lows: the lowest low over the last length bars.
Then, it calculates the zoneHigh and zoneLow values by subtracting/adding a fraction of the difference between highs and lows from/to highs and lows, respectively. This creates a "holding zone" between zoneHigh and zoneLow.
Plot Holding Zone
Finally, the script plots two lines:
· zoneHigh with a blue color and a linewidth of 2.
· zoneLow with a blue color and a linewidth of 2.
________________________________________________________________
For the 15 min timeframe I use the parameters 10 for the length, 0.5 for the zone size and 20 for the entry zone. this makes it more sensitive to price
Profitable L 1800 Candle Highlight [Beta]
Certainly! Here's a user guide for the provided Pine Script code:
User Guide: 1800 Candle Highlight Indicator
Overview:
The "1800 Candle Highlight" indicator is designed to visually emphasize the 18:00 (6:00 PM) candle on the chart, providing clarity on its open and close prices, and highlighting its timeframe with a distinctive color.
Key Features:
Candle Highlighting: The indicator identifies the candle that opens at 18:00 and visually distinguishes it from other candles on the chart.
Open and Close Prices: The indicator plots the open and close prices of the 18:00 candle as step lines, making it easy to identify price movements during that timeframe.
Background Color: It colors the background within the 18:00 candle's timeframe with a transparent blue shade, providing further emphasis on that period.
Start Marker: A downward triangle shape marks the start of the 18:00 candle, aiding in identifying the beginning of the highlighted timeframe.
Usage:
Overlay: The indicator is designed to be overlaid on the price chart, allowing users to visualize the highlighted candle alongside price movements.
Interpretation: Traders can observe the open and close prices of the 18:00 candle relative to previous and subsequent candles, aiding in analysis and decision-making.
Timeframe Focus: The highlighted candle's timeframe can serve as a reference point for analyzing price action during specific hours, such as the end of a trading day.
Installation:
Access: Users can access the Pine Script editor within the TradingView platform to create a new indicator.
Copy and Paste: Copy the provided Pine Script code and paste it into the editor.
Save and Apply: Save the indicator and apply it to the desired chart, adjusting settings as needed.
Customization:
Color Scheme: Users can customize the colors used for highlighting, open/close prices, and background to suit their preferences and chart aesthetics.
Styling: Adjustments can be made to line styles, widths, and marker sizes to enhance visibility and clarity.
Compatibility:
The indicator is compatible with TradingView's Pine Script version 5 and can be applied to various financial instruments and timeframes supported by the platform.
Disclaimer:
The "1800 Candle Highlight" indicator is provided for informational purposes only and should not be considered as financial advice. Users are encouraged to conduct thorough analysis and consider multiple factors before making trading decisions.
Joesax Red to Green with Alert V2 Candle IndicatorThis indicator displays transitions of candles from red to green and from green to red on a chart, with the ability to set an adjustable percentage threshold. When a candle transitions from red to green and the percentage change exceeds the specified threshold, a red to green transition signal is issued. Similarly, when a candle transitions from green to red and the percentage change exceeds the specified threshold, a green to red transition signal is issued.
Parameters:
Percentage threshold %: Allows you to set the percentage threshold to determine when to consider the transition from one candle to another significant.
Description:
This indicator uses the absolute percentage change between the opening price and the closing price of a candle to determine whether the candle is red or green. When a candle transitions from red to green and the percentage change exceeds the set threshold, a red to green transition signal is issued. Similarly, when a candle transitions from green to red and the percentage change exceeds the set threshold, a green to red transition signal is issued. Alerts are triggered when such transitions occur.
This indicator helps traders identify significant directional changes on the chart, enabling them to make informed decisions during financial market analysis.
Marubozu SignalsThis Pine Script code is designed to identify and plot Marubozu candlestick patterns on a trading chart. Marubozu candles are characterized by having very small or non-existent wicks (shadows) and a large body, indicating strong buying or selling pressure.
The script first calculates the body size and wick size for both red (bearish) and green (bullish) Marubozu candles. It then defines thresholds for both body and wick sizes based on a percentage of the body size. For example, a red Marubozu candle is identified if its body size is at least 90% of the calculated threshold, and both upper and lower wick sizes are smaller than 5% of the body size.
Similarly, green Marubozu candles are identified using the same logic. If a Marubozu candle of either color is detected, a corresponding label is plotted on the chart indicating the occurrence of the pattern. A "Sell" label is placed above the candle for red Marubozu patterns, while a "Buy" label is placed below the candle for green Marubozu patterns.
This script provides visual cues to traders, helping them quickly identify potential buying or selling opportunities based on Marubozu candlestick patterns. Traders can use these signals as part of their technical analysis to make informed trading decisions.
Inside Bar + Bullish and Bearish candlestick [Tarun]
Inside Bar Detection:
The function isInsideBar() checks if a bar is an inside bar, meaning its high is lower than the previous bar's high and its low is higher than the previous bar's low.
Inside bars are highlighted with an orange color.
Bearish Candlestick Patterns:
Bearish Engulfing: When the current candlestick's body completely engulfs the previous candlestick's body.
Dark Cloud Cover: When a bullish candle is followed by a bearish candle that opens above the previous bullish candle's close but closes below its midpoint.
Bearish Harami: When a small bullish candlestick is engulfed by a larger bearish candlestick.
Evening Star: A three-candle pattern consisting of a large bullish candle, a small-bodied candle with a gap up or down, and a large bearish candle that closes below the midpoint of the first candle.
Shooting Star: A single candlestick pattern with a small real body near the bottom of the price range and a long upper shadow.
Bearish Marubozu: A candlestick with a long bearish body and little to no upper or lower shadows.
Bearish candlestick patterns are highlighted with a red color and labeled with abbreviated names.
Bullish Candlestick Patterns:
Bullish Engulfing: Opposite of bearish engulfing, where the current candlestick's body completely engulfs the previous candlestick's body.
Piercing Pattern: When a bearish candle is followed by a bullish candle that opens below the previous bearish candle's low but closes above its midpoint.
Bullish Harami: Similar to bearish harami but bullish, where a small bearish candlestick is engulfed by a larger bullish candlestick.
Morning Star: A three-candle pattern opposite to the evening star, signaling a potential reversal from downtrend to uptrend.
Bullish Hammer: A single candlestick pattern with a small real body near the top of the price range and a long lower shadow.
Bullish Marubozu: A candlestick with a long bullish body and little to no upper or lower shadows.
Bullish candlestick patterns are highlighted with a purple color and labeled with abbreviated names.
Multi-TimeFrame Support and Resistance w/ Strength RatingMulti-TimeFrame Support and Resistance w/ Strength Rating
Short Description:
This indicator identifies key support and resistance levels on your chart and rates their significance based on a unique strength rating system. By analyzing price action across multiple timeframes, it helps you make informed trading decisions and understand the market structure more effectively.
Key Features:
Multi-Timeframe Analysis: The indicator can display support and resistance levels from up to three different timeframes simultaneously. This allows you to see the bigger picture and understand how levels from different timeframes interact with each other.
Strength Rating: Each support and resistance level is assigned a strength rating from 1 to 10, with 10 being the strongest. The strength rating is determined by the indicator's proprietary algorithm, which takes into account factors such as the number of times a level has been tested, the volume profile around the level, and the overall market context.
Customizable Display: You can choose how many levels above and below the current price you want to see on your chart. This helps to declutter your chart and focus on the most relevant levels. Additionally, you can opt to display the strength rating and the timeframe for each level.
Alerts: The indicator can send you alerts when the price closes above or below a key support or resistance level. This can help you stay on top of important market moves even when you're not actively watching the charts.
How to Use:
Add the indicator to your chart and customize the settings to your preference. You can choose which timeframes to display, the minimum strength rating for levels to be shown, and the number of levels above and below the current price.
Use the support and resistance levels identified by the indicator to make informed trading decisions. For example, you can look for long entries near strong support levels or short entries near strong resistance levels.
Pay attention to the strength rating of each level. Levels with higher strength ratings are more likely to hold and can be given more weight in your analysis.
Use the multi-timeframe analysis to understand the bigger picture. Levels that are significant across multiple timeframes are often more important than those that only appear on one timeframe.
Enable alerts to stay informed about important market moves. When the price closes above or below a key level, it can signal a potential trend change or breakout.
By using this Support and Resistance Levels with Strength Rating indicator, you can gain a deeper understanding of the market structure and make more informed trading decisions. The multi-timeframe analysis and strength rating system provide a unique perspective on the significance of each level, helping you to focus on the most important areas of support and resistance.
TRN BarsThe innovative TRN Bars are designed to help traders to analyze markets in an intuitive way. It combines three core concepts:
TRN Bars to see the current trend and reversals (replaces the default chart bars)
Bar Ranges to highlight consolidations
Dynamic Trend to see the overall trend.
First, let's have a look at each of these concepts individually. Afterwards, we describe how a combination of all three gives you a crystal-clear picture of the market.
TRN Bars
They show bullish and bearish trends and reversals based on color coding the bars and give high probability trade opportunities with special colors. The trend analysis is based on a new algorithm that includes several different inputs:
classical and advanced bar patterns and their statistical frequency
probability distributions of price expansions after certain bar patterns
bar information such as wick length in %, overlapping of the previous bar in % and many more
historical trend and consolidation analysis
The algorithm weighs these concepts and outputs a color scheme for the chart bars or candlesticks.
Bar Types
Trend bars in green and red
Reversal Bars in blue and fuchsia
Continuation Bars in turquoise and orange
Breakout Bars in dark green and pink
Green Bars signify a sustained uptrend, indicating bullish market sentiment. On the other hand, Red Bars indicate a persistent downtrend, representing bearish market sentiment. The transition from red to green denotes a bullish trend reversal, suggesting a shift from bearish to bullish sentiment. Conversely, the shift from green to red signals a bearish trend reversal, indicating a transition from bullish to bearish sentiment. By monitoring these color changes, traders can identify potential trend reversals and make informed trading decisions.
The presence of gray and black bars indicates a neutral market state, often observed before an impending color change from red to green or green to red. These neutral bars serve as a transition phase between the previous trend and the potential reversal.
The TRN Bars incorporate Signal Bars, distinguished by their distinct colors, to offer potential buy and sell signals and deeper insights into market dynamics.
Reversal Bars
The presence of blue Reversal Bars indicates a trend reversal to the upside, while pink Reversal Bars indicate a reversal to the downside. These bars not only serve as signals for potential trend shifts but also present favorable opportunities to enter the market or increase one's position size.
Continuation Bars
In addition to the reversal bars, TRN Bars also include bullish continuation bars (colored turquoise) and bearish continuation bars (colored orange). These bars act as signals for the continuation of an existing trend. Like the reversal bars, they can be utilized as entry points or opportunities to augment one's position size.
Breakout Bars
The dark green breakout bars within TRN Bars show a powerful breakout from a price range detected by our integrated bar range feature. They signify the continuation or potential change in a trend following a consolidation phase. As such, these bars hold dual functionality, serving as reversal signals and validating the persistence of an ongoing trend.
Bar Ranges
The bar range feature automatically finds consolidations where the price range of several consecutives bars is rather small. The detection of the bar ranges includes among other things the overlapping percentage of these bars.
How to Use Price Ranges
Here are a few ways you can use the bar ranges in your trading:
Identify Support and Resistance Levels
The price ranges can help you identify key support and resistance levels on a chart. By observing price ranges and identifying these levels, you can make more informed decisions about entering or exiting trades.
Breakout Trading
Price ranges can also provide insights into potential breakout opportunities. Breakouts occur when the price breaks out of a defined range, signaling a potential shift in market sentiment and the start of a new trend. The Color highlighted Breakout Bars from the TRN Bars are signaling a powerful breakout of a price range. Traders can enter positions in the direction of the breakout and set appropriate stop-loss orders to manage risk. Note that not every price range is left by a powerful breakout.
Dynamic Trend
The Dynamic Trend combines elements from standard trend strength indicators (e.g. DI-, DI+, Parabolic SAR) and volatility indicators (e.g. ATR, Standard Deviation). It produces a moving average line that adapts to changing market volatility. It is inspired by the ideas of the programmer and trader Fat Tails. The adaptive behavior provides more relevant information for traders when compared to traditional moving averages which do not consider volatility and trend strength together. This makes the Dynamic Trend completely unique, and no other moving average indicator can give you this precision.
How to use Dynamic Trend
Generally, a rising Dynamic Trend line, displayed in green, indicates that an uptrend is strong, while a falling Dynamic Trend, displayed in red, suggests that the downtrend is sharp. The Dynamic Trend turns gray when there is insufficient clarity to establish a distinct trend and especially when there is not volatility in the market.
Identify potential trade entries and exits: When used in conjunction with price action, the Dynamic Trend can provide potential trade signals. For example, if the price crosses above the Dynamic Trend, it may be a bullish sign, suggesting a potential buy entry. Conversely, if the price crosses below the Dynamic Trend, it may indicate bearish conditions and a potential sell signal.
Trend Identification and Pullback trading
Observe the Dynamic Trend's color. When it's on the rise and appears green, it indicates a bullish trend. Conversely, if it's in decline and displayed in red, it signals a bearish trend.
If Dynamic Trend is green and price pulls from above back to the Dynamic Trend, then this can be considered as a bullish signal.
If Dynamic Trend is red and price pulls from below back to the Dynamic Trend, then this can be considered as a bearish signal.
In the event of a bearish signal, such as a bearish TRN Signal Bar, and the Dynamic Trend is red, it provides additional confirmation to the bearish signal. Likewise, bullish signals gain added conviction when the Dynamic Trend is green.
Crossovers
As with other moving averages, crossovers between the Dynamic Trend and the price can be significant.
If price is crossing above the Dynamic Trend, then this can be considered as a bullish signal.
If price is crossing below the Dynamic Trend, then this can be considered as a bearish signal.
If you currently hold a position, both bullish and bearish crossovers can serve as potential exit signals. For instance, in the case of a long position, a bearish crossover can indicate a potential shift in sentiment, signaling a bearish reversal and a potential opportunity to close your long position.
Filtering Noise
Due to its adaptive nature, the Dynamic Trend can be a useful tool to filter out market noise. When the market is choppy or consolidating, the Dynamic Trend tends to remain flat and colored gray, signaling traders to potentially stay out of the market.
Stop Losses
The Dynamic Trend can also be used as a dynamic stop loss. For instance, in a long trade, traders can use the Dynamic Trend as a trailing stop, selling their position if the price crosses below the Dynamic Trend.
Combining TRN Bars, Bar Ranges and Dynamic Trend together
Combining all three concepts gives you a crystal-clear picture of the market. The Dynamic Trend shows you the overall trend. If price pulls back to the dynamic trend line and then price picks up the trend direction again, then the TRN Bars immediately switch the color to the trend direction. Therefore, you can easily identify high probability entry signals based on the bar color.
As a simple trading model, you can set the stop loss below the last swing or below a TRN signal bar (vice versa for short entries) and use 2.5 R or 3 R as target.
You can increase the success rate of the high probability TRN signal bars entries even more if they are in line with the Dynamic Trend line.
On the other hand, the TRN Bar Ranges help you to stay out of the market in case the price does not really change. As a confluence signal to stay flat in this period the dynamic trend line tends to be grey as well. If the price breaks out of the range, then the TRN Bars print a breakout bar which serves as a high probability entry signal.
Although it is possible to switch off any of these concepts, it is highly recommended to use all three in combination to get a crystal-clear picture of the market.
Alerts
Experience the power of our TRN Bars Alerts, delivering real-time notifications for trend changes, price range breakouts, and signal bar formations or confirmations. Stay on top of the market with these versatile alerts, customizable to your preferred assets and timeframes.
Conclusion
While signals from TRN Bars can be informative, it is important to recognize that their reliability may vary. Various external factors can impact market prices, and it is essential to consider your risk tolerance and investment goals when executing trades.
Bullish Candlestick Patterns With Filters [TradeDots]The "Bullish Candlestick Patterns With Filters" is a trading indicator that identifies 6 core bullish candlestick patterns. This is further enhanced by applying channel indicator as filters, designed to further increase the accuracy of the recognized patterns.
6 CANDLESTICK PATTERNS
Hammer
Inverted Hammer
Bullish Engulfing
The Piercing Line
The Morning Star
The 3 White Soldiers
SIGNAL FILTERING
The indicator incorporates with 2 primary methodologies aimed at filtering out lower accuracy signals.
Firstly, it comes with a "Lowest period" parameter that examines whether the trough of the bullish candlestick configuration signifies the lowest point within a specified retrospective bar length. The longer the period, the higher the probability that the price will rebound.
Secondly, the channel indicators, the Keltner Channels or Bollinger Bands. This indicator examines whether the lowest point of the bullish candlestick pattern breaches the lower band, indicating an oversold signal. Users have the flexibility to modify the length and band multiplier, enabling them to custom-tune signal sensitivity.
Without Filtering:
With Filtering
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
MGR Inside 2The inside bar pattern is characterised by two consecutive candlesticks that often suggest a period of consolidation or indecision in the market. Traders and analysts can find value in identifying the setup as it can provide insights into potential future price movements.
Previous Candle + Inside/OutsideThe script uses the previous candle of the current timeframe to assess the state of the current candle.
1. Previous candle high/low and midpoint are displayed
2. Highlights current bar if INSIDE previous candle
3. Highlights current bar if POTENTIAL OUTSIDE bar. This condition uses the logic that if the previous high/low has been swept and price then reaches previous bar 50%, then an OUTSIDE bar is possible.
4. If current candle breaks previous high/low, a label is added to identify.
5. If above condition is true and current candle color is opposite of previous, then label is highlighted to show possible bull/bear condition.
6. If current candle live price is below previous midpoint, a BEAR label is shown
7. If current candle live price is above previous midpoint, a BULL label is shown
I personally use the indicator on Daily/Weekly/Monthly charts to help with my overall market assessment. However users may find their own use for the indicator...or modify it to their own preferences.
As ever, the indicator should only be used with live trading accounts after thorough backtesting using a large data range.
Long Bar Highlighter @shrilssThe Long Bar Highlighter is designed to detect long bars that exhibit significant price expansion beyond recent price levels. It highlights bars that exceed the length of the previous four bars, marking them for their potential importance in market movements. Additionally, the indicator plots directional shapes based on the closing prices, which helps traders visualize potential upward or downward momentum. An optional ATR crossover setting refines these signals, focusing on stronger trends for more optimal trading opportunities.
Morning and Evening Star Patterns with DivergenceMorning and Evening Star Patterns with Divergence
This indicator combines various technical signals to identify potential buy and sell opportunities in the market. It incorporates Morning Star and Evening Star candlestick patterns, along with bullish and bearish divergence signals, to help traders make informed decisions.
Features:
Morning and Evening Star Patterns: The indicator detects Morning Star patterns in downtrends and Evening Star patterns in uptrends, providing visual cues for potential reversals.
Bullish and Bearish Divergence: It highlights instances of bullish and bearish divergence between price and momentum indicators, signaling potential shifts in market direction.
Near Reversal Indication: Identifies periods where the price is close to reversing its trend, aiding in timely entry or exit decisions.
Customizable Thresholds: Users can adjust parameters such as the Money Flow Index (MFI) threshold to suit their trading preferences.
Momentum Plot: The indicator also includes a momentum plot to visualize changes in price momentum over time.
Usage:
Look for Morning Star patterns in downtrends and Evening Star patterns in uptrends as potential reversal signals.
Pay attention to bullish and bearish divergence signals for indications of weakening or strengthening market momentum.
Utilize near reversal indications to anticipate potential trend changes and adjust trading strategies accordingly.
Alerts: The indicator provides customizable alerts for Morning Star patterns, Evening Star patterns, near bullish reversals, near bearish reversals, bullish divergence, and bearish divergence, allowing traders to stay informed of significant market developments even when away from the charts.
Compatibility: Suitable for traders across all timeframes, from short-term scalpers to long-term investors, this indicator offers versatile functionality to adapt to various trading styles and preferences.
RSI and ATR Trend Reversal SL/TPQuick History:
I was frustrated with a standard fixed percent TP/SL as they often were not receptive to quick market rallies/reversals. I developed this TP/SL and eventually made it into a full fledge strategy and found it did well enough to publish. This strategy can be used as a standalone or tacked onto another strategy as a TP/SL. It does function as both with a single line. This strategy has been tested with TSLA , AAPL, NVDA, on the 15 minutes timeframe.
HOW IT WORKS:
Inputs:
Length: Simple enough, it determines the length of the RSI and ATR used.
Multiplier: This multiplies the RSI and ATR calculation, more on this later.
Delay to prevent Idealization: TradingView will use the open of the bar the strategy triggers on when calculating the backtest. This can produce unrealistic results depending on the source. If your source is open, set to 0, if anything else, set to 1.
Minimum Difference: This is essentially a traditional SL/TP, it is borderline unnecessary, but if the other parameters are wacky this can be used to ensure the SL/TP. It multiplies the source by the percent, so if it is set to 10, the SL/TP is initialized at src +- 10%.
Source input: Self Explanatory, be sure to update the Delay if you use open.
CALCULATION:
Parameters Initialization:
The strategy uses Heikinashi values for calculations, this is not toggleable in parameters, but can be easily changed by changing hclose to equal src.
FUNCTION INITIALIZATION:
highest_custom and lowest_custom do the same thing as ta.highest and ta.lowest, however the built in ta library does not allow for var int input, so I had to create my own functions to be used here. I actually developed these years ago and have used them in almost every strategy since. Feel especially free to use these in your own scripts.
The rsilev is where the magic happens.
SL/TP min/max are initially calculated to be used later.
Then we begin by establishing variables.
BullGuy is used to determine the length since the last crossup or crossdown, until one happens, it returns na, breaking the function. BearGuy is used in all the calculations, and is the same as BullGuy, unless BullGuy is na, where BearGuy counts up from 1 on each bar from 0.
We create our rsi and have to modify the second one to suit the function. In the case of the upper band, we mirror the lower one. So if the RSI is 80, we want it to be 20 on the upper band.
the upper band and lower band are calculated the exact same way, but mirrored. For the purpose of writing, I'm going to talk about the lower band. Assume everything is mirrored for the upper one. It finds the highest source since the last crossup or crossdown. It then multiplies from 1 / the RSI, this means that a rapid RSI increase will increase the band dramatically, so it is able to capture quick rally/reversals. We add this to the atr to source ratio, as the general volatility is a massive factor to be included. We then multiply this number by our chosen amount, and subtract it from the highest source, creating the band.
We do this same process but mirrored with both bands and compared it to the source. If the source is above the lower band, it suggests an uptrend, so the lower band is outputted, and vice versa for the upper one.
PLOTTING:
We also determine the line color in the same manner as we do the trend direction.
STRATEGY:
We then use the source again, and if it crosses up or down relative to the selected band, we enter a long or short respectively.
This may not be the most superb independent strategy, but it can be very useful as a TP/SL for your chosen entry conditions, especially in volatile markets or tickers.
Thank you for taking the time to read, and please enjoy.
STRATEGY 7 CERBERO STUDY [ SCRIPTS INVERSIONES ]USE:
ADXCONFIG:
Purpose: Select the range for the strength required in the ADX for our alert condition. This setting allows traders to define the threshold at which the ADX indicates sufficient market momentum for trading decisions.
USETRENDLOGIC:
Function: Utilizes the trend EMA to make long entries when the price is above and short entries when it is below the EMA. This provides a simple, clear rule based on the relative position of the price to the EMA, facilitating trend-following strategies.
SELECT A VALUE FOR EMA:
Description: Choose the range for the EMA, and the alert conditions will be applied depending on whether the price is above or below when USETRENDLOGIC is activated. This allows for flexibility in setting the sensitivity of the EMA to price movements.
ACTIVATE/DEACTIVATE EMA 35 AND EMA 50:
Usage: These EMAs are used to determine the trend in shorter periods of time, providing traders with quick insights into market dynamics and potential trend shifts.
LOGIC 1:
ENABLE/DEACTIVATE STRATEGY 1/1:
Conditions: If the 1/1 strategy is activated, it will use the following setup:
Volume entry + EMA condition + BREAK
ADX > ADXCONF
DMI+/DMI- higher depending on the trend
Explanation: This strategy combines volume analysis with EMA and trend indicators to identify strong, actionable trading signals.
This image shows its use.
LOGIC 2:
ENABLE/DEACTIVATE STRATEGY 1/2:
Conditions: If the 1/2 strategy is activated, it utilizes:
Volume entry + EMA condition + BREAK
Purpose: Focuses on significant breaks in EMA levels with accompanying high volume, suggesting a strong momentum-backed entry point.
This image shows its use.
LOGIC 3:
ENABLE/DEACTIVATE STRATEGY 1/3:
Conditions: If the 1/3 strategy is activated, it involves:
Volume entry + EMA condition
RSI
ADX > ADXCONF and DMI+/DMI- higher depending on the trend
Utility: Combines volume, EMA, and RSI indicators with ADX strength to filter entries during extreme market conditions, enhancing the probability of capturing significant moves.
This image shows its use.
LOGIC 4:
ENABLE/DEACTIVATE STRATEGY 1/4:
Conditions: If the 1/4 strategy is activated, it incorporates:
Volume entry + EMA condition
RSI ABOVE/BELOW your EMA
Application: This strategy uses RSI levels in relation to an EMA to fine-tune entry points, helping to confirm momentum before entering trades.
This image shows its use.
LOGIC 5:
ENABLE/DEACTIVATE STRATEGY 1/5:
Conditions: If the 1/5 strategy is activated, it utilizes:
Volume entry + EMA condition
Function: A straightforward strategy that uses volume and EMA conditions to identify primary entry points, focusing on the basic elements of trend and momentum.
This image shows its use.
POI LOGIC (Point of Interest)
Activate/Deactivate 2/1 POI Strategy
When the 2/1 POI strategy is activated, it employs the following conditions to determine market entries:
Volume Entry + EMA Condition + POI TOUCHED + ADX > ADXCONF and DMI+/DMI- higher depending on the trend:
Volume Entry: Looks for significant volume as confirmation that there is enough interest at the current price level.
EMA Condition: A specific condition regarding the Exponential Moving Average (EMA) must be met, such as the price being above or below the EMA, depending on the anticipated direction of price movement.
POI Touched: The price must have touched a previously identified Point of Interest, indicating a level where the price has reacted before.
ADX > ADXCONF: The Average Directional Movement Index (ADX) must be greater than a set value (ADXCONF), indicating sufficient trend strength.
DMI+/DMI- higher depending on the trend: The Directional Movement Indicator Plus (DMI+) or Minus (DMI-) needs to be higher, depending on whether the trend is bullish or bearish, respectively.
This strategy is designed to capitalize on price levels where the market has shown previous reactions, using a combination of technical analysis and volume to confirm entry signals.
This image shows its use.
DIVERGENCE LOGIC
Activate/Deactivate Divergence Strategy
When the divergence strategy is activated, it employs the following conditions for making trading decisions:
Volume Entry + Divergence: This condition indicates that a market entry should be considered when there is a divergence between the price and a technical indicator (such as RSI, MACD, etc.), accompanied by significant volume.
Divergence occurs when the price of an asset moves in the opposite direction of the technical indicator, which may suggest a potential reversal in market trends. Volume plays a crucial role here, as high volume during a divergence can confirm the strength of the potential trend reversal.
This strategy aims to capitalize on moments when the market shows signs of exhaustion in a trend and is potentially gearing up to reverse, making divergences a key component in anticipating significant movements.
This image shows its use.
FOREX LOGIC
Activate/Deactivate FOREX Strategy
When the Forex strategy is activated, it uses the following conditions to execute trades:
Volume Entry + DI+ > DI- for long entries: This condition means that to consider a long position (buy), the Positive Directional Indicator (DI+) must be greater than the Negative Directional Indicator (DI-). This suggests that the market trend is moving upward, supported by sufficient trading volume backing this direction.
DI- > DI+ for short entries: For short entries (sells), the required condition is that the DI- (Negative Directional Indicator) is greater than the DI+ (Positive Directional Indicator). This indicates that the market trend is downward and that there is adequate volume confirming this bearish trend.
These conditions ensure that market entries are made with a clear confirmation of market direction based on volume and directional movement, which is crucial for increasing the probabilities of successful Forex trades.
This image shows its use.
ICT STUDY
Activate/Deactivate Strategy ICT
USAGE:
We use all these components in our indicator to provide comprehensive and effective control when trading using the ICT (Inner Circle Trader) methodology. Each element aids in visualizing and anticipating market movements more accurately, facilitating informed and strategic decision-making.
POI (Point of Interest): Used to identify critical points where the market has shown significant past activity, offering clues on potential future price reactions.
Imbalances: Crucial for spotting areas where supply or demand has been lacking, suggesting potential entry or exit points based on trend reversal or continuation.
ZigZag: Helps to eliminate market noise, allowing for clear identification of significant highs and lows, vital for trend analysis and reversal.
Supports and Resistances: Fundamental in determining price levels at which the market might stop or reverse, essential for any trading strategy.
Fibonacci: Utilized to find support and resistance levels based on mathematical proportions that naturally occur in markets, informing potential areas of interest.
Inducement: We observe these patterns to identify moments when price manipulations might be occurring, helping to avoid traps and enhance entries.
Sweep: Analyzed to understand how and where major market players are clearing accumulated orders, which can indicate significant price movements.
CHOCH (Change of Character): Used to detect a shift in price behavior, which may signal a reversal or trend change.
BOS (Break of Structure): Key for detecting when the price breaks through significant structures, suggesting changes in market direction.
Forecasting Length: Determines how far the price may reach into the future based on current analysis, crucial for planning long-term trades.
This image shows its use.
IF USE TP AND SL
Inside Bar by TarunInside bars occur when the current bar's high is lower than the previous bar's high and the current bar's low is higher than the previous bar's low. The script changes the color of inside bars to orange for better visualization.
TDP 2Title: Enhanced Candlestick Pattern Identifier with Body Ratio Analysis
Description:
This Pine Script, titled "Enhanced Candlestick Pattern Identifier with Body Ratio Analysis," is designed to aid traders in visualizing key candlestick formations that have significant implications for trend reversals and continuations. It uses the body ratio of candles to identify strong directional movements, enhancing decision-making processes in trading strategies.
Key Features:
Body Ratio Calculation: The script calculates the body ratio of each candle, which is the proportion of the candle's body to its total range. This helps in distinguishing between candles that show decisive market movements versus those with indecision.
Bullish Candle Identification: Identifies bullish candles where the close is greater than the open and the body constitutes at least 55% of the total candle range, indicating strong buying pressure.
Bearish Candle Identification: Flags bearish candles where the open is above the close with a body ratio of 55% or more, highlighting strong selling pressure.
Comparative Analysis: The script not only identifies bearish candles but also categorizes them based on whether they close below the lowest point of the last qualifying bullish candle, offering insights into potential breakdowns or supports.
Visual Markers: Uses distinct shapes and colors to mark each type of candle directly on the chart, making it easy to spot these patterns in real-time trading scenarios.
Utility:
This tool is invaluable for traders who utilize technical analysis to make informed decisions. By providing clear visual cues about significant bullish and bearish candlestick formations, the script facilitates quick interpretations of potential market moves, helping traders to capitalize on trends or protect against losses from reversals.
How to Use:
Simply add this script to your chart, and it will automatically highlight the qualifying candles. Green labels indicate strong bullish candles, red labels signify bearish candles closing below the last bullish candle's low, and orange labels show bearish candles that do not close below the bullish low.
Ideal for use in various markets including forex, equities, and commodities, this script is a must-have tool for both novice and experienced traders aiming to enhance their trading strategy with detailed candlestick pattern analysis.
Market Structure RSIDescription:
The Market Structure RSI is an innovative indicator that combines the power of the Relative Strength Index (RSI) with market structure analysis to provide a unique perspective on the market. This indicator helps traders identify potential trend reversals and trading opportunities by analyzing the underlying market structure and generating overbought and oversold signals.
Key Features:
RSI Calculation: The indicator calculates a custom RSI based on the market structure, taking into account the formation of higher highs and lower lows. This unique approach to RSI calculation provides a more accurate representation of the market's strength and weakness.
Overbought and Oversold Levels: Users can customize the overbought and oversold levels according to their preferences. When the Market Structure RSI crosses above the oversold level, it generates a bullish signal, suggesting a potential long entry. Conversely, when the RSI crosses below the overbought level, it generates a bearish signal, indicating a potential short entry.
Moving Average: The indicator includes an optional moving average of the Market Structure RSI, which can be used to smooth out the RSI line and provide additional confirmation of trend reversals. Users can choose between EMA, SMA, and WMA and adjust the length of the moving average.
Customizable Close Type: The indicator allows users to define whether the market structure is deemed broken based on the candle close or the candle high/low. This flexibility enables traders to adapt the indicator to their preferred trading style and market conditions.
Visual Enhancements: The Market Structure RSI features gradient fills between the RSI line and the overbought/oversold levels, providing a clear visual representation of the market's strength. Additionally, the indicator plots bullish and bearish signals as circles on the RSI line, making it easy to identify potential entry points.
How to Use:
Add the Market Structure RSI to your chart and customize the settings according to your preferences, such as the RSI length, overbought and oversold levels, and moving average type and length.
Monitor the Market Structure RSI for crossovers above the oversold level or below the overbought level. A bullish signal occurs when the RSI crosses above the oversold level, while a bearish signal occurs when the RSI crosses below the overbought level.
Use the signals generated by the Market Structure RSI in conjunction with other technical analysis tools and price action patterns to confirm potential trade entries. The indicator works well as a complementary tool to support your existing trading strategy.
Consider the overall trend and market context when interpreting the signals generated by the Market Structure RSI. The indicator is most effective in trending markets and may produce less reliable signals in choppy or ranging market conditions.
Utilize sound risk management principles, such as setting appropriate stop-loss and take-profit levels, when trading based on the Market Structure RSI signals.
The Market Structure RSI offers a fresh perspective on the classic RSI indicator by incorporating market structure analysis. By combining the power of RSI with the identification of higher highs and lower lows, this indicator provides traders with a valuable tool for identifying potential trend reversals and trading opportunities. Whether you are a seasoned trader or just starting out, the Market Structure RSI can be a valuable addition to your technical analysis toolkit.
Calculus Free Trend Strategy for Crypto & StocksObjective :
The Correlation Channel Trading Strategy is designed to identify potential entry points based on the relationship between price movements and a correlation channel. The strategy aims to capture trends within the channel while managing risk effectively.
Parameters :
Length: Determines the period for calculating moving averages and the true range, influencing the sensitivity of the strategy to price movements.
Multiplier: Adjusts the width of the correlation channel, providing flexibility to adapt to different market conditions.
Inputs :
Asset Symbol: Allows users to specify the financial instrument for analysis.
Timeframe: Defines the timeframe for data aggregation, enabling customization based on trading preferences.
Plot Correlation Channel: Optional input to visualize the correlation channel on the price chart.
Methodology :
Data Acquisition: The strategy fetches OHLC (Open, High, Low, Close) data for the specified asset and timeframe. In this case we use COINBASE:BTCUSD
Calculation of Correlation Channel: It computes the squared values for OHLC data, calculates the average value (x), and then calculates the square root of x to derive the source value. Additionally, it calculates the True Range as the difference between high and low prices.
Moving Averages: The strategy calculates moving averages (MA) for the source value and the True Range, which form the basis for defining the correlation channel.
Upper and Lower Bands: Using the MA and True Range, the strategy computes upper and lower bands of the correlation channel, with the width determined by the multiplier.
Entry Conditions: Long positions are initiated when the price crosses above the upper band, signaling potential overbought conditions. Short positions are initiated when the price crosses below the lower band, indicating potential oversold conditions.
Exit Conditions: Stop-loss mechanisms are incorporated directly into the entry conditions to manage risk. Long positions are exited if the price falls below a predefined stop-loss level, while short positions are exited if the price rises above the stop-loss level.
Strategy Approach: The strategy aims to capitalize on trends within the correlation channel, leveraging systematic entry signals while actively managing risk through stop-loss orders.
Backtest Details : For the purpose of this test I used the entire data available for BTCUSD Coinbase, with 10% of capital allocation and 0.1% comission for entry/exit(0.2% total). Can be also used with other both directly correlated with current settings of BTC or with new ones
Advantages :
Provides a systematic approach to trading based on quantifiable criteria.
Offers flexibility through customizable parameters to adapt to various market conditions.
Integrates risk management through predefined stop-loss mechanisms.
Limitations :
Relies on historical price data and technical indicators, which may not always accurately predict future price movements.
May generate false signals during periods of low volatility or erratic price behavior.
Requires continuous monitoring and adjustment of parameters to maintain effectiveness.
Conclusion :
The Correlation Channel Trading Strategy offers traders a structured framework for identifying potential entry points within a defined price channel. By leveraging moving averages and true range calculations, the strategy aims to capture trends while minimizing risk through stop-loss mechanisms. While no strategy can guarantee success in all market conditions, the Correlation Channel Trading Strategy provides a systematic approach to trading that can enhance decision-making and risk management for traders.
ORB Heikin Ashi SPY 5min Correlation StrategyOverview:
The ORB (Opening Range Breakout) strategy combined with Heikin Ashi candles and Relative Volume (RVOL) indicator aims to capitalize on significant price movements that occur shortly after the market opens. This strategy identifies breakouts above or below the opening range, using Heikin Ashi candles for smoother price visualization and RVOL to gauge the strength of the breakout.
Components:
Opening Range Breakout (ORB): The strategy starts by defining the opening range, typically the first few minutes of the trading session. It then identifies breakouts above the high or below the low of this range as potential entry points.
Heikin Ashi Candles: Heikin Ashi candles are used to provide a smoother representation of price movements compared to traditional candlesticks. By averaging open, close, high, and low prices of the previous candle, Heikin Ashi candles reduce noise and highlight trends more effectively.
Relative Volume (RVOL): RVOL compares the current volume of a stock to its average volume over a specified period. It helps traders identify abnormal trading activity, which can signal potential price movements.
Candle for correlation : In this case we are using SPY candles. It can also use different asset
Strategy Execution:
Initialization: The strategy initializes by setting up variables and parameters, including the ORB period, session timings, and Heikin Ashi candle settings.
ORB Calculation: It calculates the opening range by identifying the high and low prices during the specified session time. These values serve as the initial reference points for potential breakouts. For this we are looking for the first 30 min of the US opening session.
After that we are going to use the next 2 hours to check for breakout opportunities.
Heikin Ashi Transformation: Optionally, the strategy transforms traditional candlestick data into Heikin Ashi format for smoother visualization and trend identification.
Breakout Identification: It continuously monitors price movements within the session and checks if the current high breaches the ORB high or if the current low breaches the ORB low. These events trigger potential long or short entry signals, respectively.
RVOL Analysis: Simultaneously, the strategy evaluates the relative volume of the asset to gauge the strength of the breakout. A surge in volume accompanying the breakout confirms the validity of the signal. In this case we are looking for at least a 1 value of the division between currentVolume and pastVolume
Entry and Exit Conditions: When a breakout occurs and is confirmed by RVOL and is within our session time, the strategy enters a long or short position accordingly. It does not have a stop loss or a takie profit level, instead it will always exit at the end of the trading session, 5 minutes before
Position Sizing and Commissions: For the purpose of this backtest, the strategy allocated 10% of the capital for each trade and assumes a trading commission of 0.01$ per share ( twice the IBKR broker values)
Session End: At the end of the trading session, the strategy closes all open positions to avoid overnight exposure.
Conclusion:
The combination of ORB breakout strategy, Heikin Ashi candles, and RVOL provides traders with a robust framework for identifying and capitalizing on early trends in the market. By leveraging these technical indicators together, traders can make more informed decisions and improve the overall performance of their trading strategies. However, like any trading strategy, it's essential to backtest thoroughly and adapt the strategy to different market conditions to ensure its effectiveness over time.
sVPSA - standardized Volume Price Spread AnalysisDear Analysts and Traders,
I want to introduce my new indicator - sVPSA - standardized Volume Price Spread Analysis. For me, this script is helpfully in Technical Analysis mainly with Wyckoff and VSA methodologies. Maybe You are in circle of people who used my previous script - normalized Volume Price Spread Analysis. I work with him a lot of time, but I come to a conclusion that I can do better...
Theory concept...
What is a big volume? How big was this spread? It was extreme high or just high? How to do an answer for this and a lot other questions related to this subject? My thoughts was directed to statistics. In my first script I used to x/max normalized data. It was good, but susceptible for high deviation events. So, I choose standardization method with smaller sensitivity on violent events - z-Score standardization Description of z-Score formula:
Z = (x-mean)/standard deviation
Probability of event are descriptive by probability density function - The Normal Distribution.
en.wikipedia.org
en.Wikipedia.org
This is base of script methodology, let’s go deeper in indicator.
X axis is time, date. Y axis is standard deviation. Narrow bar represent price spread, wide one is volume. Colors are corresponding to deviation, blue < sigma, green > sigma, red > 2*sigma and fuchsia > 3*sigma. Appearance is full editable.
Data collection starts from left to right. There is two possibilities to use, constans number of bars or visible data range, also indicator permit to overscore linear regression from data. There is a possibility to set an alert.
Short introduction how put an interpretation on visualized data.
For this example I used constans value of data collection, 52 bars. So, from left I see great, fuchsia volume bar with low spread. This record respond Celsius withdrawals pause. This is bar with the biggest volume on presented chart, more than four sigmas. Spread value is near one sigma. I should consider this via one of Wyckoffs laws - effort vs result. I see a three bars in turn, they tenor tells me that bear market is possible near end. Accumulation structure near new year, spring test and bullish momentum bar near march are approval of this idea. Next high spread bars have volume near mean value. Effort is low but result is great. Interesting is last bar, with -2,8 deviation of volume. I see the lowest volume value on chart, so he’s deviation is strong to negative side. This script require a little of practise and can be a potent tool in Technical Analysis.
If You have a concept how to improve my script or You experience bug, please, send me feedback.
I hope that You consider my work as useful.
I wish You great trades and faultless analysis.
CatTheTrader
ICT Silver Bullet | Flux Charts💎 GENERAL OVERVIEW
Introducing our new ICT Silver Bullet Indicator! This indicator is built around the ICT's "Silver Bullet" strategy. The strategy has 5 steps for execution and works best in 1-5 min timeframes. For more information about the process, check the "HOW DOES IT WORK" section.
Features of the new ICT Silver Bullet Indicator :
Implementation of ICT's Silver Bullet Strategy
Customizable Execution Settings
2 NY Sessions & London Session
Customizable Backtesting Dashboard
Alerts for Buy, Sell, TP & SL Signals
📌 HOW DOES IT WORK ?
ICT's Silver Bullet strategy has 5 steps :
1. Mark your market sessions open (This indicator has 3 -> NY 10-11, NY 14-15, LDN 03-04)
2. Mark the swing liquidity points
3. Wait for market to take down one liquidity side
4. Look for a market structure-shift for reversals
5. Wait for a FVG for execution
This indicator follows these steps and inform you step by step by plotting them in your chart. You can switch execution types between FVG and MSS.
🚩UNIQUENESS
This indicator is an all-in-one suit for the ICT's Silver Bullet concept. It's capable of plotting the strategy, giving signals, a backtesting dashboard and alerts feature. It's designed for simplyfing a rather complex strategy, helping you to execute it with clean signals. The backtesting dashboard allows you to see how your settings perform in the current ticker. You can also set up alerts to get informed when the strategy is executable for different tickers.
⚙️SETTINGS
1. General Configuration
Execution Type -> FVG execution type will require a FVG to take an entry, while the MSS setting will take an entry as soon as it detects a market structure-shift.
MSS Swing Length -> The swing length when finding liquidity zones for market structure-shift detection.
Breakout Method -> If "Wick" is selected, a bar wick will be enough to confirm a market structure-shift. If "Close" is selected, the bar must close above / below the liquidity zone to confirm a market structure-shift.
FVG Detection -> "Same Type" means that all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). "All" means that bar types may vary between bullish / bearish.
FVG Detection Sensitivity -> You can turn this setting on and off. If it's off, any 3 consecutive bullish / bearish bars will be calculated as FVGs. If it's on, the size of FVGs will be filtered by the selected sensitivity. Lower settings mean less but larger FVGs.
2. TP / SL
TP / SL Method -> If "Fixed" is selected, you can adjust the TP / SL ratios from the settings below. If "Dynamic" is selected, the TP / SL zones will be auto-determined by the algorithm.
Risk -> The risk you're willing to take if "Dynamic" TP / SL Method is selected. Higher risk usually means a better winrate at the cost of losing more if the strategy fails.
Close Position @ Session End -> If this setting is enabled, the current position (if any) will be closed at the beginning of a new session, regardless if it hit the TP / SL zone. If it's off, the position will be open until it hits a TP / SL zone.