Year To Date Gain

Modified on 2015/11/13 12:56 by Eugene — Categorized as: Community Indicators

Syntax

public YTDGain(DataSeries ds, string description)
public static YTDGain Series(DataSeries ds)

Parameter Description

ds Data series

Description

This indicator, originally created by Robert Sucher for WL4, calculates the YTD (Year To Date) change, in %, of a symbol's last Closing price compared to the last Close of the previous year (or some other Data Series).

Note that it will only work when the data crosses over from one calendar year to the next. Thus, it will neither work for IPOs if the entire data series is within one year, nor will it work for any other security until the displayed data crosses into the next year.

Example

No example currently available.