indicator · on price · open source

Multi-MA Composite

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Multi-MA Composite — Wilder-smoothed MAs at 20 / 50 / 200 plotted together. A fan-pattern (faster MAs above slower) flags the trend and confirms breakouts; the 200-MA is the long-term regime line.

  • Buy when 20 > 50 > 200 and pullback to 20 holds.
  • Sell on 20 crossing below 50.

Source code

//@version=5
indicator("Multi-MA Composite", overlay=true)
e20 = ta.rma(close, 20)
e50 = ta.rma(close, 50)
e200 = ta.rma(close, 200)
p_MA_20 = plot(e20, "MA 20", color=color.blue, linewidth=1)
p_MA_50 = plot(e50, "MA 50", color=color.orange, linewidth=1)
p_MA_200 = plot(e200, "MA 200", color=color.red, linewidth=2)
alertcondition(ta.crossover(e20, e50), "Short-term cross", "20-MA crossed above 50-MA")
alertcondition(ta.crossover(e50, e200), "Golden cross", "50-MA crossed above 200-MA")
alertcondition(ta.crossunder(e50, e200), "Death cross", "50-MA crossed below 200-MA")

Comments

No comments yet.

Sign in to comment.