网友求助:
源码:
Var1:=HHV(HIGH,55);
Var2:=LLV(LOW,34);
空仓:SMA((CLOSE-Var2)/(Var1-Var2),5,1)*100,color00ffff,linethick2;
观望:EMA(HHV(空仓,13),1),colorff0000,linethick2;
操作:EMA(HHV(空仓,7),1),color0000ff,linethick2;
STICKLINE( 观望>操作,观望,操作,1,1),COLORFF0000;
STICKLINE( 操作>空仓,操作,空仓,1,1),COLOR00FFFF;
低线:20,color00ff00;
强弱线:50,colorffff00,linethick2;
顶线:80,colorff00ff;
要求:空仓,观望,操作三线在低线以下合并且操作线拐头向上的选股(预警)公式
解答如下:
VAR1:=HHV(HIGH,55);
VAR2:=LLV(LOW,34);
AA:=SMA((CLOSE-VAR2)/(VAR1-VAR2),5,1)*100;
COUNT(AA<20 AND AA>REF(AA,1),3)>1;