N1:=3;
N2:=5;
N3:=13;
N4:=21;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
AA:=ZIG(3,N4);
GG:=EMA(AA,2);
SS:IF(REF(GG,1)<GG,1,0);
XJ:IF(REF(GG,1)>GG,1,0);
VAR1:=((CLOSE - LLV(LOW,N1))/(HHV(HIGH,N1) - LLV(LOW,N1)))*(100);
VAR3:=SMA(VAR1,5,1);
K:=SMA(VAR3,3,1);
D:=SMA(K,3,1);
STICKLINE((K >= D),K,D,8,0),COLOR0000A8;
STICKLINE((K >= D),K,D,6,0),COLOR0000C0;
STICKLINE((K >= D),K,D,4,0),COLOR0000E0;
STICKLINE((K >= D),K,D,3,0),COLOR0000F0;
STICKLINE((K >= D),K,D,2,0),COLOR0000D0;
STICKLINE((K >= D),K,D,1,0),COLOR8080FF;
STICKLINE((K <= D),K,D,8,0),COLOR008800;
STICKLINE((K <= D),K,D,6,0),COLOR009900;
STICKLINE((K <= D),K,D,4,0),COLOR00AA00;
STICKLINE((K <= D),K,D,3,0),COLOR00BB00;
STICKLINE((K <= D),K,D,2,0),COLOR00CC00;
STICKLINE((K <= D),K,D,1,0),COLOR00DD00;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
K2:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
K3:=MA(K2,5);
J:=MAX(MA(C,N2),MA(C,N3));
K1:=MIN(MA(C,N2),MA(C,N3));
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
A3:=BARSLAST(REF(CROSS(K,D),1));
A4:=BARSLAST(REF(CROSS(D,K),1));
底背离:=IF(REF(LOW,A1+1)>LOW AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),1,0);
顶背离:=IF(REF(HIGH,A2+1)<HIGH AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),1,0);
底背离1:=IF(REF(LOW,A3+1)>LOW AND K>REF(K,A3+1) AND CROSS(K,D),1,0);
顶背离1:=IF(REF(HIGH,A4+1)<HIGH AND REF(D,A4+1) AND CROSS(D,K),1,0);
DRAWTEXT(CROSS(K,D) AND C>J AND D<76 AND REF(MACD,1)<MACD AND (顶背离=0 OR 顶背离1=0) AND SS=1 AND C>K2,K,'买'),COLORRED;
DRAWICON(CROSS(K,D) AND C>J AND D<76 AND REF(MACD,1)<MACD AND (顶背离=0 OR 顶背离1=0) AND SS=1 AND C>K2,K,1);
DRAWTEXT(CROSS(D,K) AND (C<K1 OR (J>=C AND C>=K)) AND REF(MACD,1)>MACD AND (底背离=0 OR 底背离1=0) AND D>18 AND XJ=1 AND C<K3,D,'卖'),COLORWHITE;
DRAWICON(CROSS(D,K) AND (C<K1 OR (J>=C AND C>=K)) AND REF(MACD,1)>MACD AND (底背离=0 OR 底背离1=0) AND D>18 AND XJ=1 AND C<K3,D,2);
DRAWTEXT(CROSS(K,D) AND (底背离=1 AND 底背离1=1) AND 顶背离1=0 AND SS=1 ,K,'买'),COLORRED;
DRAWICON(CROSS(K,D) AND (底背离=1 AND 底背离1=1) AND 顶背离1=0 AND SS=1 ,K,1);
DRAWTEXT(CROSS(D,K) AND 顶背离=1 AND 顶背离1=1 AND XJ=1,D,'卖'),COLORWHITE;
DRAWICON(CROSS(D,K) AND 顶背离=1 AND 顶背离1=1 AND XJ=1,D,2),COLORWHITE;
XG:REF(SMA(SMA(((CLOSE - LLV(LOW,3))/(HHV(HIGH,3) - LLV(LOW,3)))*(100),5,1),3,1)<SMA(SMA(SMA(((CLOSE - LLV(LOW,3))/(HHV(HIGH,3) - LLV(LOW,3)))*(100),5,1),3,1),3,1),1)*(SMA(SMA(((CLOSE - LLV(LOW,3))/(HHV(HIGH,3) - LLV(LOW,3)))*(100),5,1),3,1)>SMA(SMA(SMA(((CLOSE - LLV(LOW,3))/(HHV(HIGH,3) - LLV(LOW,3)))*(100),5,1),3,1),3,1));
通达信幅图公式修改为选股公式,选择绿色刚刚变红色的位置的选股...
XG:REF(SMA(SMA(((CLOSE - LLV(LOW,3))\/(HHV(HIGH,3) - LLV(LOW,3)))*(100),5,1),3,1)<SMA(SMA(SMA(((CLOSE - LLV(LOW,3))\/(HHV(HIGH,3) - LLV(LOW,3)))*(100),5,1),3,1),3,1),1)*(SMA(SMA(((
...选股公式编写, 要求:副图曲线--由绿色变为红色--选入
MID:=(3*CLOSE+LOW+OPEN+HIGH)\/6;主力:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+ 13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+ 10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+ 7*REF(MID,13)+6...
请大师帮我将通达信附图指标公式改为选股公式
朋友,以下是你要的选股公式:A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回吐:=(A2>=0)*A2,COLORWHITE,LINETHICK0;大黑马:=(A2<0)*A2,COLORD4FF7F,LINETHICK0;坚绝做空:=(A1<0)*A1,COLORB00058,LINETHICK0;买入持股:=(A1>=0)*A1,COLORRED,LINETHICK0;VAR8:=VOL>2*MA(VOL,...
把下面改为通达信条件选股公式,谢谢。 编辑绿色转红色时条件选股公式...
XG:MA(C,5)>=REF(MA(C,5),1) AND REF(MA(C,5),1)<REF(MA(C,5),2);{如果用于60分钟选股,需保证分时数据的完整性,选股周期选定60分}
通达信副图指标改成选股公式
VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);动力线: EMA((CLOSE-VAR2)\/(VAR3-VAR2)*4,4)<0.2;
请老师将我的通达信副图做出选股公式,副图公式如下。请分别选出红色预警...
红色预警 --- LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)\/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,LINETHICK2;震仓线:=45,COLORMAGENTA;抄底线:=20,COLORGREEN;PP:=操作线<震仓线 AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;涨停:=...
通达信副图公式修改为条件选股公式
回答:VAR1:=(2*CLOSE+HIGH+LOW+OPEN)\/5;VAR2:=LLV(LOW,21); VAR3:=HHV(HIGH,21); SK:=EMA((VAR1-VAR2)\/(VAR3-VAR2)*100,5); SD:=EMA(0.667*REF(SK,1)+0.333*SK,4); XG:CROSS(SK,SD); (已测试)
麻烦改成通达信选股公式,要两个选股公式,出现红柱选股,出现绿柱选股...
0),3);X:CROSS(VAR5>REF(VAR5,1),0.5);VAR1:=REF((LOW+OPEN+CLOSE+HIGH)\/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)\/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);Y:CROSS(VAR5<REF(VAR5,1),0.5);
求高手帮忙改编写一个通达信的选股公式,出现绿线上穿红线预警选股!谢谢...
arial, 'courier new', courier, 宋体, monospace, 'Microsoft YaHei'; white-space: pre-wrap; word-wrap: break-word; color: rgb(51, 51, 51); line-height: 24px; background-color: rgb(243, 255, 236);">预警:IF(CROSS(绿线,红线),50,0); ...
如何将通达信副图指标改成选股指标?求帮助
选股公式如下:XG:(((HIGH+LOW+CLOSE)\/3-MA((HIGH+LOW+CLOSE)\/3,14))\/(0.015*AVEDEV((HIGH+LOW+CLOSE)\/3,14))<-110 AND TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04)OR((TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04));注意未来函数.效果如图 ...