لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
// 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)