Returns the yield of the current stock or the underlying symbol for the current option.
plot CurrentYield = GetYield() * 100;
def AD = GetYield() * close;
AddLabel(yes, "Annual Dividends: " + AD);
This script plots the current yield line and places a chart label indicating annual dividends.