INPUT:SHORT(12,1,100,1),LONG(26,1,100,1), N(9,1,100,2),M(9,2,60);DIF:平滑移动平均(,SHORT)-指数平滑移动平均(价,LONG);:指数平滑移动平均(DIF,N);DEF:=2*(DIF-MACD);画柱线(DEF>=0 AND DEF>=向前引用(DEF,1),0,DEF*2,5,0)COLOR1011FF;画柱线(DEF>=0 AND DEF< 向前引用(DEF,1),0,DEF*2,5,1),COLORFFFF00;画柱线(DEF<0>=向前引用(DEF,1),0,DEF*2,5,1),COLOR1088FF;画柱线(DEF<0 DEF,1),0,DEF*2,5,0),COLORFFFF00;:=条件(DIF>=0 AND MACD>=0 OR (DIF<0>=0),1,0);趋势:=DIF<0>=0 AND MACD<0>0 AND 向前引用(DEF,1)>向前引用(DEF,2) AND DEF< 向前引用(DEF,1),1,0);缩脚:=条件函数(DEF<0>向前引用(DEF,1),1,0);