把二个指标合二为一
2019/12/3 18:36:17
公式编写说明:
{出红柱选股}VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);VAR03:=CROSS(VAR02,VAR01);VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);VAR05:=COUNT(VAR03,7)>0 AND VAR04,STICK,LINETHICK5,COLORRED;VAR05 AND COUNT(VAR05,5)=1,LINETHICK5,COLORRED;{买入}V6:=CLOSE/REF(CLOSE,3)>=1.1;V7:=BACKSET(V6,3);买入:IF((V7 AND COUNT(V7,3)=1),30,0),STICK,LINETHICK3,COLORYELLOW;DRAWTEXT(买入,35,'买入 '),STICK,LINETHICK3,COLORYELLOW;
公式源码回答:
{出红柱选股}
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04,STICK,LINETHICK2,COLORRED;
VAR05 AND COUNT(VAR05,5)=1,LINETHICK2,COLORRED;
{买入}
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买入:IF((V7 AND COUNT(V7,3)=1),1,0),STICK,LINETHICK3,COLORYELLOW;
DRAWTEXT(买入,1,'买入 '),STICK,LINETHICK3,COLORYELLOW;
投 股票网 www.t ou18.cn
股市公式下载推荐