小幫手您好,
回測成交價為什麼都是開盤價,逐筆洗價不是會O/H/L/C一筆一筆刷嗎?
理論上是不是最高價最容易觸發訊號嗎? 為什麼買進和賣出全部都出現在開盤價呢? 謝謝。

進場:
variable: sky(0),ground(0); variable: distance(0),threshold(0); distance=sky-ground; threshold=ground+distance*0.3; condition1= close<threshold; variable: top(0); top=highest(high,25)[1]; condition2= close>top; if condition2=true then ret=1;
出場:
value1=average(close,20); value2=average(close,60); condition1= value2>value1 and value1>close; //交叉 condition2= value1[1]>value1 and value2[1]>value2; value3=lowest(low,20)[1]; condition3= close<value3; value4=highest(high,20); condition4= low<value4*0.9; if condition4=true then ret=1;


4 評論