How the Buy Sell System Works
This AFL layers two confirmation conditions for every signal. A MACD crossover alone is unreliable โ it generates too many false signals in ranging markets. Adding a ZigZag trend filter ensures you're only taking MACD signals that agree with the broader swing direction.
Buy Signal Conditions
Condition 1: MACD line crosses above Signal line (bullish MACD crossover)
Condition 2: ZigZag(C, z) > Ref(ZigZag(C, z), -4) โ the recent ZigZag pivot is rising (uptrend confirmed)
Sell Signal Conditions
Condition 1: Signal line crosses above MACD line (bearish MACD crossover)
Condition 2: ZigZag(C, z) < Ref(ZigZag(C, z), -4) โ the recent ZigZag pivot is falling (downtrend confirmed)
Dynamic Support & Resistance Bands
Beyond the buy/sell arrows, this AFL plots two dashed dynamic levels on the chart:
- BSR1 (Bear Resistance): Calculated from RSI-smoothed EMA data โ acts as upper resistance zone. Price struggling to cross this = bearish bias.
- BSR2 (Bull Support): Derived from the same formula at a different value threshold โ acts as dynamic support. Price holding above this = bullish bias.
Technical Specifications
Best Use Cases
Daily Charts (Positional)
Scan NSE 500 stocks on daily charts after market close. MACD + ZigZag confluence on daily gives swing setups with 3โ10 day holding periods.
60-Min Charts (Intraday Swing)
Use on 60-minute charts for intraday positions held 2โ4 hours. Good fit for liquid F&O stocks and Nifty index futures.
Batch Scanning
Run in AmiBroker Explorer on your Nifty 200 watchlist to find all stocks with active Buy or Sell signals each morning.
Trend Confirmation
Use BSR1/BSR2 dynamic S/R levels as additional confirmation โ buy signals above BSR2 have higher probability; sell signals below BSR1 are stronger.