input: len(30, "檢查長度");
input: Hlength(3, "近N根10分K棒最高價");
if barFreq<>"min"or barinterval <> 10 then return; //指定10分K
setbackBar(len+1);
value1 = highestBar(high, len); //檢查過去N根Bar中的最高的那一根位置
value2 = low[value1]; //該根Bar的Low
condition2=close > open; //黑K
condition12= close < Highest(high[1],30); //創新高
if condition12 and condition2 then setposition(-1) ;
想請問一下 我要寫的是 創新高但收黑K的那隻黑K,要做空,但為什麼都抓不到 K棒呢?
4 評論