Greenmood

GreenMood inchart KST

Threshold min / max as well as usual KST 0.41% settings (ROCx, SMA ) can be changed in format view.

Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?
//@version=2
study('GreenMood inchart KST', overlay=true)
//data = close >= open
//plotshape(data, style=shape.triangleup,location=location.abovebar, color=green)
//plotshape(not data, style=shape.triangledown,location=location.belowbar, color=red)

// KST VARIABLE
ROC1=input(10)
ROC2=input(13)
ROC3=input(15)
ROC4=input(20)
SMA1=input(6)
Magnitude_Bull=input(-0.5)
Magnitude_Bear=input(0.5)
// KST INPUT
ROCma1 = sma(roc(close,ROC1), 10)
ROCma2 = sma(roc(close,ROC2), 10)
ROCma3 = sma(roc(close,ROC3), 10)
ROCma4 = sma(roc(close,ROC4), 15)
ZeroLine = hline(0)
// KST CALCULATION
KST =  ROCma1 + (ROCma2*2) + (ROCma3*3) + (ROCma4*4)
SIGNAL = sma (KST, SMA1)
plotgreenKST = iff((crossover(KST, SIGNAL)) and KST <Magnitude_Bull, crossover(KST,SIGNAL),na)
plotredKST = iff((crossunder(KST, SIGNAL)) and KST >Magnitude_Bear, crossunder(KST,SIGNAL),na)
// KST OUTPUT
plotshape(plotgreenKST, style=shape.triangleup, location=location.bottom, color=lime, size=size.small, text="KST Buy")
plotshape(plotredKST, style=shape.triangledown, location=location.top, color=red, size=size.small, text="KST Sell")