HPotter

Piercing Line automatic finding script

Hi
Let me introduce my Piercing Line automatic finding script.
This is a bullish reversal pattern formed by two candlesticks. Following a downtrend,
an up candlestick with a long real body is followed by a lower open on the next
candlestick. This session finishes as an up candlestick and closes above the midpoint
of the prior candlestick's real body. It is the reverse of the Dark Cloud.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 10/04/2014
//    This is a bullish reversal pattern formed by two candlesticks. Following a downtrend, 
//    an up candlestick with a long real body is followed by a lower open on the next 
//    candlestick. This session finishes as an up candlestick and closes above the midpoint 
//    of the prior candlestick's real body. It is the reverse of the Dark Cloud.
////////////////////////////////////////////////////////////

study(title = "Piercing Line", overlay = true)
upper = highest(10)[1]
barcolor(close[1] < open[1] ?  open < low[1] ? close > close[1] + ((open[1] - close[1])/2) ? close < open[1] ? yellow :na :na  : na : na)