 
等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
- FireScript
|
上轨:(ema(ema(high,60),60)-ema(ema(low,60),60))*2.2+ema(ema(high,60),60),colorred;
下轨:ema(ema(low,60),60)-(ema(ema(high,60),60)-ema(ema(low,60),60))*2.8,colorgreen;
kdcon1:cross(c,上轨);
kdcon2:cross(c,下轨);
kkcon1:cross(c,下轨);
kkcon2:cross(c,下轨);
tbuy(kdcon1,1,mkt);
tbuy(kdcon2,1,mkt);
tbuyshort(kkcon1,1,mkt);
tbuy(kkcon2,1,mkt);
//20跳止盈
if tbuyholdingex('','',1)>0 and c-tavgenterpriceex2('','',0)>=20*mindiff then tsell(1,0,mkt);
if tsellholdingex('','',1)>0 and tavgenterpriceex2('','',0)-c>=20*mindiff then tsellshort(1,0,mkt);
//收盘k平仓;1分钟周期有效
if time=closetime(0) then
begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end |
|