等级: 免费版
- 注册:
- 2021-5-20
- 曾用名:
|
if KCN=-1 and (type(1)=0||TJ>1) and range(O-5*MINDIFF,L,H) then begin //当收盘价下穿上轨且有多仓或无仓时
if abs(holding)<2 and holding=0 then begin
buyshort(ISLASTBAR,Lots,LIMIT,O-5*MINDIFF);//工作用
buyshort(not(ISLASTBAR),Lots,LIMITR,O-5*MINDIFF);//测试用
end
end
请问:
1、这样会同时开两仓吗?
2、因为LIMIT不显示历史信号,改为LIMITR可以,所以用《buyshort(not(ISLASTBAR),Lots,LIMITR,O-5*MINDIFF);//测试用 》
3、固定轮询下,《buyshort(ISLASTBAR,Lots,LIMIT,O-5*MINDIFF);//工作用》的发单机制是对手价,而《buyshort(not(ISLASTBAR),Lots,LIMITR,O-5*MINDIFF);//测试用 》的发单机制是报单价!
4、K先走完下,《buyshort(ISLASTBAR,Lots,LIMIT,O-5*MINDIFF);//工作用》的发单机制是下一根K的对手价,而《buyshort(not(ISLASTBAR),Lots,LIMITR,O-5*MINDIFF);//测试用 》的发单机制是下一根K报单价!当然测试时有区别:LIMIT是看当根K满不满足O-5*MINDIFF,而LIMITR是看下根K满不满足O-5*MINDIFF。实际都是同时发单。
这些理解对吗?谢谢老师。
|
|