OPEN-SOURCE SCRIPT
Stacked EMA Confirmation

//version=5
indicator(" Stacked EMA Confirmation", overlay=false)
//This script plots a green circle on top of the chart when the EMAs are stacked positively, a red circle if they are stacked negatively and gray if neither positively nor negatively
//The EMAs used are:
//8 EMA
//13 EMA
//21 EMA
//Useful when you look for a quick and easy way to see if these EMAs are stacked positively or negatively as a confirmation
//Default 100 bars back, but that can be adjusted.
StackedLookback = input(100, "How many bars back to show")
ema8 = ta.ema(close, 8)
ema13 = ta.ema(close, 13)
ema21 = ta.ema(close, 21)
conditionMet = ema8 > ema13 and ema13 > ema21
negativeConditionMet = ema8 < ema13 and ema13 < ema21
circleColor = conditionMet ? color.green : negativeConditionMet ? color.red : color.gray
plotshape(series=close, color=circleColor, style=shape.circle, title="Circle", location=location.top, display=display.pane, size=size.auto, show_last=StackedLookback)
indicator(" Stacked EMA Confirmation", overlay=false)
//This script plots a green circle on top of the chart when the EMAs are stacked positively, a red circle if they are stacked negatively and gray if neither positively nor negatively
//The EMAs used are:
//8 EMA
//13 EMA
//21 EMA
//Useful when you look for a quick and easy way to see if these EMAs are stacked positively or negatively as a confirmation
//Default 100 bars back, but that can be adjusted.
StackedLookback = input(100, "How many bars back to show")
ema8 = ta.ema(close, 8)
ema13 = ta.ema(close, 13)
ema21 = ta.ema(close, 21)
conditionMet = ema8 > ema13 and ema13 > ema21
negativeConditionMet = ema8 < ema13 and ema13 < ema21
circleColor = conditionMet ? color.green : negativeConditionMet ? color.red : color.gray
plotshape(series=close, color=circleColor, style=shape.circle, title="Circle", location=location.top, display=display.pane, size=size.auto, show_last=StackedLookback)
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
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.