ehsanha

Piercing Line Pattern Trading Setup

ehsanha 已更新   
this study is the first one of a series of scripts based on the candlesticks pattern which will be published over time. There are several such scripts out there that can be found on TradingView but they seem to be inaccurate with a lot of noises and messy hard to understand code. In this script, I've tried to have a clean and easy to get
of the pattern itself and the method for detecting it with enough parameters to filter out the noises.

Piercing Pattern
A piercing pattern is a technical trading signal that is formed by a closing down day with a good-sized trading range, followed by a trading gap lower the following day with a bullish candlestick that covers at least half of the upward length of the previous day's bearish candlestick body, finishing with a close higher for the day. A piercing pattern often signals the end of a small to moderate downward trend. A piercing pattern can serve as a potential indicator for a bullish reversal. This pattern is formed by two consecutive candlestick marks. The first candlestick is bearish signifying a down day and the second is bullish signifying an up day. When a trader is watching for a bullish reversal any red candlestick followed by a green candlestick could be an alert. There are a few things that set a piercing pattern apart from a general red candlestick green candlestick pattern. In a piercing pattern, a green candlestick follows a red one with a significant gap in the red candlestick close and green candlestick open. On the second-day green candlestick, the candlestick’s body must also lengthen to cover at least half of the previous day’s red candlestick. Generally, the gap down and substantial increase to the closing price are good signs for a reversal. In a piercing pattern, the second-day green candlestick will close at or above the midpoint of the previous day’s red candlestick.

please provide me with your valuable comments,
thanks for your attention,
版本注释:
some minor code formatting corrections as well as making the code compliant with trading-view rules
版本注释:
some minor code formatting corrections

© Ehsan Haghpanah (crumus.com)
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?