主力进场必涨指标 公式 源码[大智慧公式]
指标公式代码分析及使用参考说明:
这是一段股票技术分析的代码,主要包括了各种指标的计算和条件判断。具体分析思路和使用建议如下:
1. 主力进场条件:
- 当前价格处于特定均线以上,并且比较符合吸筹条件时,可能意味着主力进场,建议关注。
2. 吸筹效果分析:
- 通过对吸筹期间价格的均价计算,可以评估吸筹效果,了解资金进出情况。
3. TD指标:
- 通过一系列价格变化的加权平均计算TD指标,用于判断价格趋势的变化。
4. V指标:
- 通过收盘价的涨跌幅度计算V指标,用于判断市场的买卖情况和逃顶预警。
5. 其他指标:
- 包括吸筹均价、价格相对强度、成交量比率、多空力量对比等指标,可以根据具体数值变化进行分析。
综合来看,这些指标可以帮助分析当前股票的市场走势和买卖情况,但具体的使用建议还需结合实际情况和其他因素进行综合分析,以更好地指导交易决策。另外,对于股票交易,也建议谨慎操作,理性投资。
源码:
这是主力进场和必涨,两个完美公式合并
cxhQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
cxhQ2:=SMA(ABS(LOW-cxhQ1),13,1)/SMA(MAX(LOW-cxhQ1,0),10,1);
cxhQ3:=EMA(cxhQ2,10);
cxhQ4:=LLV(LOW,33);
cxhQ5:=EMA(IF(LOW<=cxhQ4,cxhQ3,0),3)*100;
主力进场:STICKLINE(cxhQ5>REF(cxhQ5,1),0,cxhQ5,3,0 ),COLORMAGENTA;
cxh1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
cxh2:=SMA(cxh1,3,1);
cxh3:SMA(cxh2,3,1)*cxh1, LINETHICK1,COLORRED;
cxh4:SMA(cxh3,3,1),LINETHICK1,COLORYELLOW;
cxh9:=CROSS(cxh4,cxh3) AND cxh3>80;
吸筹:=cxhQ5>REF(cxhQ5,1);
距离天数:=BARSLAST(吸筹);
a0:=0;a1:=0;a2:=0;a3:=0;a4:=0;
a5:=0;a6:=0;a7:=0;a8:=0;a9:=0;
num:=1;
IF 吸筹=1 THEN BEGIN
a0:=L;
IF REF(吸筹,1)=1 THEN begin a1:=REF(L,1);num:=num+1; end;
IF REF(吸筹,2)=1 THEN begin a2:=REF(L,2);num:=num+1; end;
IF REF(吸筹,3)=1 THEN begin a3:=REF(L,3);num:=num+1; end;
IF REF(吸筹,4)=1 THEN begin a4:=REF(L,4);num:=num+1; end;
IF REF(吸筹,5)=1 THEN begin a5:=REF(L,5);num:=num+1; end;
IF REF(吸筹,6)=1 THEN begin a6:=REF(L,6);num:=num+1; end;
IF REF(吸筹,7)=1 THEN begin a7:=REF(L,7);num:=num+1; end;
IF REF(吸筹,8)=1 THEN begin a8:=REF(L,8);num:=num+1; end;
IF REF(吸筹,9)=1 THEN begin a9:=REF(L,9);num:=num+1; end;
END
ELSE BEGIN
a0:=REF(L,距离天数);
IF REF(吸筹,距离天数+1)=1 THEN begin a1:=REF(L,距离天数+1);num:=num+1; end;
IF REF(吸筹,距离天数+2)=1 THEN begin a2:=REF(L,距离天数+2);num:=num+1; end;
IF REF(吸筹,距离天数+3)=1 THEN begin a3:=REF(L,距离天数+3);num:=num+1; end;
IF REF(吸筹,距离天数+4)=1 THEN begin a4:=REF(L,距离天数+4);num:=num+1; end;
IF REF(吸筹,距离天数+5)=1 THEN begin a5:=REF(L,距离天数+5);num:=num+1; end;
IF REF(吸筹,距离天数+6)=1 THEN begin a6:=REF(L,距离天数+6);num:=num+1; end;
IF REF(吸筹,距离天数+7)=1 THEN begin a7:=REF(L,距离天数+7);num:=num+1; end;
IF REF(吸筹,距离天数+8)=1 THEN begin a8:=REF(L,距离天数+8);num:=num+1; end;
IF REF(吸筹,距离天数+9)=1 THEN begin a9:=REF(L,距离天数+9);num:=num+1; end;
END;
本次吸筹均价:(a0+a1+a2+a3+a4+a5+a6+a7+a8+a9)/num;
STICKLINE(cxh9,cxh3-5,100,1,1),LINETHICK1,COLORYELLOW;
DRAWTEXT(cxh9 AND COUNT(cxh9,10)=1,cxh3-15,'走'),LINETHICK1,COLORYELLOW;
TD:=(((7 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 30),4,1)) - (3 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 30),4,1),3,1))) - SMA(SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 30),4,1),3,1),2,1));
V1:=REF(CLOSE,1);
V3:=SMA(MAX(CLOSE-V1,0),12,1)/SMA(ABS(CLOSE-V1),12,1)*100;
V4:=MA(V3,4);
V5:=IF(CROSS(V4,REF(V4,2)) AND V4<32,80,IF(CROSS(REF(V4,2),V4) AND V4>62,20,50));
DRAWTEXT(CROSS(78.89,TD) and V5<50,cxh3-15,'逃顶'),colorred;
DRAWTEXT(CROSS(cxh3,8000),cxh3-30,'预警'),coloryellow;
AA:=SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1);
TP:EMA(IF(L<=LLV(L,30),AA,0),3)*1000,COLORFF00FF,LINETHICK2;
{DRAWICON(CROSS(cxh3,cxh4),cxh3,1);}
比率:cxh3/cxh4;
V3日增减:cxh3 - ref(cxh3,1);
V4日增减:cxh4 - ref(cxh4,1);
V比增:cxh3/ cxh4-REF(cxh3,1)/REF(cxh4,1);
tj0:=cxh3<1000;
tj1:=cxh3>0 and cxh4>0 and V3日增减>0 and V4日增减>0;
tj2:=cxh3-REF(cxh3,1)>0 and cxh4-REF(cxh4,1)>0 and V3日增减-REF(V3日增减,1)>0 and V4日增减-REF(V4日增减,1)>0;
tj3:=REF(cxh3,1)-REF(cxh3,2)<0 OR REF(cxh4,1)-REF(cxh4,2)<0 OR REF(V3日增减,1)-REF(V3日增减,2)<0 OR REF(V4日增减,1)-REF(V4日增减,2)<0;
DRAWICON(tj0 and tj1 and tj2 and tj3,cxh3,1);
tj5:=cxh3/REF(cxh3,1)>1;
tj6:=(cxh3 + REF(cxh3,1)+ REF(cxh3,1))/3<100;
XG:tj5 and tj6,linethick0;
DRAWICON(FILTER(XG,5),cxh3,7);
cxh01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
cxh02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
cxh03:=CROSS(cxh02,cxh01);
cxh04:=REF(cxh02,2)<REF(cxh02,1) AND cxh02<REF(cxh02,1);
cxh05:=COUNT(cxh03,7)>0 AND cxh04;
cxh06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
cxh07:=SMA(ABS(LOW-cxh06),13,1)/SMA(MAX(LOW-cxh06,0),10,1);
cxh08:=EMA(cxh07,10);
cxh09:=EMA(C,5);
cxh10:=LLV(LOW,33);
cxh11:=EMA(IF(LOW<=cxh10,cxh09,0),3)*40;
cxh12:=IF(cxh11>100,cxh11*0.312,cxh11);
STICKLINE(cxh05 AND COUNT(cxh05,5)=1,0,cxh12+HHV(TP,10),4,0),COLORRED;
cxh59:=1/WINNER(CLOSE);
cxh33:=MA(CLOSE,13);
cxh34:=100-ABS((CLOSE-cxh33)/cxh33*100);
cxh35:=LLV(LOW,75);
cxh36:=HHV(HIGH,75);
cxh37:=(cxh36-cxh35)/100;
cxh38:=SMA((CLOSE-cxh35)/cxh37,20,1);
cxh39:=SMA((OPEN-cxh35)/cxh37,20,1);
cxhA3:=3*cxh38-2*SMA(cxh38,15,1);
cxhB3:=3*cxh39-2*SMA(cxh39,15,1);
cxhC3:=100-cxhB3;
cxhE3:=REF(LOW,1)*0.9;
cxhF3:=LOW*0.9;
cxh40:=(cxhF3*VOL+cxhE3*(CAPITAL-VOL))/CAPITAL;
cxh41:=EMA(cxh40,30);
cxh42:=CLOSE-REF(CLOSE,1);
cxh43:=MAX(cxh42,0);
cxh44:=ABS(cxh42);
cxh45:=SMA(cxh43,7,1)/SMA(cxh44,7,1)*100;
cxh46:=SMA(cxh43,13,1)/SMA(cxh44,13,1)*100;
cxh47:=BARSCOUNT(CLOSE);
cxh48:=SMA(MAX(cxh42,0),6,1)/SMA(ABS(cxh42),6,1)*100;
cxh49:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
cxh3A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
cxh3B:=SMA((SMA(cxh3A,4,1)-50)*2,3,1);
cxh3C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
cxh3D:=SMA(cxh3C,4,1);
cxh3E:=SMA(cxh3D,3,1);
cxh3F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
cxh50:=cxh48<=25 AND cxh49<-95 AND cxh3F>20 AND cxh3B<-30 AND cxh3E<30 AND cxh41-CLOSE>=-0.25 AND cxh45<22 AND cxh46<28 AND cxh47>50;
cxh51:=(HIGH+LOW+CLOSE)/3;
cxh52:=(cxh51-MA(cxh51,14))/(0.015*AVEDEV(cxh51,14));
cxh53:=(cxh51-MA(cxh51,70))/(0.015*AVEDEV(cxh51,70));
cxh54:=IF(cxh52>=150 AND cxh52<200 AND cxh53>=150 AND cxh53<200,10,0);
cxh55:=IF(cxh52<=-150 AND cxh52>-200 AND cxh53<=-150 AND cxh53>-200,-10,cxh54);
绝处逢生: IF(cxh53>=200 AND cxh52>=150,15,IF(cxh53<=-200 AND cxh52<=-150,-15,cxh55))+50,LINETHICK1,CROSSDOT,colorWHITE;
cxh56:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
cxh57:=REVERSE(cxh56);
cxh58:=SMA(cxh56,3,1);
波段王: SMA(cxh58,3,1),colorFF10FF,linethick0;
波段鬼: SMA(波段王,3,1),colorWHITE,linethick0;
低吸: IF(CROSS(波段王,波段鬼) AND 波段王<50,25,0),stick,linethick3,COLORRED;
DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<50,25,'低吸'),linethick1,COLORWHITE;
cxhF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
cxh19:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
cxh20:=cxhF<REF(cxh19,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(cxh20 AND COUNT(cxh20,30)=1,45,'大资金活动'),linethick2,COLOR0000ff;
大资金:IF(cxh20 AND COUNT(cxh20,30)=1,30,0),stick,LINETHICK2,COLOR0000ff;
cxh1:=(CLOSE*2+HIGH+LOW)/4*10;
cxh2:=EMA(cxh1,13)-EMA(cxh1,34);
cxh3:=EMA(cxh2,5);
cxh4:=2*(cxh2-cxh3)*5.5;
主力撤: IF(cxh4<=0,cxh4,0),colorWHITE;
主力进: IF(cxh4>=0,cxh4,0),linethick2,COLOR0000ff;
cxh5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
cxh6:=EMA(3*cxh5-2*SMA(cxh5,18,1),5);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容