repo32

Open Close Daily Line

This will place circles on your chart for the opening daily price. If price is above, the circles are green. If price is below, the circles are red. I wanted to be able to see the opening price a bit easier while in smaller time frames.
I decided to add the previous daily closing line to the original script. Basically looking for good support / resistance
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
// Written by Robert N.  030615
// Still looking for way to remove from previous days
study("Open/Close Daily Line", overlay=true)

odl = input(true, title="Open Daily Line")
dopen = security(tickerid, 'D', open) 
dcolor = close < dopen ? red : green
plot(odl and dopen ? dopen :na , title="Daily_Open",style=circles, color=dcolor, linewidth=3) 


cdl = input(true, title="Previous Closing Daily Line")
dclose = security(tickerid, 'D', close[1]) 
dcolor2 = close < dclose ? red : green
plot(cdl and dclose ? dclose :na , title="Daily_Close",style=circles, color=dcolor2, linewidth=3)