Skip to content

Instantly share code, notes, and snippets.

@Kushan-
Created January 16, 2022 00:43
Show Gist options
  • Save Kushan-/9369551977a92433b5e303cdd71e1d24 to your computer and use it in GitHub Desktop.
Save Kushan-/9369551977a92433b5e303cdd71e1d24 to your computer and use it in GitHub Desktop.
//bullish paatern-------------------------------------------_kush_---------------------------------------------------------
study(title="BullEc", shorttitle="BullEc",overlay=true)
//----------------------------------------------------------------------------------------------------
//bullish-candle-check
bull_wick=high - close < 0.10?close-open:na
bull_body = bull_wick?close-open >0.09?close-open:na:na
bull_ec= bull_body?close > open[1] ? open:na?open:na:na
//----------------------------------------------------------------------------------------------------
//volume-check-on-bullish-candle
vol=volume>10000?bull_ec:na
//bull_vol=bull_ec? volume >10000?close-open:na
//plot(bull_wick, title='bull_wick', color=#00ffaa, linewidth=2, style=plot.style_hollow_circles, opacity=70, offset=15, trackprice=true)
plot( vol, title='bull_body', color=#FFFB00,style=plot.style_hollow_circles, trackprice=true, linewidth=3)
//----------------------------------------------------------------------------------------------------
//bottoming tail
bottomin_tail_wick=open-low>0.05?close-low:na
bottomin_tail_body=open-close<bottomin_tail_wick?low:na
plot( bottomin_tail_body, title='bottoming-tail', color=#00FFE0,style=plot.style_cross, linewidth=3)
// double bottom
close_DB=close[1]-close==0?close:na
vol_close_DB=vol>2500?close_DB:na
low_DB=low[1]-low==0?low:na
vol_low_DB=vol>2500?low_DB:na
plot( vol_close_DB, title='double_bottom_on_close', color=#FFFFFF,style=plot.style_columns)
plot( vol_low_DB, title='double_bottom_on_low', color=#808080,style=plot.style_columns)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment