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
Data Box
Data Box is a tool that displays values from the status string on chart. Once enabled, Data Box ...
Active Trader Ladder
The Active Trader Ladder is a real-time data table that displays bid, ask, and volume data for ...
Level II
Level II is a thinkorswim gadget that displays best ask and bid prices for each of the exchanges ...