討論區列表
公告
一般模式
討論串模式
標題:
[討論] 請交程式觸發訊號時電腦發出聲音的問題?
by 2017-03-06 16:43:20
0
暱稱:
jj KK
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
Dear 各位前輩,小弟是初學新手,想請交程式觸發訊號時電腦發出聲音的問題? 以下是我的訊號:因我的問題是希望訊號觸發時才發出聲音,而現況是每根k棒結束就發出聲音,不知是我程式那邊寫錯!!再此請教各位前輩解惑!!感恩!! **程式碼** variables : alm_start(0), alm_end(0); inputs: length(7), pts(35); If time>=0945 and time<=1330 then begin buy("B")next bar at highest(close,length)+6 STOP; sellshort("S")next bar at lowest(close,length)-2 STOP; **發出聲音** alm_start = currenttime_s; alm_end = alm_start + 100; if currenttime_s >= alm_start and currenttime_s <= alm_end then PlaySound("C:\Users\F0001\Desktop\eff02.wav"); end; setstoploss(pts*bigpointvalue); If time>=1335 and marketposition<>0 then begin sell("BX")next bar at market; buytocover("SX")next bar at market; **發出聲音** alm_start = currenttime_s; alm_end = alm_start + 100; if currenttime_s >= alm_start and currenttime_s <= alm_end then PlaySound("C:\Users\F001\Desktop\eff02.wav"); end;
第一頁
上一頁
下一頁
最後頁
討論區列表
公告
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定