Support

Equilla Formula Language

NewsGetStory

Returns the news story string the given index relates to.

Inputs

Index
Numeric: The news story index in the range of 1 to the value that was returned by calling NewsGetCount() for this bar.

Remarks

This function returns the corresponding information from your data provider.

Examples

Write all news records of the last bar to the output window
Variables: i; If IsLastBar Then Begin Print( "News=" + CStr( NewsGetCount() ) ); For i = 1 To NewsGetCount Begin Print( "#" + CStr( i ) + " " + CStr( NewsGetDateTime( i ) ) + " (" + CStr( NewsGetDate( i ) ) + " " + CStr( NewsGetTime( i ) ) + ")" + " ID=" + CStr( NewsGetID( i ) ) + " Source=" + NewsGetSourceName( i ) + " (" + CStr( NewsGetSource( i ) ) + ")" ); Print( NewsGetHeadline( i ) ); Print( NewsGetStory( i ) ); End; End;