indicator to show the leading/driving symbol on various correlated

 

Hi all,


Im looking for an indicator that compare various symbols that are correlated and tell me wich is the leading symbol that give impulse to the prices of others.


ex : SP500, DJ and NASDAQ are mostly correlated. On the other day, SP500 was the leading symbol that drive prices down to all of the 3 indexes until the SP500 pivot.

The 2 others symbols broke their pivots until the SP500 pivot was reached then all retracted.  SP500 was the clearly the leading symbol that give impulse to the price of the 2 others.


Im looking to an indicator that can give in real time the leading symbol on a list of various ones, im looking in CodeBase but not found something usefull for this task (maybe because i don't know what im looking for...)

If somebody have a clue on an indicator like this or a way to code it, it will help me a lot. (of course its easy to see with eyes but i need it for my EA)


Any advice is welcome of course.


Thanks

Reason: