OPEN-SOURCE SCRIPT
Actualizado Market Leadership Network [NeuralMarkets]

Markets rarely move as one.
Some stocks quietly take control long before the index reacts.
Sometimes NVDA leads AI. Sometimes Financials quietly take over. Sometimes the entire market rotates beneath the surface while the index barely moves.
Most indicators measure price.
This indicator measures leadership.
Think of the market as a network.
Every asset influences something.
Some lead.
Some follow.
Some simply react.
Market Leadership Network transforms a group of symbols into a directed influence network and continuously asks one question:
Who is driving the market right now?
Rather than comparing relative strength, the model studies lead–lag relationships between assets and identifies where influence appears to originate.
What you'll see
Current Driver
The asset currently exhibiting the strongest outbound influence across the selected universe.
Not necessarily the strongest performer......the strongest leader.
Leadership Board
Every symbol is ranked from Leader to Follower using network influence instead of simple performance.
Leadership changes can occur even when prices remain relatively unchanged.
Leadership History
Markets don't always rotate every day.
Some leaders dominate for weeks.
Others briefly emerge before fading.
Leadership History shows how persistent each leader has been across the selected lookback window.
Influence Map
Once a leader emerges...
Which assets begin following?
The influence panel visualizes the strongest directional relationships currently detected within the network.
Why this is different
Traditional indicators ask:
"Is this stock strong?"
Market Leadership Network asks:
"Is this stock leading everyone else?"
Those are very different questions.
Built on Graph Theory
Internally, the indicator models the selected symbols as a weighted directed graph.
Lead–lag relationships become network connections.
Graph analytics are then used to estimate:
• Leadership
• Followers
• Influence concentration
• Rotation dynamics
• Leadership persistence
No prediction model.
No black-box AI.
Just quantitative network analysis applied to financial markets.
Ideal For
• Sector rotation research
• Technology leadership
• Heavyweight stock analysis
• Cross-asset studies
• Market structure research
• Quantitative experimentation
A note on interpretation
Leadership is relative, not absolute.
The rankings depend entirely on the selected group of assets.
The indicator is designed to explore market structure—not to generate automatic buy or sell signals.
Think of it as a microscope for understanding who is moving the market, rather than another indicator telling you where price should go next.
.................................................................................................................
Built with NeuralMarkets Network Toolkit
The indicator is powered entirely by the open-source NeuralMarkets Network Toolkit, a graph analytics library for Pine Script that provides reusable network algorithms, centrality measures, clustering metrics and financial graph primitives.
Some stocks quietly take control long before the index reacts.
Sometimes NVDA leads AI. Sometimes Financials quietly take over. Sometimes the entire market rotates beneath the surface while the index barely moves.
Most indicators measure price.
This indicator measures leadership.
Think of the market as a network.
Every asset influences something.
Some lead.
Some follow.
Some simply react.
Market Leadership Network transforms a group of symbols into a directed influence network and continuously asks one question:
Who is driving the market right now?
Rather than comparing relative strength, the model studies lead–lag relationships between assets and identifies where influence appears to originate.
What you'll see
Current Driver
The asset currently exhibiting the strongest outbound influence across the selected universe.
Not necessarily the strongest performer......the strongest leader.
Leadership Board
Every symbol is ranked from Leader to Follower using network influence instead of simple performance.
Leadership changes can occur even when prices remain relatively unchanged.
Leadership History
Markets don't always rotate every day.
Some leaders dominate for weeks.
Others briefly emerge before fading.
Leadership History shows how persistent each leader has been across the selected lookback window.
Influence Map
Once a leader emerges...
Which assets begin following?
The influence panel visualizes the strongest directional relationships currently detected within the network.
Why this is different
Traditional indicators ask:
"Is this stock strong?"
Market Leadership Network asks:
"Is this stock leading everyone else?"
Those are very different questions.
Built on Graph Theory
Internally, the indicator models the selected symbols as a weighted directed graph.
Lead–lag relationships become network connections.
Graph analytics are then used to estimate:
• Leadership
• Followers
• Influence concentration
• Rotation dynamics
• Leadership persistence
No prediction model.
No black-box AI.
Just quantitative network analysis applied to financial markets.
Ideal For
• Sector rotation research
• Technology leadership
• Heavyweight stock analysis
• Cross-asset studies
• Market structure research
• Quantitative experimentation
A note on interpretation
Leadership is relative, not absolute.
The rankings depend entirely on the selected group of assets.
The indicator is designed to explore market structure—not to generate automatic buy or sell signals.
Think of it as a microscope for understanding who is moving the market, rather than another indicator telling you where price should go next.
.................................................................................................................
Built with NeuralMarkets Network Toolkit
The indicator is powered entirely by the open-source NeuralMarkets Network Toolkit, a graph analytics library for Pine Script that provides reusable network algorithms, centrality measures, clustering metrics and financial graph primitives.
Notas de prensa
Minor aesthetic updatesScript de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Machine-learning market structure & forecast levels. Publishing levels before the markets move. Educational only.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Machine-learning market structure & forecast levels. Publishing levels before the markets move. Educational only.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.