手机端
当前位置:爱约股 > 公式技巧 > 把二个指标合二为一

把二个指标合二为一

{出红柱选股} 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)=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;

TAG:
分享至:

相关推荐