Bar Data Values


Get the event code for this bar or the most recent event code


Event(type, latest {optional})


type - event type number

latest - most-recent (1) vs. this-bar-only (0) flag -- 0 is the default


If the current data file includes a user-defined Event List, this function looks up an event code for the current symbol and bar.

If an event is found that has type as its type number, then its value is returned.

If latest is true (non-zero), then the most recent event of this type for this symbol prior to (or on) the current bar is returned.

If no matching event is found then 0 is returned.

An event is considered to have occurred "on a bar" if the event's time value (from the imported event list) <= 16:00 (160000).




Copyright © 2020-2024 Systematic Solutions, LLC