五线合一选股(五线之上第一阳选股)
1、五线合一--通达信选股指标
那五条线,要说清楚啥!
2、帮忙看一下这是哪种数据线
TJZB1:100(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),Color0080FF;
TJZB2:100(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),Color008000;
TJZB3:100(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),ColorFF8000;
TJZB4:100(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),Color00FFFF;
TJZB5:100(C-LLV(L,55))/(HHV(C,55)-LLV(L,55)),Colorred;
这个?
证券之星问股
3、五线合一-----通达信选股指标
RANGE(CLOSE,MA(CLOSE,120),(MA(CLOSE,120))1.05);
这个就行,你要是用30日或其他均线的就把公式中的120换成参数N,然后你自选参数就行
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3K-2D;
STICKLINE(REF(J,7)<0 AND J>1,10,0,10,0),COLOR00FF00;
VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
贵:=N,COLOR00FF00;
VAR4:=3SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))100,5,1)-2SMA(SMA((CLOSE-
LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))100,5,1),3,1);
VAR5:=CROSS(VAR4,10) AND VAR3<N;
抄底:IF(VAR5,90,1),COLORRED;
DRAWICON(VAR5,65,1);
DRAWTEXT(VAR5,30,'抄底'),COLORYELLOW;
备钱:IF(CROSS(10,VAR4),40,1),COLORFF00FF;
DRAWICON(CROSS(10,VAR4),45,1);
DRAWTEXT(IF(CROSS(10,VAR4),1,0),20,'$备钱'),COLORWHITE;
危机线: 80,COLORRED,POINTDOT,LINETHICK2;
中间线: 50,COLORFFCCCC,POINTDOT,LINETHICK2;
安全线: 10,COLORFF00FF,POINTDOT,LINETHICK2;
VAR6:=(2CLOSE+HIGH+LOW)/4;
VAR7:=LLV(LOW,M);
VAR8:=HHV(HIGH,M);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)100,13);
VARA:=EMA(0.667REF(VAR9,1)+0.333VAR9,2);
战术线:=VAR9,COLORYELLOW,LINETHICK2;
战略线:=EMA(0.382REF(VAR9,2)+0.618VAR9,12),COLORBLUE;
STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;
STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLOR00FF00;
VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<REF(CLOSE,7),0-VOL,0)),0);
VARC:=SUMBARS(VOL,CAPITAL);
VARD:=IF(CLOSE>LLV(CLOSE,VARC),1,-1);
VARE:=IF(VARB>LLV(VARB,VARC),1,-1);
VARF:=VARDVARE;
VAR10:=IF(VARF=-1,1,0);
关注:IF(VAR10 AND CLOSE=LLV(CLOSE,20) AND VAR3<N,70,1),COLORFFCC66;
A1:=EMA(CLOSE,5);
A2:=EMA(CLOSE,10);
A3:=EMA(CLOSE,20);
A4:=EMA(CLOSE,40);
A5:=EMA(CLOSE,60);
上穿月线:IF(CROSS(C,A3),50,0),COLORYELLOW,LINETHICK2;
上穿季线:IF(CROSS(C,A5),50,0),COLORRED,LINETHICK2;
I:=MA(BARSLAST(HIGH=HHV(HIGH,16))IF(CLOSE<OPEN,VOL,1),3);
R:=MA(BARSLAST(LOW=LLV(LOW,18))IF(CLOSE>OPEN,VOL,1),4);
短线逃顶:=IF(I,0,1),COLORGREEN;
DRAWICON(短线逃顶,90,2);
4、在5天内,成交量8日线上穿89日线选股公式
a:=ma(v,8);
b:=ma(v,89);
count(cross(a,b),5)>=1;
可用于大智慧、同花顺、通达信、飞狐、益盟等
5、五线之上第一阳
A:=MA(C,5);
B:=MA(C,10);
D:=MA(C,20);
E:=MA(C,60);
F:=MA(C,120);
G:=MAX(MAX(MAX(MAX(A,B),D),E),F);
K:=V>REF(V,1)2;
xg:CROSS(C,G) AND K AND C>O;
测试通过,希望能够帮助你!
6、五线顺上的第一阳
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
A1:=REF(MA60,1)>REF(MA120,1) AND MIN(REF(MA5,1),MIN(REF(MA10,1),REF(MA20,1)))>REF(MA60,1) AND REF(MA5,1)<REF(MA10,1) OR REF(MA5,1)<REF(MA20,1);
A2:=MA60>MA120 AND MIN(MA5,MIN(MA10,MA20))>MA60 AND MA5>MAX(MA10,MA20);
A3:=CLOSE>OPEN AND CLOSE>MA5;
XG: A1 AND A2 AND A3;
代码解释:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
以上设置5日.10日.20日.60日.120日五条均价线
A1:=REF(MA60,1)>REF(MA120,1) AND MIN(REF(MA5,1),MIN(REF(MA10,1),REF(MA20,1)))>REF(MA60,1) AND REF(MA5,1)<REF(MA10,1) OR REF(MA5,1)<REF(MA20,1);
昨天60均线大于120均线,昨天5日 10日 20日均线最小值大于60日均线,昨天5日均线小于10日均线或5日均线小于20日。
A2:=MA60>MA120 AND MIN(MA5,MIN(MA10,MA20))>MA60 AND MA5>MAX(MA10,MA20);
今天60日均线大于120日均线,5日 10日 20日均线最小值大于60日均线,5日均线大于10日 20日均线的最大值。五线顺上。
A3:=CLOSE>OPEN and close>MA5 ;
今天收阳线且收盘价大于5日均线.
XG: A1 AND A2 AND A3 ;
选出符合条件A1 . A2 . A3 的股票.
注:如果想把该代码加入同花顺软件中,只要在一句代码的冒号后加等于号即可:如 XG: =A1 AND A2 AND A3 ;