同花顺主力散户原始公式 趋势金叉主力买入,反之卖出
趋势金叉主力买入,死叉卖出。主力金叉散户做多,死叉做空
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
中位金叉:=K>40 AND D<90 AND CROSS(K,D);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
VAR2:=REF(LOW,1) ;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100 ;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3) ;
VAR5:=LLV(LOW,30) ;
VAR6:=HHV(VAR4,30) ;
VAR7:=IF(MA(CLOSE,58),1,0) ;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7 ;
VAR9:=IF(VAR8>100,100,VAR8) ;
吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),colormagenta;
散户线:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),colorliblue;
主力线:EMA(J,6),coloryellow;
趋势线:CEILING(SMA(AA5,13,8)),colorred,LINETHICK3;
AA6:=SMA(AA3,21,8) ;
买:STICKLINE(趋势线-AA6<-65,0,7,15,1) ;
DRAWICON(FILTER(J>REF(J,1)AND 趋势线>=REF(趋势线,1)AND 趋势线<25,5),趋势线,"buy");
卖: STICKLINE(趋势线-AA6>85,98,90,15,1),COLORFFFF00 ;
DRAWICON(FILTER(J<=REF(趋势线,1) AND 趋势线>85,5),J,"sell");