This Script is meant to apply Newton's equation for Gravitational Force onto the Financial Markets.
FGrav=Gravitational Constant * (Mass1*Mass2)/(Distance between the two objects' center of mass^2)
This script could be used to identify periods of technical market weakness, when the gravitational force becomes negative.