想請問小幫手 盤中突破區間的警示範例 如下:
如果是向下跌破區間最低點的是如何撰寫?
input: timeline(100000); setinputname(1,"時間切算點");
input:TXT1("限用分鐘線"); setinputname(2,"使用限制");
input:TXT2("高點自開盤起算"); setinputname(3,"使用說明");
settotalbar(3);
if barfreq<> "Min" then return;
variable:RangeHigh(0);
if date <> date[1] then RangeHigh = 0;
if Time < timeline then RangeHigh = maxlist(RangeHigh,high)
else if time >= timeline and RangeHigh > 0 and Close > RangeHigh*1.005 then ret=1 ;
我改成如下 可以運行卻完全沒有結果
variable:Rangelow(0);
if date <> date[1] then Rangelow = 0;
if Time < timeline then Rangelow = minlist(Rangelow,low,)
else if time >= timeline and Rangelow > 0 and Close < Rangelow*0.995 then ret=1 ;
請問哪裡需要修改? 謝謝