ReePrime
Tutorial 47 Part 1 - How to 'step sort' 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 1 - How to 'step sort' an array

M
Markplex

124 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. 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.