請問小幫手,
我的做空進場策略如下
input: Length1(3),Length2(6),Length3(12),Length4(48),Length5(60);
settotalbar(maxlist(Length5,6) * 13 * 7 + 8);
if barfreq ="Min" and Time > 084500 and Time <= 133000 then
value1 = ema(close,Length1);
value2 = ema(close,Length2);
value3 = ema(close,Length3);
value4 = directionmovement(Length3, value5, value6, value7);
value8 = ema(close,Length5);
condition1 = value1 crosses below value8;
condition2 = value8 <= value8[Length3];
condition3 = value5 < value6 and value5 < value5[Length1] and value6 > value6[Length1];
if condition2 and condition3 then ret = condition1;
我回測2018/7/10的小型大立光期07,五分K,無洗價時卻發現進場條件不符合原先策略(結果如下)

請問我是哪邊寫錯了? 謝謝!
4 評論