OPEN-SOURCE SCRIPT

MTF Trend Example

137
//version=6
indicator("MTF Trend Example", overlay=true)

emaFast = ta.ema(close, 20)
emaSlow = ta.ema(close, 50)

trendUp = emaFast > emaSlow
trendDown = emaFast < emaSlow

plot(emaFast)
plot(emaSlow)
barcolor(trendUp ? color.green : trendDown ? color.red : na)

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.