{公式名称: 绝代双娇
公式描述: 李玉指标
参数数量: 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
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
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;