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

通达信源码:操作地图,金屋藏娇,洗盘结束

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

1、操作地图

{公式名称: 操作地图

 副图}
 
VAR1:=21;
VAR2:=(HIGH+LOW+CLOSE)/3;
上轨:100*(0.015*AVEDEV(VAR2,VAR1))+MA(VAR2,VAR1),LINETHICK0;
中轨:0*(0.015*AVEDEV(VAR2,VAR1))+MA(VAR2,VAR1),LINETHICK0;
下轨:(-100)*(0.015*AVEDEV(VAR2,VAR1))+MA(VAR2,VAR1),LINETHICK0;
DRAWBAND(上轨,RGB(120,0,0),中轨,RGB(120,0,0));
DRAWBAND(下轨,RGB(0,0,250),中轨,RGB(0,0,250));
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,2,0),COLORFFFF66;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;
STICKLINE(CLOSE<=OPEN,OPEN,HIGH,0,0),COLORFFFF66;
STICKLINE(CLOSE<=OPEN,CLOSE,LOW,0,0),COLORFFFF66;
VAR3:=REF(CLOSE,1);
VAR4:=50;
VAR5:=50;
VAR6:=50;
VAR7:=3;
VAR8:=6;
VAR9:=9;
VAR10:=12;
VAR11:=18;
VAR12:=24;
VAR13:=SMA(MAX(CLOSE-VAR3,0),VAR7,1);
VAR14:=SMA(ABS(CLOSE-VAR3),VAR7,1);
VAR15:=SMA(MAX(CLOSE-VAR3,0),VAR8,1);
VAR16:=SMA(ABS(CLOSE-VAR3),VAR8,1);
VAR17:=SMA(MAX(CLOSE-VAR3,0),VAR10,1);
VAR18:=SMA(ABS(CLOSE-VAR3),VAR10,1);
VAR19:=SMA(MAX(CLOSE-VAR3,0),VAR12,1);
VAR20:=SMA(ABS(CLOSE-VAR3),VAR12,1);
VAR21:=SMA(MAX(CLOSE-VAR3,0),VAR9,1);
VAR22:=SMA(ABS(CLOSE-VAR3),VAR9,1);
VAR23:=SMA(MAX(CLOSE-VAR3,0),VAR11,1);
VAR24:=SMA(ABS(CLOSE-VAR3),VAR11,1);
线1:(REF(VAR13,1)*(VAR7-1)-REF(VAR14,1)*(VAR7-1)*VAR4/100)/(VAR4/100-1)+VAR3;
线2:(REF(VAR15,1)*(VAR8-1)-REF(VAR16,1)*(VAR8-1)*VAR5/100)/(VAR5/100-1)+VAR3;
线3:(REF(VAR21,1)*(VAR9-1)-REF(VAR22,1)*(VAR9-1)*VAR5/100)/(VAR5/100-1)+VAR3,COLORCYAN;
线4:(REF(VAR17,1)*(VAR10-1)-REF(VAR18,1)*(VAR10-1)*VAR4/100)/(VAR4/100-1)+VAR3,COLORRED;
线5:(REF(VAR19,1)*(VAR12-1)-REF(VAR20,1)*(VAR12-1)*VAR5/100)/(VAR5/100-1)+VAR3,COLORYELLOW;




2、金屋藏娇

{公式名称: 金屋藏娇

公式描述: 李玉指标
参数数量: 2
参数1: M, 最小: 1, 最大: 1000, 缺省: 100
参数2: K, 最小: 1, 最大: 1000, 缺省: 8
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:
请设置计算参数:
M: Param#0 (1.00--1000.00)
K: Param#1 (1.00--1000.00)
用法注释:无
公式源码:}
 
