通达信鳄鱼三线主图指标 看趋势和精准跟庄介入 源码
沉睡周期:=40;
沉睡振幅:=30;
三金叉周期:=15;
X_1:=CLOSE>REF(CLOSE,1);
X_2:=VOL<REF(VOL,1);
X_3:=X_1 AND X_2;
DRAWICON(X_3 AND 0,LOW,38);
MA1:MA(CLOSE,5),COLORRED;
MA2:MA(CLOSE,8),COLORYELLOW;
MA3:MA(CLOSE,13),COLORBLUE;
X_4:=MA(CLOSE,5);
X_5:=MA(CLOSE,8);
X_6:=MA(CLOSE,13);
MA60:MA(CLOSE,60),POINTDOT,COLORGREEN;
NOTEXT_MA60_1:IF(MA60>=REF(MA60,1),MA60,DRAWNULL),DOTLINE,COLORGREEN;
X_7:=40;
X_8:=30;
X_9:=15;
X_10:=CROSS(X_5,X_4);
X_11:=CROSS(X_6,X_4);
X_12:=CROSS(X_6,X_5);
X_13:=FINDLOW(LOW,0,X_7,1);
X_14:=FINDHIGH(HIGH,0,X_7,1);
X_15:=(X_14-X_13)*100/CLOSE;
X_16:=COUNT(X_10,X_7)>=2 AND COUNT(X_11,X_7)>=2 AND COUNT(X_12,X_7)>=2 AND X_15<=X_8;
X_17:=CROSS(X_4,X_5);
X_18:=CROSS(X_4,X_6);
X_19:=CROSS(X_5,X_6);
X_20:=EXIST(X_17,X_9) AND EXIST(X_19,X_9) AND EXIST(X_18,X_9) AND X_4>=X_5 AND X_5>=X_6;
X_21:=LOW>REF(HIGH,1);
X_22:=MIN(CLOSE,OPEN)>REF(MAX(CLOSE,OPEN),1);
X_23:=X_16 AND X_20 AND X_21;
X_24:=X_16 AND X_20 AND X_22 AND NOT(X_21);
鳄三线:IF(X_16,IF(X_20,IF(X_21,4,IF(X_22,3,2)),1),0),NODRAW,COLORMAGENTA;
DRAWICON(X_24,LOW,34);
DRAWICON(X_23,LOW,38);
X_25:=NAMELIKE(1) OR NAMELIKE(2);
X_26:=IF(NAMELIKE(3) OR NAMELIKE(4) OR NAMELIKE(5) OR NAMELIKE(6),0,IF(CODELIKE(7),1,2));
X_27:=0.98;
X_28:=0.95;
X_29:=1.02;
X_30:=1.05;
X_31:=IF(X_25,CLOSE>=1.05*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE>=1.1*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000)) AND PERIOD=5;
X_32:=IF(X_25,CLOSE<=0.95*REF(CLOSE,1)+51/IF(CLOSE>=1,10000,100000),CLOSE<=0.9*REF(CLOSE,1)+51/IF(CLOSE>=1,10000,100000)) AND PERIOD=5;
X_33:=IF(X_25,HIGH>=1.05*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),HIGH>=1.1*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000)) AND PERIOD=5;
X_34:=IF(X_25,LOW<=0.95*REF(CLOSE,1)+51/IF(CLOSE>=1,10000,100000),LOW<=0.9*REF(CLOSE,1)+51/IF(CLOSE>=1,10000,100000)) AND PERIOD=5;
X_35:=IF(X_25,CLOSE>=1.025*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE>=1.05*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000));
X_36:=IF(X_25,CLOSE<=0.975*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE<=0.95*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000));
X_37:=IF(X_25,CLOSE>=1.3*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE>=1.5*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000));
X_38:=IF(X_25,CLOSE<=0.7*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE<=0.5*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000));
X_39:=IF(X_25,CLOSE>=1.1*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE>=1.2*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000));
X_40:=IF(X_25,CLOSE<=0.9*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000),CLOSE<=0.8*REF(CLOSE,1)-49/IF(CLOSE>=1,10000,100000));
X_41:=PERIOD=5 AND X_35 OR (PERIOD=6 AND X_39) OR (PERIOD=7 AND X_37);
X_42:=PERIOD=5 AND X_36 OR (PERIOD=6 AND X_40) OR (PERIOD=7 AND X_38);
开幅:(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;
高幅:(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;
低幅:(LOW-REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;
实幅:(CLOSE-OPEN)/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;
振幅:(HIGH-LOW)/REF(CLOSE,1)*100,NODRAW,COLORLIMAGENTA;
流值:FINANCE(7)*CLOSE/100000000,NODRAW,COLORLIBLUE;
总值:FINANCE(1)*CLOSE/100000000,NODRAW,COLORLIBLUE;
报期:FINANCE(37),NODRAW,COLORYELLOW;
收益:FINANCE(38),NODRAW,COLORYELLOW;
同增:FINANCE(43),NODRAW,COLORYELLOW;
STICKLINE(PERIOD=5 AND X_33,HIGH,MAX(CLOSE,OPEN),0.2,0),COLORMAGENTA;
STICKLINE(PERIOD=5 AND X_34,LOW,MIN(CLOSE,OPEN),0.2,0),COLORBLUE;
STICKLINE(X_41,OPEN,CLOSE,0.5,0),COLORRED;
STICKLINE(X_42,OPEN,CLOSE,0.5,0),COLORBROWN;
STICKLINE(PERIOD=5 AND X_31,OPEN,CLOSE,(-1),0),COLORMAGENTA;
STICKLINE(PERIOD=5 AND X_32,OPEN,CLOSE,(-1),0),COLORBLUE;
DRAWTEXT_FIX(1,0,0.05,0,FGBLOCK),COLORGRAY;
DRAWTEXT_FIX(1,0,0,0,HYBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.04,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0,0,GNBLOCK),COLORGREEN;
DRAWTEXT_FIX(1,0.48,0,0,ZDBLOCK),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
该公式包含未来函数:DHIGH
该公式包含未来函数:DLOW
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
沉睡周期赋值:40
沉睡振幅赋值:30
三金叉周期赋值:15
X_1赋值:收盘价>1日前的收盘价
X_2赋值:成交量<1日前的成交量
X_3赋值:X_1 AND X_2
当满足条件X_3 AND 0时,在最低价和38之间画图标
输出MA1:收盘价的5日简单移动平均,画红色
输出MA2:收盘价的8日简单移动平均,画黄色
输出MA3:收盘价的13日简单移动平均, 画蓝色
X_4赋值:收盘价的5日简单移动平均
X_5赋值:收盘价的8日简单移动平均
X_6赋值:收盘价的13日简单移动平均
输出MA60:收盘价的60日简单移动平均,POINTDOT,画绿色
NOTEXT_MA60_1:IF(MA60>=1日前的MA60,MA60,DRAWNULL),DOTLINE,画绿色
X_7赋值:40
X_8赋值:30
X_9赋值:15
X_10:=X_5上穿X_4
X_11:=X_6上穿X_4
X_12:=X_6上穿X_5
X_13:=FIND最低价(最低价,0,X_7,1)
X_14:=FIND最高价(最高价,0,X_7,1)
X_15:=(X_14-X_13)*100/收盘价
X_16:=统计X_7日满足X_10的天数>=2 AND 统计X_7日满足X_11的天数>=2 AND 统计X_7日满足X_12的天数>=2 AND X_15<=X_8
X_17:=X_4上穿X_5
X_18:=X_4上穿X_6
X_19:=X_5上穿X_6
X_20:=最近X_9日存在X_17 AND 最近X_9日存在X_19 AND 最近X_9日存在X_18 AND X_4>=X_5 AND X_5>=X_6
X_21:=最低价>1日前的最高价
X_22:=收盘价和开盘价的较小值>REF(收盘价和开盘价较大值,1)
X_23:=X_16 AND X_20 AND X_21
X_24:=X_16 AND X_20 AND X_22 AND NOT(X_21)
输出鳄三线:IF(X_16,IF(X_20,IF(X_21,4,IF(X_22,3,2)),1),0),NODRAW,画洋红色
当满足条件X_24时,在最低价和34之间画图标
当满足条件X_23时,在最低价和38之间画图标
X_25:=NAMELIKE(1) OR NAMELIKE(2)
X_26:=IF(NAMELIKE(3) OR NAMELIKE(4) OR NAMELIKE(5) OR NAMELIKE(6),0,IF(CODELIKE(7),1,2))
X_27:=0.98
X_28:=0.95
X_29:=1.02
X_30:=1.05
X_31:=IF(X_25,收盘价>=1.05*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价>=1.1*1日前的收盘价-49/IF(收盘价>=1,10000,100000)) AND PERIOD=5
X_32:=IF(X_25,收盘价<=0.95*1日前的收盘价+51/IF(收盘价>=1,10000,100000),收盘价<=0.9*1日前的收盘价+51/IF(收盘价>=1,10000,100000)) AND PERIOD=5
X_33:=IF(X_25,最高价>=1.05*1日前的收盘价-49/IF(收盘价>=1,10000,100000),最高价>=1.1*1日前的收盘价-49/IF(收盘价>=1,10000,100000)) AND PERIOD=5
X_34:=IF(X_25,最低价<=0.95*1日前的收盘价+51/IF(收盘价>=1,10000,100000),最低价<=0.9*1日前的收盘价+51/IF(收盘价>=1,10000,100000)) AND PERIOD=5
X_35:=IF(X_25,收盘价>=1.025*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价>=1.05*1日前的收盘价-49/IF(收盘价>=1,10000,100000))
X_36:=IF(X_25,收盘价<=0.975*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价<=0.95*1日前的收盘价-49/IF(收盘价>=1,10000,100000))
X_37:=IF(X_25,收盘价>=1.3*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价>=1.5*1日前的收盘价-49/IF(收盘价>=1,10000,100000))
X_38:=IF(X_25,收盘价<=0.7*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价<=0.5*1日前的收盘价-49/IF(收盘价>=1,10000,100000))
X_39:=IF(X_25,收盘价>=1.1*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价>=1.2*1日前的收盘价-49/IF(收盘价>=1,10000,100000))
X_40:=IF(X_25,收盘价<=0.9*1日前的收盘价-49/IF(收盘价>=1,10000,100000),收盘价<=0.8*1日前的收盘价-49/IF(收盘价>=1,10000,100000))
X_41:=PERIOD=5 AND X_35 OR (PERIOD=6 AND X_39) OR (PERIOD=7 AND X_37)
X_42:=PERIOD=5 AND X_36 OR (PERIOD=6 AND X_40) OR (PERIOD=7 AND X_38)
输出开幅:(开盘价-1日前的收盘价)/1日前的收盘价*100,NODRAW,画黄色
输出高幅:(最高价-1日前的收盘价)/1日前的收盘价*100,NODRAW,画黄色
输出低幅:(最低价-1日前的收盘价)/1日前的收盘价*100,NODRAW,画黄色
输出实幅:(收盘价-开盘价)/1日前的收盘价*100,NODRAW,画黄色
输出振幅:(最高价-最低价)/1日前的收盘价*100,NODRAW,COLORLIMAGENTA
输出流值:FINANCE(7)*收盘价/100000000,NODRAW,COLORLIBLUE
输出总值:FINANCE(1)*收盘价/100000000,NODRAW,COLORLIBLUE
输出报期:FINANCE(37),NODRAW,画黄色
输出收益:FINANCE(38),NODRAW,画黄色
输出同增:FINANCE(43),NODRAW,画黄色
STICKLINE(PERIOD=5 AND X_33,最高价,收盘价和开盘价较大值,0.2,0),画洋红色
STICKLINE(PERIOD=5 AND X_34,最低价,收盘价和开盘价的较小值,0.2,0), 画蓝色
当满足条件X_41时,在开盘价和收盘价之间画柱状线
当满足条件X_42时,在开盘价和收盘价之间画柱状线
STICKLINE(PERIOD=5 AND X_31,开盘价,收盘价,(-1),0),画洋红色
STICKLINE(PERIOD=5 AND X_32,开盘价,收盘价,(-1),0), 画蓝色
当满足条件1时,在横轴0纵轴0.05位置书写文字
当满足条件1时,在横轴0纵轴0位置书写文字
当满足条件1时,在横轴0.04纵轴0位置书写文字
当满足条件1时,在横轴0.08纵轴0位置书写文字
当满足条件1时,在横轴0.48纵轴0位置书写文字