TradingView
TsangYouJun
26 jul 2020 09:04

Bullish Piercing Scanner 

SPDR S&P 500 ETF TRUSTArca

Beskrivning

A piercing pattern is known in technical analysis to be a potential signal for a bullish reversal. The formation in its strictest form is rather rare, but tends to perform better the longer the downtrend in front of it. When technical studies such as RSI, Stochastic or MACD are showing a bullish divergence at the same time a piercing pattern appears, it strengthens the likelihood that this two-day pattern is meaningful.

This is a two-candle pattern. The previous candle must be bearish, the recent candle must open below the close of the previous candle, the recent candle must close above the middle of the previous candle. You can adjust the closing and opening gap between the two candles within this scanner's settings (price).
Kommentarer
biswad
Doesn't work!
TsangYouJun
@biswad, on what?
ammartr
@TsangYouJun, got this error -

line 8: 'float' could not be a variable or function name
Script 'Piecing Pattern Scanner' has been saved
Add to Chart operation failed, reason: line 8: 'float' could not be a variable or function name
TsangYouJun
@garbte, from my code, float is on line-5. Perhaps if you post your code to me as a link, I can review it.
ammartr
@TsangYouJun, Also this -

Add to Chart operation failed, reason: line 14: Undeclared identifier 'green'
TsangYouJun
@garbte, if you're using Pine Script v4, be sure to specify color using hex-values, for example black would be #000000.
Mer