QHQQW1:=BARSLAST(DATE<>REF(DATE,1) )+1; 量化:=IFELSE(QHQQW1>=10,16,QHQQW1); QHQQW3:=MAX(OPEN,CLOSE ); QHQQW4:=MIN(OPEN,CLOSE); 愛好者:=MA(MA((HIGH+QHQQW3)/2,量化),10); 之家:=MA(MA((LOW+QHQQW4)/2,量化),10); DD:=BARSLAST(CLOSE>愛好者&&VOL>REF(VOL,1)); KK:=BARSLAST(之家>CLOSE&&VOL>REF(VOL,1)); DRAWLINE(DD<KK,HIGH,DD<KK,LOW,COLORRED); DRAWLINE(DD>KK,HIGH,DD>KK,LOW,COLORCYAN); STICKLINE(DD<KK,CLOSE,OPEN,COLORRED,0); STICKLINE(DD>KK,CLOSE,OPEN,COLORCYAN,0); DRAWTEXT(CROSS(DD<KK,0.5),LOW-5*MINPRICE,'↑'),COLORYELLOW,FONTSIZE50,VALIGN0; DRAWTEXT(CROSS(DD<KK,0.5),LOW,'買'),COLORYELLOW,FONTSIZE16,VALIGN0; DRAWTEXT(CROSS(DD>KK,0.5),HIGH,'賣'),COLORGREEN,FONTSIZE16,VALIGN2; DRAWTEXT(CROSS(DD>KK,0.5),HIGH+5*MINPRICE,'↓'),COLORGREEN,FONTSIZE50; |