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.
Candlestick analysis
4H RangeThis script visualizes certain key values based on a 4-hour timeframe of the selected market on the chart. These values include the High, Mid, and Low price levels during each 4-hour period.
These levels can be helpful to identify inside range price action, chop, and consolidation. They can sometimes act as pivots and can be a great reference for potential entries and exits if price continues to hold the same range.
Here's a step-by-step overview of what this indicator does:
1. Inputs: At the beginning of the script, users are allowed to customize some inputs:
Choose the color of lines and labels.
Decide whether to show labels on the chart.
Choose the size of labels ("tiny", "small", "normal", or "large").
Choose whether to display price values in labels.
Set the number of bars to offset the labels to the right.
Set a threshold for the number of ticks that triggers a new calculation of high, mid, and low values.
* Tick settings may need to be increased on equity charts as one tick is usually equal to one cent.
For example, if you want to clear the range when there is a close one point/one dollar above or below the range high/low then on ES
that would be 4 ticks but one whole point on AAPL would be 100 ticks. 100 ticks on an equity chart may or may not be ideal due to
different % change of 100 ticks might be too excessive depending on the price per share.
So be aware that user preferred thresholds can vary greatly depending on which chart you're using.
2. Retrieving Price Data: The script retrieves the high, low, and closing price for every 4-hour period for the current market.
The script also calculates the mid-price of each 4-hour period (the average of the high and low prices).
3. Line Drawing: At the start of the script (first run), it draws three lines (high, mid, and low) at the levels corresponding to the high,
mid, and low prices. Users can also change transparency settings on historical lines to view them. Default setting for historical lines
is for them to be hidden.
4. Updating Lines and Labels: For each subsequent 4-hour period, the script checks whether the close price of the period has gone
beyond a certain threshold (set by user input) above the previous high or below the previous low. If it has, the script deletes the
previous lines and labels, draws new lines at the new high, mid, and low levels, and creates new labels (if the user has opted to
show labels).
5. Displaying Values in the Data Window: In addition to the visual representation on the chart, the script also plots the high, mid, and
low prices. These plotted values appear in the Data Window of TradingView, allowing users to see the exact price levels even when
they're not directly labeled on the chart.
6. Updating Lines and Labels Position: At the end of each period, the script moves the lines and labels (if they're shown) to the right,
keeping them aligned with the current period.
Please note: This script operates based on a 4-hour timeframe, regardless of the timeframe selected on the chart. If a shorter timeframe is selected on the chart, the lines and labels will appear to extend across multiple bars because they represent 4-hour price levels. If a longer timeframe is selected, the lines and labels may not accurately represent high, mid, and low levels within that longer timeframe.
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.
Pro Trading Art - Head And ShouldersHow the Script Works:
1. The script identifies potential Head and Shoulders patterns by searching for specific pivot highs and pivot lows in the price data.
2. It checks for the presence of a left shoulder, head, and right shoulder based on the conditions defined in the script.
3. If a valid Head and Shoulders pattern is found, the script plots lines and labels on the chart to visualize the pattern.
4. The script also identifies Inverted Head and Shoulders patterns using similar logic but with different conditions.
5. It plots lines and labels for the Inverted Head and Shoulders pattern.
6. The script generates short and long conditions based on the patterns. Short conditions trigger when the close price crosses below the neck level of a Head and Shoulders pattern, while long conditions trigger when the close price crosses above the neck level of an Inverted Head and Shoulders pattern.
7. It plots sell and buy signal shapes on the chart when the short and long conditions are met, respectively.
8. The script can also trigger alerts to notify the user when a valid Head and Shoulders or Inverted Head and Shoulders pattern is detected.
9. The script provides visual cues on the chart to help users identify potential trading opportunities.
10. The logic and parameters of the script can be modified by the user to customize the behavior and adapt it to different trading strategies.
How Users Can Make Profit Using This Script:
1. Identify potential short-selling opportunities: When a valid Head and Shoulders pattern is detected and a short condition is met, it indicates a potential trend reversal. Traders can consider opening short positions to profit from a downward price movement.
2. Identify potential long-buying opportunities: When a valid Inverted Head and Shoulders pattern is detected and a long condition is met, it suggests a potential trend reversal. Traders can consider opening long positions to profit from an upward price movement.
3. Combine with additional analysis: Users can utilize this script as a tool in their overall trading strategy. They can combine the signals generated by the script with other technical indicators, fundamental analysis, or market sentiment to make more informed trading decisions.
4. Define appropriate entry and exit points: Traders can use the lines and labels plotted by the script to determine entry and exit points for their trades. For example, they may choose to enter a short position after the price crosses below the neck level and exit when the price reaches a predetermined target or when the pattern is invalidated.
5. Set risk management measures: It is important for users to implement proper risk management strategies when trading based on the script's signals. They should define stop-loss orders to limit potential losses if the trade goes against them and consider setting profit targets to secure profits when the trade moves in their favor.
Wick PercentagesCalculates the percentage of the upper and lower wick on each candle. Wicks with a percent that are higher than a set percentage (Default is 60%) are assigned a color (upper = red 🔴) and (lower = green 🟢)
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.
Strength Comparison @joshuuuexample:
if you want to find the stronger/weaker pair between eurusd and gbpusd, what you can do is check the eurgbp charts. if eurgbp is bullish, that means, that longs longs on eurusd are better than on gbpusd.
Unfortunately, there is no such thing to compare for example usoil with ukoil, or us100 with us500.
That's where this indicator comes in handy. You can choose whatever two symbols you want, that are supported by tradingview and you will get a chart, which shows symbol1/symbol2.
Now you can use normal market structure, or the ema option, to find out the stronger symbol.
This can also help predicting the so called SMT Divergences, taught by ICT.
⚠️ Open Source ⚠️
Coders and TV users are authorized to copy this code base, but a paid distribution is prohibited. A mention to the original author is expected, and appreciated.
⚠️ Terms and Conditions ⚠️
This financial tool is for educational purposes only and not financial advice. Users assume responsibility for decisions made based on the tool's information. Past performance doesn't guarantee future results. By using this tool, users agree to these terms.
TrendBars
This new bar system consists of candles connected to each other with trend lines.
I have defined a falling trend if the current peak is lower than the previous peak, and an rising trend if the current low is higher than the previous low.
When the series of lows or highs is broken, indicating a reversal in the trend, the candles change color. This provides a fresh perspective when monitoring the trend.
Continue to stay tuned for original concepts and many more new systems. Happy trading!
Ravi teja sreevatsav's consecutive candle
When two consecutive same-color candles form, the indicator generates a signal at the bottom of the second green candle and the top of the second red candle.
Bollinger Bands Inside barthe indicator name is Bollinger Band inside bar because it uses Bollinger Band and inside bar to take counter-trend positions in the market. whenever this pattern is formed then it can be used to take an entry into the market. the candlestick pattern recognizes 3 candle candlestick. first the mother bar i.e. the medium to the big size candle that intersects with the upper and the lower levels of the Bollinger band. the second candle should be an inside bar i.e. the high and low of the current bar should be less than the previous bar. finally, the last bar who's low should be less than the mother bar in case of the mother bar is at upper levels and if the mother bar is at lower levels then the candle's high should be more than the mother bar. the stop-loss should be high and low of the mother bar respectively. entry should be taken as soon as the low and high of the mother bar is taken out respectively. target should be 1:1 or 20 sma or lower Bollinger band in case the entry is taken from the top. works best if there is a trend and the market takes a pullback and this pattern is formed.
Doji Pattern 1 Hr BY J.GrimanPatron de Doji de cuerpo real, para el periodo de tiempo en 1 Hora para los mercaods bursatiles.
Volume Indicator (MA)Displays candles which have volume larger than the volume moving average (14-bars). Red is for down candles and Green is for up candles, works best on a light background.
Benner-Fibonacci Reversal Points [CC]This is an original script based on a very old idea called the Benner Theory from the Civil War times. Benner discovered a pattern in pig iron prices (no clue what those are), and this turned out to be a parallel idea to indicators based on Fibonacci numbers. Because a year is 365 days (nearly 377, which is a Fibonacci number), made up of 52 weeks (nearly 55, which is another Fibonacci number), or 12 months (nearly 13, which is another Fibonacci number), Benner theorized that he could find both past and future turning points in the market by using a pattern he found. He discovered that peaks in prices seemed to follow a pattern of 8-9-10, meaning that after a recent peak, it would be 8 bars until the next peak, 9 bars until after that peak for the next, and 10 bars until the following peak. For past peaks, he would just need to reverse this pattern, and so the previous peak would be 10 bars before the most current peak, 9 bars before that peak, and 8 bars before the previous one, and these patterns seemed to repeat. For troughs, he found a pattern of 16,18,20 which follows the same logic, and this idea also seemed to work on long-term peaks and troughs as well.
This is my version of the Benner theory and the major difference between my version and his is that he would manually select a year or date and either work backwards or forwards from that point. I chose to go with an adaptive version that will automatically detect those points and plot those past and future points. I have included several options such as allowing the algorithm to be calculated in reverse which seems to work well for Crypto for some reason. I also have both short and long term options to only show one or both if you choose and of course the option to enable repainting or leave it disabled.
Big thanks to @HeWhoMustNotBeNamed and @RicardoSantos for helping me fix some bugs in my code and for @kerpiciwuasile for suggesting this idea in the first place.
Inside candle (Inside Bar) Strategy- by smartanuThe Inside Candle strategy is a popular price action trading strategy that can be used to trade in a variety of markets. Here's how you can trade the Inside Candle strategy using the Pine script code provided:
1. Identify an Inside Candle: Look for a candlestick pattern where the current candle is completely engulfed within the previous candle's high and low. This is known as an Inside Candle.
2. Enter a Long Position: If an Inside Candle is identified, enter a long position at the open of the next candle using the Pine script code provided.
3. Set Stop Loss and Take Profit: Set a stop loss at a reasonable level to limit your potential losses if the trade goes against you. Set a take profit at a reasonable level to take profit when the price reaches the desired level.
4. Manage the Trade: Monitor the trade closely and adjust the stop loss and take profit levels if necessary. You can use the Pine script code to automatically exit the trade when the stop loss or take profit level is hit.
5. Exit the Trade: Exit the trade when the price reaches the take profit level or the stop loss level is hit.
It's important to note that the Inside Candle strategy is just one of many strategies that traders use to trade the markets. It's important to perform your own analysis and use additional indicators before making any trades. Additionally, it's important to practice proper risk management techniques and never risk more than you can afford to lose.
Histogram Momentum Shaded CandlesDescription:
The Histogram Momentum Shaded Candles indicator (HMSC) is a powerful technical analysis tool that combines the concepts of the MACD (Moving Average Convergence Divergence) indicator and shaded candlestick visualization. It provides insights into momentum and trend strength by representing the MACD histogram as shaded candles on the chart.
How it Works:
The HMSC indicator calculates the MACD (Moving Average Convergence Divergence) using user-defined parameters such as the fast length, slow length, source, signal smoothing, and moving average types. It then calculates the MACD histogram by subtracting the signal line from the MACD line. The indicator transforms the histogram values into transparency levels for the shaded candles, representing bullish and bearish momentum.
Usage:
To effectively utilize the Histogram Momentum Shaded Candles indicator, follow these steps:
1. Apply the HMSC indicator to your chart by adding it from the available indicators.
2. Customize the MACD settings such as the fast length, slow length, source, signal smoothing, and moving average types according to your trading preferences.
3. Observe the shaded candles plotted on the chart:
- Bullish shaded candles (green by default) indicate positive momentum and potential buying pressure.
- Bearish shaded candles (red by default) indicate negative momentum and potential selling pressure.
4. Assess the intensity of the shaded candles:
5. Shading intensity is determined by the magnitude of the MACD histogram, with higher values resulting in more opaque candles.
6. The shading intensity reflects the strength of momentum and can help identify significant shifts in price action.
7. Combine the analysis of shaded candles with traditional candlestick patterns, trend lines, support and resistance levels, and other technical indicators to validate potential trade setups.
8. Implement appropriate risk management strategies, including setting stop-loss orders and position sizing, to manage your trades effectively and protect your capital.
5m Candle OverlayDescription:
The 5m Candle Overlay indicator is a powerful technical analysis tool designed to overlay 5-minute candles onto your chart. This indicator enables detailed analysis of price action within the 5-minute time frame, providing valuable insights into short-term market movements.
How it Works:
The 5m Candle Overlay indicator calculates the OHLC (Open, High, Low, Close) values specifically for the 5-minute time frame. By utilizing the request.security function, it retrieves the OHLC values for each 5-minute candle. The indicator then determines the color for each candle based on a comparison between the close and open prices. Bullish candles are assigned a green color with 75% opacity, while bearish candles are assigned a red color with 75% opacity. Additionally, the indicator checks if the current bar index is a multiple of 5 to prevent overlapping and enhance visualization.
Usage:
To effectively utilize the 5m Candle Overlay indicator, follow these steps:
1. Apply the 5m Candle Overlay indicator to your chart by adding it from the available indicators.
2. Observe the overlay of 5-minute candles on your chart, providing a detailed representation of price movements within the 5-minute time frame.
3. Interpret the candles:
- Bullish candles (green by default) indicate that the close price is higher than the open price, suggesting potential buying pressure.
- Bearish candles (red by default) indicate that the close price is lower than the open price, suggesting potential selling pressure.
4. Note that the indicator plots candles with a vertical offset every fifth indicator to prevent overlapping, ensuring clarity and ease of interpretation.
5. Combine the analysis of the 5-minute candles with other technical analysis tools, such as support and resistance levels, trend lines, or indicators from different time frames, to gain deeper insights and identify potential trade setups.
6. Implement appropriate risk management strategies, including setting stop-loss orders and position sizing, to effectively manage your trades within the 5-minute time frame and protect your capital.
luckynickva OHLC
This Script Shows The OHLC Of The Higher Timeframe Candles In The Background Great For Not Losing Sight Of The Bigger Picture On The Lower Timeframe
Pattern Forecast (Expo)█ Overview
The Pattern Forecast indicator is a technical analysis tool that scans historical price data to identify common chart patterns and then analyzes the price movements that followed these patterns. It takes this information and projects it into the future to provide traders with potential price actions that may occur if the same pattern is identified in real-time market data. This projection helps traders to understand the possible outcomes based on the previous occurrences of the pattern, thereby offering a clearer perspective of the market scenario. By analyzing the historical data and understanding the subsequent price movements following the appearance of a specific pattern, the indicator can provide valuable insights into potential future market behavior.
█ Calculations
The indicator works by scanning historical price data for various candlestick patterns. It includes all in-built TradingView patterns, credit to TradingView that has coded them.
Essentially, the indicator takes the historical price moves that followed the pattern to forecast what might happen next.
█ Example
In this example, the algorithm is set to search for the Inverted Hammer Bullish candlestick pattern. If the pattern is found, the historical outcome is then projected into the future. This helps traders to understand how the past pattern evolved over time.
█ How to use
Providing traders with a comprehensive understanding of historical patterns and their implications for future price action allows them to assess the likelihood of specific market scenarios objectively. For example, suppose the pattern forecast indicator suggests that a particular pattern is likely to lead to a bullish move in the market. A trader might consider going long if the same pattern is identified in the real-time market. Similarly, a trader might consider shorting the asset if the indicator suggests a bearish move is likely, if the same pattern is identified in the real-time market.
█ Settings
Pattern
Select the pattern that the indicator should scan for. All inbuilt TradingView patterns can be selected.
Forecast Candles
Number of candles to project into the future.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Price Action Color Forecast (Expo)█ Overview
The Price Action Color Forecast Indicator , is an innovative trading tool that uses the power of historical price action and candlestick patterns to predict potential future market movements. By analyzing the colors of the candlesticks and identifying specific price action events, this indicator provides traders with valuable insights into future market behavior based on past performance.
█ Calculations
The Price Action Color Forecast Indicator systematically analyzes historical price action events based on the colors of the candlesticks. Upon identifying a current price action coloring event, the indicator searches through its past data to find similar patterns that have happened before. By examining these past events and their outcomes, the indicator projects potential future price movements, offering traders valuable insights into how the market might react to the current price action event.
The indicator prioritizes the analysis of the most recent candlesticks before methodically progressing toward earlier data. This approach ensures that the generated candle forecast is based on the latest market dynamics.
The core functionality of the Price Action Color Forecast Indicator:
Analyzing historical price action events based on the colors of the candlesticks.
Identifying similar events from the past that correspond to the current price action coloring event.
Projecting potential future price action based on the outcomes of past similar events.
█ Example
In this example, we can see that the current price action pattern matches with a similar historical price action pattern that shares the same characteristics regarding candle coloring. The historical outcome is then projected into the future. This helps traders to understand how the past pattern evolved over time.
█ How to use
The indicator provides traders with valuable insights into how the market might react to the current price action event by examining similar historical patterns and projecting potential future price movements.
█ Settings
Candle series
The candle lookback length refers to the number of bars, starting from the current one, that will be examined in order to find a similar event in the past.
Forecast Candles
Number of candles to project into the future.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Bar composition in 1minute | True candlestick colorThe indicator shows the true color of a bar based on the internal composition on 1 minute timeframe and the final outcome. It uses following parameters of 1minute and current timeframe inputs
relative bar close, average volume vs current volume and finally the volume of internal candles.
It follows following steps:
First, it defines the arrays of high, low, close, volume in one minute timeframe
Second, it identifies the negative and positive volume based on the bar closing at one minute timeframe
Third , it adds all the volume and find whether the overall volume is positive or negative for overall bar in higher timeframe (current timeframe)
Fourth, it compare the volume in current timeframe to average of volume in in current timeframe
Fifth, if relative closing, relative volume (current timeframe) and the combined volume (in 1 minute timeframe) gives same outcome then color of the bar is decided whether the bar is bullish, bearish or inconclusive/contnuation.
Through this you get to check price action in 1minute timeframe and the ultimate outcome in current timeframe. this helps in understanding whether the bar is truly bullish or bearish or continuation of the trend
Feel free to connect for any query.
Candles - 2 or 3 consecutive pattern + Custom pips thresholdFEATURES:
- Detect a 2 or 3 consecutive candlestick pattern. Input the value into the first input value.
- Choose the minimum and the maximum amount of pips of the candle that you want to detect. The indicator will detect candles within that pips range and highlight the consecutive pattern
- Choose to not use the pips threshold. If disabled the indicator will constantly check for consecutive candles pattern.
- Choose if calculate pips taking into consideration OC (Open - Close of candles - Body) or HL (High - Low - Body + Wick)
VISUALS:
- Enable Boxes: when enabled a box is drawn around the pattern detected
- Enable Lines: when enabled lines from top/bottom/mid of the boxes are drawn
- Extend the lines
BuP = Bullish Pattern
BeP = Bearish Pattern
AIM:
The aim of the indicator was to spot 2 common patterns in one indicator: Three White Soldiers and Three Black Crows
The rest is all implementation because I like coding.
Anyway on all timeframes 3 consecutive candles with a similar body length seems to be an alarm that Market Makers are joining the gfame before a major manipulation so it worth keep an eye on those.
From my experimentation from ltf 1 minute timeframe to htf 1H timeframe, 3 consecutive candles with a body length between 10 and 20 pips could be the ones to keep an eye on before a reversal or a strong continuation.
For sure they are zonez and levels where MM would come back later.
Adjust the settings as you want and happy trading!
This is just an indicator nothing more
Candlestick PatternsShort Description: Identify and visualize 16 key candlestick patterns in real-time.
Long Description:
The Candlestick Pattern Detector is a powerful indicator designed to help traders identify and visualize 16 key candlestick patterns in real-time. This indicator overlays the identified patterns on the chart, making it easy for traders to spot potential trend reversals, continuations, or significant price movements.
The indicator detects the following candlestick patterns:
Bullish Engulfing
Bearish Engulfing
Bullish Harami
Bearish Harami
Bullish Piercing
Dark Cloud Cover
Hammer
Hanging Man
Inverted Hammer
Shooting Star
Morning Star
Evening Star
Three White Soldiers
Three Black Crows
Bullish Marubozu
Bearish Marubozu
Each pattern is labeled on the chart with its respective name and color-coded to indicate whether it's a bullish (green) or bearish (red) signal. This makes it easy for traders to quickly spot patterns and make informed decisions based on the detected signals.
To use the Candlestick Pattern Detector, simply add it to your TradingView chart, and it will automatically highlight the identified patterns on the price chart. The patterns are identified based on well-established candlestick pattern recognition techniques, giving traders a reliable tool to aid their technical analysis.
Whether you're a seasoned trader or just starting, the Candlestick Pattern Detector can be a valuable addition to your trading toolkit, helping you to identify potential trading opportunities based on classic candlestick patterns.
Slight Swing Momentum Strategy.Introduction:
The Swing Momentum Strategy is a quantitative trading strategy designed to capture mid-term opportunities in the financial markets by combining swing trading principles with momentum indicators. It utilizes a combination of technical indicators, including moving averages, crossover signals, and volume analysis, to generate buy and sell signals. The strategy aims to identify market trends and capitalize on price momentum for profit generation.
Highlights:
The strategy offers several key highlights that make it unique and potentially attractive to traders:
Swing Trading with Momentum: The strategy combines the principles of swing trading, which aim to capture short-to-medium-term price swings, with momentum indicators that help identify strong price trends and potential breakout opportunities.
Technical Indicator Optimization: The strategy utilizes a selection of optimized technical indicators, including moving averages and crossover signals, to filter out the noise and focus on high-probability trading setups. This optimization enhances the strategy's ability to identify favourable entry and exit points.
Risk Management: The strategy incorporates risk management techniques, such as position sizing based on equity and dynamic stop loss levels, to manage risk exposure and protect capital. This helps to minimize drawdowns and preserve profits.
Buy Condition:
The buy condition in the strategy is determined by a combination of factors, including A1, A2, A3, XG, and weeklySlope. Let's break it down:
A1 Condition: The A1 condition checks for specific price relationships. It verifies that the ratio of the highest price to the closing price is less than 1.03, the ratio of the opening price to the lowest price is less than 1.03, and the ratio of the highest price to the previous day's closing price is greater than 1.06. This condition looks for a specific pattern indicating potential bullish momentum.
A2 Condition: The A2 condition checks for price relationships related to the closing price. It verifies that the ratio of the closing price to the opening price is greater than 1.05 or that the ratio of the closing price to the previous day's closing price is greater than 1.05. This condition looks for signs of upward price movement and momentum.
A3 Condition: The A3 condition focuses on volume. It checks if the current volume crosses above the highest volume over the last 60 periods. This condition aims to identify increased buying interest and potentially confirms the strength of the potential upward price movement.
XG Condition: The XG condition combines the A1 and A2 conditions and checks if they are true for both the current and previous bars. It also verifies that the ratio of the closing price to the 5-period EMA crosses above the 9-period SMA of the same ratio. This condition helps identify potential buy signals when multiple factors align, indicating a strong bullish momentum and potential entry point.
Weekly Trend Factor: The weekly slope condition calculates the slope of the 50-period SMA over a weekly timeframe. It checks if the slope is positive, indicating an overall upward trend on a weekly basis. This condition provides additional confirmation that the stock is in an upward trend.
When all of these conditions align, the buy condition is triggered, indicating a favourable time to enter a long position.
Sell Condition:
The sell condition is relatively straightforward in the strategy:
Sell Signal: The sell condition simply checks if the closing price crosses below the 10-period EMA. When this condition is met, it indicates a potential reversal or weakening of the upward price momentum, and a sell signal is generated.
Backtest Outcome:
The strategy was backtested over the period from January 22nd, 1999 to May 3rd, 2023, using daily candlestick charts for the NASDAQ: NVDA. The strategy used an initial capital of 1,000,000 USD, The order quantity is defined as 10% of the equity. The strategy allows for pyramiding with 1 order, and the transaction fee is set at 0.03% per trade. Here are the key outcomes of the backtest:
Net Profit: 539,595.84 USD, representing a return of 53.96%.
Percent Profitable: 48.82%
Total Closed Trades: 127
Profit Factor: 2.331
Max Drawdown: 68,422.70 USD
Average Trade: 4,248.79 USD
Average Number of Bars in Trades: 11, indicating the average duration of the trades.
Conclusion:
In conclusion, the Swing Momentum Strategy is a quantitative trading approach that combines swing trading principles with momentum indicators to identify and capture mid term trading opportunities. The strategy has demonstrated promising results during backtesting, including a significant net profit and a favourable profit factor.