Gap Upside Automatic finding script

This is Upside gap pattern.
Remove from Favorite Scripts Add to Favorite Scripts
//  Copyright by HPotter v1.0 20/10/2014
//    This is a Upside gap pattern. 
study(title = "Upside gap", overlay = true)
upper = highest(10)[1]
barcolor(low >  high[1] and close[1] > open[1] and close > open? yellow :na)


good indicator but only works when it's a bullish candle gaping up. Is there a way to find the bearish candle gaping up?
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out