N1:=7;
N2:=14;
N3:=28;
M:=6;
TH:=MAX(HIGH,REF(CLOSE,1));
TL:=MIN(LOW,REF(CLOSE,1));
ACC1:=SUM(CLOSE-TL,N1)/SUM(TH-TL,N1);
ACC2:=SUM(CLOSE-TL,N2)/SUM(TH-TL,N2);
ACC3:=SUM(CLOSE-TL,N3)/SUM(TH-TL,N3);
UOS:(ACC1*N2*N3+ACC2*N1*N3+ACC3*N1*N2)*100/(N1*N2+N1*N3+N2*N3);
MAUOS:EXPMEMA(UOS,M);
你好,通达信选股公式源码如下。
次日涨停
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W20,REF(C,W2),REF(C,W2));
W4:=交叉(C,REF(W3,1));
W4和计数(W4,5)=1;
黄转紫选股
差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(差异,9);
MACD:=(DIFF-DEA)*2;
紫柱:MACDREF(MACD,1)和REF(MACD,1)低位金叉选股
差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(差异,9);
MACD:=(DIFF-DEA)*2;
低位金叉:交叉(差异,DEA)和差异二次金叉选股
差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(差异,9);
MACD:=(DIFF-DEA)*2;
JCCOUNT:=计数(交叉(差异,数据包络分析),BARSLAST(数据包络分析=0));
二次金叉:交叉(差异,DEA)和DEA绝地反弹
(1)
VAR1:=参考值(低,1);
VAR2:= *** A(ABS(低VAR1),13,1)/ *** A(更大值(低VAR1,0),13,1)*100;
VAR3:=EMA(如果(关闭*1.2,VAR2*13,VAR2/13),13);
VAR4:=LLV(低,34);
VAR5:=HHV(VAR3,34);
VAR6:=如果(LLV(低,55),1,0);
VAR7:=EMA(如果(低)XL1:=MA(低,2)*0.96;
XL2:=MA(低,26)*0.85;
XL3:=REF(XL1,1)启动:=如果(XL3,0,VAR7*3),则为红色;
XG:启动25;
(2)
倒退((参考(关闭,1)关闭打开和ABS(关闭参考(关闭,1))/关闭A2:=过滤器(A1ND资本REF(V,1)=LLV(V,4)和V=REF(V,1)
HHV(V,3)=参考(V,1)和HHV(V,5)=参考(V,1)和HHV(V,21)=参考(V,1)
和V=REF(V,1)
010,T020;
1.三线粘合
M:=1;
M5:=MA(闭合,5);
M10:=MA(闭合,10);
M20:=MA(闭合,20);
K1:=更大值(更大值(M5,M10),更大值(M10,M20));
K2:=MIN(MIN(M5,M10),MIN(M10,M20));
A:=更大(M5,更大(M10,M20))/MIN(M5,最小(M10,M20))A1:=(K1/K2-1)A2:=(K1/K2-1)A3:=VREF(V,1)*1.5和VMA(V,5);
XG:A和A1,A2和A3,CO和VREF(V,1),资本2.三条线粘合
N1:=5;N2:=10;N3:=20;M:=1;
MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);
A3:=VREF(V,1)*1.5和VMA(V,5);
更大值(MA1,更大值(MA2,MA3))/MIN(MA1,最小值(MA2,MA3))CO和VREF(V,1)和财务(7)A3及资本3.均线粘合
M:=1;
M5:=MA(闭合,5);
M10:=MA(闭合,10);
M20:=MA(闭合,20);
K1:=更大值(更大值(M5,M10),更大值(M10,M20));
K2:=MIN(MIN(M5,M10),MIN(M10,M20));
A:=更大(M5,更大(M10,M20))/MIN(M5,最小(M10,M20))A1:=(K1/K2-1)A2:=(K1/K2-1)A3:=VREF(V,1)*1.5和VMA(V,5);
XG:A和A1以及A2和A3;
3.金叉选股指标
快线:=均线(均线)(均线(收盘,2,2,2),;
慢线:=EMA(参考(快线,1),2);
A3:=VREF(V,1)*1.5和VMA(V,5);
交叉(快线,慢线) 和CO和
五 =MA(V,21)和VREF(V,1),资本
先把做好的指标送给楼主吧。
源码:
中轨:=MA(C,26);
下极限:=(中轨-2*STD(C,20));
KK:=C-下极限;
ABS(KK)=0.1
顺便提醒一下楼主,这个指标我也在用,但我做成的是提示买点,此指标是一个很经典的短线指标,可以配合其他指标,抓住波段。但是准确性需要较多指标产生共振效果。如果楼主还有什么需要,可以联系我。还有,提醒一下楼主,验证一下你这个提示的价值。
刚给你的源码应该准确,楼主试试便知。
Var2:=(3*CLOSE+LOW+OPEN+HIGH)/6;
Var3:=(20*Var2+19*REF(Var2,1)+18*REF(Var2,2)+17*REF(Var2,3)+16*REF(Var2,4)+15*REF(Var2,5)+14*REF(Var2,6)+13*REF(Var2,7)+12*REF(Var2,8)+11*REF(Var2,9)+10*REF(Var2,10)+9*REF(Var2,11)+8*REF(Var2,12)+7*REF(Var2,13)+6*REF(Var2,14)+5*REF(Var2,15)+4*REF(Var2,16)+3*REF(Var2,17)+2*REF(Var2,18)+REF(Var2,20))/210;
Var4:=MA(Var3,13);
Var5:=EMA(MA(CLOSE,3),34);
Var6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
Var7:=MA(Var6,5);
Var8:=MA(Var6,10);
〖空头市场〗: STICKLINE(IF(Var3Var5,Var3=1.015*Var4,Var3=1.005*Var4),Var3,Var4,10,1), ,COLOR008800 ;
〖多头市场〗: STICKLINE(Var31.005*Var4,Var3,Var4,10,1),ColorFFB5FF , {COLOR6666CC};
『脑电波上升』: DRAWTEXT(FILTER(MA(Var6,10)Var7,1),Var8,'↑'), , COLORRED;
『脑电波下跌』: DRAWTEXT(FILTER(MA(Var6,10)=Var6,1),Var8,'↓'), , COLORGREEN;
『多空安全线』: Var5,circledot , COLORWHITE;
〖关注点〗: STICKLINE(COUNT(Var31.005*Var4 AND Var3=REF(Var3,1),2)=2 OR COUNT(IF(Var3Var5,Var3=1.015*Var4,Var3=1.005*Var4) AND Var3=REF(Var3,1),2)=2,Var3,Var4,10,0), , COLORYELLOW;
★买入点: DRAWTEXT(REF(CROSS(Var3,Var4),2) AND Var31.005*Var4,Var4,'★买入点'), ,COLORYELLOW;
『多空争夺点』: DRAWTEXT(CROSS(Var6,Var7) AND Var7Var8,Var3*0.99,'▲翻多'), , COLORBLUE;
『空多争夺点』: DRAWTEXT(CROSS(Var7,Var6) AND Var7Var8,Var3*1.01,'▼翻空'),COLORGREEN;
『卖出』: DRAWTEXT(CROSS(var7,var6) AND var7var8,var3*1.05,'▼卖出'),COLORwhite;
Var9:=1/WINNER(CLOSE);
VarA:=MA(CLOSE,13);
VarB:=100-ABS((CLOSE-VarA)/VarA*100);
VarC:=LLV(LOW,75);
VarD:=HHV(HIGH,75);
VarE:=(VarD-VarC)/100;
VarF:= *** A((CLOSE-VarC)/VarE,20,1);
Var10:= *** A((OPEN-VarC)/VarE,20,1);
Var11:=3*VarF-2* *** A(VarF,15,1);
Var12:=3*Var10-2* *** A(Var10,15,1);
Var13:=100-Var12;
Var14:=100-Var11;
Var15:=MA(WINNER(CLOSE*0.95)*100,3);
Var16:=100-IF(Var95,IF(Var9100,Var9,VarB-10),0);
Var17:=Var15VarB;
Var18:=REF(LOW,1)*0.9;
Var19:=LOW*0.9;
Var1A:=(Var19*VOL+Var18*(CAPITAL-VOL))/CAPITAL;
Var1B:=EMA(Var1A,30);
Var1C:=CLOSE-REF(CLOSE,1);
Var1D:=MAX(Var1C,0);
Var1E:=ABS(Var1C);
Var1F:= *** A(Var1D,7,1)/ *** A(Var1E,7,1)*100;
Var20:= *** A(Var1D,13,1)/ *** A(Var1E,13,1)*100;
Var21:=BARSCOUNT(CLOSE);
Var22:= *** A(MAX(Var1C,0),6,1)/ *** A(ABS(Var1C),6,1)*100;
Var23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
Var24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var25:= *** A(( *** A(Var24,4,1)-50)*2,3,1);
Var26:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var27:= *** A(Var26,4,1);
Var28:= *** A(Var27,3,1);
Var29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
Var2A:=Var22=25 AND Var23-95 AND Var2920 AND Var25-30 AND Var2830 AND Var1B-CLOSE=-0.25 AND Var1F22 AND Var2028 AND Var2150;
DRAWTEXT(CROSS(Var2A,0.5) AND COUNT(Var2A=1,10)=1,Var4,'发射资金♂‖超短线操作‖'), , COLORRED;
DRAWTEXT(CROSS(Var17,0.5) AND COUNT(Var17=1,10)=1,Var3,'∝激烈交锋'),COLOR999999;
var326:=IF(CLOSEREF(CLOSE, 1),88,0);
var327:=IF(CLOSE/REF(CLOSE, 1)1.050 AND HIGH/CLOSE1.010 AND var3260, 91, 0);
STICKLINE(var32790,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(var32790,LOW*0.95,'追涨'),COLORYELLOW;