ReePrime
Tutorial 47 Part 2 - How to add new data to an array ...

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Tutorial 47 Part 2 - How to add new data to an array ...

M
Markplex

70 Views • Jun 17, 2010

Description

Tutorial 47 is part of a series of tutorials from http://markplex.com that explains how to program using Tradestation EasyLanguage. In part 1 of this tutorial, I explained how to step through values stored in an array to delete the oldest element and replace it with the newest. In this tutorial, part 2 of a two part series, the new entry is added by using a counter. The counter is incremented each time a new element needs to be stored. Since we are considering a 10 element array in the video, when the counter reaches 11 it is reset to 1. The new data is stored in the element in the array corresponding to the counter. This method does not require the array to be stepped through and hence is more efficient.