V0:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA30:=EMA(C,30);
EMA60:=EMA(C,60);
M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975;
M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980;
M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985;
M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10);
M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30);
T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990;
T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990;
T3:=T1 AND T2 AND CROSS(V0,EMA10);
T4:=T1 AND T2 AND CROSS(V0,EMA30);
钱袋:M4 OR M5 OR T3 OR T4;
九毛八公式解读
V0赋值:收盘价的5日指数移动平均 EMA10赋值:收盘价的10日指数移动平均 EMA20赋值:收盘价的20日指数移动平均 EMA30赋值:收盘价的30日指数移动平均 EMA60赋值:收盘价的60日指数移动平均 M1赋值:1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975 M2赋值:1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980 M3赋值:1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985 M4赋值:M1 AND M2 AND M3 AND V0上穿EMA10 M5赋值:M1 AND M2 AND M3 AND V0上穿EMA30 T1赋值:1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990 T2赋值:1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990 T3赋值:T1 AND T2 AND V0上穿EMA10 T4赋值:T1 AND T2 AND V0上穿EMA30 输出钱袋:M4 OR M5 OR T3 OR T4