当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码精选:常用主图,深挖金坑,自用组合公式7大副图1选股

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、常用主图

{公式名称: 常用主图

公式描述: 量学主图
参数数量: 1
参数1: 天数, 最小: 5, 最大: 300, 缺省: 20
主图叠加}
 
VAR1:=STRCAT(4,STRCAT(STRCAT(STRCAT(5,HYBLOCK),STRCAT(6,DYBLOCK)),STRCAT(7,GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,VAR1);
均价:AMOUNT/VOL/100,NODRAW,COLORWHITE;
VAR2:=(CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10;
STICKLINE(VAR2=1,OPEN,CLOSE,3,0),COLORMAGENTA;
VAR3:=MIN(CLOSE,OPEN)>REF(MAX(CLOSE,OPEN),1);
明日涨停参考:CLOSE*1.1,NODRAW,COLORWHITE;
STICKLINE(VAR3=1,OPEN,CLOSE,0.4,0),COLORYELLOW;
价柱腰价:(LOW+HIGH)/2,NODRAW,COLORWHITE;
实体腰价:(OPEN+CLOSE)/2,NODRAW,COLORWHITE;
价柱上三一价:MAX(HIGH,LOW)-(HIGH-LOW)/3,NODRAW,COLORWHITE;
价柱下三一价:MIN(HIGH,LOW)+(HIGH-LOW)/3,NODRAW,COLORWHITE;
实体上三一价:MAX(OPEN,CLOSE)-ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
实体下三一价:MIN(OPEN,CLOSE)+ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
VAR4:=FINDHIGHBARS(VOL,1,天数,1);
VAR5:=FINDHIGHBARS(VOL,VAR4+5,天数,1);
VAR6:=FINDHIGHBARS(VOL,10,100,1);
VAR7:=FINDLOWBARS(VOL,5,100,1);
VAR8:=CURRBARSCOUNT;
VAR9:=0;
VAR10:=CONST(VAR4);
VAR11:=CONST(VAR5);
VAR12:=CONST(VAR6);
VAR13:=CONST(VAR7);
VAR14:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),VAR10+VAR9));
VAR15:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),VAR10+VAR9));
DRAWICON(CURRBARSCOUNT=VAR10+1,LOW*0.98,38),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR10,VAR14,VAR14,4,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=VAR10,VAR15,VAR15,2,(-1)),COLORMAGENTA;
VAR16:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),VAR11+VAR9));
VAR17:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),VAR11+VAR9));
DRAWICON(CURRBARSCOUNT=VAR11+1,LOW*0.98,11),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR11,VAR16,VAR16,4,1),COLORLICYAN;
STICKLINE(CURRBARSCOUNT<=VAR11,VAR17,VAR17,2,(-1)),COLORLICYAN;
VAR18:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),VAR12));
DRAWICON(CURRBARSCOUNT=VAR12+1,HIGH,35),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR12,VAR18,VAR18,4,(-1)),COLORRED;
VAR19:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),VAR13));
DRAWICON(CURRBARSCOUNT=VAR13+1,LOW*0.97,34),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR13,VAR19,VAR19,1,(-1)),COLORRED;
{股民学院 www.58188.com 整理}



2、深挖金坑

 公式源码提供,新建副图公式或者通达信选股公式,都可以的。

 
{深挖金坑}
A:=REF(C,1);
RSI:=SMA(MAX(C-A,0),6,1)/SMA(ABS(C-A),6,1)*100;
A4:=RSI<20;
ZF:=(C/REF(C,1)-1)*100;
深坑:=IF(BETWEEN(A4,0,5) AND L<=REF(C,A4)AND ZF<=-5 ,20,0);
XG:C>=O AND REF(深坑 ,1)=20 AND REF(RSI,1)<20 ;



3、自用组合公式7大副图1选股

波段操作用法:

1、买点:当“多方主力”紫线上翘、“空方主力”黄线下勾时买入;当“多方主力”紫线向上与“空方主力”黄线“金叉”时为较佳的买点。
2、卖点:当“空方主力”黄线上翘、“多方主力”紫线下勾时卖出;当“空方主力”黄线向上与“多方主力”紫线“金叉”时为止损的卖点。

{波段操作}
90;
VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS:VARC,COLORWHITE;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,30);
VARAA:=HHV(HIGH,30);
B:EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8),POINTDOT;
B1:=EMA(B,5);
STICKLINE(B>0 && B-B1>=0,79,80,4.5,0),COLORWHITE;
STICKLINE(B>0 && B-B1<0,79,80,4.5,0),COLORCYAN;
STICKLINE(B>0 && B-B1>=0,49,50,4.5,0),COLORRED;
STICKLINE(B>0 && B-B1<0,49,50,4.5,0),COLORRED;
STICKLINE(B>0 && B-B1>=0,19,20,4.5,0),COLORWHITE;
STICKLINE(B>0 && B-B1<0,19,20,4.5,0),COLORCYAN;
STICKLINE(B-B1>0,B,B1,4.5,1),COLORRED;
STICKLINE(B-B1<0,B,B1,4.5,1),COLORWHITE;
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,8);
VA:=HHV(HIGH,20);
FB:=EMA((V1-V2)/(VA-V2)*100,16);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;
{股民学院 www.58188.com 整理}

上一篇:通达信公式下载:凌波微步,红升绿降主图,分时指标T+0

下一篇:通达信公式下载:冷暖带, 增强版低位横盘,强筹引力线