1。請教0900後開始等條件訊號/1300全部出場訊號怎寫?
2。如果沒有寫date[1]<>date[0] 那會有啥問題?(有設定收盤出場)
另外
3.tradestation裡面很常用到buyflag(true) 代表啥意思~~我想用到MC上要怎改
4.currentBar>1 如果沒加入這條建會如何?
------------------------
if date[0] <> date[1] then begin count = 0; 這交易次數的設定能拿來做什麼 buyline = 99999; 不懂為何99999,蝦咪意思 sellline = 0; 一樣 end;
第一個問題有解了
進場
if time>0900 then begin
end;
---
出場
if time=1330 and market position>1 then
sell next bar at market;
if time=1330 and market position<1 then
buytocover next bar at market;
第一個問題
if time>0900 and time<1330 then begin
------------------------------------------------------
if time=1330 then begin
紅色的地方時間要對起來 不然再1點30分後進場條件成立會依舊再進場並又被平倉出場>"< 造成尾盤交易次數大增
第二個問題
如果沒有寫date[1]<>date[0] 那會有啥問題?(有設定收盤出場) 當然無關 這一點是在看你的交易策略需不需要這一段 date[1]<>date[0] 這一點我通常拿來把變數還原或是抓特定的資料用
以上是我學習的經驗 大昌期貨蔡富盛^^
謝謝 學到了 像是
date<>date[1] then begin
mkp=0;
aa=0;
bb=0;
cc=0;
然後拿aa和bb當日只能做一次的限制
if aa<1 then buy next bar at market;
if bb<1 then sellshort next bar at market;
隔一天因為date<>date[1] then begin又歸0了
3. 代表宣告一個邏輯運算元空間
4. 不會如何,要有頭有尾才知道它會如何,我沒有神奇的力量