KM1:=BARSLAST(CLOSE/REF(CLOSE,1)>=1.098);
KM3:=HHV(VOL,KM1+2);
KM4:=IF(O>C,VOL,DRAWNULL);
KM5:=HHV(KM4,KM1);
KM6:=KM3/KM5>1.5;
KM7:=REF(C,KM1+1);
KM8:=HHV(HIGH,KM1);
KM9:=(KM8-KM7)*0.382+KM7;
N:=9; M:=9;
A:=PERIOD;
BL:=IF(A=0,150,IF(A=1,50,IF(A=2,30,IF(A=3,17,IF(A=4,15,IF(A=5,8,IF(A=6,3,IF(A=7,2,IF(A=8,50,IF(A=9,3,1.3))))))))));
FM:=(EMA(CLOSE,1.414*N+1));
FCL:=IF(FM<=0.05,ABS(FM)+0.1,0);
DIF:=(EMA(CLOSE,N)-EMA(CLOSE,2*N+2))/(FCL+FM)*100*BL,COLORLIRED,LINETHICK2;
DEA:=EMA(DIF,N*0.75),COLORGREEN,LINETHICK2;
MACD:=2*(DIF-DEA);
KM10:=MA(macd,3);
KM11:L<KM9 AND KM6 AND KM1<21 AND CROSS(MACD,KM10);
九毛八公式解读
KM1赋值:上次收盘价/1日前的收盘价>=1.098距今天数 KM3赋值:KM1+2日内成交量(手)的最高值 KM4赋值:如果收阴线,返回成交量(手),否则返回无效数 KM5赋值:KM1日内KM4的最高值 KM6赋值:KM3/KM5>1.5 KM7赋值:KM1+1日前的收盘价 KM8赋值:KM1日内最高价的最高值 KM9赋值:(KM8-KM7)*0.382+KM7 N赋值:9 M赋值:9 A赋值:周期类型 BL赋值:如果A=0,返回150,否则返回如果A=1,返回50,否则返回如果A=2,返回30,否则返回如果A=3,返回17,否则返回如果A=4,返回15,否则返回如果A=5,返回8,否则返回如果A=6,返回3,否则返回如果A=7,返回2,否则返回如果A=8,返回50,否则返回如果A=9,返回3,否则返回1.3 FM赋值:(收盘价的1.414*N+1日指数移动平均) FCL赋值:如果FM<=0.05,返回FM的绝对值+0.1,否则返回0 DIF赋值:(收盘价的N日指数移动平均-收盘价的2*N+2日指数移动平均)/(FCL+FM)*100*BL,画淡红色,线宽为2 DEA赋值:DIF的N*0.75日指数移动平均,画绿色,线宽为2 MACD赋值:2*(DIF-DEA) KM10赋值:MACD的3日简单移动平均 输出KM11:最低价