您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

大资金进场 长期底部 短期底部 黑马起步 指标公式源码 测试图[通达信公式]

一个较为复杂的技术指标,其中包括了多个变量的计算和多个函数的使用。根据代码中的命名和计算公式可以推测,这些变量主要与股票价格、成交量以及股票趋势相关。下面为您提供一些思路和操作建议,供参考:
 
1. XXCC和ZZCC分别是长期和超长期的平滑移动平均线,通常用来判断股票的整体趋势。当价格在XXCC或ZZCC上方时,可以视为上涨趋势。反之,当价格在XXCC或ZZCC下方时,则可视为下跌趋势。
 
2. cxh86和cxh87是通过计算股票收盘价或开盘价与最高价、最低价之间的距离,来判断股票的趋势强度。其中cxh86表示收盘价的趋势强度,cxh87表示开盘价的趋势强度。当趋势强度大于0时,可以视为上涨趋势较强;反之,当趋势强度小于0时,则可视为下跌趋势较强。
 
3. cxh91和cxh93表示使用不同的指标计算的趋势强度,其中cxh93表示股票收盘价的趋势强度,而cxh91则包含了股票成交量的影响,用来判断价格变化是否与成交量匹配。当趋势强度大于0时,可以视为上涨趋势较强;反之,当趋势强度小于0时,则可视为下跌趋势较强。
 