MA8:MA(CLOSE,8),COLORWHITE,LINETHICK2;
MA20:MA(CLOSE,20),COLORMAGENTA,LINETHICK2;
VAR1:=IF(CLOSE>REF(CLOSE,1),VOL,0);
VAR2:=IF(CLOSE<REF(CLOSE,1),VOL,0);
VAR3:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR4:=EMA(VAR3,9);
VAR5:=(VAR3-VAR4)*2;
VAR6:=MA(CLOSE,60);
VAR7:=MA(CLOSE,3);
VAR8:=3*SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1),3,1);
VAR9:=13;
VAR10:=M;
VAR11:=BARSLAST(VAR8=LLV(VAR8,21));
VAR12:=CROSS(REF(VAR8,3),REF(VAR9,3)) AND (REF(CLOSE,3)<REF(MA8,3) AND REF(CLOSE,2)<REF(MA8,2) AND REF(CLOSE,1)<REF(MA8,1) OR (REF(CLOSE,1)<REF(MA20,1) AND REF(CLOSE,2)<REF(MA20,2) AND REF(CLOSE,3)<REF(MA20,3) AND CLOSE>=MA20 AND REF(MA20,3)/REF(CLOSE,3)-1<2.8/100) OR (REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE>REF(OPEN,1))) AND CLOSE>=MA8 AND (MA20/CLOSE-1>1.6/100 OR CLOSE>=MA20) AND (CLOSE>=OPEN OR CLOSE>=REF(CLOSE,1)) AND VAR8>=VAR9;
VAR13:=CROSS(REF(VAR8,2),REF(VAR9,2)) AND (REF(CLOSE,2)<REF(MA8,2) AND REF(CLOSE,1)<REF(MA8,1) OR (REF(CLOSE,1)<REF(MA20,1) AND REF(CLOSE,2)<REF(MA20,2) AND CLOSE>=MA20 AND REF(MA20,2)/REF(CLOSE,2)-1<3/100) OR (REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>=REF(OPEN,1))) AND CLOSE>=MA8 AND (MA20/CLOSE-1>2/100 OR CLOSE>=MA20) AND (CLOSE>=OPEN OR CLOSE>=REF(CLOSE,1)) AND (LOW>REF(CLOSE,1) OR CLOSE-REF(CLOSE,1)>HIGH-CLOSE OR CLOSE-OPEN>HIGH-CLOSE OR OPEN-LOW>HIGH-CLOSE OR CLOSE>=REF(CLOSE,1)) AND VAR8>=VAR9;
VAR14:=CROSS(VAR8,VAR9) OR (CROSS(REF(VAR8,1),REF(VAR9,1)) AND (REF(CLOSE,1)<REF(MA8,1) OR (REF(CLOSE,1)<REF(MA20,1) AND CLOSE>=MA20 AND REF(MA20,1)/REF(CLOSE,1)-1<1.6/100) OR (REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>REF(OPEN,1)))) AND CLOSE>=MA8 AND (MA20/CLOSE-1>2/100 OR CLOSE>MA20) AND (CLOSE>=OPEN OR CLOSE>=REF(CLOSE,1)) AND (LOW>REF(CLOSE,1) OR CLOSE-REF(CLOSE,1)>HIGH-CLOSE OR CLOSE-OPEN>HIGH-CLOSE OR CLOSE-LOW>HIGH-CLOSE OR CLOSE>=REF(CLOSE,1)) AND VAR8>=VAR9;
DRAWICON(VAR12 OR VAR13 OR VAR14,LOW*0.9999,1),COLORYELLOW;
DRAWICON(VAR12 OR VAR13 OR VAR14,LOW*0.99,22),COLORYELLOW;
DRAWICON(VAR12 OR VAR13 OR VAR14 AND (MA20/CLOSE-1>4.8/100 OR CLOSE>MA20) AND HIGH-CLOSE<CLOSE-OPEN AND CLOSE>OPEN AND VOL>REF(VOL,1),LOW*0.965,29),COLORYELLOW;
VAR15:=CROSS(VAR4,VAR3) AND VAR3>0.1;
VAR16:=COUNT(CROSS(VAR4,VAR3),BARSLAST(VAR4<=0));
VAR17:=CROSS(VAR4,VAR3) AND VAR4>0 AND COUNT(VAR16=2,60)=1;
VAR18:=BARSLAST(REF(CROSS(VAR4,VAR3),1));
VAR19:=REF(CLOSE,VAR18+1)<CLOSE AND VAR3<REF(VAR3,VAR18+1) AND CROSS(VAR4,VAR3);
VAR20:=MA(CLOSE,K);
VAR21:=CLOSE<MA20 AND COUNT(VAR19=1,21)>=1 AND VAR5<0;
VAR22:=COUNT(VAR21,21)=1;
DRAWICON(CROSS(90,RSI.RSI1) AND CLOSE<=VAR7,HIGH*1.001,45),COLORGREEN;
DRAWICON(CROSS(VAR10,VAR8) AND CLOSE<=VAR20 OR (CROSS(REF(VAR10,1),REF(VAR8,1)) AND CLOSE<=VAR20 AND REF(CLOSE,1)>REF(VAR20,1)),HIGH*1.015,15),COLORGREEN;
DRAWICON(CROSS(VAR10,VAR8) AND CLOSE<=VAR20 OR (CROSS(REF(VAR10,1),REF(VAR8,1)) AND CLOSE<=VAR20 AND REF(CLOSE,1)>REF(VAR20,1)),HIGH*1.005,2),COLORGREEN;
 



3、洗盘结束

{公式名称: 洗盘结束副图( 顶尖财经 股票学院: http://58188.com )

画线方法: 副图}
 
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=VAR7>5;
VAR9:=IF(COUNT(VAR8,2)=2,(-20),0);
VAR10:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR11:=SMA(ABS(LOW-VAR10),13,1)/SMA(MAX(LOW-VAR10,0),10,1);
VAR12:=EMA(VAR11,10);
VAR13:=LLV(LOW,33);
VAR14:=EMA(IF(LOW<=VAR13,VAR12,0),3);
VAR15:=IF(VAR14>REF(VAR14,1),VAR14,0)*1.1;
STICKLINE(VAR14>REF(VAR14,1),0,VAR14,4,1),COLORRED;
VAR16:=IF(VAR14<REF(VAR14,1),VAR14,0);
低买:IF(CROSS(VAR16,VAR15) AND VAR9=(-20),100,0),STICK,COLORFF9150,LINETHICK3;

上一篇:通达信源码:成交量+资金流向 VOLTDX3 VOLTDX4

下一篇:通达信源码:主力监控,一触即发,集合竞价异动