当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:均线通道(通达信公式 主图 源码 测试图)
软件名称:[B]均线通道(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2020-01-16 09:56:39
软件简介:
{公式名称: 均线通道
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:
公式源码:}
X_1:=MA(CLOSE,3);
X_2:=MA(CLOSE,5);
X_3:=MA(CLOSE,10);
X_4:=MA(CLOSE,18);
X_5:=MA(CLOSE,20);
X_6:=MA(CLOSE,30);
X_7:=MA(CLOSE,60);
X_8:=MA(CLOSE,72);
X_9:=MA(CLOSE,120);
X_10:=MA(CLOSE,250);
X_11:=CLOSE*VOL;
X_12:=EMA((EXPMA(X_11,3)/EXPMA(VOL,3)+EXPMA(X_11,6)/EXPMA(VOL,6)+EXPMA(X_11,12)/EXPMA(VOL,12)+EXPMA(X_11,24)/EXPMA(VOL,24))/4,13);
X_13:=1.06*X_12;
X_14:=X_12*0.94;
X_15:=EXPMA(CLOSE,9);
X_16:=EXPMA(X_15*1.14,5);
X_17:=EXPMA(X_15*0.86,5);
DRAWBAND(X_16,RGB(65,105,225),X_17,RGB(250,250,0));
DRAWBAND(X_13,RGB(250,150,0),X_14,RGB(100,150,0));
内上轨:1.06*X_12,COLORWHITE,LINETHICK2;
内下轨:X_12*0.94,COLORWHITE,LINETHICK2;
外上轨:EXPMA(X_15*1.14,5),COLORCYAN,LINETHICK2;
外下轨:EXPMA(X_15*0.86,5),COLORCYAN,LINETHICK2;
STICKLINE(CLOSE>=OPEN,LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE<OPEN,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3.2,0),COLOR000055;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.8,0),COLOR000077;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),COLOR000099;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.5,0),COLOR0000BB;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0),COLOR0000DD;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.5,0),COLORRED;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.2,0),COLOR004400;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.8,0),COLOR006600;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),COLOR008800;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.5,0),COLOR00AA00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1,0),COLOR00CC00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),COLOR00EE00;
X_18:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(X_18>=1,(CLOSE+OPEN)*0.5,OPEN,3.2,0),COLOR0066AA;
STICKLINE(X_18>=1,(CLOSE+OPEN)*0.5,OPEN,2.8,0),COLOR00AAFF;
STICKLINE(X_18>=1,(CLOSE+OPEN)*0.5,OPEN,2,0),COLOR0099DD;
STICKLINE(X_18>=1,(CLOSE+OPEN)*0.5,OPEN,1.5,0),COLOR00BBEE;
STICKLINE(X_18>=1,(CLOSE+OPEN)*0.5,OPEN,1,0),COLOR00DDFF;
STICKLINE(X_18>=1,(CLOSE+OPEN)*0.5,OPEN,0.5,0),COLORYELLOW;
X_19:=VOL*(OPEN+CLOSE)/2;
神马线:SUM(X_19,3)/SUM(VOL,3),COLORRED,LINETHICK2;
浮云线:SUM(X_19,21)/SUM(VOL,21),COLORWHITE,LINETHICK2;
X_20:=SMA(CLOSE,6.5,1);
X_21:=SMA(CLOSE,14.5,1);
X_22:=SMA(CLOSE,3,1);
X_23:=SMA(CLOSE,8,1);
X_24:=(2*CLOSE+HIGH+LOW)/4;
X_25:=MA(X_24,5);
X_26:=LLV(X_24,21);
X_27:=CROSS(X_22,X_25) AND X_22<X_21 AND X_22<X_23 AND X_22<X_20 AND CLOSE>X_26;
X_28:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
X_29:=SMA(ABS(LOW-X_28),13,1)/SMA(MAX(LOW-X_28,0),10,1);
X_30:=EMA(X_29,10);
X_31:=LLV(LOW,33);
X_32:=EMA(IF(LOW<=X_31,X_30,0),3);
X_33:=X_32>REF(X_32,1);
DRAWICON(BARSLAST(X_33)>=4 AND X_27,LOW*0.98,26);
DRAWTEXT(BARSLAST(X_33)<4 AND X_27 AND LOW<X_14,LOW*0.96,4),COLORRED;
DRAWTEXT(OPEN>X_14 AND OPEN>X_17 AND CLOSE<X_14 AND CLOSE<X_17,LOW*0.96,5),COLORWHITE;
DRAWTEXT(OPEN<X_13 AND OPEN<X_16 AND CLOSE>X_13 AND CLOSE>X_16,HIGH*1.04,6),COLORWHITE;
DRAWTEXT(CLOSE>X_14 AND CLOSE<X_17,LOW*0.96,7),COLORWHITE;
X_34:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
X_35:=HIGH-REF(HIGH,1);
X_36:=REF(LOW,1)-LOW;
X_37:=EXPMEMA(IF(X_35>0 AND X_35>X_36,X_35,0),14);
X_38:=EXPMEMA(IF(X_36>0 AND X_36>X_35,X_36,0),14);
X_39:=X_37*100/X_34;
X_40:=X_38*100/X_34;
X_41:=EXPMEMA(ABS(X_40-X_39)/(X_40+X_39)*100,6);
X_42:=X_41<REF(X_41,1) AND REF(X_41,1)>=REF(X_41,2) AND REF(X_41,1)>50;
DRAWICON(X_42 AND X_2<X_4,LOW*0.98,13);
DRAWICON(X_42 AND X_2>X_4,HIGH*1.02,14);
X_43:=X_40<REF(X_40,1) AND REF(X_40,1)>=REF(X_40,2) AND REF(X_40,1)>50;
DRAWTEXT(X_43,LOW*0.93,8),COLORRED;
X_44:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_45:=X_44<=3;
X_46:=(MA(CLOSE,5)-CLOSE)/CLOSE>0.05 AND (MA(CLOSE,10)-MA(CLOSE,5))/MA(CLOSE,5)>0.05 AND CLOSE<OPEN;
X_47:=X_46 AND X_45;
X_48:=AMOUNT/CLOSE/HHV(AMOUNT/CLOSE,5)=1;
X_49:=COUNT(X_47,3)>=1 AND CROSS(CCI,(-100)) AND X_48 AND CLOSE>OPEN;
DRAWTEXT(X_49,HIGH*1.02,10),COLORRED;
X_50:=EXPMEMA(X_41,6);
X_51:=COUNT(LONGCROSS(X_39,X_40,4),3)>=1 AND COUNT(LONGCROSS(X_39,X_41,4),3)>=1 AND COUNT(LONGCROSS(X_39,X_50,4),3)>=1;
X_52:=CLOSE/REF(CLOSE,1)>=1.05 AND CLOSE>OPEN;
X_53:=AMOUNT/CLOSE/HHV(AMOUNT/CLOSE,5)=1 AND AMOUNT/CLOSE/REF(AMOUNT/CLOSE,1)>=1.5;
DRAWTEXT(X_51 AND X_52 AND X_53,LOW*0.98,11),COLORRED;
X_54:=MAX(MAX(X_2,X_3),MAX(X_6,X_7));
X_55:=MAX(X_54,X_9);
X_56:=MIN(MIN(X_2,X_3),MIN(X_6,X_7));
X_57:=MIN(X_56,X_9);
X_58:=X_2>REF(X_2,1) AND X_2>X_3 AND X_3>X_6 AND X_3>REF(X_3,1) AND CLOSE>X_55 AND X_6>REF(X_6,1);
X_59:=(X_55/X_57-1)*100<8;
X_60:=(CLOSE/REF(CLOSE,1)-1)*100>=2 AND VOL>REF(VOL,1);
X_61:=REF(X_59,1) AND COUNT(X_59,20)>=8 AND X_58 AND X_60;
DRAWTEXT(X_61,LOW*0.98,12),COLORRED;
X_62:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
X_63:=EMA(X_62,9);
X_64:=BARSLAST(REF(CROSS(X_62,X_63),1));
X_65:=REF(CLOSE,X_64+1)>CLOSE AND X_62>REF(X_62,X_64+1) AND CROSS(X_62,X_63);
DRAWTEXT(X_65,LOW*0.95,13),COLORRED;
X_66:=BARSLAST(REF(CROSS(X_63,X_62),1));
X_67:=REF(CLOSE,X_66+1)<CLOSE AND REF(X_62,X_66+1)>X_62 AND CROSS(X_63,X_62);
DRAWTEXT(X_67,HIGH*1.05,14),COLORGREEN;
请求帮忙编写选股:带黄s的k线,上穿内上轨做个选股
[url=http://www.70822.com/soft/sort013/sort05/down-138283.html]均线通道(通达信公式 主图 源码 测试图)[/url]