通达信LSTM精准分时主图分时指标 值得珍藏的追涨做短线T神器!

{LSTM精准分时主图源码如下}

{}
{实时价格变化 通达信公式}
NE:=IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1);{适用ST股}
涨停价:=ZTPRICE(DYNAINFO(3),NE);
跌停价:=DTPRICE(DYNAINFO(3),NE);

{分时线 涨跌停变色}
IF(PERIOD=0 AND CLOSE=涨停价,CLOSE,DRAWNULL),LINETHICK2,COLORFF00B5;
IF(PERIOD=0 AND CLOSE=跌停价,CLOSE,DRAWNULL),LINETHICK2,COLOR00BB00;

{涨幅值 适用分时重播}
涨幅值:=IF(C=DYNAINFO(3),CON2STR(0,2),IF(C>DYNAINFO(3),CON2STR((C-DYNAINFO(3))/DYNAINFO(3)*100,2),CON2STR((DYNAINFO(3)-C)/DYNAINFO(3)*100,2)));

动态图标:=IF(涨停价=C,STRCAT(CON2STR(C,2),'★ '),IF(C=REF(C,1),STRCAT(CON2STR(C,2),'◆ '),IF(C>REF(C,1),STRCAT(CON2STR(C,2),'▲ '),STRCAT(CON2STR(C,2),'▼ '))));
价格变化:=STRCAT(STRCAT(' ',动态图标),STRCAT(涨幅值,'%'));

成交量:=IF(DYNAINFO(8)>99999999,STRCAT(CON2STR(DYNAINFO(8)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(8)/10000,0),'万'));
DRAWTEXT_FIX(1,0.25,0,0,STRCAT('成交量: ',成交量)),COLORFFFFFF;

成交额:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(1,0.37,0,0,STRCAT('成交额: ',成交额)),{COLORF4E202}COLORFFFFFF;

{文字图标 动态跟随}
DRAWTEXT(ISLASTBAR,C*IF(DYNAINFO(3)>C,0.9973,1.0027),'');{扩显字符}
DRAWTEXT(ISLASTBAR AND C>DYNAINFO(3) ,C*1,价格变化),COLOR3333FF;{涨幅区}
DRAWTEXT(ISLASTBAR AND C=DYNAINFO(3) ,C*1,价格变化),COLORWHITE;{零轴区}
DRAWTEXT(ISLASTBAR AND C<DYNAINFO(3) ,C*1,价格变化),COLOR42C800;{跌幅区};

DRAWTEXT_FIX(ISLASTBAR,0.01,0.95,0,HYBLOCK),COLOR00CCCC;
DRAWTEXT_FIX(ISLASTBAR,0.09,0.95,0,DYBLOCK),COLOR00CCCC;
DRAWTEXT_FIX(ISLASTBAR,0.18,0.95,0,GNBLOCK),COLOR00CCCC;

