Skip to content
All library documents

Monthly and Weekly MACD Filters with a Weekly EMA Exit

Article TradingView scripts

Summary

This long-only strategy combines monthly and weekly MACD readings. It enters when the monthly MACD is above its signal line, the weekly MACD is also bullish, and a fresh bullish crossover occurs on either timeframe. For exits, it can require the weekly MACD to remain bearish for two consecutive weekly bars and the price to fall below a 50-period EMA; both filters are configurable. A table displays monthly and weekly MACD status for the chart symbol and a selectable Nifty benchmark, while optional moving averages support chart inspection.

The source specifies default MACD lengths, uses higher-timeframe data without lookahead, and sets orders to process on bar close. It provides no performance statistics despite describing the settings as optimized for NiftyBEES, and the Nifty data is used for the status table rather than trade decisions. The benchmark and chart instrument may differ. Results will depend on the traded symbol, chart timeframe, data, execution assumptions, and whether the confirmation filters are enabled; the document does not establish profitability.

Key ideas

  • The strategy combines monthly bullish MACD regime with weekly bullish participation for long entries.
  • A fresh MACD crossover on either timeframe serves as the trigger while both trend states must be bullish.
  • Exits can require consecutive weekly bearish readings and price below the 50-period EMA.
  • Nifty MACD values are displayed for context and do not drive orders in the chart symbol.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.