请高手做一个出现红柱体的同花顺选股公式

2024-12-31 16:37:51
推荐回答(2个)
回答1:

{DRAWGBK((CLOSE
>
0),STRIP(RGB(4,1,28),RGB(4,1,35),0));}
做空95:HHV((HIGH+LOW+OPEN+2*CLOSE)/5+H-L,5);
做空68:HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5);
平衡点:LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3);
做多68:LLV((HIGH+LOW+OPEN+2*CLOSE)/5*2-H,8);
做多95:LLV((HIGH+LOW+OPEN+2*CLOSE)/5-H+L,8);
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(CAND
F<0,1,0);
P1:=今小昨;
今小前:=IF(CAND
F<0,1,0);
P2:=今小前;
A:P1=0
AND
REF(P1,1)=1
AND
P2=0
AND
REF(P2,1)=1,NODRAW,colormagenta;{A=1就是你所要求的出现红柱体的地方,选股时就选A=1即可以选出你所要的个股}
STICKLINE(P1=0
AND
REF(P1,1)=1
AND
P2=0
AND
REF(P2,1)=1,OPEN,CLOSE,6,0),COLORRED;
STICKLINE(P1=1
AND
REF(P1,1)=0
AND
P2=1
AND
REF(P2,1)=0,OPEN,CLOSE,3,0),COLORBLUE;
DRAWICON(A,C,1);{再在红柱体出现的地方帮你加多一个红箭头}

回答2:

{DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));}
做空95:HHV((HIGH+LOW+OPEN+2*CLOSE)/5+H-L,5);
做空68:HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5);
平衡点:LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3);
做多68:LLV((HIGH+LOW+OPEN+2*CLOSE)/5*2-H,8);
做多95:LLV((HIGH+LOW+OPEN+2*CLOSE)/5-H+L,8);
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(CP1:=今小昨;
今小前:=IF(CP2:=今小前;
A:P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,NODRAW,colormagenta;{A=1就是你所要求的出现红柱体的地方,选股时就选A=1即可以选出你所要的个股}
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,6,0),COLORRED;
STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0,OPEN,CLOSE,3,0),COLORBLUE;
DRAWICON(A,C,1);{再在红柱体出现的地方帮你加多一个红箭头}