操作区副图
BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORWHITE;
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100,COLORFF00FF,LINETHICK2;
操作区:IF(BIAS3<0,BIAS3,0),COLORRED,LINETHICK2;
观望区:IF(BIAS3>0,BIAS3,0),COLORGREEN,LINETHICK2;
VAR1:=IF(DATE>=1990601,0,1);
VAR2:=TROUGHBARS(3,15,1)<10;
VAR3:=PEAKBARS(3,15,1)<10;
VAR4:=IF(VAR2=1,50,0);
VAR5:=IF(VAR3=1,50,0);
VARV2:=REF(LOW,1);
VARV3:=SMA(ABS(LOW-VARV2),3,1)/SMA(MAX(LOW-VARV2,0),3,1)*100;
VARV4:=EMA(IF(CLOSE*1.2,VARV3*10,VARV3/10),3);
VARV5:=LLV(LOW,38);
VARV6:=HHV(VARV4,38);
VARV7:=IF(LLV(LOW,90),1,0);
VARV8:EMA(IF(LOW<=VARV5,(VARV4+VARV6*2)/2,0),3)/618*VARV7,COLORFFFFFF;
STICKLINE(VARV8,-6,VARV8-6,6,3),COLORFF00FF;
TJ1:=观望区<REF(观望区,1) OR 观望区-REF(观望区,1)<REF(观望区,1)-REF(观望区,2);
TJ2:=操作区>REF(操作区,1);
顶: IF(TJ1 AND VAR5=50,15,0),STICK,LINETHICK1,COLORGREEN;
底: IF(TJ2 AND VAR4=50,10,0),STICK,LINETHICK1,COLORRED;
DRAWICON(TJ1 AND VAR5=50,-2,2);
DRAWICON(TJ2 AND VAR4=50,11,1);
=====================
选股公式
BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100;
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100;
操作区:=IF(BIAS3<0,BIAS3,0);
观望区:=IF(BIAS3>0,BIAS3,0);
xg1:=观望区>0;
xg:cross(xg1>ref(xg1,1),0.5);
559544095.jpg
|