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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 多空上攻之趋势买点选股指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-4-18 07:46:57

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;
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);
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);
趋势买点:(VAR52 AND VAR84) OR (VAR52 AND VAR95) OR (VAR52 AND VAR96);





回复

举报

QQ|

GMT+8, 2024-11-1 14:38

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