如何取得两线交叉时的值
作者:金字塔 来源:cxh99.com 发布时间:2014年02月07日
- 咨询内容:
能不能实现两线交叉时的值啊? CROSS(A,B) 返回A、B交叉时的值啊?
- 金字塔客服:
valuewhen(cross(a,b),a);
valuewhen(cross(a,b),b);
- 用户回复:
楼主,看看这段
if kd1 then begin
KD:buy(holding=0,1,market);
IF aa>bb then begin
if a6 then begin
sell(1,0,market),ORDERQUEUE;
end;
if aa>bb and a2 then begin holding>0;
end;
if aa>bb and a5 then begin
sell(1,0,market),ORDERQUEUE;
end;
if aa>bb and a2 then begin
buy(holding=0,1,market);
end;
if aa>bb and a5 then begin
sell(1,0,market),ORDERQUEUE;
end;
end;
是哪里出问题了
- 网友回复:
跟图表交易的差异太大
- 网友回复:
就是两个简单的判断的啊