Posted By: DdlV
optimize() limitations? - 07/07/13 16:26
It appears optimize() can't be used with BarPeriod? (& other System Variables?) Is this correct? Are there any other optimize() limitations?
function run() { set(PARAMETERS); BarPeriod = optimize(240,60,1440,60); Stop = 10 * PIP; Trail = 10 * PIP; enterLong(); }
function run() { set(PARAMETERS); if(is(INITRUN)) BarPeriod = optimize(240,60,1440,60); Stop = 10 * PIP; Trail = 10 * PIP; enterLong(); }
function run() { BarPeriod = 60; set(PARAMETERS); TimeFrame = optimize(4,1,24,1); Stop = 10 * PIP; Trail = 10 * PIP; enterLong(); }