Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共14 条记录, 每页显示 10 条, 页签: [1] [2]
[浏览完整版]

标题:老师帮编写个语句

1楼
长赌飘血 发表于:2013/10/31 14:38:57
星期一和星期五开仓,其他时间不开仓怎么编写?谢谢
2楼
jinzhe 发表于:2013/10/31 14:49:16
开仓日期:= weekday=1 or weekday=5;
3楼
长赌飘血 发表于:2013/10/31 15:12:34
不行啊,加上去后其他时间还是开仓
4楼
jinzhe 发表于:2013/10/31 15:21:28
不会的,截图说明一下
5楼
长赌飘血 发表于:2013/10/31 15:25:34

麻烦你干脆帮我写好吧,我是新手,什么都不会

input:n1(32,6,50,1);

W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;

if W1>45 AND REF(ANY(W1>45,9),1) then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end

if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);

if W1<-45 AND REF(ANY(W1<-45,9),1) then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end

if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);

6楼
jinzhe 发表于:2013/10/31 15:27:43

开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);

W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;

if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end

if HHV(H,5)>1.0094*C OR T2  then sell(holding>0, 0, thisclose);

if W1<-45 AND REF(ANY(W1<-45,9),1) and 开仓日期 then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end

if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);

7楼
长赌飘血 发表于:2013/10/31 15:29:58
非常感谢
8楼
长赌飘血 发表于:2013/10/31 15:39:56

加上止损为什么就没有信号了?

开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>092000 AND TIME<143500;
T2:=TIME>145000;
if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
 sellshort(holding<0, 0, thisclose);
 buy(holding=0 AND T1,1, thisclose);
 end

if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),and 开仓日期 then begin
 sell(holding>0, 0, thisclose);
 buyshort(holding=0 AND T1, 1, thisclose);
 end

if c>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);


IF C<REF(L,ENTERBARS)-3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sell(holding>0, 0, thisclose);
END

IF C>REF(H,ENTERBARS)+3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sellshort(holding<0, 0, thisclose);
END

9楼
jinzhe 发表于:2013/10/31 15:43:13

说明在这两天没有止损条件满足的情况

你按键盘向下的箭头,多显示点数据

10楼
长赌飘血 发表于:2013/10/31 15:45:07
编译都通不过
共14 条记录, 每页显示 10 条, 页签: [1] [2]


Powered By Dvbbs Version 8.3.0
Processed in 0.03516 s, 3 queries.