EMPORIA FAV

//@version=5

indicator(title="ohh", shorttitle="ohh", overlay=true)

[DO]=request.security(syminfo.ticker, "D", [open], lookahead=barmerge.lookahead_on)


PDO = request.security(syminfo.tickerid, 'D', open[1], lookahead = barmerge.lookahead_on) 

PDC = request.security(syminfo.tickerid, 'D', close[1], lookahead = barmerge.lookahead_on) 

HO=request.security(syminfo.tickerid,"D",PDO-PDC)


//Daily

pdh = request.security(syminfo.tickerid, 'D', high[1])

pdl = request.security(syminfo.tickerid, 'D', low[1])


//Weekly

wtdo = request.security(syminfo.tickerid, 'W', open)

wpdo = request.security(syminfo.tickerid, 'W', open[1])

wpc = request.security(syminfo.tickerid, 'W', close)

wpdc = request.security(syminfo.tickerid, 'W', close[1])

wph = request.security(syminfo.tickerid, 'W', high)

wpdh = request.security(syminfo.tickerid, 'W', high[1])

wpl = request.security(syminfo.tickerid, 'W', low)

wpdl = request.security(syminfo.tickerid, 'W', low[1])

//Monthly

mtdo = request.security(syminfo.tickerid, 'M', open)

mpdo = request.security(syminfo.tickerid, 'M', open[1])

mpc = request.security(syminfo.tickerid, 'M', close)

mpdc = request.security(syminfo.tickerid, 'M', close[1])

mph = request.security(syminfo.tickerid, 'M', high)

mpdh = request.security(syminfo.tickerid, 'M', high[1])

mpl = request.security(syminfo.tickerid, 'M', low)

mpdl = request.security(syminfo.tickerid, 'M', low[1])


HH=request.security(syminfo.tickerid,"D",PDO-PDC)

hl=request.security(syminfo.tickerid,"D",pdh-pdl)

plot(timeframe.isintraday ? DO-PDC/wpdc/wtdo: na, title="Daily open", color=color.green,linewidth=3)

plot(timeframe.isintraday ? DO+PDC/wpdc/wtdo : na, title="Daily close", color=color.red,linewidth=3) 

plot(DO-HH/DO, title="S",color=color.white,linewidth=1)

plot(DO+HH/DO, title="S",color=color.green,linewidth=1)


NP/; USING THIS INDICATOR, U CAN FIND NIFTY's day trend whether UP or DOWN, for that checkout the day's first candle(15mnts) closes above or below the indicator line,  also review the older days performance to ironing the indicators!!! 



 

Comments

Popular Posts