OPEN-SOURCE SCRIPT

Buyer vs Seller Control Companion

121
Buyer vs Seller Control Companion (Overlay)

Crossover signal overlay based on candlestick wick analysis moving averages

Overview:

This companion indicator displays crossover signals directly on the price chart based on the same buyer vs seller control calculations. It identifies moments when the relationship between buying and selling pressure shifts by analyzing where prices close relative to their intraday ranges.

Calculation Method:

The indicator uses identical calculations to the main Buyer vs Seller Control indicator:
Buyer vs Seller Control


Visual Components:

  • Lime Triangle Up: Appears below price bars when buyer control SMA crosses above seller control SMA
  • Fuchsia Triangle Down: Appears above price bars when seller control SMA crosses above buyer control SMA


Signal Logic:


Crossover events are detected when one moving average crosses above or below the other. These crossovers indicate potential shifts in the balance between buying and selling pressure as measured by candlestick closing positions relative to their wicks.


Arrow Placement:

  1. Upward Triangle: Positioned below the bar when buyer control moving average exceeds seller control moving average
  2. Downward Triangle: Positioned above the bar when seller control moving average exceeds buyer control moving average
  3. Size: Small triangular shapes to avoid cluttering the price chart
  4. Timing: Arrows appear only on bars where actual crossovers occur


Settings:

  • Moving Average Period: Adjustable from 1-200 periods (default: 20)


Technical Notes:

  • This overlay version works on any timeframe
  • Arrows only appear when crossovers actually occur, not on every bar
  • The indicator uses the same mathematical foundation as the main oscillator version
  • Signal frequency depends on the chosen moving average period
  • Shorter periods generate more frequent crossovers, longer periods generate fewer


Relationship to Main Indicator:


This companion overlay displays the exact crossover points that can be observed in the main Buyer vs Seller Control indicator. It provides the same information but presents it directly on the price chart for convenient reference without switching between indicator panes.


This overlay serves as a visual reference tool for crossover events detected in the underlying buyer vs seller control analysis.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.