Calculating Indicators

Overview


When analyzing a financial price series, the first is often to calculate a set of derived quantities for use in a statistical analysis or trading backtest. Scripts can be used to easily perform a calculation and append the calculated value to each record in the dataset. (see Appending to Price Record)

When performing a backtest, it is not necessary to append the value to the record, on can calculate the necessary indicators on the fly in the trade calculation. (see Trade Calculation )

For a basic introduction to Javascript, please see Javascript Introduction

Contents