討論區列表
群益MultiCharts
一般模式
討論串模式
標題:
[發問] 語法條件請教...
by 2016-06-23 22:48:37
0
暱稱:
SEMEN
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
不好意思 想請教一下
if highD(1)>highD(0) and lowd(0)=low and opend(0)-c>=50 and c-futureseasysupport<=-20 and time>=0930 and time<=1130 then begin sellshort("bitch") next bar at market;
end;
與
condition1=highD(1)>highD(0);
condition2=lowd(0)=low and opend(0)-c>=50;
condition3=c-futureseasysupport<=-20 ;
condition4=time>=0930 and time<=1130 ;
if condition1 and condition2 and condition3 and condition4 then begin sellshort("bitch") next bar at market;
end;
為何第一個寫法會出現某些條件沒有符合的情況 (c-futureseasysupport<=-20)<<跌破紅線
謝謝
第1篇:
[發問] 語法條件請教...
by 2016-06-24 10:09:35
0
暱稱:
客服一號
信箱:folkchen.sp2@gmail.com
成就:發文(0) / 回文(0) / 推薦(96)
語法上,應該是一樣的才對
沒有你的程式可以測試
你加 print 去把資料顯示出來做比對看看
第一頁
上一頁
1
下一頁
最後頁
討論區列表
群益MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定