{N1:=5;
NN:=MIN(BARSCOUNT(C),N1);
FF:=(C-REF(C,NN))/REF(C,NN);
STICKLINE(FF>0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORRED;
STICKLINE(FF<0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORGREEN;
C,COLORWHITE;}

DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);
DEA:=EMA(DIF,9);
MACD1:=10*(DIF-DEA);
MACD2:=EMA(MACD1,2);
STICKLINE(MACD1>=MACD2 AND MACD1>=0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORCCCCFF;
STICKLINE(MACD1<MACD2 AND MACD1>0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORLICYAN;
STICKLINE(MACD1<MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORLIGREEN;
STICKLINE(MACD1>=MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORLIGRAY;

C,COLORWHITE;

N:=15;
X_1:=CLOSE;
X_2:=ZSTJJ;
J3:=SUM(CLOSE*VOL,240)/SUM(VOL,240),COLORYELLOW,LINETHICK2;
X_3:=REF(CLOSE,1);
X_4:=SMA(MAX(CLOSE-X_3,0),14,1)/SMA(ABS(CLOSE-X_3),14,1)*100;
X_5:=CROSS(80,X_4);
X_6:=FILTER(X_5,40) AND CLOSE/X_2>1.03;
{DRAWICON(X_6,REF(CLOSE*1.01,1),41);}
X_7:=CROSS(X_4,20);
X_8:=FILTER(X_7,40) AND CLOSE/X_2<0.97;
{DRAWICON(X_8,CLOSE*0.997,7);}
X_9:=CLOSE>REF(CLOSE,1) AND CLOSE/X_2>1+N/1000;
X_10:=CLOSE<REF(CLOSE,1) AND CLOSE/X_2<1-N/1000;
X_11:=CROSS(SUM(X_9,0),0.5);
X_12:=CROSS(SUM(X_10,0),0.5);
X_13:=SUM(X_11,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_11)),0.5);
X_14:=SUM(X_12,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_12)),0.5);
X1:=CONST(SUM(IF(X_13,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORYELLOW;
Z1:=CONST(SUM(IF(X_14,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORGREEN;
X_15:=CROSS(SUM(X_9 AND CLOSE>X1*(1+2/100),0),0.5);
X_16:=CROSS(SUM(X_10 AND CLOSE<Z1*(1-2/100),0),0.5);
X_17:=SUM(X_15,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_15)),0.5);
X_18:=SUM(X_16,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_16)),0.5);
X2:=CONST(SUM(IF(X_17,REF(CLOSE,1),DRAWNULL),0)),COLORYELLOW;
Z2:=CONST(SUM(IF(X_18,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;

DRAWICON(X_14,REF(CLOSE*0.999,1),38);
{DRAWICON(X_13,REF(CLOSE*1.001,1),2);}
DRAWICON(X_18,REF(CLOSE*0.998,1),38);
DRAWICON(X_17,REF(CLOSE*1.002,1),39);
X_19:=CLOSE>REF(CLOSE,1) AND CLOSE>X_2*(1+3/100);
X_20:=CLOSE<REF(CLOSE,1) AND CLOSE<X_2*(1-3/100);
X_21:=CROSS(SUM(X_19,0),0.5);
X_22:=CROSS(SUM(X_20,0),0.5);
X_23:=SUM(X_21,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_21)),0.5);
X_24:=SUM(X_22,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_22)),0.5);
X_25:=CONST(SUM(IF(X_23,REF(CLOSE,1),DRAWNULL),0));
X_26:=CONST(SUM(IF(X_24,REF(CLOSE,1),DRAWNULL),0));
X_27:=CROSS(SUM(X_19 AND CLOSE>X_25*(1+3/100),0),0.5);
X_28:=CROSS(SUM(X_20 AND CLOSE<X_26*(1-3/100),0),0.5);
X_29:=SUM(X_27,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_27)),0.5);
X_30:=SUM(X_28,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_28)),0.5);
DRAWICON(X_29,CLOSE*1.003,27);
DRAWICON(X_30,CLOSE*0.997,26);

{}
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);
底:=1;1.02,NODRAW;高:=1.03;
AA:=主力>大户 AND 主力>1.003 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60);
DRAWICON(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C,9);
{DRAWTEXT(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C*0.999,'-庄家来了'),COLORFFFF00;}
{DRAWICON(CROSS(主力,1.02),C,14);}
XG:HHV(H,480),DOTLINE,COLORRED;

