178 0 9
This displays the closing price colored according to the closing direction. This study is a different and versatile way to present the bars, it can show only the closing level, just the opening price, the full bar range or any combination of these three elements.
Remove from Favorite Scripts Add to Favorite Scripts
// Hector R. Madrid : 31/Mar/2015 : 1.0 : Colored Circles
// This displays the closing price colored according to 
// the closing direction
// This study is a different and versatile way to present the bars,  it
// can show only the closing level, just the openning price,
// the full bar range or any combination of these three elements.

study("Circles", overlay=true)
dispOpen=input(true)
dispClose=input(true)
dispRange=input(true)

// Output
circleColor = close>open?aqua:fuchsia
plot(dispOpen?open:na, color=circleColor, style=circles, linewidth=2)
plot(dispClose?close:na, color=circleColor, style=circles, linewidth=2)
//plot(dispHigh?high:na, color=circleColor, style=circles, linewidth=1)
//plot(dispLow?low:na, color=circleColor, style=circles, linewidth=1)

step=(high-low)/12
plot(dispRange?low:na, style=circles, color= circleColor)
plot(dispRange?low+step:na, style=circles, color= circleColor)
plot(dispRange?low+step*2:na, style=circles, color= circleColor)
plot(dispRange?low+step*3:na, style=circles, color= circleColor)
plot(dispRange?low+step*4:na, style=circles, color= circleColor)
plot(dispRange?low+step*5:na, style=circles, color= circleColor)
plot(dispRange?low+step*6:na, style=circles, color= circleColor)
plot(dispRange?low+step*7:na, style=circles, color= circleColor)
plot(dispRange?low+step*8:na, style=circles, color= circleColor)
plot(dispRange?low+step*9:na, style=circles, color= circleColor)
plot(dispRange?low+step*10:na, style=circles, color= circleColor)
plot(dispRange?low+step*11:na, style=circles, color= circleColor)
plot(dispRange?high:na, style=circles, color= circleColor)

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