驭龙排序V2019通达信排序指标和谐源码分享通达信公式 副图 源码附图
VAR1:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
VAR2:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
VAR3:=EMA(VAR1,5);
VAR4:=EMA(VAR2,5);
VAR5:=VAR3-REF(VAR3,1);
VAR6:=VAR4-REF(VAR4,1);
VAR7:=IF(VAR5-VAR6>0,(VAR5-VAR6)*5,0);
VAR8:=VAR7-REF(VAR7,1);
VAR9:=1991230;
VAR10:=1991229;
VAR11:=IF(1>VAR10,IF(CLOSE<80,1,0),0);
VAR12:=IF(1>VAR10,1,VAR11);
VAR13:=IF(1<1991230,SMA((CLOSE-REF(CLOSE,1))*VOL,3,1)/10000,0);
VAR14:=EMA(VAR13,12)-EMA(VAR13,26);
VAR15:=EMA(VAR14,9);
VAR16:=(VAR14-VAR15)*2;
{股票指标网 整理}
VAR17:=HHVBARS(VAR16,BARSLAST(VAR16<0)+1);
VAR18:=CROSS(BACKSET(CROSS(0,VAR16),REF(VAR17,1)+2),0.5);
VAR19:=DRAWLINE(VAR18,VAR16,REF(VAR18,1),REF(VAR16,1),1);
VAR20:=VAR16>VAR19 AND VAR16>=REF(VAR16,1);
VAR21:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH;
VAR22:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH;
VAR23:=BARSSINCE(CLOSE)<1 OR (BARSSINCE(CLOSE)<34 AND VAR21=1);
VAR24:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW<HIGH;
VAR25:=HIGH>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE<HIGH;
VAR26:=1+3*VAR24+1*VAR21+0.2*VAR25;
VAR27:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR28:=VAR27*VAR26;
VAR29:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR30:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR31:=IF(CLOSE>OPEN,VAR29*(HIGH-LOW),IF(CLOSE<OPEN,VAR29*(HIGH-OPEN+(CLOSE-LOW)),IF(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),VOL*0.7,VOL*0.3)));
VAR32:=IF(CLOSE>OPEN,VAR29*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,VAR29*(HIGH-LOW),IF(CLOSE=OPEN AND CLOSE<REF(CLOSE,1),VOL*0.7,VOL*0.3)));
VAR33:=IF(CLOSE>OPEN,VAR30*(HIGH-LOW),IF(CLOSE<OPEN,VAR30*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
VAR34:=SUM((VAR31-VAR32)/CAPITAL,1)*1000;
VAR35:=VOL/10000;
VAR36:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
VAR37:=MOD(FROMOPEN,VAR36);
VAR38:=IF(VAR37<0.5,VAR36,VAR37);
VAR39:=IF(CURRBARSCOUNT=1 AND PERIOD<=5 AND DYNAINFO(8)>1,VOL*VAR36/VAR38/10000,DRAWNULL);
VAR40:=IF(CURRBARSCOUNT=1 AND PERIOD<=5,VAR39,VAR35);
VAR41:=VAR40/REF(MA(VAR40,5),1);
VAR42:=IF(VAR41>30,1,IF(VAR41>3 AND VAR41<=30,33,IF(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND VAR41<=2,VAR41*20,VAR41)));
VAR43:=IF(CLOSE>=REF(CLOSE,1) AND VAR41>3,33,IF(CLOSE<REF(CLOSE,1) AND VAR41>3,0,IF(CLOSE>=REF(CLOSE,1) AND VAR41<=3,VAR41*10,VAR41)));
VAR44:=1;
VAR45:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR44;
VAR46:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR47:=EMA(VAR46,30)*VAR44;
VAR48:=2*(VAR46-VAR47)*10*VAR44;
VAR49:=POW(VAR48,3)*0.1+POW(VAR48,2)*VAR44;
VAR50:=IF(VAR48>0.015,VAR49,0)/45*VAR44;
VAR51:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR52:=VAR16-REF(VAR16,1);
VAR53:=DYNAINFO(4)>0;
VAR54:=EXIST(ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.052,20) AND EXIST(CLOSE/REF(CLOSE,1)>1.15,2)!=1;
VAR55:=FINANCE(40)<300*100000000 AND FINANCE(7)<=20*100000000;
VAR56:=VAR54 AND VAR53 AND VAR23!=1 AND AMOUNT/10000>1000;
VAR57:=COUNT(HIGH/REF(CLOSE,1)>=1.081,5)>=2 AND CLOSE>=OPEN;
VAR58:=VAR12;
VAR59:=INDEXADV/(INDEXADV+INDEXDEC)*100;
VAR60:=VAR59>85 OR REF(VAR59,1)>85;
VAR61:=INDEXC-MA(INDEXC,7);
VAR62:=(HHV(VAR61,60)-0)*60/100;
{股票指标网 整理}
VAR63:=VAR61>VAR62;
VAR64:=VAR60=1 OR VAR63=1;
VAR65:=IF(0=1,VAR64,0);
VAR66:=CLOSE>=OPEN;
VAR67:=(CLOSE-VAR51)/VAR51*100*2;
VAR68:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
连板:BARSLASTCOUNT(VAR68);
竞价:IF(FROMOPEN<=5 AND VAR65!=1 AND VAR56 AND VAR55 AND VAR57 AND VAR66 AND VAR20=1,(VAR34+VAR8*3+VAR28+VAR43+VAR52*5+VAR67)*3,0)*1.38,NODRAW,COLORYELLOW;
飞龙:IF(FROMOPEN>5 AND VAR65!=1 AND VAR56 AND VAR55 AND VAR57 AND VAR66 AND VAR20=1,(VAR34+VAR8*3+VAR28+VAR42+VAR52*5+VAR67)*3,0)*1.38,NODRAW,COLORMAGENTA;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(收盘价的12日指数移动平均/收盘价的26日指数移动平均-1)*1000
VAR2赋值:(INDEXC的12日指数移动平均/INDEXC的26日指数移动平均-1)*1000
VAR3赋值:VAR1的5日指数移动平均
VAR4赋值:VAR2的5日指数移动平均
VAR5赋值:VAR3-1日前的VAR3
VAR6赋值:VAR4-1日前的VAR4
VAR7赋值:IF(VAR5-VAR6>0,(VAR5-VAR6)*5,0)
VAR8赋值:VAR7-1日前的VAR7
VAR9赋值:1991230
VAR10:=1991229
VAR11:=IF(1>VAR10,IF(收盘价<80,1,0),0)
如果1>VAR10返回1否则返回VAR11
VAR13:=IF(1<1991230,SMA((收盘价-1日前的收盘价)*成交量,3,1)/10000,0)
VAR14:=VAR13的12日指数移动平均-VAR13的26日指数移动平均
VAR15:=VAR14的9日指数移动平均
VAR16:=(VAR14-VAR15)*2
{股票指标网 整理}
VAR17:=HHVBARS(VAR16,上次VAR16<0距今天数+1)
VAR18:=CROSS(BACKSET(CROSS(0,VAR16),1日前的VAR17+2),0.5)
VAR19:=DRAWLINE(VAR18,VAR16,1日前的VAR18,1日前的VAR16,1)
VAR20:=VAR16>VAR19 AND VAR16>=1日前的VAR16
VAR21:=收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 最低价=最高价
VAR22:=收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 最低价=最高价
VAR23:=BARSSINCE(收盘价)<1 OR (BARSSINCE(收盘价)<34 AND VAR21=1)
VAR24:=收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 最低价<最高价
VAR25:=最高价>=ZTPRICE(1日前的收盘价,0.1) AND 收盘价<最高价
VAR26:=1+3*VAR24+1*VAR21+0.2*VAR25
VAR27:=(收盘价-1日前的收盘价)/1日前的收盘价*100
VAR28:=VAR27*VAR26
VAR29:=成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
VAR30:=成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
VAR31:=IF(收盘价>开盘价,VAR29*(最高价-最低价),IF(收盘价<开盘价,VAR29*(最高价-开盘价+(收盘价-最低价)),IF(收盘价=开盘价 AND 收盘价>1日前的收盘价,成交量*0.7,成交量*0.3)))
VAR32:=IF(收盘价>开盘价,VAR29*(最高价-收盘价+(开盘价-最低价)),IF(收盘价<开盘价,VAR29*(最高价-最低价),IF(收盘价=开盘价 AND 收盘价<1日前的收盘价,成交量*0.7,成交量*0.3)))
VAR33:=IF(收盘价>开盘价,VAR30*(最高价-最低价),IF(收盘价<开盘价,VAR30*(最高价-开盘价+(收盘价-最低价)),成交量/2))
VAR34:=SUM((VAR31-VAR32)/当前流通股本,1)*1000
VAR35:=成交量/10000
VAR36:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))))
VAR37:=MOD(FROM开盘价,VAR36)
如果VAR37<0.5返回VAR36否则返回VAR37
VAR39:=IF( 到最后交易的周期=1 AND PERIOD<=5 AND DYNAINFO(8)>1,成交量*VAR36/VAR38/10000,DRAWNULL)
如果 到最后交易的周期=1 AND PERIOD<=5返回VAR39否则返回VAR35
VAR41:=VAR40/REF(VAR40的5日简单移动平均,1)
VAR42:=IF(VAR41>30,1,IF(VAR41>3 AND VAR41<=30,33,IF(收盘价>=ZTPRICE(1日前的收盘价,0.1) AND VAR41<=2,VAR41*20,VAR41)))
VAR43:=IF(收盘价>=1日前的收盘价 AND VAR41>3,33,IF(收盘价<1日前的收盘价 AND VAR41>3,0,IF(收盘价>=1日前的收盘价 AND VAR41<=3,VAR41*10,VAR41)))
VAR44:=1
VAR45:=EMA(100*(收盘价-100日内最低价最低值)/(100日内最高价最高值-100日内最低价最低值),13)/4*VAR44
VAR46:=收盘价的2日指数移动平均-收盘价的89日指数移动平均
VAR47:=VAR46的30日指数移动平均*VAR44
VAR48:=2*(VAR46-VAR47)*10*VAR44
VAR49:=POW(VAR48,3)*0.1+POW(VAR48,2)*VAR44
如果VAR48>0.015返回VAR49否则返回0
VAR51:=D收盘价的12日指数移动平均的5的成交量日累和/3/当前流通股本日简单移动平均
VAR52:=VAR16-1日前的VAR16
VAR53:=开盘价>0
VAR54:=EXIST(收盘价-1日前的收盘价的绝对值/1日前的收盘价>0.052,20) AND EXIST(收盘价/1日前的收盘价>1.15,2)!=1
VAR55:=FINANCE(40)<300*100000000 AND FINANCE(7)<=20*100000000
VAR56:=VAR54 AND VAR53 AND VAR23!=1 AND 成交额/10000>1000
VAR57:=COUNT(最高价/1日前的收盘价>=1.081,5)>=2 AND 收盘价>=开盘价
VAR58:=VAR12
VAR59:=INDEXADV/(INDEXADV+INDEXDEC)*100
VAR60:=VAR59>85 OR 1日前的VAR59>85
VAR61:=INDEXC-INDEXC的7日简单移动平均
VAR62:=(60日内VAR61最高值-0)*60/100
{股票指标网 整理}
VAR63:=VAR61>VAR62
VAR64:=VAR60=1 OR VAR63=1
如果0=1返回VAR64否则返回0
VAR66:=收盘价>=开盘价
VAR67:=(收盘价-VAR51)/VAR51*100*2
VAR68:=收盘价>=ZTPRICE(1日前的收盘价,0.1)
输出连板:BARSLASTCOUNT(VAR68)
输出竞价:IF(FROM开盘价<=5 AND VAR65!=1 AND VAR56 AND VAR55 AND VAR57 AND VAR66 AND VAR20=1,(VAR34+VAR8*3+VAR28+VAR43+VAR52*5+VAR67)*3,0)*1.38,NODRAW,画黄色
输出飞龙:IF(FROM开盘价>5 AND VAR65!=1 AND VAR56 AND VAR55 AND VAR57 AND VAR66 AND VAR20=1,(VAR34+VAR8*3+VAR28+VAR42+VAR52*5+VAR67)*3,0)*1.38,NODRAW,画洋红色