求助:早上9點50分前沒有和昨日收盤價交叉怎么寫?
作者:金字塔 來源:cxh99.com 發布時間:2016年08月15日
- 咨詢內容:
求助:早上9點50分前沒有和昨日收盤價交叉。如果是高開,判斷開盤到9點50分是上升趨勢(上升趨勢有沒有辦法用函數解決?),開多。如果是低開,判斷開盤到9點50分是下跌趨勢(下跌趨勢有沒有辦法用函數解決?),開空。
[此貼子已經被作者于2013/9/7 8:43:50編輯過]
- 金字塔客服:
例如圖:
- 用戶回復:
求助:早上9點50分前沒有和昨日收盤價交叉。如果是高開,判斷開盤到9點50分是上升趨勢(上升趨勢有沒有辦法用函數解決?),開多。 如和昨日收盤價交叉,止損,否則 到15點12分平倉。如果是低開,判斷開盤到9點50分是下跌趨勢(下跌趨勢有沒有辦法用函數解決?),開空。 如和昨日收盤價交叉,止損,否則 到15點12分平倉。
[此貼子已經被作者于2013/9/7 9:28:27編輯過]
- 網友回復:
怎么圖片老是顯示不出來?
- 網友回復:
都沒人幫忙呀? 這樣寫對嘛?zs:=callstock(stklabel,vtclose,6,-1);//昨收jk:=valuewhen(todaybar=1,open);//今開 n:=barslast(date<>ref(date,1))+1;hih50:=valuewhen(time<=090000+50*100,hhv(h,n));//開盤50分鐘最高價low50:=valuewhen(time<=090000+50*100,llv(l,n));//開盤50分鐘最低價
if jk>zs and time>095000 and low50>zs then 開多:buy(holding=0,1,market);if jk<zs and time>095000 and hih50<zs then 開空:buyshort(holding=0,1,market);
if time>151200 then begin
sell(holding>0,1,market);
sellshort(holding<0,1,market);end
持倉:holding,noaxis ,linethick0 ;盈虧:asset,noaxis,coloryellow,linethick2;
[此貼子已經被作者于2013/9/7 10:45:11編輯過]