How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Feature Request FAQ Help & Wiki Twitter

# Circles

201 0
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.
```// 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)

```
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia

한국
Home Stock Screener Forex Signal Finder 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