强势线:90,COLORMAGENTA; 中轴线: 50,COLORWHITE; 地平线:10,COLORLICYAN; VAR0:=(2*CLOSE+HIGH+LOW)/4; VAR1:=(HHV(HIGH,48)-CLOSE)/(HHV(HIGH,48)-LLV(LOW,48))*100; VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100; B:=EMA((VAR0-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,26))*100,16); 多方:SMA(SMA(VAR2,2,1)+3,2,1),COLORYELLOW; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=(DIFF-DEA), COLORSTICK; MACD金叉:=IF(CROSS(DIFF,DEA),MACD-0.02,0),COLORFF00FF,POINTDOT; DRAWTEXT(CROSS(DIFF,DEA),50,'●'),COLORFF00FF; TYP := (HIGH + LOW + CLOSE)/3; LOWV:=LLV(LOW,9); HIGHV:=HHV(HIGH,9); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3); K:=EMA(RSV,3); D:=MA(K,3);J:=3*K-2*D; JK金叉:=IF(CROSS(J,K),MACD-0.02,0),COLORYELLOW,POINTDOT; DRAWTEXT(CROSS(J,K),50,'●'),COLORYELLOW; 老师请将,多方的黄线 下破地平线为 条件选股公式 在此先行谢谢了
爱约股解答:
VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
多方:=SMA(SMA(VAR2,2,1)+3,2,1);