将下面的通达信的转为飞狐的
2020/1/19 18:30:15
公式编写说明:
HLM1:=MA(HHV(H,485),17);HLM2:=MA(HHV(H,222),17);HLM3:=MA(HHV(H,96),17);HLM4:=MA(LLV(L,485),17);HLM5:=MA(LLV(L,222),17);HLM6:=MA(LLV(L,96),17);HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.96+HLM6*0.96)/6,17);HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+HLM6*1.2)/6,17);HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HLM6*1.3)/6,17);HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);HLMH:=HHV(HLM12,30);恐慌系数:=MA(IF(L<=LLV(L,15),(HLMH+HLM11*2)/2,0),3)/200,COLORFF6A00;ZK:=REF(恐慌系数,1);STICKLINE(恐慌系数>4 AND 恐慌系数<ZK,OPEN,CLOSE,2,0),COLORFF0088;V12:=MA(V,12);地选:=VOL<MA(VOL,5)/2 AND V<V12/2,COLORCE6700;七日地选:=COUNT(地选>=1,15);DRAWICON(七日地选>=1 AND CROSS(C,MA3) ,L*0.98,1);
公式源码示例:
HLM1:=MA(HHV(H,485),17);
HLM2:=MA(HHV(H,222),17);
HLM3:=MA(HHV(H,96),17);
HLM4:=MA(LLV(L,485),17);
HLM5:=MA(LLV(L,222),17);
HLM6:=MA(LLV(L,96),17);
HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.96+HLM6*0.96)/6,17);
HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+HLM6*1.2)/6,17);
HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HLM6*1.3)/6,17);
HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);
HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);
HLMH:=HHV(HLM12,30);
恐慌系数:=MA(IF(L<=LLV(L,15),(HLMH+HLM11*2)/2,0),3)/200,COLORFF6A00;
ZK:=REF(恐慌系数,1);
STICKLINE(恐慌系数>4 AND 恐慌系数<ZK,OPEN,CLOSE,2,0),COLORFF0088;
V12:=MA(V,12);
地选:=V<MA(V,5)/2 AND V<V12/2,COLORCE6700;
地选1:=COUNT(地选,15)=1;
DRAWICON(地选1 AND CROSS(C,MA(c,3)) ,L*0.98,1);
看股 吧公式 www.kang uba.com
其它股票公式列表