討論區列表
群益MultiCharts
一般模式
討論串模式
標題:
[發表] 請問我怎麼把目前訊號改成做空單或只做多單呢
by 2020-06-23 17:20:21
0
暱稱:
期貨新手阿信
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
input:len1(5),len2(10),blen(20),num(2);
var:ma1(0),ma2(0),bolling1(0),bolling2(0);
ma1=average(close,len1);
ma2=average(close,len2);
bolling1=BollingerBand(close,blen,num);
bolling2=BollingerBand(close,blen,-num);
condition1=ma1 cross over ma2;
condition2=ma1 cross below ma2;
if marketposition<=0 and close cross over bolling1 and condition1 then buy next bar at market;
if marketposition>=0 and close cross below bolling2 and condition2 then sellshort next bar at market;
第一頁
上一頁
下一頁
最後頁
討論區列表
群益MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定