C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- variable:a1=0;
- c1:=INTPART(cyc(5)*100*0.96)/100;
- a2:=intpart(ref(cyc(5),1)*100)/100;
- a3:=intpart(ref(cyc(5),1)*0.96*100)/100;
- vv:=intpart(min(capital*0.05,ref(ma(vol,34),1))/100);
- a40:=intpart(maxcyc*100)/100;
- a41:=intpart(ref(MAXCYC,1)*100)/100;
- a4:=a1=0 and c>a2 or (ref(vol/100,1)<vv and c>intpart(a2*0.98*100)/100 and vol>min(capital*0.05,ref(ma(vol,34),1)));
- a5:=a1=1 and c<min(a3,a41);
- a1:=if(a4=1,1,if(a5=1,0,ref(a1,1)));
- cross(a1,0);