Price Action StrategyThe **Price Action Strategy** is a tool designed to capture potential market reversals by utilizing classic reversal candlestick patterns such as Hammer, Shooting Star, Doji, and Pin Bar near dinamic support and resistance levels.
***Note to moderators
- The moving average was removed from the strategy because it was not suitable for the strategy and not participating in the entry or exit criteria.
- The moving average length has been replaced/renamed by the support/resistance lenght.
- The bullish engulfing and bearish engulfing patterns were also removed because in practice they were not working as entry criteria, since the candle price invariably closes far from the support/resistance level even considering the sensitivity range. There was no change in the backtest results after removing these patterns.
### Key Elements of the Strategy
1. Support and Resistance Levels
- Support and resistance are pivotal price levels where the asset has previously struggled to move lower (support) or higher (resistance). These levels act as psychological barriers where buying interest (at support) or selling interest (at resistance) often increases, potentially causing price reversals.
- In this strategy, support is calculated as the lowest low and resistance as the highest high over a 16-period length. When the price nears these levels, it indicates possible zones for a reversal, and the strategy looks for specific candlestick patterns to confirm an entry.
2. Candlestick Patterns
- This strategy uses classic reversal patterns, including:
- **Hammer**: Indicates a buy signal, suggesting rejection of lower prices.
- **Shooting Star**: Suggests a sell signal, showing rejection of higher prices.
- **Doji**: Reflects indecision and potential reversal.
- **Pin Bar**: Represents price rejection with a long shadow, often signaling a reversal.
By combining these reversal patterns with the proximity to dinamic support or resistance levels, the strategy aims to capture potential reversal movements.
3. Sensitivity Level
- The sensitivity parameter adjusts the acceptable range (Default 0.018 = 1.8%) around support and resistance levels within which reversal patterns can trigger trades (i.e. the closing price of the candle must occur within the specified range defined by the sensitivity parameter). A higher sensitivity value expands this range, potentially leading to less accurate signals, as it may allow for more false positives.
4. Entry Criteria
- **Buy (Long)**: A Hammer, Doji, or Pin Bar pattern near support.
- **Sell (Short)**: A Shooting Star, Doji, or Pin Bar near resistance.
5. Exit criteria
- Take profit = 9.5%
- Stop loss = 16%
6. No Repainting
- The Price Action Strategy is not subject to repainting.
7. Position Sizing by Equity and risk management
- This strategy has a default configuration to operate with 35% of the equity. The stop loss is set to 16% from the entry price. This way, the strategy is putting at risk about 16% of 35% of equity, that is, around 5.6% of equity for each trade. The percentage of equity and stop loss can be adjusted by the user according to their risk management.
8. Backtest results
- This strategy was subjected to deep backtest and operations in replay mode on **1000000MOGUSDT.P**, with the inclusion of transaction fees at 0.12% and slipagge of 5 ticks, and the past results have shown consistent profitability. Past results are no guarantee of future results. The strategy's backtest results may even be due to overfitting with past data.
9. Chart Visualization
- Support and resistance levels are displayed as green (support) and red (resistance) lines.
- Only the candlestick pattern that generated the entry signal to triger the trade is identified and labeled on the chart. During the operation, the occurrence of new Doji, Pin Bar, Hammer and Shooting Star patterns will not be demonstrated on the chart, since the exit criteria are based on percentage take profit and stop loss.
Doji:
Pin Bar and Doji
Shooting Star and Doji
Hammer
10. Default settings
Chart timeframe: 20 min
Moving average lenght: 16
Sensitivity: 0.018
Stop loss (%): 16
Take Profit (%): 9.5
BYBIT:1000000MOGUSDT.P
Доджи
Wick/Tail Candle MeasurementsThis indicator runs on trading view. It was programmed with pine script v5.
Once the indicator is running you can scroll your chart to any year or date on the chart, then for the input select the date your interested in knowing the length of the tails and wicks from a bar and their lengths are measured in points.
To move the measurement, you can select the vertical bar built into the indicator AFTER clicking the green label and moving it around using the vertical bar *only*. You must click the vertical bar in the middle of the label to move the indicator calculation to another bar. You can also just select the date using the input as mentioned. This indicator calculates just one bar at a time.
measurements are from bar OPEN to bar HIGH for measured WICKS regardless of the bar being long or short and from bar OPEN to bar LOW for measured TAILS also regardless of the bar being long or short.
This indicator calculates tails and wicks including the bar body in the calculations. Basically showing you how much the market moved in a certain direction for the entire duration of that Doji candle.
Its designed to measure completed bars on the daily futures charts. (Dow Jones, ES&P500, Nasdaq, Russell 2000, etc) Although it may work well on other markets. The indicator could easily be tweaked in order to work well with other markets. It is not designed for forex markets currently.
Morning & Evening Star Pro (Candle Pattern)Hello Traders!
The Morning & Evening Star Pro indicator often catches the absolute top or bottom of a move and is a reliable reversal indicator. It also provides excellent entries in a strong trending market. For example, in an uptrend you can use a morning star as a pullback entry signal.
The indicator is an advanced tool for identifying powerful reversal patterns in the market. It combines traditional candlestick analysis with modern technical indicators to provide traders with high-probability entry and exit signals.
Key features:
Accurate pattern detection:
Utilizes sophisticated algorithms to identify genuine Morning Star and Evening Star patterns, filtering out false signals.
Trend filter:
Incorporates a customizable Simple Moving Average (SMA) to align signals with the overall market trend, enhancing trade quality.
Volatility awareness:
Integrates Average True Range (ATR) calculations to ensure detected patterns are significant relative to recent price action.
Visual clarity:
Highlights Morning Star and Evening Star patterns with customizable colors and shapes, making them easy to spot on the chart.
Flexible customization:
Offers a wide range of user inputs to tailor the indicator to various trading styles and preferences.
Filtered signal display:
Option to show filtered-out signals, providing insight into the indicator's decision-making process.
Morning Star
Is a bearish reversal (or continuation) pattern consisting of three candles:
A large bearish candle
A small-bodied candle like a Doji or Pin bar
A bullish candle
Evening Star
Is a bullish reversal (or continuation) pattern consisting of three candles:
A large bullish candle
A small-bodied candle like a Doji or Pin bar
A bearish candle
Key differences in this implementation
The middle candle can be either a Doji or a Pin bar, expanding the traditional definition.
The second candle can be a Pin bar, and the third candle can be an outside bar reversal, allowing for more flexibility in pattern recognition.
What makes this indicator unique
Comprehensive pattern analysis:
Goes beyond simple price action by considering multiple factors such as candle body ratios, wick lengths, and relative positions to previous candles.
Adaptive to market conditions:
Uses dynamic thresholds based on recent volatility (ATR) to adjust pattern detection criteria.
Educational value:
The option to display filtered signals helps traders understand why some patterns are rejected, aiding in skill development.
How to Trade with this Indicator:
This indicator often catches the absolute top or bottom of a move and is a reliable reversal indicator. It also provides excellent entries in a trending market. For example, in a strong uptrend you can use morning star signals to enter in a pullback.
Bullish Opportunities:
Look for Morning Star patterns (aqua-colored candles and labels) as potential buy signals.
Bearish Opportunities:
Watch for Evening Star patterns (orange-colored candles and labels) as potential sell signals.
Entry: At next bar open (after the aqua-colored candle for bullish or orange-colored candle for bearish completes)
Stop loss: 2 ticks below/above the pattern's low/high.
Stop loss alternative: If the colored candle is a very strong candle (e.g. for morning star a candle with almost no down wick and a close near the top) the stop goes 2 ticks below/above the colored candle.
Take profit: 3R or use a trailing stop.
Trend Alignment:
For conservative trading, only take trades in the direction of the overall trend as indicated by the SMA.
Note: if you want to see candle coloring of the morning and evening star, you must put the indicator to the top of the object tree.
Linear Regression Channel [GOODY]Linear Regression Channel
The Linear Regression Channel indicator is a versatile tool for traders, providing valuable insights into price trends and potential reversal points. It plots two linear regression channels on the chart, helping you visualize price dynamics and make informed trading decisions.
Indicator Features and Settings
General Settings:
• Source: The price source used for channel calculations. Typically, the close price is used.
1st Channel Settings:
• Length: The number of bars used to calculate the linear regression channel. Increasing this value widens the channel and makes it less responsive to recent price changes.
• Upper Deviation Multiplier: Multiplier for the upper deviation from the regression line. Higher values widen the upper boundary.
• Lower Deviation Multiplier: Multiplier for the lower deviation from the regression line. Higher values widen the lower boundary.
• Show Channel Lines: Toggle to show or hide the channel lines, useful for visualizing channel boundaries.
• Show Channel Background: Toggle to show or hide the background color between the channel lines, highlighting the area covered by the channel.
• Show Labels: Toggle to show or hide price level labels for the channel lines, helping to identify exact price levels at the boundaries.
• Upper Label Color: Color for the upper price level label.
• Lower Label Color: Color for the lower price level label.
• Label Offset: Offset for the price level labels, adjusting them horizontally.
1st Channel Display Settings:
• Extend Lines Left: Extend the regression channel lines to the left of the chart, visualizing historical performance.
• Extend Lines Right: Extend the regression channel lines to the right of the chart, anticipating future price movements.
1st Channel Style Settings:
• Upper 1st Channel Line Color: Color for the upper line of the first channel.
• Lower 1st Channel Line Color: Color for the lower line of the first channel.
• Upper Channel Color: Color for the upper channel area, filling the area between the upper channel line and the midline.
• Lower Channel Color: Color for the lower channel area, filling the area between the lower channel line and the midline.
• Baseline Color (DownTrend): Color of the baseline during a downtrend.
• Baseline Color (Up Trend): Color of the baseline during an uptrend.
2nd Channel Settings:
• Length for 2nd Channel: The number of bars used to calculate the second linear regression channel.
• Upper Deviation Multiplier for 2nd Channel: Multiplier for the upper deviation from the regression line in the second channel.
• Lower Deviation Multiplier for 2nd Channel: Multiplier for the lower deviation from the regression line in the second channel.
2nd Channel Display Settings:
• Show 2nd Channel Lines: Toggle to show or hide the second channel lines, useful for visualizing channel boundaries.
• Show 2nd Channel Background: Toggle to show or hide the background color between the second channel lines, highlighting the area covered by the second channel.
2nd Channel Style Settings:
• Upper 2nd Channel Color: Color for the upper line of the second channel.
• Lower 2nd Channel Color: Color for the lower line of the second channel.
• Baseline Color for 2nd Channel (Up Trend): Color of the baseline during an uptrend in the second channel.
• Baseline Color for 2nd Channel (Down Trend): Color of the baseline during a downtrend in the second channel.
• Upper 2nd Channel Background Color: Background color for the upper part of the second channel, filling the area between the upper channel line and the midline.
• Lower 2nd Channel Background Color: Background color for the lower part of the second channel, filling the area between the lower channel line and the midline.
• Line Style for 2nd Channel: Choose the style of the second channel lines (Solid, Dotted, Dashed, Arrow, Round).
2nd Channel Line Settings:
• Extend 2nd Channel Lines Left: Extend the second channel lines to the left of the chart, visualizing historical performance.
• Extend 2nd Channel Lines Right: Extend the second channel lines to the right of the chart, anticipating future price movements.
Other Settings:
• Show VWAP Detection: Toggle to enable or disable VWAP detection. VWAP (Volume Weighted Average Price) indicates the average price of the asset, weighted by volume.
• Show Doji Detection: Toggle to enable or disable Doji candle detection. Doji candles have small bodies, indicating market indecision.
• Doji Size Threshold: Threshold to determine a Doji candle. A smaller value indicates a stricter Doji definition.
How to Read the Indicator for Trading
Channel Lines and Colors:
• The upper line of the 1st channel (green) and the 2nd channel (blue) represents the upper boundary based on linear regression and deviation multipliers.
• The lower line of the 1st channel (red) and the 2nd channel (orange) represents the lower boundary.
• The midline changes color dynamically based on the trend direction:
• Pink during a downtrend for the 1st channel.
• Blue during an uptrend for the 1st channel.
• Gray during a consolidation for both channels.
• The 2nd channel uses similar color logic.
Channel Background:
• The background color between the channel lines highlights the area covered by the channel:
• Green for the upper area and red for the lower area in the 1st channel.
• Blue and orange for the upper and lower areas in the 2nd channel, respectively.
Labels:
• Price level labels at the channel boundaries provide exact price levels, displayed at the upper and lower lines if enabled.
VWAP and Doji Detection:
• VWAP is plotted as circles on the chart, showing the volume-weighted average price.
• Doji candles are highlighted with a background color if detected, indicating potential market indecision.
Alerts:
• Alerts are triggered when the trend direction of the channels changes. For example:
• An alert notifies you if the 1st channel is in an uptrend while the 2nd channel is in a downtrend.
• An alert notifies you if the 1st channel is in a downtrend while the 2nd channel is in an uptrend.
Trading with the Indicator
• Trend Identification: Use the color and direction of the midline and baseline to identify the current trend. An uptrend is indicated by a blue midline, while a downtrend is indicated by a pink midline.
• Reversal Points: Monitor when the price approaches the upper or lower boundaries of the channels, as these can act as support or resistance levels.
• Volume Insights: Use the VWAP and liquidity levels to understand the true average price based on volume and identify significant areas of trading activity.
• Market Indecision: Watch for Doji candles, which can signal potential reversals or periods of consolidation.
Japanese Candle Patterns Detector in Potential Price ZoneThis script would find the 8 famous "Japanese Candle Stick Patterns" in your chart.
Please be aware it find patterns in "Potential price zones" only, which help you to avoid none-important patterns during a price trend.
I used RSI and ATR in my codes to find best candle forms and price conditions.
*** This indicator shared before but without source code. According to follow requests, I publish it again with source codes. I hope it helps you in trading journey...
Bellow patterns are detecting:
Hammer | ShootingStar | Engulfing Candle | Doji | Tweezers Top/Buttom | Three White Soldiers/Three Black Crows | Marubozu | Harami
* You can select your preferred patterns from indicator setting.
* Pattern names are abbreviated for better view on chart.
* Separate alerts for different type of candles for whom looking for a specific candle pattern
* Main alert which notify about every kind of candle patterns detect in a chart
Buy/Sell BoxThis indicator tries to identify the points where the price exceeds or falls below a rectangle based on the opening and closing prices of the previous period, the creation of the boxes occurs when a doji is detected therefore it will calculate the coordinates of the rectangle that will be drawn around it, therefore the indicator offers buy or sell signals based on this logic. Specifically, the buy signal is generated if the closing price is above the top of the rectangle and satisfies some previous price conditions while the sell signal is generated if the closing price is below the bottom of the rectangle and satisfies some conditions of previous prices within a further threshold based on the Ema 150.
Lines are then drawn on the graph to visually display the extreme price levels, which can be useful for any confirmation of buy and sell signals, Stop Loss and Take Profit, Trend Filter (to visually understand if the trend is bullish or bearish)
A potentially effective trading strategy could involve identifying buy and sell signals near the extreme price level lines drawn by the indicator. This approach can be used to try to improve the accuracy of your trading signals and make more informed decisions. For example:
When you receive a buy or sell signal based on the dojis and rectangles generated by the indicator, check whether the price is also near one of the extreme price level lines. If you are receiving a buy signal and notice that the current price is near a low of the lower level line, this may further confirm the buying opportunity, as the price is near a significant resistance level. On the contrary, if the sell signal was close to a maximum price level it could confirm an excellent short entry.
It is also possible to use the boxes as reference points to set the stop loss and take profit levels. If you are entering a buy position, you might consider setting your stop loss just below an upper line of the last box. Additionally, you may want to set your take profit near a higher price level if you are looking to maximize profits. This will help manage risks and protect your capital.
Contraction Box & Doji LinesContraction & Doji Lines indicator is designed to identify and visualize potential support and resistance levels on a price chart. It does this by detecting doji candlestick patterns and drawing horizontal lines from the middle of the doji bodies to the right. Additionally, it also highlights price contraction zones with colored boxes.
The indicator first identifies doji candlestick patterns that it suggests indecision in the market, a horizontal line and these horizontal lines can act as potential support or resistance levels. Traders can observe price reactions around these lines. If the price approaches a line and bounces off it, it may indicate a significant level in the market.
In addition to doji lines, this indicator also highlights price contraction zones. When a contraction zone is detected, a colored box is drawn to highlight this zone. The box extends from the fifth bar ago (left side) to the current bar (right side), with the highest high and lowest low of the identified zone. The color and width of this box can be customized using the "Box Line Border Color," "Box Background Color," and "Box Width" parameters.
A possible strategy could be can use the doji lines as potential support and resistance levels to make trading decisions. For example, if the price breaks above a doji line and holds, it may indicate a bullish signal.
The colored boxes highlight areas of price contraction, which often precede significant price movements. Traders can use these zones to anticipate potential breakouts or breakdowns.
For example, you might enter a long (buy) position if it anticipate a breakout from a contraction zone with a target price set above the breakout level. Conversely, you might enter a short (sell) position if they anticipate a breakdown from a contraction zone with a target price set below the breakdown level.
Doji TrenderDoji Trender searches multiple timeframes for candles where open and close are less than dojiPercent apart (default 0.025%), and plots the trends between them.
Experiment with dojiPercent to change the number of "dojis" detected. I will add doji sub-type indication if it appears to be meaningful.
By default, it plots the 5m (red), 15m (orange), 1h (yellow), 4h (green), and chart (cyan). If the chart timeframe is any of the configurable ones, the chart copy won't be drawn. (I might reverse that, so that cyan is always drawn.)
Since doji points are somewhat sparse, and the lookback is short (default 10), the EMA's make drastic corrections toward new indecision. (I'm not convinced the EMA's are useful and/or relevant.)
This works on any timeframe, but seems to work best on the 1D. (5m is somewhat irrelevant on the 1D, so there are tweaks to be made.)
Dojis from a timeframe are corrections to a doji trend from a higher timeframe.
Red corrects to orange, corrects to yellow, corrects to green.
If the chart timeframe is > 4h, the others will correct to cyan.
Otherwise, cyan will fit in-between the adjacent timeframes.
Multiple indecision candles within a short timespan forming sharp peaks indicate retests, backtests, rejections, and bounces off of support/resistance.
With a correct larger-timeframe channel, one would expect lower-timeframe indecision at/along typical levels.
Although the doji's have unpredictable wicks, the dots printed by this indicator do not. Matched with volume, they reveal the prices where the most violent battles between bulls and bears took place, and are likely to take place, again.
One could:
1) Put trends on the longest segments, then look for confluence along them, and/or near the intersections.
2) Use lower-timeframe doji trends to estimate the direction of the higher-timeframe doji trends, before they become detectable to Doji Trender. Confirm by looking for confluence where those trends intersect with horizontal support/resistance, this indicator, and/or others.
3) Notice that multiple legs on the same trend line are close to parallel, if not colinear.
4) Notice that many of the doji segments point toward (very-distant) future dojis.
5) Drop horizontal lines on the dots where we previously reversed, and find confluence in VRVP when we revisit them.
6) Create parallel (fib/whatever) channels that more-closely match MM's intent. The segments one uses to set the angle of the channel, and those used to align the channel, vertically, are not always the same:
a) Match the channel slope to as many doji slopes as possible, considering every trend.
b) Figure out where the channel actually belongs, re-considering every trend.
All Candlestick Patterns Screener [By MUQWISHI]▋ INTRODUCTION :
The Candlestick Patterns Screener has been designed to offer an advanced monitoring solution for up to 40 symbols. Utilizing a log screener style, it efficiently gathers information on confirmed candlestick pattern occurrences and presents it in an organized table. This table includes essential details such as the symbol name, signal price, and the corresponding candlestick pattern name.
_______________________
▋ OVERVIEW:
_______________________
▋ CREDIT:
Credit to public technical “*All Candlestick Patterns*” indicator.
_______________________
▋ USAGE:
_______________________
▋ Final Comments:
For best performance, add the Candlestick Patterns Screener on active symbol chart like QQQ, SPY, AAPL, BTCUSDT, ES, EURUSD or …etc.
Candlestick patterns are not a major concept to build a trading decision.
Personally, I see candlestick patterns as a means to comprehend the psychology of the market, and help to follow the price action.
Please let me know if you have any questions.
Thank you.
Japanese Candlestick Patterns💡 Japanese Candlesticks are a visual representation of price movements in financial markets. They were first developed by Japanese rice traders in the 18th century to analyze the price of rice contracts, and have since been adopted by traders across the world for a wide range of assets.
📌 A candlestick is composed of a rectangular body and two thin lines, known as wicks, that extend from the top and bottom of the body. The body represents the difference between the opening and closing prices of the asset during a specific time period, while the wicks indicate the high and low prices reached during that period.
📌 By using these and other candlestick patterns, traders can identify potential buying and selling opportunities and manage their risk accordingly. However, it's important to note that candlestick patterns should be used in conjunction with other technical and fundamental analysis tools to make well-informed trading decisions.
📌 Candlestick patterns are particularly useful because they are based on price action rather than external factors such as news or economic data. This makes them useful for traders who employ technical analysis, as they can use candlestick patterns to identify potential trading opportunities and manage their risk accordingly.
🚀 Candlesticks can be used to identify market trends, as well as potential buying and selling opportunities. By analyzing the patterns formed by multiple candlesticks, traders can gain insights into the behavior of the market and make informed trading decisions. Overall, Japanese Candlesticks are a powerful tool for technical analysis that can provide valuable insights into financial markets.
🔍 THE PATTERNS THAT ARE RECOGNIZED:
🔄 Reversal Patterns
* Counterattack Lines
* Dark-Cloud Cover
* Engulfing ( Bearish / Bullish )
* Hammer
* Hanging Man
* Harami ( Bearish / Bullish )
* In Neck
* On Neck
* Piercing
* Three Black Crows
* Thrusting
* Upside Gap Two Crows
⭐️ Stars
* Abandoned Baby
* Evening star
* Inverted Hammer
* Morning Star
* Shooting Star
🎯 Doji
* Doji
* Dragonfly Doji
* Evening Doji Star
* Gravestone Doji
* Long Legged Doji
* Morning Doji Star
🔥 Continuation Patterns
* Falling Three Methods
* Rising Three Methods
* Tasuki ( Upside / Downside )
🥊 Utility
* Long Lower Shadow
* Long Upper Shadow
❤️ Please, support the work with like & comment! ❤️
Trading Session TemplateDescription:
The Trading Session Template Indicator is a powerful script that allows traders to customize their own trading session time range on a chart. With this indicator, you have the flexibility to define specific hours during which you prefer to focus your trading activities. The example chart showcases the New York session hours, but you can easily adapt it to any desired time range based on your trading strategy and preferences.
Key Features:
Customizable Trading Session: The indicator empowers you to define your own trading session time range, tailored to your preferred market sessions or specific trading hours. This flexibility ensures that the indicator aligns with your unique trading strategy.
Highlighted Trading Session: When a new trading day begins, the script automatically scans for the specified time range. Once the first candle within the range begins printing, the background color of the chart is highlighted, indicating the beginning of the trading session. When the last candle within the range is closed, the background color returns to normal.
Focus on Specific Market Sessions: This indicator is particularly useful for traders who prefer to trade certain market sessions or specific hours during the day. By customizing the trading session, you can better align your trading activities with specific market conditions and trading opportunities.
Candle Pattern Detection: The indicator includes the ability to detect candle patterns such as Doji, Engulfing, Hammer, and Shooting Star. You can activate the desired candle patterns and set up alerts for them. When an alert is triggered, indicating the formation of a specific candle pattern, you can further analyze the market and make informed trading decisions.
ATR Filter: The indicator offers an ATR (Average True Range) filter to limit noise and focus on candle patterns with a size comparable to the ATR. You can set a minimum and maximum size for a candle compared to the ATR. This helps you filter out smaller or larger candles that may not align with your trading preferences.
Stop Loss (SL) and Take Profit (TP) Levels: When a candle pattern is detected, based on the ATR, the indicator can display suggested Stop Loss and Take Profit levels. This feature provides additional guidance for risk management and potential profit targets.
User-Friendly Interface: The indicator provides a user-friendly interface with adjustable settings and switches for customization. Tooltips are available to guide you through the various options and configurations, making it easy to adapt the indicator to your trading style and preferences.
Note:
The Trading Session Template Indicator is designed for timeframes lower than 1D. It does not plot any information on timeframes of 1D and higher.
Disclaimer:
The Trading Session Template Indicator is provided for informational and educational purposes only. Trading in the financial markets involves risk, and you should only trade with funds that you can afford to lose. The indicator's past performance is not indicative of future results. Always conduct your own research and due diligence before making any investment decisions. The creator of this indicator shall not be held responsible for any losses or damages incurred from the use of this indicator.
Engulfing and Doji Scanner with SLThe Bullish Engulfing pattern occurs when the close is higher than the open, and scripts will look for this pattern by checking the difference in the close and open prices sufficiently in pips. Likewise, the Bearish Engulfing pattern occurs when the close is lower than the open, and scripts will look for this pattern by checking for sufficient difference in the open and close in pips.
The Doji pattern occurs when the absolute difference between the open and close prices is very small compared to the price range for that period. The script will look for these patterns by comparing the difference between the open and close prices by a certain percentage of the price range.
After the patterns are detected, the script will calculate the Stop Loss (SL) and Take Profit (TP) levels based on the parameters set. The SL level will be determined based on the lowest price range with certain adjustments, while the TP level is calculated using a 1:1 ratio to the SL distance.
This script will display arrows and Stop Loss and Take Profit labels on the chart to assist traders in identifying relevant patterns and levels. However, it is important to remember that these scripts only assist in the analysis of patterns and levels, and a more complete trading strategy and decision-making remains the responsibility of the trader.
The Golden Candlestick PatternThe Golden pattern is a three-candlestick configuration based on a variation of the golden ratio (2.618) from the Fibonacci sequence.
The bullish Golden pattern is composed of a normal bullish candlestick with any type of body, followed by a bigger bullish candlestick with a close price that is at least 2.618 times the size of the first candlestick (high to low). Finally, there must be an important condition that is, a third candlestick that comes back to test the open of the second candlestick from where the entry is given.
The bearish Golden pattern is composed of a normal bearish candlestick with any type of body, followed by a bigger bearish candlestick with a close price that is at least 2.618 times the size of the first candlestick (high to low). Finally, there must be an important condition that is, a third candlestick that comes back to test the open of the second candlestick from where the entry is given.
Pure Morning 2.0 - Candlestick Pattern Doji StrategyThe new "Pure Morning 2.0 - Candlestick Pattern Doji Strategy" is a trend-following, intraday cryptocurrency trading system authored by devil_machine.
The system identifies Doji and Morning Doji Star candlestick formations above the EMA60 as entry points for long trades.
For best results we recommend to use on 15-minute, 30-minute, or 1-hour timeframes, and are ideal for high-volatility markets.
The strategy also utilizes a profit target or trailing stop for exits, with stop loss set at the lowest low of the last 100 candles. The strategy's configuration details, such as Doji tolerance, and exit configurations are adjustable.
In this new version 2.0, we've incorporated a new selectable filter. Since the stop loss is set at the lowest low, this filter ensures that this value isn't too far from the entry price, thereby optimizing the Risk-Reward ratio.
In the specific case of ALPINE, a 9% Take-Profit and and Stop-Loss at Lowest Low of the last 100 candles were set, with an activated trailing-stop percentage, Max Loss Filter is not active.
Name : Pure Morning 2.0 - Candlestick Pattern Doji Strategy
Author : @devil_machine
Category : Trend Follower based on candlestick patterns.
Operating mode : Spot or Futures (only long).
Trades duration : Intraday
Timeframe : 15m, 30m, 1H
Market : Crypto
Suggested usage : Short-term trading, when the market is in trend and it is showing high volatility .
Entry : When a Doji or Morning Doji Star formation occurs above the EMA60.
Exit : Profit target or Trailing stop, Stop loss on the lowest low of the last 100 candles.
Configuration :
- Doji Settings (tolerances) for Entry Condition
- Max Loss Filter (Lowest Low filter)
- Exit Long configuration
- Trailing stop
Backtesting :
⁃ Exchange: BINANCE
⁃ Pair: ALPINEUSDT
⁃ Timeframe: 30m
⁃ Fee: 0.075%
⁃ Slippage: 1
- Initial Capital: 10000 USDT
- Position sizing: 10% of Equity
- Start: 2022-02-28 (Out Of Sample from 2022-12-23)
- Bar magnifier: on
Disclaimer : Risk Management is crucial, so adjust stop loss to your comfort level. A tight stop loss can help minimise potential losses. Use at your own risk.
How you or we can improve? Source code is open so share your ideas!
Leave a comment and smash the boost button!
Thanks for your attention, happy to support the TradingView community.
Interactive trendline - Proximity Doji & 3LSThis script was developed with Blockhead305 (seriously talented) and uses 1) the Three Line Strike from The Moving Average as well as 2) an original doji script written for me and 3) the Interactive Trendline as developed by Blockhead305. The basic premise is that should a doji or Three Line Strike occur within a customizable ATR distance from your trendline, an on-chart notification will appear or you could set an alarm to warn you if this has happened.
How to set this up:
Step 1 - Find a a trend
Step 2 - Identify the candles that touches the trendline
Step 3 - Click on the indicator
Step 4 - Set the X1 and Y1 coordinates for the start of the trend
Step 5 - Set the X2 and Y2 coordinates for the last relevant candle of the trend
Step 6 - Write the number in the yellow box down (in this case 880)
Step 7 - Open the settings of the indicator
Enter the number from the yellow box into the box titled "Run" - Press "OK"
Step 8 - Chart should/could now show Buy/Sell Signals for the Dojis and/or Bullish or Bearish Three Line Strikes
Notes
1. If your trendline is bearish (X1/Y1 is higher than X2/Y2) only bearish signals will appear and vice versa
2. You can change the ATR multiples from trendline in the settings - I prefer 2 (which is also the default)
3. You can toggle Big Engulfing and/or Three Line Strike on or off (exact functionality as per The Moving Average functionality)
4. You can construct the type of doji you would like to see at the bottom of the settings screen - I prefer the following settings:
Dominant Wick Multiple - 2
Recessive Wick Multiple - 2
Body Multiple - 5
5. I place my SL above last high (shorts) or last low (longs) but could also use the trendline for this
6. I use TP with RRR off 1:2 but much more is obviously possible.
7. ONLY ONE INTERACTIVE TRENDLINE CAN BE USED ON THE SAME CHART
8. THE NUMBER IN THE YELLOW BOX IS RELEVANT TO THE TIMEFRAME THAT THE TRENDLINE WAS CREATED ON. IF YOU CHANGE
TIMEFRAMES IT WILL NOT WORK
Happy to receive constructive criticism and/or suggestions for improvements on the settings.
Doji Pattern 1 Hr BY J.GrimanPatron de Doji de cuerpo real, para el periodo de tiempo en 1 Hora para los mercaods bursatiles.
DojiCandle body size RSI-SMMA filter MTF
DojiCandle body size RSI-SMMA filter MTF
Hi. I was inspired by a public script written by @ahmedirshad419, .
I thank him for his idea and hard work.
His script is the combination of RSI and Engulfing Pattern.
//------------------------------------------------------------
I decided to tweak it a bit with Open IA.
I have changed:
1) candle pattern to DojiCandle Pattern;
2) I added the ability for the user to change the size of the candlestick body;
3) Added SMMA 200;
4) Changed the colour of SMMA 200 depending on price direction;
5) Added a change in the colour of candlesticks, depending on the colour of the SMMA 200;
6) Added buy and sell signals with indicator name, ticker and close price;
7) Added ability to use indicator on multi time frame.
How it works
1. when RSI > 70 > SMMA 200 and form the bullish DojiCandle Pattern. It gives sell signal
2. when RSI < 30 < SMMA 200 and form the bearish DojiCandle Pattern. It gives buy signal
settings:
basic setting for RSI, SMMA 200 has been enabled in the script to set the levels accordingly to your trades
Enjoy
Minimalist Doji HighlighterThis minimalism focused indicator was designed specifically to highlight doji candles (gravestone, long-legged, and dragonfly) that generally signal indecision/neutrality within price structure to improve trading accessibility for the disabled/visually impaired, visual charting cues or pattern visibility, and educational/learning purposes.
HOW TO USE IT:
Highlight doji candles to improve visual cues on chart.
Default size of 0.15-0.02 works best, yet can be modified thus ensuring flexibility of use and experimentation.
Additionally, there is an option to add crosses above doji candles for additional visual cues; this feature is set to false by default to avoid cluttering charts.
MARKET USAGE:
All time frames and assets.
MARKET CONDITIONS:
All conditions.
Doji FinderModified version of HPotter's "Doji and Near Doji automatic finding script".
Candles are classified based on not just the size of the body but also the distance from the close to the high/low. This avoids classifying a reversal candle with a long wick but a strong close as a doji.
CANDLE FILTER Todays scripts is based on my Pullback And Rally Candles with other meaningful candles such as Hammers and Dojis.
You can choose which Candles to show on the cart and if you want to candles to appear above or below a moving average.
If you follow my work, you may recognise some of these candles which I'm about to show you however these candles are 1) more refined and 2) has moving average filters.
Ive included a D,6H,1H Candle in this script as on different timeframes - each swing low on average has a different amount of bars within the swing low / swing high so the DPB and RD will only work on the Daily
//Pullback candle
This candle is very powerful when used with simple Price Action such as Market Structure//Demand zones and support zones. (((((WORKS BEST IN UPTRENDS AND BOTTOM OF RANGES)))))
Ive included a D,6H,1H Pullback Candle in this script as on different timeframes - each swing low on average has a different amount of bars within the swing low so the DPB will only work on the Daily
//DAILY PULLBACK (Swing Traders)
snapshot
//4H PULLBACK (Swing Traders)
snapshot
- this signal will produce more signals due to the swing low filter on the 4H
//1H PULLBACK
snapshot
- this signal has been refined due to too many candle displaying in weak areas
!!!IF YOU DONT WANT TO USE PULLBACKS DURING DOWNTRENDS THEN USE THE EMA FILTER TO TURN OFF THE PULLBACKS WHEN PRICE IS BELOW THE MOVING AVERAGE!!!
//Rally candle (My personal Favourite) (((((WORKS BEST IN DOWNTRENDS AND TOP OF RANGES)))))
This candle is very powerful when used with simple Price Action such as Market Structure//Supply zones and Resistance zones.
//DAILY RALLY(Swing Traders)
snapshot
//4H RALLY(Swing Traders)
snapshot
- this signal will produce more signals due to the swing high filter on the 4H
!!!IF YOU DONT WANT TO USE RALLIES DURING UPTRENDSTHEN USE THE EMA FILTER TO TURN OFF THE RALLIES WHEN PRICE IS ABOVE THE MOVING AVERAGE!!!
//POWERFUL DOJIS (INDECISION)
snapshot
We look for indecision in key areas to see if momentum is shifting. When combined with Pullbacks or Rallys - this will enhance the odds of a probably area.
//HAMMERS
snapshot
//MOVING AVERAGES
snapshot
Short EMA = 50
Long EMA = 200
This filter can be used when the market is trending - look out for rejections off the moving averages
Also you can chance the Short And Long EMA to choose which MA cross you want to use
snapshot
ALSO ALL THE CANDLES HAVE A ALERT CONDITIONS WHICH YOU CAN ACCESS - THIS WILL ALERT ANY CANDLE YOU CHOOSE
Please leave a like/comment on this post as this is much appreciated....
Signals Pirate™ Doji ScalperSignalsPirate™ Doji Scalper is provides users with an instant screener for the one of the most useful candlestick formations in trading and investing, while also providing signals for points of price reversals and variable levels of support and resistance! This package can take your technical analysis to the next level.
Doji candles are a great indication of indecisiveness in the market, and depending on when they occur can indicate upcoming volatility or even a trend reversal! The candles can be identified by their small bodies (distance between open and close price) and long top and bottom wicks (the candle high and lows).
The simplicity of this package ensures traders of all levels of expertise can utilise this tool and experience its benefits to the fullest. Outside of user preference and customisation options, the only variable that alters package performance is the ‘Sensitivity’ option, which dictates how frequently Doji candles will be detected based on how the candles are formed. A value of 10 indicates more lenient classification of Doji candles, where a value of 1 requires a perfect Doji formation before signalling!
The other options available for your alteration are:
The visibility of the variable levels of support and resistance, which are calculated using a variation of the ATR indicator to gauge asset volatility, as well as price action pivot points to indicate where trader interest may be.
Trend reversal labels for both potentially ‘Weak’ and ‘Strong’ reversals. These labels are created based on how price reacts to the varying levels of support and resistance, as well as the candlestick pattern and formation around those crucial levels.
The default settings are the best settings we’ve found so far but you can change them to build your own unique trading strategy. We’d recommend experimenting with these values to find the best results for the asset you are trading, and your own personal trading and investing style.
Direction for use:
1. Use on any asset class and time frame.
2. Fine tune the Doji Sensitivity variable.
3. Be cautious of upcoming volatility after a Doji signal, especially if the signal occurs near the support and resistance levels or after a large move, which could indicate a trend reversal.
4. Watch for Reversal signals, which can provide confluence with the Doji signals and give an early indication that price may soon start moving in the opposite direction.
As mentioned previously, this is a candlestick detection system that dynamically operates to function with superior accuracy regardless of what you’re trading. But with the level of customisation available, this can easily be fine tuned to accommodate scalping, reversal trading, or even long term investing.
We hope you love this package, and it takes your trading and investing to the next level. Please let us know if you have any questions or queries regarding the logic behind the bundle, or if you have any suggestions for improvements etc. We love your feedback and are constantly striving to continuously improve!
Smarter Pullback + Candlestick Pattern (Steven Hart)Built with love "Smarter Pullback + Candlestick Pattern"
This indiator will help you to find a Pullback + Candlestick Pattern, inspirated by Steven Hart
You can combine with your own strategy, or use this purely
DISCLAIMER :
Measure the risk first before use it in real market
Backtest The Strategy was very important, so you know the probability
Fundamentally Logical :
Pullback (Some Previous candle is Red for Bull Pullback vice versa)
the Entry candle must be a Candlestick Pattern
Features :
1. Engulfing
2. Hammer & Shooting Star
3. Doji
How to use it :
1. Adjust the Pullback Period
2. Check and Uncheck the Pattern you want to see
3. Adjust the style to your favourite
Regards,
Hanabil
Smart PatternsHi Traders, and welcome to Smart Patterns.
Patterns can be very profitable, yet hard to trade, even when combined with other indicators and techniques. This script aims to increase the accuracy of signals by adding a statistical approach to candle patterns, along with tools to filter them.
For example, if the Success Rate is above a certain threshold, it means that the pattern has resulted in a higher ratio of profitable trades and hence it has a higher likelihood of succeeding in the current market conditions. However, should that pattern fall below the desired Success Rate, the script will "hide" it and won't trigger a signal, but still keeping track of its performance to start firing it again when coming back above the Success Rate.
Key Features
The script features custom patterns as well as some of TradingView's built-in patterns. Not all patterns can be added of course, but let me know if I missed other interesting ones and I will do my best to add them in future updates.
When a Pattern reaches the Min. Target % within the Candles Range selected, it is then considered valid. Please remember that doesn't take into account possible draw-downs or stop-losses.
Patterns are constantly evaluated inside the script; when a pattern's overall score (Success Rate %) is below the required minimum, the signal won't be triggered. However, the script will keep monitoring it in the background, and trigger a signal again when its score comes back above the minimum Success Rate.
The Patterns' signals can be filtered by Success Rate, Minimum Patterns detected and candle size (calculated via ATR).
The Data Panel will show individual statistics for Enabled Patterns as well as final statistics for Triggered Patterns.
Tooltips in the settings panel will further explain available options.
Alerts: simple alerts can be added by selecting "any alert() function call" when adding an Alert. Customizable alerts can also be created through dropdown menu ( Bullish \ Bearish Patterns Detected).
Fully customizable to adapt to light and dark themes
Notes and Recommendations
Always be realistic when tweaking settings, making sure the output makes sense in a normal trading environment. Statistics are helpful but shouldn't be the only factor to base your decisions on - even if a pattern reaches 100% Success Rate, it doesn't mean it will keep being profitable.
Since the script crunches quite some data it may give output errors especially if settings are not properly tweaked - or if the filters are too liberal (e.g. Min Target % set to 0.1) - hence triggering lots of signals. Please adjust the settings or enable only the Patterns you are trading.
If the script gives the error "Too many drawings, cannot clean oldest" it means your settings give too many signals and that is usually not a good sign - it's recommended to double-check your settings as mentioned above.
Credits
Trading View for built-in patterns
Special thanks go to PineCoders community for their incredible efforts and learning material to help mastering PineScript!