I have entered this code into TradeStation 2000i using Easy Language and the moving average line it produces is alot different to the Volume Adjusted Moving Average that MetaStock 5.1 plots for the same data, comparing the 2 charts.
As I dont have Meta 5.1, I cannot verify if they are using...