N:=10;P:=2;P1:=2;操作线:EMA(C,7),COLOR00FF00;A:=(REF(操作线,1));STICKLINE((操作线>A),A,操作线,6,0),COLOR00FF00;STICKLINE((操作线<=A),A,操作线,6,0),COLOR0000FF;VARA:=IF((CLOSE>150),91.3,0.91299998);心愿红线:((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4)+P*STD((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,N),COLORYELLOW;A1:=MA(C,2);{2日}A3:=(A1+心愿红线)/2;{2、心愿红线之和除2的平,也就是中心线}IF (A1>心愿红线,A1,A3),COLORRED,LINETHICK2;{2大于心愿红线且2日线交叉A3线显示粗红线}IF (A1>心愿红线,心愿红线,A3),COLORRED,LINETHICK2;{2日线大于心愿红线且心愿红线交叉A3线显示粗红线}