Nifty 50 Index

Simple strategy for intraday trading (not a chart analysis)

216

Herer in this video we have discussed a simple but effective trading strategy with the help of which you can achieve high accuracy with good risk to reward.


// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © Rahul

//version=5
indicator(title='Four Candles Scanner with Bollinger Bands', shorttitle='SEQ_VWEMA_BB', timeframe="", overlay=true)

//VARIABLE

body = close - open
//range_1 = ((high[4] + high[3] + high[2] + high[1]) - (low[4] + low[3] + low[2] + low[1])) / 4

// Sell Buy setup

buySEQ = body[4] < 0 and body[3] > 0 and body[2] < 0 and body[1] > 0
plotshape(buySEQ, title='Buy SEQ', location=location.belowbar, textcolor=color.lime, style=shape.triangleup, size=size.normal, color=color.lime, text='Buy\nAlert')

sellSEQ = body[4] > 0 and body[3] < 0 and body[2] > 0 and body[1] < 0
plotshape(sellSEQ, title='Sell SEQ', location=location.abovebar, textcolor=color.red, style=shape.triangledown,size=size.normal, color=color.red, text='Sell\nAlert')


//Bollinger Band

length = input.int(20, minval=1)
src = input(close, title="Source")
mult = input.float(1.5, minval=0.001, maxval=50, title="StdDev")
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
offset = input.int(0, "Offset", minval = -500, maxval = 500)
p1 = plot(upper, "Upper", color=#2962FF, offset = offset)
p2 = plot(lower, "Lower", color=#2962FF, offset = offset)
plot(ta.vwma(close, 5), color=#1a0e05f8)
plot(ta.vwap(close), color=#4c17d1e7)
plot(ta.ema(close, 200), color=#d11736f8 )

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.