INVITE-ONLY SCRIPT

Conditional Chart Pattern Signals: ABC Top/Bottom

Updated
CCPS ABC is a set of top/bottom patterns based on three points.

Pattern Variants/Subvariants:
UHV (Uphill Middle): The price retreats slightly and reverses to climb higher with V-shape. A downward signal of this variant points out the candle where the price might retreat again. Nonetheless, as it has been a strong uptrend with higher velocity and higher wave, the probability of a huge decrease is small. Thus, it is classified as a weak bearish signal and we should only use it as a warning, i.e., we will enter a sell position when there is another high with another bearish signal. Subvariant: UHV3.
UHL (Uphill Top Left): When the price crawls near the top of a hill, it is higher and higher but the velocity and the wave decrease. Subvariants: UHL1 (only velocity decreases), UHL2 (only wave decreases), UHL3 (both velocity and wave decrease).
DHC (Downhill Top Center): An increase followed by a decrease in price with higher velocity and higher wave represents the start of falling from the top of a hill. Subvariants: DHC1 (only velocity increases), DHC2 (only wave increases), DHC3 (both velocity and wave increase).
DHR (Downhill Top Right): A small decrease followed by a larger decrease in price with higher velocity and higher wave represents the confirmation of falling from the top of a hill. Subvariants: DHR1 (only velocity increases), DHR2 (only wave increases), DHR3 (both velocity and wave increase).
DHV (Downhill Middle): A large decrease followed by a small increase in price to form a V-shape with lower velocity yet higher wave represents the continuation of falling in the downside of a hill. Subvariant: DHV3.
DVA (Downvalley Middle): The price gains slightly and reverses to plunge lower with A-shape. An upward signal of this variant points out the candle where the price might bounce again. Nonetheless, as it has been a strong downtrend with higher velocity and higher wave, the probability of a huge increase is small. Thus, it is classified as a weak bullish signal and we should only use it as a warning, i.e., we will enter a buy position when there is another low with another bullish signal. Subvariant: DVA3.
DVL (Downvalley Bottom Left): When the price arrives near the bottom of a valley, it is lower and lower but the velocity and the wave decrease. Subvariants: DVL1 (only velocity decreases), DVL2 (only wave decreases), DVL3 (both velocity and wave decrease).
UVC (Upvalley Bottom Center): A decrease followed by an increase in price with higher velocity and higher wave represents the start of rising from the bottom of a valley. Subvariants: UVC1 (only velocity increases), UVC2 (only wave increases), UVC3 (both velocity and wave increase).
UVR (Upvalley Bottom Right): A small increase followed by a larger increase in price with higher velocity and higher wave represents the confirmation of rising from the bottom of a valley. Subvariants: UVR1 (only velocity increases), UVR2 (only wave increases), UVR3 (both velocity and wave increase).
UVA (Upvalley Middle): A large increase followed by a small decrease in price to form an A-shape with lower velocity yet higher wave represents the continuation of rising in the upside of a valley. Subvariant: UVA3.

Wave Calculation:
• Full: Waves are calculated at middle and two edges. Forward: Waves are calculated at middle and right edge.
• Average: Waves are measured by average heights. Max: Waves are measured by max heights.

Bullish/Bearish Signal Candle Check: None/Standard/TL.
• None: Not check signal candle if it is bullish or bearish.
• Standard: Bullish candle if close is higher than open or close is higher than previous close.
• TL(c): Bullish/bearish candles follow the proprietary standard. It has more conditions than Standard.

Exit: Choose an exit mode to calculate historical performance.
• Next Occurrence: Exit of an occurrence stands at the next occurrence.
• Near Fixed Length: Exit of an occurrence stands at either a specified fixed length or the next occurrence depending on which one happens first.

Signal Label Text: Subvariant name/abbreviation.

Signal Label Tooltip:
• Total: Number of occurrences of the subvariant, including the current one.
• Entry Price ($): Close price of the signal.
• Max Profit ($): Max profit of an occurrence is calculated from after the signal until the next occurrence of the same subvariant.
• Min/Max/Average Max Profit ($): Min/max/average profit of a subvariant is calculated by getting min/max/average of max profit of all occurrences of that subvariant.
• Max Loss ($): Max loss of an occurrence is calculated from after the signal until the next occurrence of the same subvariant.
• Min/Max/Average Max Loss ($): Min/max/average loss of a subvariant is calculated by getting max/min/average of max loss of all occurrences of that subvariant.
• Win: Number of historical winning occurrences of the subvariant. An occurrence of a subvariant is defined as winning when the max profit is larger than the absolute value of the max loss.
• Min Length: Min time between occurrences of the subvariant in terms of candles.
• Max Length: Max time between occurrences of the subvariant in terms of candles.
• Average Length: Average time between occurrences of the subvariant in terms of candles.

Current Label Text: Shows information of the latest occurrence of each subvariant next to the current candle.
• Last Occurrence: Date/time in exchange timezone of the latest occurrence.

Specification & Performance:
tinyurl.com/abctopbottom

Usage:
Enter right when the signal closes or at the open of the next candle after the signal.

Other Features:
• Non-repainting.
• Compact design.

Markets: Developed and tested on: US100. Timeframes: Developed and tested on: 30m.
Release Notes
Fix str.format_time.
ABCbottomChart patternsTOP

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact SupersafeTrader for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

Subscribe as a patron on any tier (https://www.patreon.com/tuele99), then message me your username and which indicator you want the access. I will confirm when the access is granted. 14-days trial.

Want to use this script on a chart?

Warning: please read before requesting access.

Public Indicators: tinyurl.com/26emm5e2
License and Disclaimer: tinyurl.com/4rtrwhfd
Also on:

Disclaimer