VAR1:=HHV(HIGH,N);
VAR2:=LLV(LOW,N);
阻力线:=EMA((CLOSE-VAR2)/(VAR1-VAR2),21)-0.5;
操作线:=EMA((CLOSE-VAR2)/(VAR1-VAR2),5)-0.5;
A:=EMA(CLOSE,13);
多空力道:=((H-A+L-A)*64);
STICKLINE(多空力道 0,0,多空力道,5,0),COLORRED;
STICKLINE(多空力道 0,多空力道,0,5,0),COLOR008800;
LC:=REF(CLOSE,1);{www.9m8.cn 九毛八公式指标网}
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
DRAWTEXT(CROSS(85,RSI1),-5,'顶');
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLORWHITE;
散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORYELLOW;
DRAWTEXT((主力 -50 OR REF(主力,2) -50) AND (主力 REF(主力,1) AND REF(主力,1) REF(主力,2))
AND 多空力道 REF(多空力道,1) AND (阻力线-操作线) 0.2 AND 主力 散户,10,'升');
DRAWTEXT(CROSS(RSI1,20) AND 散户 -50 ,-8,'底');
牛熊线:0;