squattter

EMA bullish/bearish dashboard - MTF

This is a good reminder for which way you should be placing orders.
It's best to not ignore these signals!!!


lime = full bull - 100ema above 200ema and price is above 200ema
green = hallf bull - price now below 200ema but 100ema is still above the 200
maroon = full bear - opposite of full bull
red = half bear - opposite of half bull


Also with multi timeframe option - so I guess you could stack several of these on a single framed chart if you wanted.
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

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.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
study(title="EMA bullish/bearish dashboard - MTF")
//ema 1
len1 = input(100, minval=1)
src = input(close, title="Source")
ema1 = ema(src, len1)

len2 = input(200, minval=1)
ema2 = ema(src, len2)

useCurrentRes = input(true, title="Use current timeframe?")

resCustom = input(title="Timeframe", type=resolution, defval="5")
res = useCurrentRes ? period : resCustom
ema11 = security(tickerid, res, ema1)
ema22 = security(tickerid, res, ema2)



plot((ema11 > ema22 and close > ema22), title="Buy 2/2", style=columns, color=lime)
plot((ema11 > ema22 and close < ema22), title="Buy 1/2", style=columns, color=green)
plot((ema11 < ema22 and close < ema22), title="Sell 2/2", style=columns, color=maroon)
plot((ema11 < ema22 and close > ema22), title="Sell 1/2", style=columns, color=red)