警示功能

  •   233 
  • 最後發表   Eddie Rich  2021 七月 02
Eddie Rich 發文於   2021/06/29

請問可否新增讓警示功能偵測到的個股,自動加入到自選裡面的功能?

 

感謝~~

排序方式: 標準 | 最新
Eddie Rich 發文於   2021/06/29

另外我想詢問一下,為什麼同樣一個指標,在某些標的就無法顯示呢? 連錯誤訊息都沒有,謝謝~~

順便附上我的程式碼,希望能夠獲得幫助,感恩~

--------------------------------------------------------------------------------

if barfreq<> "Min" or barinterval <> 5 then return;

//均線部分
variable: EMA1(0), EMA2(0), EMA3(0), EMA4(0), EMA5(0), EMA6(0), EMA7(0), EMA8(0);
EMA1 = EMA(close, 5);
EMA2 = EMA(close, 10);
EMA3 = EMA(close, 20);
EMA4 = EMA(close, 60);

EMA5 = EMA(close[1], 5);
EMA6 = EMA(close[1], 10);
EMA7 = EMA(close[1], 20);
EMA8 = EMA(close[1], 60);


condition1 = volume > volume[1]*1.5; //成交量大於前1根K棒1.5倍

condition2 = Close > EMA1 and Close > EMA2 and Close  > EMA3 ; 
//K棒突破5日10日20日EMA
condition3 = Close <= EMA1 and Close <= EMA2 and Close  <= EMA3 ; 
//K棒跌破5日10日20日EMA

condition4 = EMA1 > EMA2 and EMA2 > EMA3 and EMA3 > EMA4 ; // 均線多頭排列
condition5 = EMA1 < EMA2 and EMA2 < EMA3 and EMA3 < EMA4 ; // 均線空頭排列
condition6 = EMA1 > EMA5 and EMA2 > EMA6 and EMA3 > EMA7 and EMA4 > EMA8 ; // 均線上揚
condition7 = EMA1 < EMA5 and EMA2 < EMA6 and EMA3 < EMA7 and EMA4 < EMA8 ; // 均線下彎
condition8 = Bias(60) >= 9 or Bias(60) <= -1;
//收盤價正乖離季線大於9%,或者負乖離月線小於-1%
condition9 = volume > 2000; //成交量大於2000張

if condition1 and condition2 and condition4 and condition6 then plot1(Low,"偏多");
if condition3 and condition5 and condition7 and condition8 and condition9 then Plot2(High,"偏空");

plot3 (volume / volume[1] ,"成交量倍數");
plot4 ((openD(0) / CloseD(1) -1) ,"今開與昨收漲幅");
plot5 ((Close / Close[1] -1) ,"與前根K漲幅");

 

Eddie Rich 發文於   2021/06/29

剛剛自行研究,解決了這個問題囉,感謝~

XQ小幫手 發文於   2021/07/01

Hello Eddie Rich,

 

策略雷達在觸發商品頁面可以選擇商品後加入自選股清單。(詳見附圖)

另外您可以參考此篇文章,看是否有符合您的需求。

附加文件

Eddie Rich 發文於   2021/07/02

感謝大大,看來XQ還有好多功能還沒去發掘@@

發表回覆
Close