机构指标 公式 源码[同花顺公式]
指标公式源码分析及使用说明参考:
源码:
大机构仓位:100*(1-WINNER(CLOSE)),colorred,LINETHICK3;
CXH2:=1/WINNER(CLOSE);
CXH3:=MA(CLOSE,13);
CXH4:=100-ABS((CLOSE-CXH3)/CXH3*100);
CXH5:=LLV(LOW,120);
CXH6:=HHV(HIGH,120);
CXH7:=(CXH6-CXH5)/100;
CXH8:=SMA((CLOSE-CXH5)/CXH7,20,1);
CXH9:=SMA((OPEN-CXH5)/CXH7,20,1);
CXHA:=3*CXH8-2*SMA(CXH8,10,1);
CXHB:=3*CXH9-2*SMA(CXH9,10,1);
CXHC:=100-CXHB;
//www.cxh99.com
基金私暮仓位: (100-CXHA),coloryellow,LINETHICK2;
CXH1:=HHV(HIGH,9)-LLV(LOW,9);
CXH2:=HHV(HIGH,9)-CLOSE;
CXH3:=CLOSE-LLV(LOW,9);
CXH4:=((CXH2)/(CXH1))*(100)-70;
CXH5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
CXH6:=((2)*(CLOSE)+HIGH+LOW)/(4);
CXH7:=SMA(((CXH3)/(CXH1))*(100),3,1);
CXH8:=LLV(LOW,34);
CXH9:=SMA(CXH7,3,1)-SMA(CXH4,9,1);
CXH10:=IF((CXH9>100),CXH9-100,0);
CXH11:=HHV(HIGH,34);
B1:=EMA(((CXH6-CXH8)/(CXH11-CXH8))*(100),8);
机构趋势:EMA(B1,13),POINTDOT,colorred,LINETHICK2;
STICKLINE(B1-机构趋势>0,B1,机构趋势,5,0),COLOR0000FF;
STICKLINE(B1-机构趋势<0,B1,机构趋势,5,0),COLOR00FF00;
v1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100;
AA:=(EMA(V11,3)<=13) AND FILTER((EMA(V11,3)<=13),15);
买入股票: STICKLINE(EMA(V11,3)<=13 AND V12>13,0,50,5,0),LINETHICK3,colorred;
BB:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10);
DRAWTEXT (BB,60,'主力进'),colorwhite;
卖临界: STICKLINE(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN;//http://www.cxh99.com
CC:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10);
DD:=(EMA(V11,3)>=120 AND V12) AND FILTER((EMA(V11,3)>=120 AND V12),10);
STICKLINE(IF(VB>=0,VB,0) AND EMA(V11,3)<13,0,15,5,0),colorlired;
STICKLINE(IF(VB<=0,VB,0) AND EMA(V11,3)>90,0,7,10,0),COLORGREEN;//http://www.cxh99.com
STICKLINE( IF(V4>=0,V4,1) AND EMA(V11,3)<13,0,15,5,0),colorlired;
STICKLINE(IF(V4<=0,V4,1) AND EMA(V11,3)>90,0,7,10,0),colorliblue,LINETHICK1;
DRAWTEXT (CC,15,'主力减仓'),colorliblue;
AA:=(O+H+L+C)/4;
BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);
DD:=REF(100-(100/(1+CC)),1);
a1:=HHV(AA,10);
a2:=LLV(AA,30);
a3:=a1-a2;
a4:=EMA((AA-a2)/a3,1)*100;
b1:=HHV(AA,16);
b2:=LLV(AA,90);
b3:=b1-b2;
b4:=EMA((AA-b2)/b3,1)*100;
C1:=HHV(AA,30);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,1)*100;
中线趋势:b4,colormagenta,LINETHICK2;
STICKLINE(a4>90 AND b4>70,86,94,6,0),coloryellow;
CXHE:=REF(LOW,1)*0.9;
CXHF:=LOW*0.9;
CXH10:=(CXHF*VOL+CXHE*(CAPITAL-VOL))/CAPITAL;
CXH11:=EMA(CXH10,30);
CXH12:=CLOSE-REF(CLOSE,1);
CXH13:=MAX(CXH12,0);
CXH14:=ABS(CXH12);
CXH15:=SMA(CXH13,7,1)/SMA(CXH14,7,1)*100;
CXH16:=SMA(CXH13,13,1)/SMA(CXH14,13,1)*100;
CXH17:=BARSCOUNT(CLOSE);
CXH18:=SMA(MAX(CXH12,0),6,1)/SMA(ABS(CXH12),6,1)*100;
CXH19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
CXH1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CXH1B:=SMA((SMA(CXH1A,4,1)-50)*2,3,1);
CXH1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CXH1D:=SMA(CXH1C,4,1);
CXH1E:=SMA(CXH1D,3,1);
CXH1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
CXH20:=CXH18<=25 AND CXH19<-95 AND CXH1F>20 AND CXH1B<-30 AND CXH1E<30 AND CXH11-CLOSE>=-0.25 AND CXH15<22 AND CXH16<28 AND CXH17>50;
CXH21:=(HIGH+LOW+CLOSE)/3;
CXH22:=(CXH21-MA(CXH21,14))/(0.015*AVEDEV(CXH21,14));
CXH23:=(CXH21-MA(CXH21,70))/(0.015*AVEDEV(CXH21,70));
CXH24:=IF(CXH22>=150 AND CXH22<200 AND CXH23>=150 AND CXH23<200,10,0);
CXH25:=IF(CXH22<=-150 AND CXH22>-200 AND CXH23<=-150 AND CXH23>-200,-10,CXH24);
STICKLINE(CXH20,0,70,5,0),LINETHICK2,colormagenta;
DRAWTEXT(CROSS(CXH20,0.5) AND COUNT(CXH20=1,10)=1,80,'超级主力建仓!') , colormagenta;
CXHE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CXHF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CXH10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CXH11:=CXHF<REF(CXH10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(CXH11 AND COUNT(CXH11,30)=1,70,'大资金进场'),LINETHICK1,colorlimagenta;
STICKLINE(CXH11 AND COUNT(CXH11,30)=1,1,60,5,0),colormagenta,LINETHICK2;
CXH12:=(HIGH+LOW+CLOSE)/3;
CXH13:=(CXH12-MA(CXH12,14))/(0.015*AVEDEV(CXH12,14));
CXH14:=(CXH12-MA(CXH12,70))/(0.015*AVEDEV(CXH12,70));
CXH15:=IF(CXH13>=150 AND CXH13<200 AND CXH14>=150 AND CXH14<200,10,0);
CXH16:=IF(CXH13<=-150 AND CXH13>-200 AND CXH14<=-150 AND CXH14>-200,-10,CXH15);
CXH17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CXH18:=100-ABS(CXH17);
CXH19:=IF(CXH18<90,CXH18,100);
CXH1A:=IF(CXHE>0,CXHE,0);
CXH1B:=IF(CXH14>=200 AND CXH13>=150,15,IF(CXH14<=-200 AND CXH13<=-150,-15,CXH16))+60;
CXH1C:=CXH1A>48 AND CXH1B>60 AND CXH19<100;
DRAWTEXT(CXH1C AND COUNT(CXH1C,30)=1,35,'大资金退场'),linethick1,COLORffcc66;
STICKLINE(CXH1C AND COUNT(CXH1C,30)=1,0,30,5,0),colorffcc66,linethick2;
CXH1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
CXH2:=LLV(LOW,34);
CXH3:=HHV(HIGH,34);
多: EMA((CXH1-CXH2)/(CXH3-CXH2)*100,13),colorred,LINETHICK2;
空: EMA(多,3),colorgreen,LINETHICK1;
爆发线: 80,colorred;
强弱分界线:50,COLORGREEN;//http://www.cxh99.com
中心轴:0;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容