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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信短线抄大底指标公式绿色卖出


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

以下是通达信短线抄大底指标公式绿色卖出

N:=3;

QVAR1:=MA(HHV(HIGH,485),17);

QVAR2:=MA(HHV(HIGH,222),17);

QVAR3:=MA(HHV(HIGH,96),17);

QVAR4:=MA(LLV(LOW,485),17);

QVAR5:=MA(LLV(LOW,222),17);

QVAR6:=MA(LLV(LOW,96),17);

QVAR7:=MA((QVAR4*0.96+QVAR5*0.96+QVAR6*0.96+QVAR1*0.558+QVAR2*0.558+QVAR3*0.558)/6,17);

QVAR8:=MA((QVAR4*1.25+QVAR5*1.23+QVAR6*1.2+QVAR1*0.55+QVAR2*0.55+QVAR3*0.65)/6,17);

QVAR9:=MA((QVAR4*1.3+QVAR5*1.3+QVAR6*1.3+QVAR1*0.68+QVAR2*0.68+QVAR3*0.68)/6,17);

QVARA:=MA((QVAR7*3+QVAR8*2+QVAR9)/6*1.738,17);

QVARB:=IF(1<=1050531,QVARA,QVARA*DAY);

QVARC:=LOW;

QVARD:=REF(LOW,1);

QVARE:=SMA(ABS(QVARC-QVARD),3,1)/SMA(MAX(QVARC-QVARD,0),N,1)*100;

QVARF:=MA(IF(CLOSE*1.35<=QVARB,QVARE*10,QVARE/10),N);

QVAR10:=LLV(LOW,30);

QVAR11:=HHV(QVARF,30);

QVAR12:=1990831;

绝佳买点:=IF(1<=QVAR12,MA(IF(LOW<=QVAR10,(QVARF+QVAR11*2)/2,0),N),100000000);

I:=IF(CLOSE<REF(CLOSE,1),VOL/CAPITAL*10053,0);

骤雨初晴:= ABS(EMA(I,13.3)-18)/WINNER(CLOSE)*IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0.04,1,0);

短线买1:=IF(绝佳买点>500 AND 绝佳买点>2500,1,0),COLORYELLOW,LINETHICK1;

中线买1:=IF(绝佳买点>10000 AND 绝佳买点>20000,2,0),COLORFF00FF,LINETHICK2;

T1:=(中线买1 AND C>O)*4;

T21:=CROSS(T1,0.5);

T3:=BARSSINCEN(中线买1,100)<=100;

T4:=((短线买1 AND C>O) AND (T3 OR 中线买1))*2;

短线买柱子:CROSS(T4,短线买1),NODRAW,COLORYELLOW;

短线买:(IF(绝佳买点>500 AND 绝佳买点>2500,1,0))*20,COLORYELLOW;

STICKLINE(T21,60,0,2,0 ),COLORMAGENTA;

中线买:(IF(绝佳买点>10000 AND 绝佳买点>20000,2,0))*20,COLORMAGENTA,LINETHICK3;

SJ1:=1151228;

SJ2:=IF(1<SJ1,1,0);

VAR1:=SJ2*(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<-30;

VAR2:=SJ2*(CLOSE-MA(CLOSE,120))/MA(CLOSE,120)*100<-27;

VAR3:=VAR1 AND VAR2;

VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND 1 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));

VAR5:=SJ2*DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);

VAR6:=SJ2*(CLOSE-VAR5)/VAR5*100;

VAR7:=REF(VAR6,1)<-42 AND VAR6>REF(VAR6,1) AND REF(VAR6,1)<REF(VAR6,2) AND VAR6-REF(VAR6,1)>1.8;

VAR21:=SJ2*DMA(CLOSE,VOL/MA(VOL,4)/4);

VAR22:=SJ2*DMA(CLOSE,VOL/MA(VOL,33)/33);

VAR23:=SJ2*(CLOSE-VAR1)/VAR21*100<-11;

VAR24:=SJ2*(VAR21-VAR22)/VAR22*100<-22.3;

VAR25:=VAR23 AND VAR24 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));

VAR26:=SJ2*DMA(CLOSE,VOL/MA(VOL,3)/3);

VAR27:=SJ2*DMA(CLOSE,VOL/MA(VOL,33)/33);

VAR28:=(CLOSE-VAR26)/VAR26*100<-5;

VAR29:=(VAR26-VAR27)/VAR27*100<-18;

VAR2A:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;

VAR2B:=SMA(VAR2A,30,1);

VAR2C:=SMA(VAR2B,50,1);

VAR2D:=VAR28 AND VAR29 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND VAR2C<20;

VAR2E:=VAR2D AND COUNT(VAR2D,2)=1;

