On Balance Volume
The On Balance Volume index shows a relationship of price and volume in the form of a momentum index.
On Balance Volume generally precedes actual price movements. The premise is that well-informed investors are buying when the index rises and uninformed investors are buying when the index falls.
set BUY = OBV(CLOSE, Volume) > 10000000
Evaluates to buy when OBV is more than 10,000,000