N;5 300 20 M;1 100 3 P;0.1 10 2 XXOPEN:=(REF(OPEN,M)+REF(CLOSE,M))/2; XXCLOSE:=(HIGH+LOW+CLOSE+OPEN)/4; XXHIGH:=MAX(XXOPEN,XXCLOSE,HHV(HIGH,M)); XXLOW:=MIN(XXOPEN,XXCLOSE,LLV(LOW,M)); STICKLINE(XXCLOSE>XXOPEN,XXCLOSE ,XXOPEN ,4,1 ),COLORRED; STICKLINE(XXCLOSE<=XXOPEN,XXCLOSE ,XXOPEN ,4,1 ),COLORFFFF66; STICKLINE(XXCLOSE>XXOPEN,XXHIGH ,XXCLOSE ,0.1,0 ),COLORRED; STICKLINE(XXCLOSE>XXOPEN,XXOPEN ,XXLOW ,0.1,0 ),COLORRED; STICKLINE(XXCLOSE<=XXOPEN,XXOPEN ,XXHIGH ,0.1,0 ),COLORFFFF66; STICKLINE(XXCLOSE<=XXOPEN,XXCLOSE ,XXLOW ,0.1,0 ),COLORFFFF66; MID : MA(CLOSE,N),COLORWHITE,LINETHICK2; UPPER: MID + P*STD(CLOSE,N); LOWER: MID - P*STD(CLOSE,N); TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13)); DRAWTEXT(CROSS(CCI,-200) AND CCI>REF(CCI,1),L,'平空'),COLORGREEN; DRAWTEXT(CROSS(200,CCI) AND CCI<REF(CCI,1),H,'平多'),COLORYELLOW; DRAWTEXT(CROSS(CCI,100) AND CCI>REF(CCI,1),L,'加多'),COLORYELLOW; DRAWTEXT(CROSS(-100,CCI) AND CCI<REF(CCI,1),H,'加空'),COLORGREEN |
|