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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 异动价启动之选股指标公式


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

GSPT1:=EMA(CLOSE,10);
GSPT2:=(GSPT1/LLV(GSPT1,10)-1)*100;
GSPT3:=(-1)*GSPT2;
GSPT4:=100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
GSPT5:=REF(CLOSE,1);
GSPT6:=SMA(MAX(CLOSE-GSPT5,0),9,1)/SMA(Abs(CLOSE-GSPT5),9,1)*100;
GSPT7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GSPT8:=SMA(GSPT7,3,1);
GSPT9:=SMA(GSPT8,3,1);
GSPT10:=3*GSPT8-2*GSPT9;
GSPT11:=GSPT6 >=76 OR GSPT10 > 95;
GSPT12:=GSPT4 < 25;
GSPT13:=GSPT11 OR GSPT12;
GSPT14:=EMA(CLOSE,20);
GSPT15:=EMA(CLOSE,30);
GSPT16:=EMA(CLOSE,35);
GSPT17:=EMA(CLOSE,40);
GSPT18:=EMA(CLOSE,45);
GSPT19:=EMA(CLOSE,90);
GSPT20:=EMA(CLOSE,98);
GSPT21:=EMA(CLOSE,106);
GSPT22:=EMA(CLOSE,114);
GSPT23:=EMA(CLOSE,140);
GSPT24:=EMA(CLOSE,148);
GSPT25:=EMA(CLOSE,156);
GSPT26:=EMA(CLOSE,164);
GSPT27:=MAX(MAX(MAX(GSPT15,GSPT16),GSPT17),GSPT18);
GSPT28:=MIN(MIN(MIN(GSPT15,GSPT16),GSPT17),GSPT18);
GSPT29:=MAX(MAX(MAX(GSPT19,GSPT20),GSPT21),GSPT22);
GSPT30:=MIN(MIN(MIN(GSPT19,GSPT20),GSPT21),GSPT22);
GSPT31:=MAX(MAX(MAX(GSPT23,GSPT24),GSPT25),GSPT26);
GSPT32:=MIN(MIN(MIN(GSPT23,GSPT24),GSPT25),GSPT26);
GSPT33:=MAX(MAX(GSPT27,GSPT29),GSPT31);
GSPT34:=MIN(MIN(GSPT28,GSPT30),GSPT32);
GSPT35:=GSPT33/GSPT34;
GSPT36:=LOW/GSPT27;
GSPT37:=GSPT35 < 1.3 AND REF(GSPT36,1) < 1.05 AND CLOSE > GSPT14 AND CLOSE > GSPT33 AND GSPT36 < 1.08;
GSPT38:=AMOUNT/10000;
GSPT39:=LLV(GSPT38,2) > 2000 AND GSPT38 > 8000;
GSPT40:=CLOSE/REF(CLOSE,1);
GSPT41:=EMA(CLOSE,5);
GSPT42:=EMA(CLOSE,10);
GSPT43:=EMA(CLOSE,20);
GSPT44:=MAX(MAX(GSPT41,GSPT42),GSPT43);
GSPT45:=MIN(MIN(GSPT41,GSPT42),GSPT43);
GSPT46:=LOW < GSPT45 AND CLOSE > GSPT44 AND vol > REF(VOL,1)*1.2 AND GSPT39 AND GSPT40 > 1.029 AND GSPT37;
GSPT47:=(HIGH+LOW+CLOSE)/3;
GSPT48:=(GSPT47-MA(GSPT47,81))*1000/(15*AVEDEV(GSPT47,81));
GSPT49:=crOSS(GSPT48,100) AND VOL > REF(VOL,1)*1.2 AND GSPT39 AND GSPT40 > 1.029 AND GSPT37;
GSPT50:=MA(CLOSE,30);
GSPT51:=MA(CLOSE,60);
GSPT52:=MA(CLOSE,90);
GSPT53:=MA(CLOSE,240);
GSPT54:=ABS(GSPT50/GSPT51-1);
GSPT55:=ABS(GSPT51/GSPT52-1);
GSPT56:=ABS(GSPT50/GSPT52-1);
GSPT57:=CLOSE/REF(CLOSE,1);
GSPT58:=GSPT57-1;
GSPT59:=(GSPT50+GSPT51+GSPT52)/3;
GSPT60:=IF(CLOSE > GSPT59*1.04 AND CLOSE < GSPT59*1.15,1,0);
GSPT61:=GSPT53/REF(GSPT53,20);
GSPT62:=ABS(GSPT61-1);
GSPT63:=IF(GSPT62 < 0.04,1,0);
GSPT64:=IF(GSPT54 < 0.04 AND GSPT55 < 0.04 AND GSPT56 < 0.04 AND GSPT58 > 0.04 AND GSPT60=1 AND GSPT63=1 AND GSPT59 > GSPT53,1,0);
GSPT65:=GSPT64 AND VOL > REF(VOL,1)*1.2 AND GSPT39 AND GSPT37;
GSPT66:=GSPT35 < 1.15 AND REF(GSPT36,1) < 1.04 AND CLOSE > GSPT14 AND CLOSE > GSPT33 AND GSPT36 < 1.08 AND GSPT40 > 1.04 AND VOL > REF(VOL,1)*1.2 AND GSPT39 AND GSPT37;
GSPT67:=LOW < GSPT34 AND CLOSE > GSPT33 AND GSPT40 > 1.05 AND VOL > REF(VOL,1)*1.2;
GSPT68:=GSPT46 OR GSPT49 OR GSPT65 OR GSPT66 OR GSPT67;
GSPT69:=(GSPT1/LLV(GSPT1,10)-1)*200;
GSPT70:=(GSPT1/LLV(GSPT1,10)-1)*400;
GSPT71:=IF(GSPT68,GSPT2,0);
异动价启动:GSPT68;





回复

举报

QQ|

GMT+8, 2024-11-17 05:28

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