Posted By: schcsaba
PRELOAD flag - 11/29/18 12:47
It seems to me that the PRELOAD flag is only effective in live trading and not in training. Is this true?
Thank you for your answer.
Thank you for your answer.
var objective() { return ((var)(NumWinLong+NumWinShort))/(NumLossLong+NumLossShort); } function run() { BarPeriod = 5; LookBack = 100; NumWFOCycles = 20; NumCores = -1; set(BINARY); WinPayout = 94.2; LossPayout = 0; set(PARAMETERS); int TimePeriod = optimize(20,10,100); var m = optimize(0.01, 0.001, 0.05); var Threshold = m*(HH(TimePeriod)-LL(TimePeriod)); if(NumOpenLong+NumOpenShort == 0) { LifeTime = 1; if(HH(TimePeriod) - priceClose() < Threshold) { enterShort(); } else if(priceClose() - LL(TimePeriod) < Threshold) { enterLong(); } } }