Posted By: GPEngine
Crash in simple script with many trades per bar - 10/21/14 03:03
The following (silly) strategy Tested against AUD/USD using the official downloaded History dies for Error 111: Crash in script. at Bar 12034.
Why?
Why?
Code:
function run() { StartDate = 20090901; EndDate = 20140901; BarPeriod = 60; Hedge = 2; TradesPerBar = 256; var atrx = ATR(200); Stop = atrx * 3.0; Trail = atrx * 1.0; TrailLock = 50; int trade_num; for (trade_num = 0; trade_num < 147; trade_num++) { enterLong(); } }