将坚定买入指标改成选股公式
2020/4/19 18:32:41
公式编写说明:
把下面图同时出现坚定和买入选出来。坚定买入指标如下:VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2:=CROSS(VAR1,0.9);VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4:=CROSS(VAR3,0.9);VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);STICKLINE(VAR4,LOW*1,0,3,0),COLORWHITE;STICKLINE(CROSS(VAR9,0.9),VAR4,LOW*1,3,0),COLORYELLOW;DRAWTEXT(VAR4,LOW*1,'买入'),COLOR00E40E;DRAWTEXT(CROSS(VAR9,0.9),LOW*1,'坚定'),COLORRED;先谢谢各位老师的支撑
公式源码回答:
改不出来。“BACKSET”---马后炮神将在此,不能实现。要不你试试看会不会出信号?
{买入}
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:CROSS(VAR3,0.9);
投股票 网 www .tou18.cn
股市公式下载推荐