通达信金牛起航源码

[复制链接]
查看63 | 回复0 | 2021-8-19 19:58:13 | 显示全部楼层 |阅读模式

以下是通达信金牛起航源码(无源码的请下载附件导入)

HJ_1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
 HJ_2:=(HJ_1-LLV(HJ_1,27))/(HHV(HJ_1,27)-LLV(HJ_1,27))*4*25;
 HJ_3:=(HJ_1-LLV(HJ_1,9))/(HHV(HJ_1,9)-LLV(HJ_1,9))*4*25;
 HJ_4:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
 HJ_5:=SMA(HJ_4,3,1);
 HJ_6:=SMA(HJ_5,3,1);
 HJ_7:=INTPART(HJ_5);
 HJ_8:=INTPART(HJ_6);
 HJ_9:=HJ_7+HJ_8;
 HJ_10:=HJ_9-REF(HJ_9,1);
 HJ_11:=EMA(WINNER(CLOSE)*40,3);
 HJ_12:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
 HJ_13:=HJ_12/(HJ_11+HJ_12)*100;
 HJ_14:=HJ_11/(HJ_11+HJ_12)*100;
 HJ_15:=EMA(HJ_13,55);
 HJ_16:=EMA(HJ_14,55);
 HJ_17:=HHV((HIGH+LOW)/2,120);
 HJ_18:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
 HJ_19:=MA(CLOSE,27);
 HJ_20:=VOL/FINANCE(7)*100;
 HJ_21:=TMA(HJ_20,1-HJ_20,1);
 HJ_22:=DMA((CLOSE+OPEN)/2,HJ_20/TMA(HJ_20,1-HJ_20,1));
 HJ_23:=BARSLAST(CLOSE>HJ_22*POW(1.1,0.9));
 HJ_24:=BARSLAST(CLOSE<HJ_22*POW(1.1,(-0.9)));
 HJ_25:=CROSS(HJ_23,HJ_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55:=2*CLOSE+OPEN+HIGH+LOW;
 HJ_56:=(HJ_55/EMA(HJ_55,4)-1)*100;
 HJ_57:=HJ_56*5;
 HJ_58:=ATAN((HJ_53/REF(HJ_53,1)-1)*100)*180/3.1416;
 HJ_59:=ATAN((HJ_57/REF(HJ_57,1)-1)*100)*180/3.1416;
 HJ_60:=(HJ_57-REF(HJ_57,1))*100/REF(HJ_57,1);
 HJ_61:=(CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1);
 HJ_62:=SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,15);
 HJ_63:=DYNAINFO(4)=0;
 HJ_64:=IF(HJ_18>HJ_19 AND HJ_12<HJ_11 AND HJ_2>60,(-40),0);
 HJ_65:=IF(COUNT(HJ_54,20) AND HJ_11>HJ_12 AND HJ_14>HJ_16 AND HJ_30>30 AND HJ_2>HJ_14 AND HJ_2>60 AND HJ_61>=1.5 AND MAX(CLOSE,HJ_18) AND COUNT(CLOSE>HJ_18,10),18,0);
金牛起航:IF(HJ_65>10 AND HJ_61>=1.5 AND HJ_64=(-40),18,0);
 DRAWBAND(0,RGB(225,215,0),金牛起航,RGB(255,215,0));
主力疯狂做多:IF(HJ_27>0 AND HJ_27<120 AND HJ_2>50 AND CLOSE>HJ_40 AND HJ_38>HJ_41 AND HJ_28<20 AND HJ_60>10 AND HJ_58>2 AND HJ_11>HJ_12,12,0);
 DRAWBAND(0,RGB(0,0,0),主力疯狂做多,RGB(255,0,0));
强势洗盘再启动:IF(HJ_14>HJ_2 AND HJ_29>50 AND HJ_2>REF(HJ_2,1),18,0),COLORFF6347,LINETHICK0;
 DRAWBAND(0,RGB(0,255,0),强势洗盘再启动,RGB(255,99,71));
风险持股:IF(HJ_27>100 AND HJ_2>50 AND CLOSE>HJ_40 AND HJ_38>HJ_41 AND HJ_2>HJ_14 AND HJ_28>8 AND HJ_11>HJ_12,18,0),COLORMAGENTA,LINETHICK0;
 DRAWBAND(0,RGB(0,255,0),风险持股,RGB(255,0,225));

{-----------------------------------}

258388447.jpg

258388447.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则