小編您好:
我寫個盤中警示可編譯但跳出標的不正確...可以請您幫忙看一下哪需要修正嗎?
紀錄090000~093000的最低點,過指定時間後,今日低點小於紀錄低點 ,成交價大於第一根均價, 警示
if barfreq <> "Min" or barinterval <> 2 then raiseruntimeerror("腳本只適合用於2分鐘");
variable:_low(9999);
input:_time (093000) ;
if date <> date[1] then begin
Value1 = GetQuote("均價"); end;
//第一根均價
if currentdate <> date then return;
// (日期與系統一致)
if time > 090000 and time < _time and low < _low then _low = low ;
// 090000後未過指定時間如果low<_low則_low再重新記錄低
if getfield("low","D") < _low and time > _time and close > value1
//過指定時間後今日低點小於紀錄低點 成交價大於第一根均價
then ret=1;
 
            
        
        
            
1 評論