GetYield

GetYield ();

Description

Returns the yield of the current stock or the underlying symbol for the current option.

Example

declare lower;
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.

You may also like
Shared Items Page
The Shared Items page contains all of the links to the items you’ve shared with other users and ...
Options
Use the checkboxes in the Options area to define how studies and candlestick patterns are ...