股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信多空上攻指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-4-18 07:32:00
VAR1:=25;
VAR2:=13;
VAR3:=13;
VAR4:=CLOSE-REF(CLOSE,1);
VAR5:=EMA(EMA(VAR4,VAR1),VAR2);
VAR6:=EMA(EMA(Abs(VAR4),VAR1),VAR2);
VAR7:=vol/REF(VOL,1)>=1.9 AND CLOSE/REF(CLOSE,1)>=1.58;
VAR8:=90;
VAR9:=VOL>=HHV(VOL,VAR8);
VAR10:=MA(VOL,5);
VAR11:=MA(VOL,35);
VAR12:=MA(VOL,135);
VAR13:=crOSS(VAR10,VAR11) AND VOL>VAR10 AND VOL>VAR12*2;
VAR14:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
多:100*(VAR5/VAR6),COLORRED;
空:EMA(多,VAR3),COLORGREEN;
0,POINTDOT,COLORWHITE;
VAR15:=CROSS(多,空);
VAR16:=VAR15 AND (VAR7 OR VAR9 OR VAR13 OR VAR14>=9.6);
VAR17:=IF(CLOSE/REF(CLOSE,1)>1.094 AND CLOSE=HIGH AND CLOSE=OPEN,HHV(VOL,20),VOL);
VAR18:=(-100)*(HHV(VAR17,60)-VAR17)/(HHV(VAR17,60)-LLV(VAR17,60));
VAR19:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
VAR20:=VAR19<20 AND VAR18>(-20);
VAR21:=VAR20;
VAR22:=(HIGH+LOW+CLOSE)/3;
VAR23:=(VAR22-MA(VAR22,14))/(0.015*AVEDEV(VAR22,14));
VAR24:=(VAR22-MA(VAR22,70))/(0.015*AVEDEV(VAR22,70));
VAR25:=(VAR22-MA(VAR22,308))/(0.015*AVEDEV(VAR22,308));
VAR26:=IF(VAR25<IF(VAR23>VAR24,VAR24,VAR23),VAR25,IF(VAR23>VAR24,VAR24,VAR23));
VAR27:=VAR26>100;
VAR28:=VAR27;
VAR29:=100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
VAR30:=(-100)*(HHV(VAR17,5)-VAR17)/(HHV(VAR17,5)-LLV(VAR17,5));
VAR31:=VAR30>(-20) AND VAR29<20 AND VAR23>100;
VAR32:=VAR31 AND COUNT(VAR31,10)=1;
VAR33:=VAR32;
VAR34:=EXIST(VAR33=1,5);
VAR35:=VAR9;
VAR36:=EXIST(VAR35=1,5);
VAR37:=VAR13;
VAR38:=EXIST(VAR37=1,5);
VAR39:=VAR21 AND VAR28;
VAR40:=VAR21 AND VAR28 AND VAR33;
VAR41:=VAR21 AND VAR34 AND (VAR36 OR VAR38);
VAR42:=VAR28 AND VAR34 AND (VAR36 OR VAR38);
VAR43:=VAR39 OR VAR40 OR VAR41 OR VAR42;
VAR44:=IF(VAR43 AND REF(VAR43,1)=0,1,0);
VAR45:=EVERY(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1),BARSCOUNT(CLOSE)) AND CLOSE=LOW OR ZSTJJ AND CLOSE=HIGH;
VAR46:=NOT(DYNAINFO(4)=0);
VAR47:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR48:=VAR47>9.8 AND HIGH=CLOSE;
VAR49:=COUNT(VAR48,3)>=2 AND VAR46 AND NOT(VAR45) AND COUNT(VAR45,3)<1;
VAR50:=COUNT(VAR15,30)>=1 AND (VAR44 OR VAR49);
VAR51:=VAR16 OR VAR50 AND VAR14>=5.8;
VAR52:=IF(VAR51 AND REF(VAR51,1)=0,1,0);
VAR53:=100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5));
VAR54:=100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10));
VAR55:=100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20));
VAR56:=100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30));
VAR57:=MA(CLOSE,26);
VAR58:=VAR57+2*STD(CLOSE,26);
VAR59:=VAR53=100 AND REF(VAR53,1)=100 AND REF(VAR53,2)=100 AND VAR56>35 AND VAR56>REF(VAR56,1)+5 AND REF(VAR56,1)>REF(VAR56,2);
VAR60:=VAR53=100 AND REF(VAR53,1)=100 AND VAR56=100 AND REF(VAR56,1)>50 AND REF(VAR56,1)<80 AND VAR56>REF(VAR56,1)+3;
VAR61:=REF(VAR54,1)>=REF(VAR53,1);
VAR62:=50;
VAR63:=VAR61 AND REF(VAR53,1)>=REF(VAR55,1) AND REF(VAR55,1)>=REF(VAR56,1) AND REF(VAR53,2)>=REF(VAR54,2) AND REF(VAR54,2)> REF(VAR55,2) AND REF(VAR55,2)>REF(VAR56,2) AND REF(VAR54,3)>REF(VAR55,3) AND REF(VAR55,3)>REF(VAR56,3);
VAR64:=VAR56>VAR62;
VAR65:=CLOSE<VAR58;
VAR66:=VAR59 OR VAR60 AND VAR63 AND VAR64 AND VAR65;
VAR67:=CLOSE;
VAR68:=88;
VAR69:=91;
VAR70:=HIGH;
VAR71:=IF(VAR67>REF(VAR67,1),VAR68,0);
VAR72:=IF(VAR67/REF(VAR67,1)>1.05 AND VAR70/VAR67<1.01 AND VAR71>0,VAR69,0);
VAR73:=FILTER(VAR72>90,45)=1;
VAR74:=MAX(CLOSE,OPEN);
VAR75:=HHV(VAR74,30);
VAR76:=CLOSE>REF(VAR75,1);
VAR77:=HHV(VOL,60);
VAR78:=VOL>REF(VAR77,1);
VAR79:=VAR76 AND VAR78;
VAR80:=IF(VAR79 AND REF(VAR79,1)=0,1,0);
VAR81:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL);
VAR82:=MA(VAR81,5);
VAR83:=MA(VAR81,60);
VAR84:=CROSS(VAR82,VAR83);
VAR85:=MA(VOL,5);
VAR86:=MA(VOL,35);
VAR87:=MA(VOL,135);
VAR88:=CROSS(VAR85,VAR86) AND VOL>VAR85 AND VOL>VAR87*2;
VAR95:=FILTER(VAR88,20);
VAR96:=VOL>=HHV(VOL,90);
STICKLINE((VAR52 AND VAR84) OR (VAR52 AND VAR95) OR (VAR52 AND VAR96),空,空+15,1,0),COLORRED,LINETHICK2;
DRAWTEXT((VAR52 AND VAR84) OR (VAR52 AND VAR95) OR (VAR52 AND VAR96),空+10,'趋势买点'),COLORYELLOW;
STICKLINE(FILTER((VAR66 AND VAR84) OR (VAR66 AND VAR95) OR (VAR66 AND VAR96),12),多+15,多,1,0),COLORRED,LINETHICK3;
DRAWTEXT(FILTER((VAR66 AND VAR84) OR (VAR66 AND VAR95) OR (VAR66 AND VAR96),12),多+18,'即将大涨'),COLORYELLOW;
STICKLINE((VAR73 AND VAR84) OR (VAR73 AND VAR95) OR (VAR73 AND VAR96),多+15,多,1,0),COLORRED,LINETHICK3;
DRAWTEXT((VAR73 AND VAR84) OR (VAR73 AND VAR95) OR (VAR73 AND VAR96),多+18,'龙抬头'),COLORYELLOW;
STICKLINE((VAR80 AND VAR84) OR (VAR80 AND VAR95) OR (VAR80 AND VAR96),多+15,多,1,0),COLORRED,LINETHICK3;
DRAWTEXT((VAR80 AND VAR84) OR (VAR80 AND VAR95) OR (VAR80 AND VAR96),多+18,'上攻'),COLORYELLOW;




回复

举报

QQ|

GMT+8, 2024-11-17 01:51

快速回复 返回顶部 返回列表