大底确立:(SJ2*IF(VAR25 OR VAR2E,50,0)),COLORYELLOW,LINETHICK3;

VAR31:=DMA(CLOSE,VOL/MA(VOL,4)/4);

VAR32:=DMA(CLOSE,VOL/MA(VOL,32)/32);

VAR33:=(CLOSE-VAR31)/VAR31*100<-8;

VAR34:=(VAR31-VAR32)/VAR32*100<-21;

VAR35:=VAR33 AND VAR34 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));

VAR36:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;

VAR37:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;

VAR38:=SMA(VAR37,50,1);

VAR39:=SMA(VAR38,40,1);

VAR3A:=VAR36 AND VAR39<23 AND COUNT(VAR36,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1)>0.96;

VAR1Z:=SJ2*1;

VAR3Z:=SJ2*MA(CLOSE,13);

VAR4Z:=SJ2*100-ABS((CLOSE-VAR3Z)/VAR3Z*100);

VAR5Z:=SJ2*LLV(LOW,75);

VAR6Z:=SJ2*HHV(HIGH,75);

VAR7Z:=SJ2*(VAR6Z-VAR5Z)/100;

VAR8Z:=SJ2*SMA((CLOSE-VAR5Z)/VAR7Z,20,1);

VAR9Z:=SMA((OPEN-VAR5Z)/VAR7Z,20,1);

VARAZ:=3*VAR8Z-2*SMA(VAR8Z,15,1);

VARBZ:=3*VAR9Z-2*SMA(VAR9Z,15,1);

VARCZ:=100-VARBZ;

主力量能:(VARAZ),COLOR0099FF;

VARDZ:=主力量能>VAR4Z;

VAREZ:=REF(LOW,1)*0.9;

VARFZ:=LOW*0.9;

VAR11Z:=EMA(VARFZ,30);

VAR12Z:=CLOSE-REF(CLOSE,1);

VAR13Z:=MAX(VAR12Z,0);

VAR14Z:=ABS(VAR12Z);

VAR15Z:=SMA(VAR13Z,7,1)/SMA(VAR14Z,7,1)*100;

VAR16Z:=SMA(VAR13Z,13,1)/SMA(VAR14Z,13,1)*100;

VAR17Z:=BARSCOUNT(CLOSE);

VAR18Z:=SMA(MAX(VAR12Z,0),6,1)/SMA(ABS(VAR12Z),6,1)*100;

VAR19Z:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;

VAR1AZ:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;

VAR1BZ:=SJ2*SMA((SMA(VAR1AZ,4,1)-50)*2,3,1);

VAR1CZ:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;

VAR1DZ:=SMA(VAR1CZ,4,1);

VAR1EZ:=SMA(VAR1DZ,3,1);

VAR1FZ:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;

VAR20Z:=SJ2*VAR18Z<=25 AND VAR19Z<-95 AND VAR1FZ>20 AND VAR1BZ<-30 AND VAR1EZ<30 AND VAR11Z-CLOSE>=-0.25 AND VAR15Z<22 AND VAR16Z<28 AND VAR17Z>50;

FXJC:=SJ2*ABS((CLOSE-VAR3Z)/VAR3Z*100);

中线买柱:主力量能<FXJC,COLORMAGENTA,NODRAW;

FXVAR20:=SJ2*VAR18Z>=75 AND VAR19Z>85 AND VAR1FZ<3 AND VAR1BZ>65 AND VAR1EZ>70 AND VAR11Z-CLOSE<-3.25 AND VAR15Z>78 AND VAR16Z>62 AND VAR17Z>50;

STICKLINE(VARDZ,VAR4Z,主力量能,1,0),COLOR00FF00;

STICKLINE(中线买柱,FXJC,主力量能,1,1),COLORRED;

QTJ1:=短线买>0 AND REF(短线买=0,1);

QTJ2:=BARSLAST(QTJ1);

QTJ3:=(COUNT(短线买柱子,QTJ2+1)=0);

QTJ4:=短线买=0 AND REF(短线买>0,1);

QTJ5:=QTJ4 AND QTJ3;

STICKLINE(QTJ5,0,40,1,0),COLOR4080FF;

TJ1:=中线买>0 AND REF(中线买=0,1);

TJ2:=BARSLAST(TJ1);

TJ3:=(COUNT(T21,TJ2+1)=0)*60;

TJ4:=中线买=0 AND REF(中线买>0,1);

TJ5:=TJ4 AND TJ3;

STICKLINE(TJ5,0,80,1,0),COLORRED;

STICKLINE(短线买柱子,40,0,1,0 ),COLORYELLOW;






回复

举报

QQ|

GMT+8, 2024-11-19 10:39

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