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

通达信源码:绝代双娇,九五至尊,跟庄买进

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

1、绝代双娇

{公式名称: 绝代双娇

公式描述: 李玉指标
参数数量: 2
参数1: K, 最小: 1, 最大: 1000, 缺省: 8
参数2: M, 最小: 1, 最大: 1000, 缺省: 100
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:
请设置计算参数:
K: Param#0 (1.00--1000.00)
M: Param#1 (1.00--1000.00)
用法注释:无
公式源码:}
 
VAR1:=HIGH-CLOSE<=CLOSE-OPEN;
VAR2:=CLOSE>=OPEN;
VAR3:=LOW>REF(CLOSE,1) AND REF(HIGH,1)<REF(CLOSE,2);
VAR4:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND REF(HIGH,1)<REF(CLOSE,3) AND REF(HIGH,2)<REF(CLOSE,3);
VAR5:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND REF(HIGH,1)<REF(CLOSE,4) AND REF(HIGH,2)<REF(CLOSE,4) AND REF(HIGH,3)<REF(CLOSE,4);
VAR6:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND REF(HIGH,1)<REF(CLOSE,5) AND REF(HIGH,2)<REF(CLOSE,5) AND REF(HIGH,3)<REF(CLOSE,5) AND REF(HIGH,4)<REF(CLOSE,5);
VAR7:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND REF(HIGH,1)<REF(CLOSE,6) AND REF(HIGH,2)<REF(CLOSE,6) AND REF(HIGH,3)<REF(CLOSE,6) AND REF(HIGH,4)<REF(CLOSE,6) AND REF(HIGH,5)<REF(CLOSE,6);
VAR8:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND REF(HIGH,1)<REF(CLOSE,7) AND REF(HIGH,2)<REF(CLOSE,7) AND REF(HIGH,3)<REF(CLOSE,7) AND REF(HIGH,4)<REF(CLOSE,7) AND REF(HIGH,5)<REF(CLOSE,7) AND REF(HIGH,6)<REF(CLOSE,7);
VAR9:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND REF(HIGH,1)<REF(CLOSE,8) AND REF(HIGH,2)<REF(CLOSE,8) AND REF(HIGH,3)<REF(CLOSE,8) AND REF(HIGH,4)<REF(CLOSE,8) AND REF(HIGH,5)<REF(CLOSE,8) AND REF(HIGH,6)<REF(CLOSE,8) AND REF(HIGH,7)<REF(CLOSE,8);
VAR10:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND REF(HIGH,1)<REF(CLOSE,9) AND REF(HIGH,2)<REF(CLOSE,9) AND REF(HIGH,3)<REF(CLOSE,9) AND REF(HIGH,4)<REF(CLOSE,9) AND REF(HIGH,5)<REF(CLOSE,9) AND REF(HIGH,6)<REF(CLOSE,9) AND REF(HIGH,7)<REF(CLOSE,9) AND REF(HIGH,8)<REF(CLOSE,9);
VAR11:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND LOW>REF(HIGH,9) AND REF(HIGH,1)<REF(CLOSE,10) AND REF(HIGH,2)<REF(CLOSE,10) AND REF(HIGH,3)<REF(CLOSE,10) AND REF(HIGH,4)<REF(CLOSE,10) AND REF(HIGH,5)<REF(CLOSE,10) AND REF(HIGH,6)<REF(CLOSE,10) AND REF(HIGH,7)<REF(CLOSE,10) AND REF(HIGH,8)<REF(CLOSE,10) AND REF(HIGH,9)<REF(CLOSE,10);
VAR12:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND LOW>REF(HIGH,9) AND LOW>REF(HIGH,10) AND REF(HIGH,1)<REF(CLOSE,11) AND REF(HIGH,2)<REF(CLOSE,11) AND REF(HIGH,3)<REF(CLOSE,11) AND REF(HIGH,4)<REF(CLOSE,11) AND REF(HIGH,5)<REF(CLOSE,11) AND REF(HIGH,6)<REF(CLOSE,11) AND REF(HIGH,7)<REF(CLOSE,11) AND REF(HIGH,8)<REF(CLOSE,11) AND REF(HIGH,9)<REF(CLOSE,11) AND REF(HIGH,10)<REF(CLOSE,11);
VAR13:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND LOW>REF(HIGH,9) AND LOW>REF(HIGH,10) AND LOW>REF(HIGH,11) AND REF(HIGH,1)<REF(CLOSE,12) AND REF(HIGH,2)<REF(CLOSE,12) AND REF(HIGH,3)<REF(CLOSE,12) AND REF(HIGH,4)<REF(CLOSE,12) AND REF(HIGH,5)<REF(CLOSE,12) AND REF(HIGH,6)<REF(CLOSE,12) AND REF(HIGH,7)<REF(CLOSE,12) AND REF(HIGH,8)<REF(CLOSE,12) AND REF(HIGH,9)<REF(CLOSE,12) AND REF(HIGH,10)<REF(CLOSE,12) AND REF(HIGH,11)<REF(CLOSE,12);
VAR14:=BARSLAST(CLOSE<REF(LOW,1));
VAR15:=HHV(HIGH,VAR14+1);
VAR16:=LOW>VAR15;
DRAWICON(VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13,LOW*0.99,1);
DRAWICON(VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13,LOW*0.97,25);
DRAWTEXT(VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13,LOW*0.94,1),COLORYELLOW;
DRAWNUMBER(VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13,LOW*0.91,REF(CLOSE,1)),LINETHICK9;
VAR17:=HIGH<REF(CLOSE,1) AND REF(LOW,1)>REF(CLOSE,2);
VAR18:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND REF(LOW,1)>REF(CLOSE,3) AND REF(LOW,2)>REF(CLOSE,3);
VAR19:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND REF(LOW,1)>REF(CLOSE,4) AND REF(LOW,2)>REF(CLOSE,4) AND REF(LOW,3)>REF(CLOSE,4);
VAR20:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND REF(LOW,1)>REF(CLOSE,5) AND REF(LOW,2)>REF(CLOSE,5) AND REF(LOW,3)>REF(CLOSE,5) AND REF(LOW,4)>REF(CLOSE,5);
VAR21:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND HIGH<REF(LOW,5) AND REF(LOW,1)>REF(CLOSE,6) AND REF(LOW,2)>REF(CLOSE,6) AND REF(LOW,3)>REF(CLOSE,6) AND REF(LOW,4)>REF(CLOSE,6) AND REF(LOW,5)>REF(CLOSE,6);
VAR22:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND HIGH<REF(LOW,5) AND HIGH<REF(LOW,6) AND REF(LOW,1)>REF(CLOSE,7) AND REF(LOW,2)>REF(CLOSE,7) AND REF(LOW,3)>REF(CLOSE,7) AND REF(LOW,4)>REF(CLOSE,7) AND REF(LOW,5)>REF(CLOSE,7) AND REF(LOW,6)>REF(CLOSE,7);
VAR23:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND HIGH<REF(LOW,5) AND HIGH<REF(LOW,6) AND HIGH<REF(LOW,7) AND REF(LOW,1)>REF(CLOSE,8) AND REF(LOW,2)>REF(CLOSE,8) AND REF(LOW,3)>REF(CLOSE,8) AND REF(LOW,4)>REF(CLOSE,8) AND REF(LOW,5)>REF(CLOSE,8) AND REF(LOW,6)>REF(CLOSE,8) AND REF(LOW,7)>REF(CLOSE,8);
DRAWICON(VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23,HIGH*1.01,2);
DRAWICON(VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23,HIGH*1.03,27);
DRAWTEXT(VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23,HIGH*1.05,2),COLORGREEN;
DRAWNUMBER(VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23,HIGH*1.08,REF(CLOSE,1)),LINETHICK9;
MA8:MA(CLOSE,8),COLORWHITE,LINETHICK2;
MA20:MA(CLOSE,20),COLORMAGENTA,LINETHICK2;
VAR24:=IF(CLOSE>REF(CLOSE,1),VOL,0);
VAR25:=IF(CLOSE<REF(CLOSE,1),VOL,0);
VAR26:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR27:=EMA(VAR26,9);
VAR28:=(VAR26-VAR27)*2;
VAR29:=MA(CLOSE,60);
VAR30:=MA(CLOSE,3);
VAR31:=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);
VAR32:=13;
VAR33:=M;
VAR34:=BARSLAST(VAR31=LLV(VAR31,21));
VAR35:=CROSS(REF(VAR31,3),REF(VAR32,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 VAR31>=VAR32;
VAR36:=CROSS(REF(VAR31,2),REF(VAR32,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 VAR31>=VAR32;
VAR37:=CROSS(VAR31,VAR32) OR (CROSS(REF(VAR31,1),REF(VAR32,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 VAR31>=VAR32;
DRAWICON(VAR35 OR VAR36 OR VAR37,LOW*0.9999,1),COLORYELLOW;
DRAWICON(VAR35 OR VAR36 OR VAR37,LOW*0.99,22),COLORYELLOW;
DRAWICON(VAR35 OR VAR36 OR VAR37 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;
VAR38:=CROSS(VAR27,VAR26) AND VAR26>0.1;
VAR39:=COUNT(CROSS(VAR27,VAR26),BARSLAST(VAR27<=0));
VAR40:=CROSS(VAR27,VAR26) AND VAR27>0 AND COUNT(VAR39=2,60)=1;
VAR41:=BARSLAST(REF(CROSS(VAR27,VAR26),1));
VAR42:=REF(CLOSE,VAR41+1)<CLOSE AND VAR26<REF(VAR26,VAR41+1) AND CROSS(VAR27,VAR26);
VAR43:=MA(CLOSE,K);
VAR44:=CLOSE<MA20 AND COUNT(VAR42=1,21)>=1 AND VAR28<0;
VAR45:=COUNT(VAR44,21)=1;
DRAWICON(CROSS(90,RSI.RSI1) AND CLOSE<=VAR30,HIGH*1.001,45),COLORGREEN;
DRAWICON(CROSS(VAR33,VAR31) AND CLOSE<=VAR43 OR (CROSS(REF(VAR33,1),REF(VAR31,1)) AND CLOSE<=VAR43 AND REF(CLOSE,1)>REF(VAR43,1)),HIGH*1.015,15),COLORGREEN;
DRAWICON(CROSS(VAR33,VAR31) AND CLOSE<=VAR43 OR (CROSS(REF(VAR33,1),REF(VAR31,1)) AND CLOSE<=VAR43 AND REF(CLOSE,1)>REF(VAR43,1)),HIGH*1.005,2),COLORGREEN;




2、九五至尊

{公式名称: 九五至尊

画线方法: 副图}
VAR1:=CONST(CLOSE/FINANCE(33));
VAR2:=CONST(DYNAINFO(7)/FINANCE(34));
VAR3:=FINANCE(33)/FINANCE(34)*100;
VAR4:=CONST((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);
VAR5:=FINANCE(30)/FINANCE(20)*100;
VAR6:=FINANCE(23)/FINANCE(20)*100;
VAR7:=FINVALUE(199);
VAR8:=FINANCE(30)/10000;
VAR9:=FINVALUE(184);
VAR10:=CONST(FINANCE(38));
VAR11:=CONST(FINANCE(18));
VAR12:=CONST(FINANCE(32));
VAR13:=FINANCE(34);
VAR14:=VAR3<=0.27;
VAR15:=VAR6<=(-1.27);
VAR16:=VAR5<=0.34;
VAR17:=VAR10<0.002;
VAR18:=VAR12<=0.26;
VAR19:=VAR11<0;
VAR20:=VAR4<=4.2;
抄底风险等于:VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR19 OR VAR20;
VAR21:=CLOSE/MA(CLOSE,40)*100<78;
VAR22:=CLOSE/MA(CLOSE,60)*100<74;
VAR23:=HIGH>LOW*1.051;
VAR24:=VAR23 AND COUNT(VAR23,5)>1;
VAR25:=IF(VAR24 AND (VAR21 OR VAR22),2,0);
VAR26:=CLOSE/REF(CLOSE,25)<=1.1;
VAR27:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<15;
VAR28:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
VAR29:=SMA(VAR28,2,1);
VAR30:=SMA(VAR29,2,1);
VAR31:=IF(VAR29>REF(VAR29,1) AND REF(VAR29,1)<REF(VAR29,2) AND VAR29<23,1.5,0);
青龙:VAR26 AND VAR25 AND VAR27 AND VAR31,COLORGREEN;
VAR32:=MA(CLOSE,5);
VAR33:=MA(CLOSE,10);
VAR34:=MA(CLOSE,30);
VAR35:=MA(CLOSE,60);
VAR36:=MA(CLOSE,120);
VAR37:=VAR36>VAR35 AND VAR35>VAR34;
VAR38:=VAR34>VAR35 AND VAR35>VAR36;
VAR39:=MAX(VAR34,MAX(VAR35,VAR36));
VAR40:=MIN(VAR34,MIN(VAR35,VAR36));
VAR41:=IF(VAR34!=VAR39 AND VAR34!=VAR40,VAR34,IF(VAR35!=VAR39 AND VAR35!=VAR40,VAR35,VAR36));
VAR42:=(VAR39-VAR40)/VAR40*100;
VAR43:=(VAR41-VAR40)/VAR40*100;
VAR44:=MA(REF(HHV(CLOSE,30),1),2);
VAR45:=MA(REF(LLV(CLOSE,30),1),2);
VAR46:=(VAR44-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;
VAR47:=(MIN(CLOSE,OPEN)-VAR45)/VAR45*100;
VAR48:=BARSLASTCOUNT(VAR45<REF(VAR45,1) AND VAR45*1.007>=REF(VAR45,1));
VAR49:=(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100;
VAR50:=(HIGH-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;
VAR51:=(MIN(CLOSE,OPEN)-LOW)/LOW*100;
VAR52:=BARSLASTCOUNT(MAX(OPEN,CLOSE)<=REF(MAX(OPEN,CLOSE),1) AND MIN(OPEN,CLOSE)<=REF(MIN(OPEN,CLOSE),1))>=2;
VAR53:=(REF(MIN(CLOSE,OPEN),1)-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;
VAR54:=BARSLASTCOUNT(VAR49>2.1)>=3 AND BARSLASTCOUNT(VAR53>2.1)>=2 AND COUNT(VAR53>5.5,2) OR (BARSLASTCOUNT(OPEN<REF(OPEN,1) AND CLOSE<REF(CLOSE,1))=2 AND BARSLASTCOUNT(OPEN>CLOSE AND VAR49>4)=3);
VAR55:=RANGE(MIN(CLOSE,OPEN),MA(CLOSE,5)*0.98,MA(CLOSE,5)*1.02);
VAR56:=(MAX(HHV(CLOSE,10),HHV(OPEN,10))-MIN(LLV(CLOSE,10),LLV(OPEN,10)))/MIN(LLV(CLOSE,10),LLV(OPEN,10))*100;
VAR57:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR58:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR59:=REF(VAR58,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR60:=REF(VAR58 OR VAR59,1) AND VAR57;
VAR61:=VAR60 AND CLOSE>OPEN;
VAR62:=REF(VAR57,1) AND VAR58 AND NOT(REF(CLOSE,3)=LLV(CLOSE,4));
VAR63:=CLOSE/OPEN>1.04 AND CLOSE<SMA(HIGH,19,3) AND CLOSE>REF(CLOSE,1);
VAR64:=IF(CLOSE>MA(CLOSE,4),1,0)+IF(CLOSE<MA(CLOSE,4),(-1),0)+IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),1,0)+IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),(-1),0);
VAR65:=VAR64=(-2) AND CLOSE>OPEN;
VAR66:=IF(CLOSE>MA(CLOSE,4),1,0);
VAR67:=IF(CLOSE<MA(CLOSE,4),(-1),0);
VAR68:=IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),1,0);
VAR69:=IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),(-1),0);
VAR70:=VAR66+VAR67+VAR68+VAR69;
VAR71:=VAR70=2 AND CLOSE<OPEN;
VAR72:=EMA((CLOSE*2+HIGH+LOW)/4,13)-EMA((CLOSE*2+HIGH+LOW)/4,73);
VAR73:=CROSS(VAR72,EMA(VAR72,2)) AND VAR72<=0.05 AND CLOSE/REF(CLOSE,1)>0.035;
VAR74:=VAR73 AND NOT(VAR71);
VAR75:=VAR63 AND VAR49>3.9 AND VAR47<0.2 AND CLOSE>VAR45 AND VAR51<1.5 AND REF(VAR50<3,1) AND (REF(VAR49>5.5 AND CLOSE<OPEN,1) AND REF(VAR49,1)>VAR49)=0 AND VAR74=0 AND VAR65=0 AND REF(VAR62 AND VAR74 AND VAR61=0,1)=0 AND REF(VAR61=0,2);
VAR76:=VAR45=REF(VAR45,1) OR VAR48 AND CLOSE<VAR40*1.01 AND BARSLASTCOUNT(VAR40<=REF(VAR40,1))>=7 AND VAR43<11.54 AND (BARSLASTCOUNT(VAR39>VAR44)>=4 AND OPEN<VAR45 OR (BARSLASTCOUNT(VAR39<VAR44)>10 AND OPEN>VAR45 AND VAR42<10)) AND (VAR37 OR CLOSE*1.2<VAR40 OR COUNT(CROSS(VAR34,VAR35),4)) AND BARSLASTCOUNT(VAR41<VAR44)>=7;
VAR77:=VAR75 AND VAR76;
VAR78:=VAR63 AND VAR49>5.4 AND CLOSE=HHV(CLOSE,4) AND OPEN<=REF(MAX(CLOSE,OPEN),1) AND VAR50<1.7 AND VAR74=0 AND VAR65=0 AND (REF(BARSLASTCOUNT(VAR49<1.5 AND VAR55)>=3,1) OR REF(COUNT(VAR52,2)>=1 AND BARSLASTCOUNT(VAR49>1.5)>=3,1)) AND (REF(VAR49>4.5 AND CLOSE<OPEN,1)=0 OR REF(VAR54,1));
VAR79:=VAR47<5.4 AND VAR46<14 AND CLOSE>VAR45 AND CLOSE<VAR39*1.01 AND CLOSE>VAR40 AND BARSLASTCOUNT(VAR39<VAR44)>10 AND (COUNT(VAR54,7) OR REF(VAR56<10,1)) AND (VAR38 OR BARSLASTCOUNT(VAR39>=REF(VAR39,1))>=10);
VAR80:=VAR78 AND VAR79;
VAR81:=VAR52 AND BARSLASTCOUNT(VAR49<2.5)>=3 AND VAR65 AND CLOSE<VAR45 OR VAR54;
VAR82:=BARSLASTCOUNT(CLOSE>0)<60 AND CLOSE<VAR34*1.01 AND CROSS(CLOSE,VAR32) AND CROSS(CLOSE,VAR33) OR (VAR49>5 AND VAR46<14);
VAR83:=VAR63 AND VAR49>3.9 AND VAR47<1.05 AND CLOSE>VAR45 AND CLOSE<VAR34 AND REF(VAR45,1)>REF(VAR45,2) AND VAR45<REF(VAR45,1) AND REF(VAR81,1) AND VAR82;
金龙:VAR77 OR VAR80 OR VAR83,COLORYELLOW;
赤龙:CROSS(RSI.RSI1,11),COLORRED;
白龙:IF(MA(CLOSE,1)<MA(CLOSE,144)*0.45,100,0) OR IF(MA(CLOSE,1)<MA(CLOSE,60)*0.55,100,0),COLORWHITE;
VAR84:=REF(CLOSE,1);
VAR85:=SMA(MAX(CLOSE-VAR84,0),7,1)/SMA(ABS(CLOSE-VAR84),7,1)*100;
VAR86:=SMA(MAX(CLOSE-VAR84,0),13,1)/SMA(ABS(CLOSE-VAR84),13,1)*100;
VAR87:=BARSLAST(VAR86<23)<=3 AND CROSS(VAR85,VAR86);
VAR88:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);
VAR89:=LLV(LOW,5);
VAR90:=HHV(HIGH,10);
VAR91:=EMA((CLOSE-VAR89)/(VAR90-VAR89)*100,4);
VAR92:=EMA(0.667*REF(VAR91,1)+0.333*VAR91,2);
紫龙:0-(-1)*VAR87 AND VAR88 AND CROSS(VAR91,VAR92) AND VAR91<=25,COLORMAGENTA,LINETHICK2;
VAR93:=1501230;
VAR94:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
VAR95:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
VAR96:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
VAR97:=VAR94+100;
VAR98:=VAR95+100;
VAR99:=VAR96+100;
VAR100:=REF(VAR99,1)>85 AND REF(VAR98,1)>85 AND REF(VAR97,1)>65 AND CROSS(VAR97,VAR98);
VAR101:=VAR99<REF(VAR99,1) AND REF(VAR99,1)>80 AND (REF(VAR98,1)>95 OR REF(VAR98,2)>95) AND VAR97>60 AND VAR98<83.5 AND VAR98<VAR99 AND VAR98<VAR97+4;
VAR102:=FILTER(VAR101,4);
VAR103:=VAR97<12 AND VAR99<8 AND (VAR98<7.2 OR REF(VAR98,1)<5) AND (VAR99>REF(VAR99,1) OR VAR98>REF(VAR98,1)) OR (VAR97<8 AND VAR99<7 AND VAR98<15 AND VAR98>REF(VAR98,1)) OR (VAR97<10 AND VAR99<7 AND VAR98<1);
VAR104:=VAR97<15 AND REF(VAR97,1)<15 AND VAR99<18 AND VAR98>REF(VAR98,1) AND CROSS(VAR98,VAR97) AND VAR98>VAR99 AND (REF(VAR98,1)<5 OR REF(VAR98,2)<5) AND (VAR99>=VAR97 OR REF(VAR98,1)<1);
苍龙:IF(DATE<=VAR93,VAR104,0),COLORCYAN;
VAR105:=MA(HHV(HIGH,485),17);
VAR106:=MA(HHV(HIGH,222),17);
VAR107:=MA(HHV(HIGH,96),17);
VAR108:=MA(LLV(LOW,485),17);
VAR109:=MA(LLV(LOW,222),17);
VAR110:=MA(LLV(LOW,96),17);
VAR111:=MA((VAR108*0.96+VAR109*0.96+VAR110*0.96+VAR105*0.558+VAR106*0.558+VAR107*0.558)/6,17);
VAR112:=MA((VAR108*1.25+VAR109*1.23+VAR110*1.2+VAR105*0.55+VAR106*0.55+VAR107*0.65)/6,17);
VAR113:=MA((VAR108*1.3+VAR109*1.3+VAR110*1.3+VAR105*0.68+VAR106*0.68+VAR107*0.68)/6,17);
VAR114:=MA((VAR111*3+VAR112*2+VAR113)/6*1.738,17);
VAR115:=IF(DATE<=1341231,VAR114,VAR114*DAY);
VAR116:=LOW;
VAR117:=REF(LOW,1);
VAR118:=SMA(ABS(VAR116-VAR117),3,1)/SMA(MAX(VAR116-VAR117,0),3,1)*100;
VAR119:=MA(IF(CLOSE*1.35<=VAR115,VAR118*10,VAR118/10),3);
VAR120:=LLV(LOW,30);
VAR121:=HHV(VAR119,30);
VAR122:=1341231;
VAR123:=IF(DATE<=VAR122,MA(IF(LOW<=VAR120,(VAR119+VAR121*2)/2,0),3),100000000);
朱雀:IF((REF(VAR123,2)>REF(VAR123,3) AND VAR123<REF(VAR123,1))*80,0.01,(-0.5)),COLOR555555,LINETHICK2;
VAR124:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR125:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR126:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR127:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR128:=(VAR125+2*VAR126+3*VAR127)/6;
VAR129:=MA(VAR128,3);
玄武:IF(VAR129<=(-10),0.01,(-0.5)),COLORBLUE,LINETHICK2;
VAR130:=OPEN/HHV(CLOSE,30)<0.78;
VAR131:=CLOSE/MA(CLOSE,50)<0.78;
VAR132:=COUNT(OPEN!=LLV(OPEN,13),3)>=1;
VAR133:=COUNT(HIGH>LOW*1.05,5)>2;
VAR134:=CLOSE<COST(5) AND VAR130 AND VAR131 AND VAR132 AND VAR133;
VAR135:=VAR134 AND CLOSE>REF(HIGH,1);
VAR136:=10;
VAR137:=12;
VAR138:=(MIN(CLOSE,OPEN)+2*HIGH)/3;
VAR139:=(MAX(CLOSE,OPEN)+2*LOW)/3;
VAR140:=((VAR138+VAR139)/2+AMOUNT/(VOL*100))/2;
VAR141:=VAR140-REF(VAR140,1);
VAR142:=MA(VAR141,5)+EMA(VAR140,5);
VAR143:=MA(VAR141,12)+EMA(VAR140,12);
VAR144:=MA(VAR141,21)+EMA(VAR140,21);
VAR145:=MAX(MAX(VAR142,VAR143),VAR144);
VAR146:=MIN(MIN(VAR142,VAR143),VAR144);
VAR147:=(VAR145/VAR146-1)*100;
VAR148:=ATAN((VAR142/REF(VAR142,1)-1)*100)*180/3.1416;
VAR149:=ATAN((VAR143/REF(VAR143,1)-1)*100)*180/3.1416;
VAR150:=ATAN((VAR144/REF(VAR144,1)-1)*100)*180/3.1416;
VAR151:=(-(3*VAR148+2*VAR149+VAR150))/36;
VAR152:=CLOSE/MA(CLOSE,30)<0.75;
VAR153:=CLOSE/MA(CLOSE,50)<0.78;
VAR154:=HIGH/LOW>1.053 AND COUNT(HIGH/LOW>1.053,5)>2;
VAR155:=VAR154 AND (VAR152 OR VAR153);
VAR156:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);
VAR157:=(CLOSE-VAR156)/VAR156*100;
VAR158:=REF(VAR157,1)<(-34) AND VAR157>REF(VAR157,1) AND REF(VAR157,1)<REF(VAR157,2) AND VAR157-REF(VAR157,1)>1.76 OR VAR155;
VAR159:=MA(INDEXC,13)>1.05*INDEXC;
VAR160:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*10<(-3.3);
VAR161:=(CLOSE-MA(CLOSE,2))/MA(CLOSE,2)*100<(-3.7);
VAR162:=VAR159 AND VAR160 AND VAR161;
VAR163:=CROSS(0.5,VAR162);
VAR164:=CLOSE/MA(CLOSE,30)*100<80;
VAR165:=CLOSE/MA(CLOSE,50)*100<78;
VAR166:=CLOSE/MA(CLOSE,70)*100<72;
VAR167:=VAR164 AND VAR165 AND VAR166;
VAR168:=CROSS(REF(VAR147,1),VAR147) AND EXIST(VAR147>VAR137,3) AND EXIST(VAR151>VAR136,3) AND VAR158 AND VAR163 AND VAR167;
白虎:IF(VAR135 OR VAR168,0.01,(-0.5)),COLORCCDDBB,LINETHICK2;




3、跟庄买进

跟庄黄金金叉_公式的有下面的提示:
1、跟庄买进提示;
2、黄金分割指标;
3、金叉提示;
4、买卖牛熊趋势线;
5、黄柱买蓝柱卖提示。
 
指标为自组自用,觉得很好而分享给大家。( 顶尖财经 股票学院: http://58188.com )
指标只是协助看盘分析的工具,没有100%准确,不喜好者勿下勿喷。
 
{公式名称: 跟庄黄金金叉_
公式描述: 跟庄买进+黄金分割金叉
参数数量: 3
参数1: T, 最小: 10, 最大: 10000, 缺省: 150
参数2: TT, 最小: 1, 最大: 100, 缺省: 3
参数3: N1, 最小: 0, 最大: 500, 缺省: 0
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加}
 
MAA5:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
VAR1:=MA(CLOSE,10);
MAA30:MA(CLOSE,30),COLORRED;
KS:IF(VAR1>MAA30,VAR1,MAA30),COLOR999900;
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=3*VAR3-2*VAR4;
VAR6:=CLOSE-REF(CLOSE,1);
VAR7:=100*EMA(EMA(VAR6,6),6)/EMA(EMA(ABS(VAR6),6),6);
VAR8:=LLV(VAR7,2)=LLV(VAR7,7) AND COUNT(VAR7<0,2) AND CROSS(VAR7,MA(VAR7,2));
DRAWTEXT(FILTER(VAR8=1,5),LOW*0.98,5344),COLORYELLOW;
STICKLINE(VAR8,OPEN,CLOSE,2,0),COLORYELLOW;
VAR9:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR10:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR19:=REF(VAR18,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR20:=REF(VAR19,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18 OR VAR19 OR VAR20,CLOSE,OPEN,3,1),COLORRED;
VAR21:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR22:=REF(VAR21,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR23:=REF(VAR22,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR24:=REF(VAR23,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR25:=REF(VAR24,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR26:=REF(VAR25,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR27:=REF(VAR26,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR28:=REF(VAR27,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR29:=REF(VAR28,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR30:=REF(VAR29,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR31:=REF(VAR30,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR32:=REF(VAR31,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31 OR VAR32,CLOSE,OPEN,3,0),COLORFFCC66;
VAR33:=REF(VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31 OR VAR32,1) AND VAR9;
STICKLINE(VAR33,CLOSE,OPEN,3,1),COLORYELLOW;
VAR34:=REF(VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18 OR VAR19 OR VAR20,1) AND VAR21;
STICKLINE(VAR34,REF(CLOSE,1),REF(OPEN,1),3,2),COLORGREEN;
STICKLINE(VAR33,REF(CLOSE,1),REF(OPEN,1),3,0),COLOR00C8FF;
STICKLINE(VAR33,REF(CLOSE,1),REF(OPEN,1),3,0),COLOR10ECFF;
STICKLINE(VAR33,REF(CLOSE,1),REF(OPEN,1),3,0),COLOR10FFFF;
STICKLINE(VAR34,REF(CLOSE,1),REF(OPEN,1),3,0),COLOR00D900;
STICKLINE(VAR34,REF(CLOSE,1),REF(OPEN,1),3,0),COLORBLUE;
STICKLINE(VAR34,REF(CLOSE,1),REF(OPEN,1),0,0),COLOR090FF2;
PMA:MA(CLOSE,5),COLORWHITE,LINETHICK2;
IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;
IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;
VAR35:=VOL*(OPEN+CLOSE)/2;
MAA:MA(CLOSE,N1),COLORGREEN;
DRAWTEXT(ISLASTBAR AND N1>0 AND MAA>REF(MAA,1),MAA,5345),COLORGREEN;
DRAWTEXT(ISLASTBAR AND N1>0 AND MAA<REF(MAA,1),MAA,5346),COLORGREEN;
VAR36:=REF(HHV(HIGH,T),TT);
VAR37:=REF(LLV(LOW,T),TT);
VAR38:=VAR36-(VAR36-VAR37)*0.191;
VAR39:=VAR36-(VAR36-VAR37)*0.382;
VAR40:=VAR36-(VAR36-VAR37)*0.5;
VAR41:=VAR36-(VAR36-VAR37)*0.618;
VAR42:=VAR36-(VAR36-VAR37)*0.809;
顶:REFDATE(VAR36,DATE),COLORCYAN;
一:REFDATE(VAR38,DATE),DOTLINE,COLORYELLOW;
二:REFDATE(VAR39,DATE),DOTLINE,COLORMAGENTA;
三:REFDATE(VAR40,DATE),COLORYELLOW;
四:REFDATE(VAR41,DATE),DOTLINE,COLORMAGENTA;
五:REFDATE(VAR42,DATE),DOTLINE,COLORYELLOW;
低:REFDATE(VAR37,DATE),COLORGREEN;
VAR43:=CURRBARSCOUNT=3;
VAR44:=CURRBARSCOUNT=1;
DRAWNUMBER(VAR43 AND 顶,顶,顶),COLOR999900;
DRAWTEXT(VAR44 AND 顶,顶,5347),COLOR208FFF;
DRAWNUMBER(VAR43 AND 一,一,一),COLOR999999;
DRAWTEXT(VAR44 AND 一,一,5348),COLOR208FFF;
DRAWNUMBER(VAR43 AND 二,二,二),COLOR999999;
DRAWTEXT(VAR44 AND 二,二,5349),COLOR208FFF;
DRAWNUMBER(VAR43 AND 三,三,三),COLOR999999;
DRAWTEXT(VAR44 AND 三,三,5350),COLOR208FFF;
DRAWNUMBER(VAR43 AND 四,四,四),COLOR999999;
DRAWTEXT(VAR44 AND 四,四,5351),COLOR208FFF;
DRAWNUMBER(VAR43 AND 五,五,五),COLOR999999;
DRAWTEXT(VAR44 AND 五,五,5352),COLOR208FFF;
DRAWNUMBER(VAR43 AND 低,低*1.01,低),COLOR999900;
DRAWTEXT(VAR44 AND 低,低*1.009,5353),COLOR208FFF;
VAR45:=(OPEN+HIGH+LOW+CLOSE)/4;
BL:EMA(VAR45,17),COLORRED,LINETHICK2;
DRAWNUMBER(ISLASTBAR AND BL,BL*1.005,BL);
VAR46:=CROSS(CLOSE,BL);
DRAWICON(VAR46,BL,9);
IF(BL>REF(BL,1),BL,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(BL<REF(BL,1),BL,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR AND BL>REF(BL,1),BL,5345),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND BL<REF(BL,1),BL,5346),COLORGREEN;
VAR47:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR48:=EMA(VAR47,9);
VAR49:=2*(VAR47-VAR48);
GMB:IF(CROSS(VAR47,VAR48) AND VAR47>0,LOW*0.999,DRAWNULL),CROSSDOT,COLORYELLOW,LINETHICK3;
GMC:IF(CROSS(VAR47,VAR48) AND VAR47<0,LOW*0.999,DRAWNULL),CROSSDOT,COLOR208FFF,LINETHICK3;
DRAWTEXT(CROSS(VAR47,VAR48) AND VAR47>0,LOW*0.998,5354),COLORYELLOW;
DRAWTEXT(CROSS(VAR47,VAR48) AND VAR47<0,LOW*0.998,5355),COLORYELLOW;
VAR50:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR51:=SMA(VAR50,3,1);
VAR52:=SMA(VAR51,3,1);
GJD:IF(CROSS(VAR51,VAR52) AND VAR51>20 AND VAR52<50,LOW*0.999,DRAWNULL),CROSSDOT,COLORMAGENTA,LINETHICK3;
DRAWTEXT(CROSS(VAR51,VAR52) AND VAR51>20 AND VAR52<50,LOW*0.998,123),COLOREEAAEE;

上一篇:通达信源码:涨停初现,骑牛寻马,无情稳赢副图和选股

下一篇:通达信源码:强力阻击,低位黑马主图,主力资金