源码
B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6>60,B6-60,0);
持股:STICKLINE(REF(B7,1)
A:0,POINTDOT,COLORMAGENTA,LINETHICK3;
DIFF: EMA(CLOSE,12) - EMA(CLOSE,26),COLORBLUE,LINETHICK2;
DEA1:=EMA(DIFF,9);0.10,COLORBLUE,LINETHICK2;
MACD: 2*(DIFF-DEA1)*60,LINETHICK0;
S1:=MACD0,COLORBLUE,LINETHICK6;
S2:=MACD<0,COLOR00FF00;
STICKLINE(MACD>=0,MACD,0,3,1),COLORRED;
STICKLINE(S1,0,MACD,3,1),COLORFFFFFF;