Quick-tip 53 | How to modify tutorial 116 to reload the chart data at regular intervals

3 years ago
65

Tutorial 116 (https://markplex.com/free-tutorials/tutorial-116-restarting-program-specific-intervals/) demonstrated how to force a re-calculation of a number of charts at specific intervals. The tutorial uses some of the techniques from tutorial 115, in particular the use of the Timer to issue a RecalculateException at a specific time and then at set intervals after that.

The specific code used in order to refresh the program applied to a chart is:

Throw RecalculateException.Create( "Refresh" );

This recalculate exception reloads the program applied to the chart, but it does not reload the data.

Quick-tip 53 demonstrates how to reload the data on the chart by replacing the above with the following syntax to call a macro:

Value99 = runcommand( ".Refresh" );

See https://markplex.com/free-tutorials/tradestation-easylanguage-quicktips/quick-tip-53-how-to-modify-tutorial-116-to-reload-the-data-at-intervals/

Loading comments...