NSE_EOD:NIFTY   Nifty 50 Index
164 1 5
Identify the GAP up and GAP DOWN opening and plot the line.
Strategy when GAPUP identified Buy and target for few 100pips.

1.Color automated Lime candle shows one ahead candle of gapup
2.Black candle shows gapdown.
3.Line drawn for GapUp,GapDown
Comment: The code is available here

//Author MarxBabu
study(title="GAPUP_PLOTTING", overlay = true)
isUp() => close > open
isDown() => close <= open
isGapUp()=> low>low and low>open and low >high and low >close and isUp()
isGapDown()=>high<low and high<open and high< close and high<high and isDown()
x = if isGapUp()
currentLowValue =low

y = if isGapDown()
currentLowValue =close

plot(x, style=line, linewidth=3, color=lime)
plot(y, style=line, linewidth=3, color=red)

barcolor(isGapUp()? #00FF00 :na,-1)
barcolor(isGapDown() ? #030303 :na,-1)
Thank you for posting chart along with AFL code.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out