yerb

4x MA Cross indicator

Have four MA indicators with dots on the crossings
Remove from Favorite Scripts Add to Favorite Scripts
study(title="4x MA Cross", overlay=true)
ma1_p=input(8, title="EMA1 Length")
ma2_p=input(20, title="EMA2 Length")
ma3_p=input(50, title="EMA3 Length")
ma4_p=input(200, title="EMA4 Length")
ma1 = ema(close, ma1_p)
ma2 = sma(close, ma2_p)
ma3 = sma(close, ma3_p)
ma4 = sma(close, ma4_p)
plot(ma1, color = #00ffff, linewidth = 2)
plot(ma2, color = #ff9800, linewidth = 2)
plot(ma3, color = #cc4125, linewidth = 2)
plot(ma4, color = #00ff00, linewidth = 2)
plot(cross(ma1, ma2) or cross(ma1, ma3) or cross(ma1, ma4) ? ma1 : na, style = circles, linewidth = 4 , color = #ffff00)
plot(cross(ma2, ma3) or cross(ma2, ma4) ? ma2 : na, style = circles, linewidth = 4 , color = lime)
plot(cross(ma3, ma4) ? ma3 : na, style = circles, linewidth = 4 , color = aqua)
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
中国
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out