VAR1:=(C+H+O+L)/4;
获利:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
洞悉:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(获利-洞悉)/洞悉,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(获利>LOW AND 获利<HIGH,获利,MAX(获利,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(获利>MIN(C,O) AND 获利<MAX(C,O),获利,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(获利>LOW AND 获利<HIGH,获利,HIGH,0,0),COLORGREEN;
STICKLINE(获利<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(获利<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(洞悉>LOW AND 洞悉<HIGH,洞悉,MIN(MIN(OPEN,CLOSE),洞悉),3,0),COLORMAGENTA;
STICKLINE(洞悉>MIN(C,O) AND 洞悉<MAX(C,O),洞悉,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(洞悉>LOW AND 洞悉<HIGH,洞悉,LOW,0,0),COLORMAGENTA;
STICKLINE(洞悉>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(洞悉>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,洞悉),LOW*0.95,\'洞悉\'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(获利,HIGH),HIGH*1.02,\'获利\'),COLORGREEN;