MarxBabu

GAP_UP_PLOTTING

NSE_EOD:NIFTY   NIFTY 50
137 1 1
11 months ago
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
11 months ago
Comment: The code is available here

//@version=2
//Author MarxBabu
study(title="GAPUP_PLOTTING", overlay = true)
isUp() => close > open
isDown() => close <= open
//GAP UP DECISION
isGapUp()=> low>low[1] and low>open[1] and low >high[1] and low >close[1] and isUp()
isGapDown()=>highx = if isGapUp()
currentLowValue =low[1]

y = if isGapDown()
currentLowValue =close[1]

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)
AMBRISH
11 months ago
Thank you for posting chart along with AFL code.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out