小幫手您好 以下是我腳本
if barfreq <> "Min" or Barinterval <> 1 then RaiseRuntimeError("請設定頻率為1分鐘");
if issessionfirstbar then value1 = 0;
var: _time(0);
value5 = GetQuote("振幅");
value6 = GetQuote("成交金額(元)");
if low <= GetField("最高價", "D")*0.98 and // low如果小於最高價往下2% 震幅有3% 那value1就等於當時最高價 當天往上拉抬的第一個高點
value5 >= 3 then
value1 = GetField("最高價", "D");
condition1 = high <= value1*1.01 and high >= value1*0.99 and
value6 >= 300000000;// 如果一分k的high有回到剛剛紀錄的value1的上下1%內且成交金額有三億
if condition1 and _time = 0 then _time = currenttime; //condition1 成立的時間
if _time <> 0 and currenttime > TimeAdd(_time , "M", 10)//10分鐘後再告訴我
then ret = 1; _time = 0;
不知道是我語法哪邊有問題 雷達都跳不出股票 再麻煩小幫手檢查一下了 感謝您
2 評論