通达信超赢鬼脸主图源码分享源码
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B,A,B,5,0),COLORYELLOW;
STICKLINE(A< B,A,B,5,0),COLORBLUE;
M1:EMA(CLOSE,3);
M2:EMA(CLOSE,8);
M3:EMA(M2,13);
M4:EMA(M2,55);
VAR1:=EMA(M3,55);
M5:EMA(M4,81), COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'), COLORGREEN;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'卖出'), COLORGREEN;
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE< REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进') ,COLORRED;
DRAWTEXT(IF(COUNT(CLOSE< REF(CLOSE,1),13)/13>6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW,'●买进'), COLORRED;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE< D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE< MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'),COLORRED;
VAR111:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR222:=REF(VAR111,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR333:=REF(VAR222,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR444:=REF(VAR333,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR555:=REF(VAR444,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR666:=REF(VAR555,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR777:=REF(VAR666,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR888:=REF(VAR777,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR999:=REF(VAR888,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR999,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(VAR111 OR VAR222 OR VAR333 OR VAR444 OR VAR555 OR VAR666 OR VAR777 OR VAR888 OR VAR999 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;
VARD:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR1110:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR1111:=REF(VAR1110,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR1112:=REF(VAR1111,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR1113:=REF(VAR1112,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR1114:=REF(VAR1113,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR1115:=REF(VAR1114,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR1116:=REF(VAR1115,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR1117:=REF(VAR1116,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR1118:=REF(VAR1117,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VARD OR VARE OR VARF OR VAR1110 OR VAR1111 OR VAR1112 OR VAR1113 OR VAR1114 OR VAR1115 OR VAR1116 OR VAR1117 OR VAR1118,CLOSE,REF(CLOSE,1),3,1),COLORLIBLUE;
VAR1119:=REF(VARD OR VARE OR VARF OR VAR1110 OR VAR1111 OR VAR1112 OR VAR1113 OR VAR1114 OR VAR1115 OR VAR1116 OR VAR1117 OR VAR1118,1) AND VAR111;
STICKLINE(VAR1119,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA;
VAR111A:=REF(VAR111 OR VAR222 OR VAR333 OR VAR444 OR VAR555 OR VAR666 OR VAR777 OR VAR888 OR VAR999 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR111A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR008800;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
JJ赋值:(收盘价+最高价+最低价)/3
A赋值:E558363002511086842AJJ的10日指数移动平均
B赋值:1日前的A
当满足条件A>B时,在A和B之间画柱状线
当满足条件A< B时,在A和B之间画柱状线
输出M1:E558363002511086842A收盘价的3日指数移动平均
输出M2:E558363002511086842A收盘价的8日指数移动平均
输出M3:E558363002511086842AM2的13日指数移动平均
输出M4:E558363002511086842AM2的55日指数移动平均
VAR1:=E558363002511086842AM3的55日指数移动平均
输出M5:E558363002511086842AM4的81日指数移动平均, COLORRED, 线宽为2
VAR2:=(1日前的最高价+1日前的最低价)/2
VAR3:=558363002511086842A收盘价的21日简单移动平均+2*收盘价的21估算标准差
DRAWICON(VAR2上穿VAR3,最高价*1.035,2)
DRAWTEXT(VAR2上穿VAR3,最高价*1.02,'卖出'), 画绿色
VAR4:=1日前的收盘价
VAR5:=S558363002511086842A(558363002511086842AX收盘价-VAR4和0较大值,7,1)/S558363002511086842A(收盘价-VAR4的绝对值,7,1)*100
VAR6:=79上穿VAR5
VAR7:=VAR6的4过滤
当满足条件VAR7时,在最高价*1.035和2之间画图标
当满足条件VAR7时,在最高价*1.02和'卖出'位置书写文字
A7:=(2*C+H+L)/4
VAR10:=34日内最低价最低值
VAR11:=34日内最高价最高值
SK赋值:E558363002511086842A((A7-VAR1)/(VAR2-VAR1)*100,7)
SD赋值:E558363002511086842A0.667*1日前的SK+0.333*SK的5日简单移动平均
DRAWTEXT(IF(COUNT(收盘价< 1日前的收盘价,8)/8>6/10 AND 成交量>=1.5*558363002511086842A成交量的5日简单移动平均 AND COUNT(SK>=SD,3) AND 1日前的最低价=120日内最低价最低值,1,0),最低价,'●买进') ,COLORRED
DRAWTEXT(IF(COUNT(收盘价< 1日前的收盘价,13)/13>6/10 AND COUNT(SK>SD,6) AND 5日前的最低价=120日内最低价最低值 AND 4日前的收盘价>=开盘价 AND 3日前的收盘价>开盘价 AND 2日前的收盘价>开盘价 AND 1日前的开盘价>收盘价 AND 开盘价>1日前的收盘价,1,0),最低价,'●买进'), COLORRED
D赋值:558363002511086842A收盘价的80日简单移动平均-558363002511086842A收盘价的10日简单移动平均/3
DRAWTEXT(IF(收盘价< D AND 成交量/240>558363002511086842A成交量的5日简单移动平均/240 AND 收盘价>1日前的收盘价*1.08 AND 收盘价< 558363002511086842A收盘价的13日简单移动平均*1.3,1,0),最低价,'●抄底'),COLORRED
VAR111:=收盘价>1日前的收盘价 AND 收盘价>2日前的收盘价
VAR222:=1日前的VAR111 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR333:=1日前的VAR222 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR444:=1日前的VAR333 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR555:=1日前的VAR444 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR666:=1日前的VAR555 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR777:=1日前的VAR666 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR888:=1日前的VAR777 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR999:=1日前的VAR888 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VARA赋值:1日前的VAR999 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VARB赋值:1日前的VARA AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VARC:=1日前的VARB AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
STICKLINE(VAR111 OR VAR222 OR VAR333 OR VAR444 OR VAR555 OR VAR666 OR VAR777 OR VAR888 OR VAR999 OR VARA OR VARB OR VARC,收盘价,1日前的收盘价,3,1),COLORRED
VARD赋值:收盘价< 1日前的收盘价 AND 收盘价< 2日前的收盘价
VARE:=1日前的VARD AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VARF:=1日前的VARE AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR1110:=1日前的VARF AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR1111:=1日前的VAR1110 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR1112:=1日前的VAR1111 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR1113:=1日前的VAR1112 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR1114:=1日前的VAR1113 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR1115:=1日前的VAR1114 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR1116:=1日前的VAR1115 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR1117:=1日前的VAR1116 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR1118:=1日前的VAR1117 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
STICKLINE(VARD OR VARE OR VARF OR VAR1110 OR VAR1111 OR VAR1112 OR VAR1113 OR VAR1114 OR VAR1115 OR VAR1116 OR VAR1117 OR VAR1118,收盘价,1日前的收盘价,3,1),COLORLIBLUE
VAR1119:=1日前的VARD OR VARE OR VARF OR VAR1110 OR VAR1111 OR VAR1112 OR VAR1113 OR VAR1114 OR VAR1115 OR VAR1116 OR VAR1117 OR VAR1118 AND VAR111
STICKLINE(VAR1119,1日前的收盘价,2日前的收盘价,3,0),COLOR558363002511086842AGENTA
VAR111A赋值:1日前的VAR111 OR VAR222 OR VAR333 OR VAR444 OR VAR555 OR VAR666 OR VAR777 OR VAR888 OR VAR999 OR VARA OR VARB OR VARC AND VARD
STICKLINE(VAR111A,1日前的收盘价,2日前的收盘价,3,0),COLOR008800