{星期:=WEEKDAY,NODRAW;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本周第几天:=BARSLAST(ZB)+1;
MA1:=REF(C,本周第几天);
MA2:=REF(MA1,本周第几天);
MA3:=REF(MA2,本周第几天);
MA4:=REF(MA3,本周第几天);
MA5:=REF(MA4,本周第几天);
MA6:=REF(MA5,本周第几天);
MA7:=REF(MA6,本周第几天);
MA8:=REF(MA7,本周第几天);
MA9:=REF(MA8,本周第几天);
十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10;

决策:REFDATE(十周价,DATE),COLOREE8FFF,LINETHICK2;
DRAWTEXT(ISLASTBAR,决策,' 决策线'),COLOR5B5BFF;
SUM(AMOUNT,0)/SUM(VOL,0)/100 ,LINETHICK1,COLORYELLOW;
DRAWICON(CROSS(C,决策),C,1);
D11:=YEAR AND MONTH AND DAY;
MM1:=STRCAT(CON2STR(YEAR,0),'年');
MM2:=STRCAT(CON2STR(MONTH,0),'月');
MM3:=STRCAT(CON2STR(DAY,0),'日');
MM4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
MM:=STRCAT(STRCAT(STRCAT(MM1,MM2),STRCAT(MM3,MM4)),'】');
DRAWTEXT_FIX(D11,0,0.8.62,0,MM),COLOR5555FF;}
{股价支撑线:=MA(CLOSE,20),COLORGREEN;
底价线:股价支撑线-2*STD(CLOSE,20),COLOR5555FF,LINETHICK3;}

实量:=SUM(VOL,FROMOPEN);
虚拟量:=实量/240*FROMOPEN;
SZB:=实量/10000;
XZB:=虚拟量/10000;
大单买:=SUM(IF(CLOSE>=REF(CLOSE,1) AND VOL*C/100/8>=25,VOL,0),FROMOPEN);
大单卖:=SUM(IF(CLOSE<REF(CLOSE,1) AND VOL*C/100/8>=25,VOL,0),FROMOPEN);
ZB1:=大单买/实量*100;
ZB2:=大单卖/实量*100;
DRAWRECTREL(919,CONST(100-ZB1)*1000/100,939,1000,RGB(200,50,0));
DRAWRECTREL(939,CONST(100-ZB2)*1000/100,959,1000,RGB(0,204,0));
DRAWTEXT_FIX(1,0.77,0.65,0,STRCAT(STRCAT('【大单买】',CON2STR(ZB1,2)),'%')),COLOR0032FF;
DRAWTEXT_FIX(1,0.77,0.75,0,STRCAT(STRCAT('【大单卖】',CON2STR(ZB2,2)),'%')),COLORGREEN;
小单买:=SUM(IF(CLOSE>=REF(CLOSE,1) AND VOL*C/100/8<25,VOL,0),FROMOPEN);
小单卖:=SUM(IF(CLOSE<REF(CLOSE,1) AND VOL*C/100/8<25,VOL,0),FROMOPEN);
ZB3:=小单买/实量*100;
ZB4:=小单卖/实量*100;
DRAWRECTREL(959,CONST(100-ZB3)*1000/100,979,1000,90);
DRAWRECTREL(979,CONST(100-ZB4)*1000/100,999,1000,RGB(100,100,100));
DRAWTEXT_FIX(1,0.77,0.85,0,STRCAT(STRCAT('【小单买】',CON2STR(ZB3,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.77,0.95,0,STRCAT(STRCAT('【小单卖】',CON2STR(ZB4,2)),'%')),COLORFFCC00;

M1Q:=FSYY.T1#DAY/100;
MHS:=FSYY.HS#DAY;
MHST:=FSYY.HST#DAY;
QHST:=FSYY.HST2#DAY;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.65,0,STRCAT('换手率: ',CON2STR(MHS,2))),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.75,0,STRCAT('昨换手: ',CON2STR(MHST,2))),COLORLIRED;
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.75,0,STRCAT('前天: ',CON2STR(QHST,2))),COLOR0080FF;}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.85,0,STRCAT('量比: ',CON2STR(DYNAINFO(17),2))),COLOR00CCFF;
DRAWTEXT_FIX(1,0.65,0.95,0,STRCAT('均价:',CON2STR(SUM(V*C,0)/SUM(V,0),2))),COLORYELLOW;




{LSTM精准分时副图源码如下}


