1、长周期均线为绿色时,不可操作;
2、长周期为蓝色,股价穿越短周期均线时,可建50%的仓位;
3、股价穿越长期均线时,可再建50%仓位;
4、股价跌破短周期均线时,减掉50%仓位;
5、股价跌破长周期均线时,卖出全部股票;
6、长周期均线为红色时,代表持股。短过长,蜡烛线中阳或调空,可买;或短在长上,连续2-3日小阳,成交量短在长上,可买.
DIR1:=ABS(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
AMA1:EMA(DMA(CLOSE,CQ1),2) ,colorwhite;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
AMA2:EMA(DMA(CLOSE,CQ2),2),colorgreen,LINETHICK2;
AMA3:IF(AMA2/REF(AMA2,1) 0.997,AMA2,DRAWNULL),colorblue,LINETHICK2;
AMA4:IF(AMA2/REF(AMA2,1) 1.001,AMA2,DRAWNULL),colorred,LINETHICK2;
MA$30:MA(CLOSE, 30),LINETHICK1;