A1:=100*(WINNER(1.1*C)-WINNER(0.9*C));
A2:=((CLOSE-LOW)/(HIGH-LOW)+(CLOSE-HIGH)/(HIGH-LOW))*VOL;
A3:=SUM(A2,10)/10000;
Var1c:=AMOUNT/VOL/100;
Var2c:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
Var3c:=SUM(AMOUNT,5)/Var1c/100;
Var4c:=SUM(AMOUNT,13)/Var1c/100;
Var5c:=SUM(AMOUNT,34)/Var1c/100;
CYC5:=DMA(Var2c,VOL/Var3c);
CYC13:=DMA(Var2c,VOL/Var4c);
CYC34:=DMA(Var2c,VOL/Var5c);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYR13:=CYC13/REF(CYC13,1)*120-120;
MA5:=MA(C,5);
B:=VOL*100/CAPITAL;
AAa:=COUNT(A1>60,20)=20;
横盘启动:if(AAa AND CYC5>CYC13 AND CYC13>CYC34,10,0);
九毛八公式解读
A1赋值:100*(以1.1*收盘价元价格计算的获利盘比例-以0.9*收盘价计算的获利盘比例) A2赋值:((收盘价-最低价)/(最高价-最低价)+(收盘价-最高价)/(最高价-最低价))*成交量(手) A3赋值:A2的10日累和/10000 VAR1C赋值:成交额(元)/成交量(手)/100 VAR2C赋值:(3*最高价+最低价+开盘价+2*收盘价)/7 VAR3C赋值:成交额(元)的5日累和/VAR1C/100 VAR4C赋值:成交额(元)的13日累和/VAR1C/100 VAR5C赋值:成交额(元)的34日累和/VAR1C/100 CYC5赋值:以成交量(手)/VAR3C为权重VAR2C的动态移动平均 CYC13赋值:以成交量(手)/VAR4C为权重VAR2C的动态移动平均 CYC34赋值:以成交量(手)/VAR5C为权重VAR2C的动态移动平均 CYS13赋值:(收盘价-CYC13)/CYC13*100 CYR13赋值:CYC13/1日前的CYC13*120-120 MA5赋值:收盘价的5日简单移动平均 B赋值:成交量(手)*100/当前流通股本(手) AAA赋值:统计20日中满足A1>60的天数=20 输出横盘启动:如果AAAANDCYC5>CYC13ANDCYC13>CYC34,返回10,否则返回0