PROTECTED SOURCE SCRIPT
Quad Moving Average (3, 9, 44, 200)

MA 200 — The Big Trend Indicator
Use: Long-term trend direction.
Meaning:
If price > MA 200 → Bullish (uptrend)
If price < MA 200 → Bearish (downtrend)
Traders use it to:
Stay aligned with the major trend.
Avoid counter-trend trades.
Best for: Swing & positional traders.
⚙️ 2. MA 44 — Mid-Term Trend
Use: Medium-term trend tracking.
Meaning:
Works well on 1-hour, 4-hour, or daily charts.
Helps identify trend continuations or pullbacks.
Traders use it to:
Spot retracements to the mid-term moving average for buy/sell opportunities.
Filter out short-term noise.
⚡ 3. MA 9 — Short-Term Momentum
Use: Entry timing & momentum confirmation.
Meaning:
Tracks short-term price action.
Reacts fastest to price changes.
Traders use it to:
Catch short swings or early trend reversals.
Signal entries when it crosses above/below other MAs (like MA44 or MA200).
🔄 Common Strategy Example
Triple Moving Average Strategy (MA 9, 44, 200):
Buy signal:
Price above MA200 (long-term bullish)
MA9 crosses above MA44 → short-term momentum aligns with medium trend
Sell signal:
Price below MA200 (long-term bearish)
MA9 crosses below MA44 → short-term weakness confirmed
⚠️ Cautions
MAs lag behind price (they are not predictive).
Combine with RSI, MACD, or volume for confirmation.
Avoid using the same MAs across all timeframes — adjust for your trading style.
Would you like me to show you an example chart setup (with MA 200, 44, and 9) and how to interpret signals visually (for TradingView or similar)?
You said:
give me pine script for moving average 9, 44 and 200
ChatGPT said:
Here’s a clean, ready-to-use Pine Script v5 for TradingView that plots MA 9, 44, and 200, with color-coded signals and optional alerts 👇
📜 Pine Script (v5)
//version=5
indicator("Triple Moving Average (9, 44, 200)", overlay=true)
// Input settings
ma9_length = input.int(9, "Short-Term MA", minval=1)
ma44_length = input.int(44, "Mid-Term MA", minval=1)
ma200_length = input.int(200, "Long-Term MA", minval=1)
ma_type = input.string("EMA", "MA Type", options=["SMA", "EMA"])
// Calculate MAs
ma9 = ma_type == "EMA" ? ta.ema(close, ma9_length) : ta.sma(close, ma9_length)
ma44 = ma_type == "EMA" ? ta.ema(close, ma44_length) : ta.sma(close, ma44_length)
ma200 = ma_type == "EMA" ? ta.ema(close, ma200_length) : ta.sma(close, ma200_length)
// Plot MAs
plot(ma9, color=color.new(color.yellow, 0), linewidth=2, title="MA 9")
plot(ma44, color=color.new(color.orange, 0), linewidth=2, title="MA 44")
plot(ma200, color=color.new(color.aqua, 0), linewidth=2, title="MA 200")
// Cross conditions
bullish_cross = ta.crossover(ma9, ma44) and close > ma200
bearish_cross = ta.crossunder(ma9, ma44) and close < ma200
// Background highlight for signals
bgcolor(bullish_cross ? color.new(color.green, 85) : na)
bgcolor(bearish_cross ? color.new(color.red, 85) : na)
Use: Long-term trend direction.
Meaning:
If price > MA 200 → Bullish (uptrend)
If price < MA 200 → Bearish (downtrend)
Traders use it to:
Stay aligned with the major trend.
Avoid counter-trend trades.
Best for: Swing & positional traders.
⚙️ 2. MA 44 — Mid-Term Trend
Use: Medium-term trend tracking.
Meaning:
Works well on 1-hour, 4-hour, or daily charts.
Helps identify trend continuations or pullbacks.
Traders use it to:
Spot retracements to the mid-term moving average for buy/sell opportunities.
Filter out short-term noise.
⚡ 3. MA 9 — Short-Term Momentum
Use: Entry timing & momentum confirmation.
Meaning:
Tracks short-term price action.
Reacts fastest to price changes.
Traders use it to:
Catch short swings or early trend reversals.
Signal entries when it crosses above/below other MAs (like MA44 or MA200).
🔄 Common Strategy Example
Triple Moving Average Strategy (MA 9, 44, 200):
Buy signal:
Price above MA200 (long-term bullish)
MA9 crosses above MA44 → short-term momentum aligns with medium trend
Sell signal:
Price below MA200 (long-term bearish)
MA9 crosses below MA44 → short-term weakness confirmed
⚠️ Cautions
MAs lag behind price (they are not predictive).
Combine with RSI, MACD, or volume for confirmation.
Avoid using the same MAs across all timeframes — adjust for your trading style.
Would you like me to show you an example chart setup (with MA 200, 44, and 9) and how to interpret signals visually (for TradingView or similar)?
You said:
give me pine script for moving average 9, 44 and 200
ChatGPT said:
Here’s a clean, ready-to-use Pine Script v5 for TradingView that plots MA 9, 44, and 200, with color-coded signals and optional alerts 👇
📜 Pine Script (v5)
//version=5
indicator("Triple Moving Average (9, 44, 200)", overlay=true)
// Input settings
ma9_length = input.int(9, "Short-Term MA", minval=1)
ma44_length = input.int(44, "Mid-Term MA", minval=1)
ma200_length = input.int(200, "Long-Term MA", minval=1)
ma_type = input.string("EMA", "MA Type", options=["SMA", "EMA"])
// Calculate MAs
ma9 = ma_type == "EMA" ? ta.ema(close, ma9_length) : ta.sma(close, ma9_length)
ma44 = ma_type == "EMA" ? ta.ema(close, ma44_length) : ta.sma(close, ma44_length)
ma200 = ma_type == "EMA" ? ta.ema(close, ma200_length) : ta.sma(close, ma200_length)
// Plot MAs
plot(ma9, color=color.new(color.yellow, 0), linewidth=2, title="MA 9")
plot(ma44, color=color.new(color.orange, 0), linewidth=2, title="MA 44")
plot(ma200, color=color.new(color.aqua, 0), linewidth=2, title="MA 200")
// Cross conditions
bullish_cross = ta.crossover(ma9, ma44) and close > ma200
bearish_cross = ta.crossunder(ma9, ma44) and close < ma200
// Background highlight for signals
bgcolor(bullish_cross ? color.new(color.green, 85) : na)
bgcolor(bearish_cross ? color.new(color.red, 85) : na)
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.