4. AAE表示将价格加权平均后再进行赢家效应计算的结果,用来判断股票的价格趋势。当AAE上涨时,可以考虑买入;反之,当AAE下跌时,则可以考虑卖出。
 
 
XXCC: EMA(EMA(EMA(EMA(C,3),3),3),3),LINETHICK1,COLOR0000FF;
XXCC1: EMA(REF(XXCC,1),3),LINETHICK1,COLOR00FFFF;
ZZCC: EMA(EMA(EMA(EMA(EMA(C,65),3),3),3),3),LINETHICK1,COLORFF0000;
AA:= MA(WINNER(C*0.95)*100,3);
cxh83:= 1/WINNER(C);
cxh84:= (C-MA(C,13))/MA(C,13)*100;
cxh85:= 100-ABS(cxh84);
cxh86:= 3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)-2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
cxh87:= 3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)-2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
cxh88:= 100-cxh87;
cxh89:= 100-cxh86;
cxh90:= MA(WINNER(C*0.95)*100,3);
cxh91:= IF(cxh83>5,IF(cxh83<100,cxh83,cxh85-10),0);
cxh92:= MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
cxh93:= 100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
cxh94:= 100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
cxh95:= cxh93<REF(cxh94,1) AND V>REF(V,1) AND C>REF(C,1);
AAE:= WINNER(C+C*15/100)*100;
BBE:= WINNER(C+C*0/100)*100;
CCE:= AAE-BBE;{程序化久久公式网www.cxh99.com}
DDE:= (WINNER(C-C*0.1/100)-WINNER(C-C*15/100))*100;
EEE:= CCE<3 AND DDE<0.5 AND O<L;
AE1:= DYNAINFO(6);
AE2:= IF(L>AE1,0,IF(H<AE1,1,(AE1-L+0.01)/(H-L+0.01)));
AE3:= V/WINNER(L);
AE4:= REF(HHV(C,120),1);
AE5:= REF(LLV(C,120),1);
AE6:= 100*(C-AE5)/(AE4-AE5);
AE7:= AE2>0 OR AE2=1;
AE8:= AE7 AND AE3/REF(AE3,3)>=3 AND AE6<80;
AE9:= REF(AE8,1) OR REF(AE8,2) OR REF(AE8,3) OR REF(AE8,4);
AE10:= AE8 AND AE9;
AE11:= IF(FILTER(AE8,3),5,0);
AE12:= FILTER(IF(FILTER(AE10,3) OR EEE,10,0),3);
cxhA:= (C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
cxhB:= SMA(cxhA,3,1);
cxhC:= SMA(cxhB,3,1);
探索:= EMA(3*cxhB-2*cxhC,3);
主力:= (-1)*(EMA(cxh89,1)-50)+50;
Z1:= MA(主力,9);
cxhD:= (-1)*(EMA(cxh89,1)-50)+50;
cxhE:= (-1)*(EMA(cxh89,12)-50)+50;
LCC:= REF(C,1);
RSI1:= SMA(MAX(C-LCC,0),6,1)/SMA(ABS(C-LCC),6,1)*100;
天涯:= IF(RSI1>93 OR AA>90 AND RSI1>80,80,100);
苦海:= EMA(100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14)),6);
ZS:= MA(探索,3);
ZM:= MA(MA(探索,3),3);
A11:= 3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:= EMA(A11,5);
A12:= (黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
A4:= (C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;
趋势线3:= MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);
A5:= (HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
N:= 3;
cxh1:= REF((L+O+C+H)/4,1);
cxh2:= SMA(ABS(L-cxh1),13,1)/SMA(MAX(L-cxh1,0),10,1);
cxh3:= EMA(cxh2,10);
cxh4:= LLV(L,33);
cxh5:= EMA(IF(L<=cxh4,cxh3,0),5);
cxh6:= REF(C,1);
cxh7:= SMA(MAX(C-cxh6,0),6,1)/SMA(ABS(C-cxh6),6,1)*100;
cxh8:= LLV(L,5)=LLV(L,45) AND C>=O*1.04;
cxh9:= C>(REF(H,1)+REF(L,1))/2;
cxh10:= cxh8 AND cxh9;
cxh11:= (2*C+H+L)/4;
cxh12:= LLV(L,13);
cxh13:= HHV(H,13);
cxh14:= LLV(L,1)=LLV(L,35) AND C>=O*1.04;
cxh15:= C>(REF(H,1)+REF(L,1))/2;
cxh16:= EMA((cxh11-cxh12)/(cxh13-cxh12)*100,13);
cxh17:= ((C-MA(C,6))/MA(C,6)*100+(C-MA(C,24))/MA(C,24)*100+(C-MA(C,32))/MA(C,32)*100)/3;
cxh18:= 1/WINNER(C);
cxh19:= MA(C,13);
cxh20:= 100-ABS((C-cxh19)/cxh19*100);
cxh21:= LLV(L,75);
cxh22:= HHV(H,75);
cxh23:= (cxh22-cxh21)/100;
cxh24:= SMA((C-cxh21)/cxh23,20,1);
cxh25:= SMA((O-cxh21)/cxh23,20,1);
cxh26:= 3*cxh24-2*SMA(cxh24,15,1);
cxh27:= MA(HHV(H,485),17);
cxh28:= MA(HHV(H,222),17);
cxh29:= MA(HHV(H,96),17);
cxh30:= MA(LLV(L,485),17);
cxh31:= MA(LLV(L,222),17);
cxh32:= MA(LLV(L,96),17);
cxh33:= MA((cxh30*0.96+cxh31*0.96+cxh32*0.96+cxh27*0.558+cxh28*0.558+cxh29*0.558)/6,17);
cxh34:= MA((cxh30*1.25+cxh31*1.23+cxh32*1.2+cxh27*0.55+cxh28*0.55+cxh29*0.65)/6,17);
cxh35:= MA((cxh30*1.3+cxh31*1.3+cxh32*1.3+cxh27*0.68+cxh28*0.68+cxh29*0.68)/6,17);
cxh36:= LLV(L,30);
cxh37:= MA((cxh33*3+cxh34*2+cxh35)/6*1.738,17);
cxh38:= IF(DATE<=1050531,cxh37,cxh37*DAY);
cxh39:= L;
cxh40:= REF(L,1);
cxh41:= SMA(ABS(cxh39-cxh40),3,1)/SMA(MAX(cxh39-cxh40,0),N,1)*100;
cxh42:= MA(IF(C*1.35<=cxh38,cxh41*10,cxh41/10),N);
cxh43:= HHV(cxh42,30);
cxh44:= 1080531;
cxh45:= 3*cxh25-2*SMA(cxh25,15,1);
cxh46:= 100-cxh45;
cxh47:= IF(900101<DATE AND DATE<99991232,1,0);
cxh49:= REF(L,1)*0.9;
cxh50:= L*0.9;
cxh51:= (cxh50*V+cxh49*(CAPITAL-V))/CAPITAL;
cxh52:= EMA(cxh51,30);
cxh53:= C-REF(C,1);
cxh54:= MAX(cxh53,0);
cxh55:= ABS(cxh53);
cxh56:= SMA(cxh54,7,1)/SMA(cxh55,7,1)*100;
cxh57:= SMA(cxh54,13,1)/SMA(cxh55,13,1)*100;
cxh58:= BARSCOUNT(C);
cxh59:= SMA(MAX(cxh53,0),6,1)/SMA(ABS(cxh53),6,1)*100;
cxh60:= (-200)*(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))+100;
cxh61:= (C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
cxh62:= SMA((SMA(cxh61,4,1)-50)*2,3,1);
cxh63:= (INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
cxh64:= SMA(cxh63,4,1);
cxh65:= SMA(cxh64,3,1);
cxh66:= (HHV(H,30)-C)/C*100;
cxh67:= cxh59<=25 AND cxh60<(-95) AND cxh66>20 AND cxh62<(-30) AND cxh65<30 AND cxh52-C>=(-0.25) AND cxh56<22 AND cxh57<28 AND cxh58>50;
cxh68:= (H+L+C)/3;
cxh69:= (cxh68-MA(cxh68,14))/(0.015*AVEDEV(cxh68,14));
cxh70:= (cxh68-MA(cxh68,70))/(0.015*AVEDEV(cxh68,70));
cxh71:= IF(cxh69>=150 AND cxh69<200 AND cxh70>=150 AND cxh70<200,10,0);
cxh72:= IF(cxh69<=(-150) AND cxh69>(-200) AND cxh70<=(-150) AND cxh70>(-200),-10,cxh71);
cxh73:= (C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100;
cxh74:= REVERSE(cxh73);
cxh75:= SMA(cxh73,3,1);
绝佳买点:= IF(DATE<=cxh44,MA(IF(L<=cxh36,(cxh42+cxh43*2)/2,0),N),100000000);
跑:= FILTER(REF(黑马线,1)>90 AND A12<0 ,7);
买线:= EMA(C,2);
卖线:= EMA(SLOPE(C,21)*20+C,42);
指數位置:= 3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
抄底:= CROSS(指數位置,10);
A1:= V=HHV(V,120);
A2:= C/O>1.05;
TJ:= A1 AND A2;
龙:= cxh10;
买4:= cxh14;
AA1:= AMOUNT/V;
BB1:= L<AA1*0.9;
CC1:= (C-REF(C,1))/REF(C,1)*100>1.2;
DD1:= L<MA(C,5)*0.921;
EE1:= V<MA(V,5)*1.5;
FF1:= BB1 AND CC1 AND DD1 AND EE1;
买3:= FILTER(FF1,3) AND DATE<=1080530;
二十天最低跌幅:= HHV(C,20)/LLV(C,20);
RSV:= (C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:= SMA(RSV,3,1);
D:= SMA(K,3,1);
J:= 3*K-2*D;
X:= LLV(J,2)=LLV(J,8);
买1:= CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND 二十天最低跌幅>=1.3 ;
长期底部:= LLV(H,30);
上:= SMA(L,5,2)*0.96;
短期底部:= LLV(H,30)*0.93;
LC:= REF(C,1);
 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容