The optimal f, code in TradeStation is a great example of how to access trade history and use arrays in Tradestation. In addition it lets you do simulations using optimal f within your tradestation systems. The cost is only 49.95.
Take a look at our new banner on UsingEasyLanguage.com and take a look at our full open source products for TradeStation. Not only are they valuable to help your trading but great examples of EasyLanguage code.