TradingView
NeoButane
٢٧ تشرين الثاني نوفمبر ٢٠١٨ ٠٥:٠٠

Fixed Candles 

Bitcoin SV / BitcoinPoloniex

الوصف

Made to chart cryptocurrencies with ridiculous exchange drop candles.

Usage:
1. Hide chart candlesticks
2. Untick 'Scale Price Chart Only'

ملاحظات الأخبار

Added price source to use for indicators.

ملاحظات الأخبار

Fixed chart scaling to always be on main series
التعليقات
NeoButane
Source:

//@version=3
// @NeoButane 1 Oct. 2018
//
// Made to chart cryptocurrencies with ridiculous exchange drop candles

// Custom colors
upCol = #65B3DF
dnCol = #FFB347
wick = gray
//---
// Default candle colors
upDef = #48978E
dnDef = #CD615B
//---

study("Fixed Candles", "Fixed Candles", 1, scale=scale.right)

def = true//input(true, "Use Default Colors")
bar = input(1, "Bars to Ignore", minval=0)

C(x) =>
can = security(tickerid, period, x)
neo = n >= bar ? can : na

o = C(open )
h = C(high )
l = C(low )
c = C(close)
z = C(hlc3 )

cCol = c > o and def ?
upDef : c < o and def ?
dnDef : c > o and not def ?
upCol : c < o and not def ?
dnCol : na

plotcandle(
o,
h,
l,
c,
"Candle",
cCol,
wick)

plot(c, "Close Price Source", color(black, 100))
plot(z, "hlc3 Price Source", color(black, 100))
المزيد