X_1:=IF(AMOUNT>=FINANCE(40)*0.05/100 AND DCLOSE>=DOPEN,AMOUNT/10000,0);
X_2:=IF(AMOUNT>=FINANCE(40)*0.05/100 AND DCLOSE<=DOPEN,AMOUNT/10000,0);
X_3:=IF(AMOUNT>=FINANCE(40)*0.025/100 AND AMOUNT<FINANCE(40)*0.05/100 AND DCLOSE>=DOPEN,AMOUNT/10000,0);
X_4:=IF(AMOUNT>=FINANCE(40)*0.025/100 AND AMOUNT<FINANCE(40)*0.05/100 AND DCLOSE<=DOPEN,AMOUNT/10000,0);
X_5:=IF(AMOUNT>=FINANCE(40)*0.005/100 AND AMOUNT<FINANCE(40)*0.025/100 AND DCLOSE>=DOPEN,AMOUNT/10000,0);
X_6:=IF(AMOUNT>=FINANCE(40)*0.005/100 AND AMOUNT<FINANCE(40)*0.025/100 AND DCLOSE<=DOPEN,AMOUNT/10000,0);
X_7:=IF(AMOUNT<FINANCE(40)*0.005/100 AND DCLOSE>=DOPEN,AMOUNT/10000,0);
X_8:=IF(AMOUNT<FINANCE(40)*0.005/100 AND DCLOSE<=DOPEN,AMOUNT/10000,0);
X_9:=SUM(X_1,0)-SUM(X_2,0)+(SUM(X_3,0)-SUM(X_4,0))+(SUM(X_5,0)-SUM(X_6,0))+(SUM(X_7,0)-SUM(X_8,0));
X_10:=X_9;
X_11:=SUM(X_1,0)-SUM(X_2,0)+(SUM(X_3,0)-SUM(X_4,0));
X_12:=SUM(X_7,0)-SUM(X_8,0);
X_13:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),(-VOL)/CAPITAL*100,0)),0);
X_14:=VOL*CLOSE/100;
X_15:=SUM(IF(X_14/8>20 AND CLOSE>REF(CLOSE,1),X_14,0),0);
X_16:=SUM(IF(X_14/8>20 AND CLOSE<REF(CLOSE,1),X_14,0),0);
X_17:=SUM(IF(X_14/8<20 AND CLOSE>REF(CLOSE,1),X_14,0),0);
X_18:=SUM(IF(X_14/8<20 AND CLOSE<REF(CLOSE,1),X_14,0),0);
X_19:=X_15+X_16+X_17+X_18;
X_20:=IF(ISLASTBAR,100*X_15/X_19,0);
X_21:=IF(ISLASTBAR,100*X_16/X_19,0);
X_22:=IF(ISLASTBAR,100*X_17/X_19,0);
X_23:=IF(ISLASTBAR,100*X_18/X_19,0);
X_24:=X_15;
X_25:=X_16;
{机:超+大,NODRAW,COLORRED;}
趋势:X_24-X_25,COLOR3300FF,LINETHICK3;
超:SUM(X_1,0)-SUM(X_2,0),COLORYELLOW;
大:SUM(X_3,0)-SUM(X_4,0),COLORCC00FF;
中:SUM(X_5,0)-SUM(X_6,0),COLORGREEN;
净:超+大+中,NODRAW,COLOR00CCCC;
动能:X_1+X_2+X_3+X_4+X_5+X_6,NODRAW,COLORWHITE;



{FSYY分时引用副图源码如下 此公式名一定要用FSYY}


{FSYY}
T1:REF(MA(V,5),1);
HS:V/CAPITAL*100;
HST:REF(V/CAPITAL*100,1);
HST2:REF(V/CAPITAL*100,2);



未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:DOPEN
该公式包含未来函数:DCLOSE

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

