MA5:=MA(CLOSE,5);
MA21:=MA(CLOSE,21);
MA60:=MA(CLOSE,65);
多头:=COUNT(MA21>MA60,10)=10;
GX:=MAX(MA5,MAX(MA21,MA60));
DX:=MIN(MA5,MIN(MA21,MA60));
粘合:=ABS(GX/DX-1)*100<=15;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
分析家公式网:=COUNT(MACD< 0,10)=10;
准备:IF(多头 AND 粘合 AND 分析家公式网,0.5,0);
买入:CROSS(0.1,准备) AND CROSS(MACD,0),COLORRED,LINETHICK2;