input:Perido(10,"計算區間");
//10根k離現在的k距離去計算是否為跳空回補,倒數第二低價與倒數第一高價
//ps:要用周模式去篩選
//value1=nthhighest(10,high[1],10);//第十名的高價在十根內
//value2=nthlowest(9,low[1],9);//第9名的低價在十根內
value3=nthhighestbar(10,high[1],perido);//第十個高價離現在幾根bar
value4=nthlowestbar(10,low[1],perido);//第9個低價離現在幾根bar
outputfield1(highw(value3),"跳空當根高點");
outputfield2(loww(value4),"跳空後的低點");
outputfield3(loww(value4)-highw(value3),"兩者差額");
condition1=loww(0)>highw(1);
condition2=openw(0)>=20;
condition3=volume>=300;
if
trueany(condition1,10) and condition2 and condition3 and then ret =1; //and value1>value2 then ret =1;
請問 我想抓取 十周內得跳空 有哪些 並且得知 跳空 當根k棒的最低價 與 跳空上周得最高價 並且輸出.....寫得怪怪的 請問那邊需要修正可以麻煩幫我檢查一下?
5 評論