{LSTM精准分时主图源码如下}{}{实时价格变化 通达信公式}NE赋值:IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1)
{适用ST股}涨停价赋值:ZTPRICE(DYNAINFO(3),NE)
跌停价赋值:DTPRICE(DYNAINFO(3),NE)
如果周期类型=0 AND 收盘价=涨停价返回收盘价否则返回DRAWNULL
如果周期类型=0 AND 收盘价=跌停价返回收盘价否则返回DRAWNULL
{涨幅值 适用分时重播}涨幅值赋值:IF(C=DYNAINFO(3),CON2STR(0,2),IF(C>DYNAINFO(3),CON2STR((C-DYNAINFO(3))/DYNAINFO(3)*100,2),CON2STR((DYNAINFO(3)-C)/DYNAINFO(3)*100,2)))
动态图标赋值:IF(涨停价=C,STRCAT(CON2STR(C,2),'★ '),IF(C=1日前的C,STRCAT(CON2STR(C,2),'◆ '),IF(C>1日前的C,STRCAT(CON2STR(C,2),'▲ '),STRCAT(CON2STR(C,2),'▼ '))))
价格变化赋值:STRCAT(STRCAT(' ',动态图标),STRCAT(涨幅值,'%'))
成交量赋值:IF(DYNAINFO(8)>99999999,STRCAT(CON2STR(DYNAINFO(8)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(8)/10000,0),'万'))
DRAWTEXT_FIX(1,0.25,0,0,STRCAT('输出成交量: ',成交量)),COLORFFFFFF
成交额赋值:IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'))
DRAWTEXT_FIX(1,0.37,0,0,STRCAT('输出成交额: ',成交额)),{COLORF4E202}COLORFFFFFF
{文字图标 动态跟随}DRAWTEXT(ISLASTBAR,C*IF(DYNAINFO(3)>C,0.9973,1.0027),'')
{扩显字符}DRAWTEXT(ISLASTBAR AND C>DYNAINFO(3) ,C*1,价格变化),COLOR3333FF
{涨幅区}DRAWTEXT(ISLASTBAR AND C=DYNAINFO(3) ,C*1,价格变化),画白色
{零轴区}DRAWTEXT(ISLASTBAR AND C{跌幅区}
当满足条件ISLASTBAR时,在横轴0.01纵轴0.95位置书写文字
当满足条件ISLASTBAR时,在横轴0.09纵轴0.95位置书写文字
当满足条件ISLASTBAR时,在横轴0.18纵轴0.95位置书写文字
{N1赋值:5
NN赋值:MIN(C的有效数据周期数,N1)
FF赋值:(C-NN日前的C)/NN日前的C
STICKLINE(FF>0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),画红色
STICKLINE(FF<0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORGREEN
C,画白色
}DIF赋值:(收盘价的12日指数移动平均-收盘价的26日指数移动平均)+DYNAINFO(3)
DEA赋值:DIF的9日指数移动平均
MACD1赋值:10*(DIF-DEA)
MACD2赋值:MACD1的2日指数移动平均
STICKLINE(MACD1>=MACD2 AND MACD1>=0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORCCCCFF
STICKLINE(MACD10,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORLICYAN
STICKLINE(MACD1STICKLINE(MACD1>=MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLORLIGRAY
C,画白色
N赋值:15
X_1赋值:收盘价
X_2赋值:ZSTJJ
J3赋值:240的收盘价*成交量日累和/240的成交量日累和,画黄色,LINETHICK2
X_3赋值:1日前的收盘价
X_4赋值:SMA(收盘价-X_3和0较大值,14,1)/SMA(收盘价-X_3的绝对值,14,1)*100
X_5赋值:80上穿X_4
X_6赋值:X_5的40过滤 AND 收盘价/X_2>1.03
{DRAWICON(X_6,1日前的收盘价*1.01,41)
}X_7赋值:X_4上穿20
X_8赋值:X_7的40过滤 AND 收盘价/X_2<0.97
当满足条件X_8时,在收盘价*0.997和7之间画图标
}X_9赋值:收盘价>1日前的收盘价 AND 收盘价/X_2>1+N/1000
X_10:=收盘价<1日前的收盘价 AND 收盘价/X_2<1-N/1000
X_11:=CROSS(0的X_9日累和,0.5)
X_12:=CROSS(0的X_10日累和,0.5)
X_13:=0的X_11日累和*CROSS(COUNT(收盘价<1日前的收盘价,上次X_11距今天数),0.5)
X_14:=0的X_12日累和*CROSS(COUNT(收盘价>1日前的收盘价,上次X_12距今天数),0.5)
X1赋值:CONST(SUM(IF(X_13,1日前的收盘价,DRAWNULL),0)),DOTLINE,画黄色
Z1赋值:CONST(SUM(IF(X_14,1日前的收盘价,DRAWNULL),0)),DOTLINE,COLORGREEN
X_15:=CROSS(SUM(X_9 AND 收盘价>X1*(1+2/100),0),0.5)
X_16:=CROSS(SUM(X_10 AND 收盘价X_17:=0的X_15日累和*CROSS(COUNT(收盘价<1日前的收盘价,上次X_15距今天数),0.5)
X_18:=0的X_16日累和*CROSS(COUNT(收盘价>1日前的收盘价,上次X_16距今天数),0.5)
X2赋值:CONST(SUM(IF(X_17,1日前的收盘价,DRAWNULL),0)),画黄色
Z2赋值:CONST(SUM(IF(X_18,1日前的收盘价,DRAWNULL),0)),COLORGREEN
DRAWICON(X_14,1日前的收盘价*0.999,38)
{DRAWICON(X_13,1日前的收盘价*1.001,2)
}DRAWICON(X_18,1日前的收盘价*0.998,38)
DRAWICON(X_17,1日前的收盘价*1.002,39)
X_19:=收盘价>1日前的收盘价 AND 收盘价>X_2*(1+3/100)
X_20:=收盘价<1日前的收盘价 AND 收盘价X_21:=CROSS(0的X_19日累和,0.5)
X_22:=CROSS(0的X_20日累和,0.5)
X_23:=0的X_21日累和*CROSS(COUNT(收盘价<1日前的收盘价,上次X_21距今天数),0.5)
X_24:=0的X_22日累和*CROSS(COUNT(收盘价>1日前的收盘价,上次X_22距今天数),0.5)
X_25:=CONST(SUM(IF(X_23,1日前的收盘价,DRAWNULL),0))
X_26:=CONST(SUM(IF(X_24,1日前的收盘价,DRAWNULL),0))
X_27:=CROSS(SUM(X_19 AND 收盘价>X_25*(1+3/100),0),0.5)
X_28:=CROSS(SUM(X_20 AND 收盘价X_29:=0的X_27日累和*CROSS(COUNT(收盘价<1日前的收盘价,上次X_27距今天数),0.5)
X_30:=0的X_28日累和*CROSS(COUNT(收盘价>1日前的收盘价,上次X_28距今天数),0.5)
当满足条件X_29时,在收盘价*1.003和27之间画图标
当满足条件X_30时,在收盘价*0.997和26之间画图标
{}XX赋值:SUM(AMOUNT,收盘价的有效数据周期数)/SUM(V*100,收盘价的有效数据周期数)
主力赋值:收盘价/XX的20日指数移动平均
大户赋值:收盘价/XX的60日指数移动平均
散户赋值:收盘价/XX的120日指数移动平均
底赋值:1
1.02,NODRAW
高赋值:1.03
AA赋值:主力>大户 AND 主力>1.003 AND 大户>散户 AND C>C的20日指数移动平均 AND C的10日指数移动平均>C的20日指数移动平均 AND C的20日指数移动平均>C的60日指数移动平均
DRAWICON(主力>大户 AND 大户>散户 AND C>C的20日指数移动平均 AND C的10日指数移动平均>C的20日指数移动平均 AND C的20日指数移动平均>C的60日指数移动平均 AND 主力=30日内主力最高值 AND 主力上穿1.003,C,9)
{DRAWTEXT(主力>大户 AND 大户>散户 AND C>C的20日指数移动平均 AND C的10日指数移动平均>C的20日指数移动平均 AND C的20日指数移动平均>C的60日指数移动平均 AND 主力=30日内主力最高值 AND 主力上穿1.003,C*0.999,'-庄家来了'),COLORFFFF00
}{DRAWICON(主力上穿1.02,C,14)
输出}XG:480日内H最高值,DOTLINE,画红色
{星期赋值:WEEKDAY,NODRAW
日1赋值:日期TODAY(日期)
上市日赋值:TOTALBARSCOUNT-CURRBARSCOUNT日前的日期
自然日赋值:日1-日期TODAY(上市日)+1
ZB赋值:(自然日-1日前的自然日)!=星期-1日前的星期OR TOTALBARSCOUNT-CURRBARSCOUNT=0
本周第几天赋值:上次ZB距今天数+1
MA1赋值:本周第几天日前的C
MA2赋值:本周第几天日前的MA1
MA3赋值:本周第几天日前的MA2
MA4赋值:本周第几天日前的MA3
MA5赋值:本周第几天日前的MA4
MA6赋值:本周第几天日前的MA5
MA7赋值:本周第几天日前的MA6
MA8赋值:本周第几天日前的MA7
MA9赋值:本周第几天日前的MA8
十周价赋值:(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10
输出决策:日期REF日期十周价日,COLOREE8FFF,LINETHICK2
当满足条件ISLASTBAR时,在决策和' 决策线'位置书写文字
0的AMOUNT日累和/0的成交量日累和/100 ,LINETHICK1,画黄色
DRAWICON(C上穿决策,C,1)
D11赋值:YEAR AND MONTH AND DAY
MM1赋值:STRCAT(CON2STR(YEAR,0),'年')
MM2赋值:STRCAT(CON2STR(MONTH,0),'月')
MM3赋值:STRCAT(CON2STR(DAY,0),'日')
MM4赋值:STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))))
MM赋值:STRCAT(STRCAT(STRCAT(MM1,MM2),STRCAT(MM3,MM4)),'】')
当满足条件D11时,在横轴0纵轴0.8.62位置书写文字
} {股价支撑线赋值:收盘价的20日简单移动平均,COLORGREEN
底价线:股价支撑线-2*收盘价的20估算标准差,COLOR5555FF,LINETHICK3
}实量赋值:FROMOPEN的成交量日累和
虚拟量赋值:实量/240*FROMOPEN
SZB赋值:实量/10000
XZB赋值:虚拟量/10000
大单买赋值:SUM(IF(收盘价>=1日前的收盘价 AND 成交量*C/100/8>=25,成交量,0),FROMOPEN)
大单卖赋值:SUM(IF(收盘价<1日前的收盘价 AND 成交量*C/100/8>=25,成交量,0),FROMOPEN)
ZB1:=大单买/实量*100
ZB2:=大单卖/实量*100
DRAWRECTREL(919,CONST(100-ZB1)*1000/100,939,1000,RGB(200,50,0))
DRAWRECTREL(939,CONST(100-ZB2)*1000/100,959,1000,RGB(0,204,0))
DRAWTEXT_FIX(1,0.77,0.65,0,STRCAT(STRCAT('【大单买】',CON2STR(ZB1,2)),'%')),COLOR0032FF
DRAWTEXT_FIX(1,0.77,0.75,0,STRCAT(STRCAT('【大单卖】',CON2STR(ZB2,2)),'%')),COLORGREEN
小单买赋值:SUM(IF(收盘价>=1日前的收盘价 AND 成交量*C/100/8<25,成交量,0),FROMOPEN)
小单卖赋值:SUM(IF(收盘价<1日前的收盘价 AND 成交量*C/100/8<25,成交量,0),FROMOPEN)
ZB3:=小单买/实量*100
ZB4:=小单卖/实量*100
DRAWRECTREL(959,CONST(100-ZB3)*1000/100,979,1000,90)
DRAWRECTREL(979,CONST(100-ZB4)*1000/100,999,1000,RGB(100,100,100))
DRAWTEXT_FIX(1,0.77,0.85,0,STRCAT(STRCAT('【小单买】',CON2STR(ZB3,2)),'%')),画黄色
DRAWTEXT_FIX(1,0.77,0.95,0,STRCAT(STRCAT('【小单卖】',CON2STR(ZB4,2)),'%')),COLORFFCC00
M1Q赋值:FSYY.T1#DAY/100
MHS赋值:FSYY.HS#DAY
MHST:=FSYY.HST#DAY
QHST赋值:FSYY.HST2#DAY
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.65,0,STRCAT('换手率: ',CON2STR(MHS,2))),COLORFFFFFF
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.75,0,STRCAT('昨换手: ',CON2STR(MHST,2))),COLORLIRED
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.75,0,STRCAT('前天: ',CON2STR(QHST,2))),COLOR0080FF
}DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.85,0,STRCAT('量比: ',CON2STR(DYNAINFO(17),2))),COLOR00CCFF
输出DRAWTEXT_FIX(1,0.65,0.95,0,STRCAT('均价:',CON2STR(0的V*C日累和/0的V日累和,2))),画黄色
{LSTM精准分时副图源码如下}X_1赋值:IF(AMOUNT>=FINANCE(40)*0.05/100 AND D收盘价>=DOPEN,AMOUNT/10000,0)
X_2赋值:IF(AMOUNT>=FINANCE(40)*0.05/100 AND D收盘价<=DOPEN,AMOUNT/10000,0)
X_3赋值:IF(AMOUNT>=FINANCE(40)*0.025/100 AND AMOUNT=DOPEN,AMOUNT/10000,0)
X_4赋值:IF(AMOUNT>=FINANCE(40)*0.025/100 AND AMOUNTX_5赋值:IF(AMOUNT>=FINANCE(40)*0.005/100 AND AMOUNT=DOPEN,AMOUNT/10000,0)
X_6赋值:IF(AMOUNT>=FINANCE(40)*0.005/100 AND AMOUNTX_7赋值:IF(AMOUNT=DOPEN,AMOUNT/10000,0)
X_8赋值:IF(AMOUNTX_9赋值:0的X_1日累和-0的X_2日累和+(0的X_3日累和-0的X_4日累和)+(0的X_5日累和-0的X_6日累和)+(0的X_7日累和-0的X_8日累和)
X_10:=X_9
X_11:=0的X_1日累和-0的X_2日累和+(0的X_3日累和-0的X_4日累和)
X_12:=0的X_7日累和-0的X_8日累和
X_13:=SUM(IF(收盘价>1日前的收盘价,成交量/当前流通股本*100,IF(收盘价<1日前的收盘价,(-成交量)/当前流通股本*100,0)),0)
X_14:=成交量*收盘价/100
X_15:=SUM(IF(X_14/8>20 AND 收盘价>1日前的收盘价,X_14,0),0)
X_16:=SUM(IF(X_14/8>20 AND 收盘价<1日前的收盘价,X_14,0),0)
X_17:=SUM(IF(X_14/8<20 AND 收盘价>1日前的收盘价,X_14,0),0)
X_18:=SUM(IF(X_14/8<20 AND 收盘价<1日前的收盘价,X_14,0),0)
X_19:=X_15+X_16+X_17+X_18
如果ISLASTBAR返回100*X_15/X_19否则返回0
如果ISLASTBAR返回100*X_16/X_19否则返回0
如果ISLASTBAR返回100*X_17/X_19否则返回0
如果ISLASTBAR返回100*X_18/X_19否则返回0
X_24:=X_15
X_25:=X_16
输出{机:超+大,NODRAW,画红色
输出}趋势:X_24-X_25,COLOR3300FF,LINETHICK3
输出超:0的X_1日累和-0的X_2日累和,画黄色
输出大:0的X_3日累和-0的X_4日累和,COLORCC00FF
输出中:0的X_5日累和-0的X_6日累和,COLORGREEN
输出净:超+大+中,NODRAW,COLOR00CCCC
输出动能:X_1+X_2+X_3+X_4+X_5+X_6,NODRAW,画白色
{FSYY分时引用副图源码如下 此公式名一定要用FSYY}{FSYY}T1:REF(V的5日简单移动平均,1)
输出HS:V/当前流通股本*100
HST:1日前的V/当前流通股本*100
HST2:2日前的V/当前流通股本*100

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图