资金堆积比: A:=BARSCOUNT(CLOSE); N1:=IF(A>5,5,A); N2:=IF(A>15,15,A); N3:=IF(A>30,30,A); N4:=IF(A>60,60,A); N5:=IF(A>120,120,A); V1:=SUM(AMOUNT,N1); V2:=SUM(AMOUNT,N2); V3:=SUM(AMOUNT,N3); V4:=SUM(AMOUNT,N4); V5:=SUM(AMOUNT,N5); 堆积比5日:100*(1-V1/V5),STICK,LINETHICK2,colorFF; 堆积比15日:100*(1-V2/V5),STICK,LINETHICK2,color88FF; 堆积比30日:100*(1-V3/V5),STICK,LINETHICK2,colorBBFF; 堆积比60日:100*(1-V4/V5),STICK,LINETHICK2,colorEEFF; IF(A>0,0,0),LINETHICK1,colorFF; IF(A>0,20,0),LINETHICK1,colorFF; IF(A>0,40,0),LINETHICK1,colorFF; IF(A>0,60,0),LINETHICK1,colorFF; IF(A>0,80,0),LINETHICK1,colorFF; 堆积比5日,colorFFFFFF; 堆积比15日,colorFFFFFF; 堆积比30日,colorFFFFFF; 堆积比60日,colorFFFFFF; 风暴: VAR1:=SMA((HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*200-125,5,1); VAR2:=SMA((CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200-105,5,1); 多头:VAR1; 空头:VAR2; 生死线:0,POINTDOT; VAR3:=(2*CLOSE+HIGH+LOW)/4; VAR4:=LLV(LOW,34); VAR5:=HHV(HIGH,34); //顶尖财经:股票学院 http://www.58188.com VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,9); VAR7:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,31); DRAWTEXT(CROSS(VAR6,20) AND VAR6>21,多头,'●买进'),colorFF; DRAWTEXT(CROSS(VAR6,80) AND VAR6>75,多头,'●卖出'),colorFF00; 浮动锁定筹码: HSL:=EMA(VOL/CAPITAL,3); ZDL:=HHV(HSL,240); ZXL:=LLV(HSL,240); XS:=MA(CLOSE,33); 锁定筹码:EMA((HSL-ZXL)/ZXL*XS,13); 浮动筹码:EMA((ZDL-HSL)/HSL*XS,13); 力量对比:锁定筹码-浮动筹码,COLORSTICK; |