B1:=MA(C,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1) ;
SMA2:=MA(B2,3) ;
停損下限:IF(LLV(MA(B2,7),3)<B2,LLV(MA(B2,7),3),B2),coloryellow;
FILLRGN(b2,sma2,b2>sma2,RGB(255,0,0),b2<SMA2,RGB(0,255,0));
snakeA:HHV(MA(B2,1),13),coloryellow;
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=MA(Var1,7);
Var3:=Var2-MA(Var1,7/2)<0;
Var4:=Var2-MA(Var1,7/2)>0;
Var5:=BARSLAST(Var3);
Var6:=0-BARSLAST(Var4);
Var7:=IF(Var3<=0,Var5,Var6);
STICKLINE(snakea>b2 AND b2>SMA2,snakea,b2,1,1),colorwhite;
STICKLINE(snakea>SMA2 AND b2<SMA2,SNAKEA,SMA2,1,1),colorwhite;
漲停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(漲停,OPEN,CLOSE,9,0),colormagenta;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,9,0),colorgreen;
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k=SMA(RSV,3,1);
D=SMA(K,3,1);
MD:=2*(K-D);
DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26),colorred;
DEA : =EMA(DIFF,9),colorliblue;
MACD:=2*(DIFF-DEA);
主力重倉買:(MACD>=0 AND MACD>=REF(MACD,1)) AND (MD>0 AND MD>=REF(MD,1)),nodraw,coloryellow;
主力輕倉買:(MACD>=0 AND MACD>=REF(MACD,1)) AND (MD<0 AND MD>=REF(MD,1)),nodraw,colorgreen;
減倉或清倉:(MACD>=0 AND MACD>=REF(MACD,1)) AND (MD>0 AND MD<=REF(MD,1)),nodraw,colorwhite;
聯(lián)系客服