Simple example of objective function that can can be used to measure the effectiveness of various parameter combinations.
signal.obj.slope(x)
Return matrix, each row represents price deltas for a single signal, each column represents periods
Single Objective Value
Calculates the slope of the Cumulative Equity line. Higher the better.
It is important to note that all objective functions are called within signal.generate.statistics
. What gets
passed in to it as parameter is an matrix of post signal price changes or cumulative equity for each signal. The matrix
is of N-by-M dimensions. N being the row representing the Nth signal. M being the column representing Mth period.