¡Sorpréndeme!

Tutorial 47 Part 1 - How to 'step sort' an array

2010-06-17 124 Dailymotion

Tutorial 47 is part of a series of tutorials from http://markplex.com that explains how to program using Tradestation EasyLanguage. This tutorial deals with one dimensional arrays and explains how to step through values stored in an array to delete the oldest element and replace it with the newest. In this tutorial, part 1 of a two part series, the new entry is added after cascading all the values in the array 'up' by one. To imagine this, think of a ladder with something on every step. The oldest information is on the top step and the newest on the bottom step. To add a new piece of data to the bottom step we need to move all the other information up one step first. The information stored on the top step will disappear in the process. Once all the information has been moved up a step, the new information can be added to the bottom step.