randomize(int Method, var *Out, var *In, int Length): var

Randomizes a data array by different methods.


Last value of the resulting data array; usually the accumulated return.


Method BOOTSTRAP Randomize the data differences by bootstrap with replacement.
  DETREND Detrend the data before randomizing, by subtracting their mean difference.
Out Array to be filled with the randomized data; must be different to In. Can be set to 0 for returning only the last value.
In Array containing the original data.
Length Number of elements of the In and Out arrays.



var OriginalReturn = EquityCurve[Length-1];
var RandomizedReturn = randomize(BOOTSTRAP,0,EquityCurve,Length);

See also:

Detrend, random


► latest version online