PROTECTED SOURCE SCRIPT

BUY, SELL, RESUME, & CAUTION signal (EMA 9 & 20 + MACD)

61
ON CHART BUY, SELL, CAUTION signal (with RESUME)

What it does
A clean, on-chart signal set that works on whatever timeframe your chart is on. It prints labeled circles above the bar and draws a thin connector line with a tiny arrow that points to the bar. All shapes are kept above both EMAs and never touch wicks—spacing is ATR-based and fully adjustable.

Signals
• BUY – when EMA(9) crosses above EMA(20).
• SELL – when EMA(9) crosses below EMA(20).
• CAUTION – MACD momentum crosses against the current EMA trend
◦ Bull trend (EMA9 > EMA20) + MACD cross down → CAUTION
◦ Bear trend (EMA9 < EMA20) + MACD cross up → CAUTION
• RESUME – after a CAUTION, MACD crosses back with the EMA trend. The circle is labeled “RESUME” (green for bull, red for bear).

Why traders use it
• Trade with the current: BUY/SELL reflect short-vs-long EMA control on your active timeframe.
• Early risk heads-up: CAUTION flags a momentum flip against trend.
• Re-engage cleanly: RESUME helps rejoin the move after a wobble.
• Uncluttered visuals: Circles/lines/arrows are spaced off price and kept above EMAs for clarity.


Inputs
Core
• EMA Fast / EMA Slow (default 9 / 20)
• MACD Fast / Slow / Signal (default 12 / 26 / 9)
• Show circles with text, Plot EMAs
• Wait for candle close (prevents intrabar flicker; signals/alerts confirm at close)
Spacing (ATR-based)
• Gap above wick
• Base connector length
• Extra circle lift
• Line top gap under circle (so the line doesn’t touch the circle)
• Pad above higher EMA
• Extra arrow clearance above EMAs

Alerts
• BUY Crossover, SELL Crossover, MACD CAUTION, BUY Resume, SELL Resume.
• Respect the Wait for candle close setting. For close-only alerts, also choose “Once per bar close” in the alert dialog.

Suggested use
• Let BUY/SELL define bias on your chart timeframe.
• Treat CAUTION as a brake—tighten risk or wait.
• Use RESUME to re-enter when momentum realigns with trend.
• Combine with higher-TF context and your own entry/exit rules.

Notes
• Works on futures, stocks, FX, and crypto.
• Signals are calculated on the current chart timeframe (no security calls).
• With Wait for candle close ON, signals/alerts confirm at close and do not repaint.
• Educational tool only—this is not financial advice.
• When price action is sideways and choppy, this indicator doesn't function well, when this happens, wait until a trend is established and then try to get in when price touches the 9 EMA line for a higher profitability trade

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.