VAR1:=INDEXC;
VAR2:=REF(VAR1,18);
VAR3:=MA(VAR2,18);
个股趋势强度:C/MA(REF(C,18),18)*100,COLOR0BFFFF,LINETHICK2;
个股风险:MA(FORCAST(个股趋势强度,20),6),colorred;
大盘趋势强度:VAR1/VAR3*100,COLORF4E202,LINETHICK2;
大盘风险:MA(FORCAST(大盘趋势强度,20),6),colorgreen;
AL:=(C+L+H)/3;
AO:=SMA(AL,5,1)-SMA(AL,13,1);
BBD:(AO-SMA(AO, 3,1))*100,COLORFFCCFF,NODRAW;
BBDA:SMA(BBD,5,2),colorred,LINETHICK0;
RSV1:=BBD;
RSV2:=BBDA;
VAR11:=IF(DATE<1091230 AND DATE>900101,1,0);
BBD1:=IF(BBD>=REF(BBD,1)*VAR11,BBD,DRAWNULL);
BBD2:=IF(BBD
STICKLINE(BBD1,0,BBD,3,0),COLOR000088; STICKLINE(BBD1,0,BBD,1.5,0),COLOR0000AA; STICKLINE(BBD1,0,BBD,1,0),COLOR0000CC; STICKLINE(BBD1,0,BBD,0.5,0),COLOR0000FF; STICKLINE(BBD2,0,BBD,3,0),COLOR888800; STICKLINE(BBD2,0,BBD,1.5,0),COLORAAAA00; STICKLINE(BBD2,0,BBD,1,0),COLORCCCC00; STICKLINE(BBD2,0,BBD,0.5,0),COLORFFFF00; {SV1:=BARSLAST(REF(CROSS(RSV1,RSV2),1)); SV1A:=REF(CLOSE,SV1+1)>CLOSE AND RSV1>REF(RSV1,SV1+1) AND CROSS(RSV1,RSV2); 上涨BBD:IF(SV1A,RSV2,DRAWNULL),colorred; DRAWTEXT(SV1A,RSV2,'─B底背'),COLORCCCCC00; SV2:=BARSLAST(REF(CROSS(RSV2,RSV1),1)),COLORFFFF00;} SV2A:=REF(CLOSE,SV2+1) 下跌BBD:IF(SV2A,RSV2,DRAWNULL),LINETHICK2,colorgreen; HLM1:=MA(HHV(H,500),13); HLM2:=MA(HHV(H,250),13); HLM3:=MA(HHV(H,89),13); HLM4:=MA(LLV(L,500),13); HLM5:=MA(LLV(L,250),13); HLM6:=MA(LLV(L,89),13); 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,42),(HLMH+HLM11*2)/3,0),3)/200; DRAWBAND(关注,RGB(255,255,50),0.00001,RGB(0,100,50)); STICKLINE(CROSS(3.8,关注) AND 关注
DRAWTEXT(CROSS(3.8,关注) AND 关注
STICKLINE(CROSS(10,关注) AND 关注
DRAWTEXT(CROSS(10,关注) AND 关注
STICKLINE(CROSS(62,关注) AND 关注
DRAWTEXT(CROSS(38,关注) AND 关注
JS:=LAST(关注>0.618,3,1) AND (COUNT(CROSS(0.618,关注) OR CROSS(62,关注),21)>=2); STICKLINE(FILTER(JS,13),15,0,4,0),colorred; DRAWTEXT(FILTER(JS,13),15,'★'),colorred;