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.

Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?
////////////////////////////////////////////////////////////
//  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)