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
Keluarkan daripada Skrip Pilihan Tambah kepada Skrip Pilihan
// 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) 
version 3
not running well
Balas
repo32 ftrading
@ftrading, Only one version of this.
Balas
Any way to change the open to the london open?
+1 Balas
repo32 scoobeee
@scoobeee, Unfortunately not with this code. There are others who have programmed in some timezone scripts. Good luck.
Balas
Great Script !! Just one question, is there any way to see the future/next day in, lets say, semitransparent to see where the day ends ? Thanks
Balas
repo32 RogerS
@RogerS, Do you mean have the dots post ahead of the current candle? Or do you mean predict the future ? :)
Balas
RogerS repo32
@repo32, I mean the dots ahead of the current candle, just to clearly see when the days ends. With all the TD tools I could use vertical lines, callouts, ballons, etc. but I thought it would be useful to see it in the same indicator.
Balas
repo32 RogerS
@RogerS, I think this is what you mean: plot(odl and dopen ? dopen :na , title="Daily_Open",style=circles,offset=1, color=dcolor, linewidth=3)
The only thing you do is add "offset=1" to both plot lines and this will push it 1 bar ahead for you.
Balas
What was supposed to be changed in order for the open close of previous week? Thank in advance ~
Balas
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Peraturan Dalaman Moderator Laman web dan Penyelesaian Broker Widget Solusi pencartaan Dapatkan Bantuan Permintaan Ciri Blog & Berita Soalan Lazim Wiki Twitter
Profil Tetapan Profil Akaun dan Pengebilan Dapatkan Bantuan Idea-idea yang diterbitkan Pengikut Mengikut Mesej Peribadi Sembang Daftar Keluar