同花顺笑到最后副图指标
源码
VAR1:=(C-REF(C,1))/REF(C,1); VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); 个股:=EMA(SUM(VAR1,20),5); 大盘:=EMA(SUM(VAR2,20),5); 领涨:=(个股-大盘) Var3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100; Var4:=SMA(Var3,72,1); Var5:=SMA(Var4,34,1); VAR6:=(2*C+H+L)/4; VAR7:=LLV(L,9); VAR8:=HHV(H,9); 中线趋势:=3*Var4-2*Var5; 中线趋势升:=(中线趋势-REF(中线趋势,1)) 运行:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50,linethick1,colorred; 趋势:EMA(0.618*REF(运行,1)+0.382*运行,3),colorffff00,linethick1; 强弱界:0,colorffff00,linethick1;BIAS1:=(C-MA(C,6))/MA(C,6)*100; BIAS2:=(C-MA(C,12))/MA(C,12)*100; BIAS3:=(C-MA(C,24))/MA(C,24)*100; BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6; 乖离:=MA(BIAS,3); 准备:=STICKLINE(乖离 -6 AND 乖离 =-12,-6,0,6,1 ),linethick3,COLOR33ffcc; 均五升:=(MA(C,5)-REF(MA(C,5),1)) 均十升:=(MA(C,10)-REF(MA(C,10),1)) STICKLINE(均五升 AND 均十升 AND 中线趋势升,0+0.5,0-0.5,6,1),color00ccff,linethick2; 运动:=IF(运行 =趋势 AND 均五升 AND 均十升 AND 中线趋势升 AND 趋势 0,1,0),color00ff00; DRAWICON(CROSS(趋势,运行) AND (运行 -10),运行,2),Color00FF00; DRAWICON(CROSS(运行,趋势) AND (运行 3) ,运行+5,1),Color9999FF;