股票第一買入第二天賣出模型請教 [金字塔]
- 咨詢內容:
一支股票 我想第一天開盤9:30-10:00 如果漲幅>=5% ,買入 ;第二天開盤9:30就市價,賣出.(但是如果開盤就漲停,不賣)
應該怎么寫,謝謝!
- 金字塔客服:
正在處理
- 用戶回復:
//1分鐘周期 僅供參考
思路就是按照你給的寫的,在9點30到10點之間(收盤價-當日開盤價)/收盤價>0.05 就買入
variable:oo:=o;
variable:date1:=0;if date1=0 and time>=093000 and time<=100000 then
begin
if date<>ref(date,1) then oo:=o;
cond:(c-oo)/oo>0.05;
if cond then
begin
buy(1,1,market);
date1:=date;
end
endcond1:c/ref(c,1)>1.1;
[此貼子已經被作者于2012-6-8 12:45:09編輯過]
if DATEDIFF(date1 ,date )=1 and cond1=0 then
begin
sell(1,1,market);
date1:=0;
end
如果以上指標公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態(tài)個股的話,
相關文章
-
沒有相關內容