Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © leixx
//@version=4
study("雷公公变色图", overlay = true)
//20 dkj
x20 = low
//below 20sma
poxian = close < sma(close, 20)
//below 20dkj
guaitou = close < x20
colorbar = guaitou ? color.black : poxian ? #7D7A7A : color.green
barcolor(colorbar)