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

中线趋势 机构趋势 基金私募仓位指标 公式 源码[通达信公式]

 

 

该指标是对大机构、基金私募仓位等多个因素的综合指标,通过对这些因素加权组合得出的结果。具体的计算方法和数学公式比较复杂。

根据指标的涉及范围和综合性质,可以作为参考的指标之一,辅助投资者判断当前市场氛围以及大资金的操作意图。在操作上,可以根据不同的市场状态和趋势,结合其他技术指标和基本面分析,灵活选择合适的操作策略,提高投资决策的准确性和成功率。记得合理控制风险,避免过度交易和盲目投机。

 

大机构仓位:100*(1-WINNER(CLOSE)),COLORRED,LINETHICK3;cxh2M:=1/WINNER(CLOSE);cxh3M:=MA(CLOSE,13);cxh4M:=100-ABS((CLOSE-cxh3M)/cxh3M*100);cxh5M:=LLV(LOW,120);cxh6M:=HHV(HIGH,120);cxh7M:=(cxh6M-cxh5M)/100;cxh8M:=SMA((CLOSE-cxh5M)/cxh7M,20,1);cxh9M:=SMA((OPEN-cxh5M)/cxh7M,20,1);cxhA:=3*cxh8M-2*SMA(cxh8M,10,1);cxhB:=3*cxh9M-2*SMA(cxh9M,10,1);cxhC:=100-cxhB;基金私暮仓位: (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,机构趋势,2.5,0),COLOR0000FF;STICKLINE(B1-机构趋势<0,B1,机构趋势,2.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;AAO:=(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;BBO:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10);DRAWTEXT (BBO,60,'主力进'),COLORWHITE;卖临界: STICKLINE(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN;CCO:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10);DDO:=(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,2.5,0),COLORLIRED;STICKLINE(IF(VB<=0,VB,0) AND EMA(V11,3)>90,0,7,3.5,0),COLORGREEN;STICKLINE( IF(V4>=0,V4,1) AND EMA(V11,3)<13,0,15,2.5,0),COLORLIRED;STICKLINE(IF(V4<=0,V4,1) AND EMA(V11,3)>90,0,7,3.5,0),COLORLIBLUE,LINETHICK1;DRAWTEXT (CCO,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}{DD:=REF(100-(100/(1+CC)),1);}A1N:=HHV(AA,10);A2N:=LLV(AA,30);A3N:=A1N-A2N;A4N:=EMA((AA-A2N)/A3N,1)*100;B1N:=HHV(AA,16);B2N:=LLV(AA,90);B3N:=B1N-B2N;B4N:=EMA((AA-B2N)/B3N,1)*100;C1:=HHV(AA,30);C2:=LLV(AA,240);C3:=C1-C2;C4:=EMA((AA-C2)/C3,1)*100;中线趋势:B4N,COLORMAGENTA,LINETHICK2;STICKLINE(A4N>90 AND B4N>70,86,94,6,0),COLORYELLOW;cxhE:=REF(LOW,1)*0.9;cxhF:=LOW*0.9;cxh12:=(cxhF*VOL+cxhE*(CAPITAL-VOL))/CAPITAL;cxh13:=EMA(cxh12,30);cxh14:=CLOSE-REF(CLOSE,1);cxh15:=MAX(cxh14,0);cxh16:=ABS(cxh14);cxh17:=SMA(cxh15,7,1)/SMA(cxh16,7,1)*100;cxh18:=SMA(cxh15,13,1)/SMA(cxh16,13,1)*100;cxh19:=BARSCOUNT(CLOSE);cxh20:=SMA(MAX(cxh14,0),6,1)/SMA(ABS(cxh14),6,1)*100;cxh21:=(-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;cxh22:=cxh20<=25 AND cxh21<-95 AND cxh1F>20 AND cxh1B<-30 AND cxh1E<30 AND cxh11-CLOSE>=-0.25 AND cxh17<22 AND cxh18<28 AND cxh19>50;cxh23:=(HIGH+LOW+CLOSE)/3;cxh24:=(cxh23-MA(cxh23,14))/(0.015*AVEDEV(cxh23,14));cxh25:=(cxh23-MA(cxh23,70))/(0.015*AVEDEV(cxh23,70));cxh26:=IF(cxh24>=150 AND cxh24<200 AND cxh25>=150 AND cxh25<200,10,0);cxh27:=IF(cxh24<=-150 AND cxh24>-200 AND cxh25<=-150 AND cxh25>-200,-10,cxh26);STICKLINE(cxh22,0,70,2.5,0),LINETHICK2,COLORMAGENTA;DRAWTEXT(CROSS(cxh22,0.5) AND COUNT(cxh22=1,10)=1,80,'超级主力建仓!') , COLORMAGENTA;cxhEX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;cxhFX:=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);cxh10X:=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);cxh11X:=cxhF>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(cxh11X AND COUNT(cxh11X,30)=1,70,'大资金进场'),LINETHICK1,COLORYELLOW;STICKLINE(cxh11X AND COUNT(cxh11X,30)=1,1,60,2.5,0),COLORYELLOW,LINETHICK2;

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容