Inspecting OnCalculate Values and Array Series Settings
Summary
This indicator utility helps programmers inspect values supplied through an OnCalculate call. It displays the most recent, previous, and first observed values, along with whether parameter arrays use series indexing. Users can change the series setting through the display and see values from both ends of the time array and a moving average buffer.
The document explains that a setting can be applied on each calculation or left to the platform default, and that the indicator buffer is changed separately when clicked. A timer refreshes the display instead of redrawing it on every quote; the author reports this reduces calculation time substantially, though the timing check is optional. The tool is intended for understanding indicator programming and array indexing, not for producing trading signals. Its description provides implementation behavior but no independent performance evaluation or trading evidence.
Key ideas
- The display tracks the latest, preceding, and earliest values received through OnCalculate.
- Array series settings determine whether index zero refers to the newest or oldest bar.
- Users can change parameter array settings from the display and observe the resulting values.
- The moving average buffer can be switched separately from the arrays passed to OnCalculate.
- Refreshing with a timer is described as reducing repeated display work during quote updates.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.