飞狐卷土从来指标公式股票软件源码如下: 卷土从来:100*WINNER( c); VAR111111:=(HHV(H,13)-LLV(L,13)); VAR222222:=(HHV(H,13)-C); VAR333333:=(C-LLV(L,13)); VAR444444:=VAR222222/VAR111111*100-70; VAR555555:=(C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100; VAR666666:=(2*C+H+L)/4; VAR777777:=SMA((VAR333333/VAR111111*100),3,1); VAR888888:=LLV(L,34); VAR999999:=SMA(VAR777777,3,1)-SMA(VAR444444,9,1); VAR1000000:=IF(VAR999999>100,VAR999999-100,0); VARAAAAAA:=HHV(H,34); 防线:=EMA((VAR666666-VAR888888)/(VARAAAAAA-VAR888888)*100,8); BB:=EMA(防线,5); STICKLINE(防线>0 AND 防线-BB<0,20,20,10,0),COLORGREEN; STICKLINE(防线>0 AND 防线-BB>=0,20,20,10,0),COLORRED; {www.gpxiazai.com 股票软件下载网_飞狐股票指标公式} Var1:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100; Var2:=SMA(Var1,20,1); 长势:=SMA(Var2,3,1); 持股看顶:STICKLINE(Var2>长势 AND Var2>REF(Var2,1),10,20,4,0); 持币寻底:STICKLINE(Var2<长势 AND Var2持币:PARTLINE(SAR(10,2,20)>=H,80),COLORGREEN; 持股:PARTLINE(SAR(10,2,20)<=L,80),COLORRED; VAR1y:=SMA((CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200-105,5,1); VAR2y:=SMA((HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*200-125,5,1); STICKLINE(VAR1y>=VAR2y,20,40,4,0),COLORRED; VAR1PP:=EMA(CLOSE,8); VAR2PP:=EMA(VAR1PP,20); VAR3PP:=CROSS(VAR1PP,VAR2PP); VAR4PP:=VAR1PP< EMA(CLOSE,120); 安全区: IF(VAR3PP AND VAR4PP,60,10), COLORGREEN; |