通达信AI量化分时主副图指标 抓板、吸筹突破、起爆、机构能量 源码附图
{AI量化分时主源码如下}
现价:=C,COLORWHITE,LINETHICK2;
均价11:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;
TT:=BARSCOUNT(C);
前高:=REF(HHV(H,TT),1);
突破:=CROSS(C,REF(HHV(H,TT),1)) AND C/均价11< 1.09 AND TT>1 AND TT< 240;
主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1));
已主力扫盘:=BARSLAST(主力扫盘)< 13;
HJ_2:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)< 1.25 AND REF(CLOSE,1)< LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85;
HJ_9:=EMA(CLOSE,2);
HJ_10:=EMA(CLOSE,3);
HJ_11:=MAX(HJ_9,HJ_10);
X2:=CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(HHV(HIGH,2),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND C/REF(C,1)< 1.07;
NX:=MA(((SLOPE(C,20)*5)+C),10);
B1:=HOUR=09 AND MINUTE=45;
B20:=LLV(L,15);
B30:=BARSLAST(B1);
B4:=REF(B20,B30);
B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
C1:=HOUR=09 AND MINUTE=45;
C2:=HHV(H,15);
C3:=BARSLAST(C1);
C4:=REF(C2,C3);
C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD10:=(DIF-DEA)*2;
AA0:=MACD10>00 AND DIF>0 AND DEA>0;
A100:=HOUR=10 AND MINUTE=0;
A20:=HHV(H,30);
A30:=BARSLAST(A100);
A40:=REF(A20,A30);
A50:=CONST(A40);
A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX;
AB:=FILTER(A80,100);
A90:=DYNAINFO(3);
AC:=CLOSE<=A90*1.04 AND CLOSE>A90;
量比:=V/REF(MA(V,5),1);
XG:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1;
HJ_4:=CLOSE;
HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
BAB2:=STICKLINE(HJ_5< 0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
HJ_6:=CLOSE/DYNAINFO(3);
HJ_7:=FILTER(HJ_5>0.015 AND HJ_5>REF(HJ_5,1)*2 AND VOL>REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1) OR HJ_5>0.025,240);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*8/9,COLORYELLOW,DOTLINE;
支撑:=L1+P1*0.5/9,COLORGREEN,DOTLINE;
DRAWTEXT(FILTER(CROSS(C,支撑),240),L-0.01,'吸筹'),COLOR0000FF;
DRAWTEXT(FILTER(CROSS(C,阻力),240),H-0.01,'压'),COLOR0000FF;
WA1:=V*C/100;
WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA3:=SUM((IF(((WA1/8>20) AND (CLOSE< (REF(CLOSE,1)))),WA1,0)),0);
WA4:=SUM((IF(((WA1/8< 20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA5:=SUM((IF(((WA1/8< 20) AND (CLOSE< (REF(CLOSE,1)))),WA1,0)),0);
机构买盘:=(WA2);
机构卖盘:=(WA3);
散户买盘:=(WA4);
散户卖盘:=(WA5);
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1< LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2< LM1;
DRAWICON(FILTER(CROSS(KK1,KK2),240),OPEN*1,5);
DRAWTEXT(FILTER(CROSS(KK1,KK2),240) ,OPEN*0.985,'抓'),COLORFF0000;
TT1:=BARSCOUNT(C);
均价黄:=SUM(C*V,TT1)/SUM(V,TT1);
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=4.50;
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
流通盘:=CAPITAL*100/100000000,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
DRAWICON(每日一点,C,25);
DRAWTEXT(每日一点,L-0.01,'←分时起爆'),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.5,0,起爆收益),COLORFF0000;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.45,0,'起爆收益'),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.5,0,'%'),COLOR0000FF;
ACX:=FILTER(CROSS(KK1,KK2),240);
ACX1:=BARSSINCE(ACX)+1;
首次抓板价:=REF(C,ACX1-1),NODRAW;
抓板收益:(DYNAINFO(7)-首次抓板价)/首次抓板价*100,NODRAW;
DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.35,0,抓板收益),COLORFF0000;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.3,0,'抓板收益'),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.35,0,'%'),COLOR0000FF;
全仓买进:=CROSS(C,REF(HHV(H,TT),1)) AND HHVBARS(VOL,TT)=0 AND C/均价11< 1.09 AND TT>1 AND TT< 240 AND BARSLAST(主力扫盘)>=20 AND 对昨日涨幅;
DRAWTEXT(全仓买进 ,前高, '←全仓'),COLORCYAN;
DRAWICON(全仓买进,C,23);
对昨日涨幅1:=(C/DYNAINFO(3)-1)*100<=7;
价2步:=C/REF(C,3)>1.04 ;
DRAWTEXT(价2步,C*0.995,'←突'),COLORYELLOW;
现:=100*(C-REF(C,1))/REF(C,1);
量:=SUM(V,FROMOPEN);
大买:=SUM(IF(现>=0 AND V>CAPITAL*0.0005 AND PERIOD=0,V,0),FROMOPEN);
大卖:=SUM(IF(现< 0 AND V>CAPITAL*0.0005 AND PERIOD=0,V,0),FROMOPEN);
小买:=SUM(IF(现>=0 AND V< CAPITAL*0.0005 AND PERIOD=0,V,0),FROMOPEN);
小卖:=SUM(IF(现< 0 AND V< CAPITAL*0.0005 AND PERIOD=0,V,0),FROMOPEN);
B31:=100*大买/量;
B32:=100*大卖/量;
B33:=100*小买/量;
B34:=100*小卖/量;
DRAWRECTREL(133,CONST(100-B31)*1000/100,159,1000,RGB(255,0,0));
DRAWRECTREL(269,CONST(100-B32)*1000/100,294,1000,RGB(0,255,0));
DRAWRECTREL(405,CONST(100-B33)*1000/100,426,1000,RGB(128,0,0));
DRAWRECTREL(536,CONST(100-B34)*1000/100,557,1000,RGB(0,128,0));
DRAWTEXT_FIX(PERIOD=0,0.135,8,0,CON2STR(B31,0)) COLORYELLOW;
DRAWTEXT_FIX(PERIOD=0,0.270,8,0,CON2STR(B32,0)) COLORFF0000;
DRAWTEXT_FIX(PERIOD=0,0.403,8,0,CON2STR(B33,0)) COLORFF0000;
DRAWTEXT_FIX(PERIOD=0,0.539,8,0,CON2STR(B34,0)) COLORFF0000;
{AI量化能量副源码如下}
流通盘:=CAPITAL;
DBHS:=IF(CAPITAL<2000000,V/CAPITAL*100,V/流通盘*100);
标准量:IF(COUNT(V>流通盘/1000,0)>0,流通盘/1000,0),COLORMAGENTA;
STICKLINE(C<REF(C,1),0,VOL,0.1,0),COLORGREEN;
STICKLINE(C>REF(C,1),0,VOL,0.1,0),COLORRED;
STICKLINE(C=REF(C,1),0,VOL,0.1,0),COLORWHITE;
总量:=SUM(V,0),COLORCYAN,NODRAW;
单笔最大量:HHV(V,0),COLORWHITE,DOTLINE;
单笔最大换手:HHV(DBHS,240),COLORWHITE,DOTLINE;
牛:=(EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,COLORSTICK;
DRAWICON(CROSS(EXPMA(牛,120)-0.0004,EXPMA(牛,200)),单笔最大量*0.8,17);
DRAWICON(CROSS(EXPMA(牛,200),EXPMA(牛,120)-0.0004),V,8);
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/Q2),1.03),-V/4,6);
现量:VOL,VOLSTICK;
STICKLINE(C<REF(C,1) AND V>REF(单笔最大量,1) AND TIME>94200,0,VOL,0.1,0),COLORGREEN;
STICKLINE(C>REF(C,1) AND V>REF(单笔最大量,1) AND TIME>94200,0,VOL,0.1,0),COLORRED;
STICKLINE(C=REF(C,1) AND V>REF(单笔最大量,1) AND TIME>94200,0,VOL,0.1,0),COLORWHITE;
STICKLINE(V>REF(单笔最大量,1)*1.5 AND C>REF(C,1) AND DBHS>0.15 AND TIME>94500,0,VOL,0.1,0),COLORYELLOW;
STICKLINE(C>REF(C,1) AND DBHS>0.22 AND TIME<94200,0,VOL,0.1,0),COLOR66FFFF,LINETHICK2;
LXTP:=((V>REF(V,1) AND DBHS>=0.1 AND REF(V,1)>REF(单笔最大量,2)) OR (V>REF(单笔最大量,1) AND DBHS>=0.08 AND REF(V,2)>REF(单笔最大量,3))) AND C>REF(C,1);
LXTP1:=((V>REF(V,1)*0.9 AND DBHS>=0.1 AND REF(V,1)>REF(单笔最大量,2)) OR (V>REF(单笔最大量,1)*0.9 AND DBHS>=0.1 AND REF(V,2)>REF(单笔最大量,3))) AND C>REF(C,1);
DRAWTEXT(LXTP1,V*1.4,'@'),COLORYELLOW;
DRAWTEXT(LXTP,V*1.1,'@'),COLORRED;
XG:=LXTP,COLORYELLOW;
VA:=IF(CLOSE>REF(CLOSE,1),VOL/10,-VOL/10);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLORYELLOW,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,标准量,'←标准量'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR=1,OBV,'←OBV'),COLORYELLOW;
A1:=(VOL/CLOSE)/2;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=((A2+A3)+A4)+A5;
量比:=SUM(VOL,0)*240/MA(V,5)/BARSCOUNT(C),NODRAW;
A7:=IF((CURRBARSCOUNT=2),((100*A2)/A6),0),NODRAW;
A8:=((IF((CURRBARSCOUNT=2),((100*A3)/A6),0)));
A9:=((IF((CURRBARSCOUNT=2),((100*A4)/A6),0)));
A10:=((IF((CURRBARSCOUNT=2),((100*A5)/A6),0)));
主力买盘:=A2;
主力卖盘:=A3;
主力买:=CROSS(主力买盘,主力卖盘) AND 量比>0.5,NODRAW;
DRAWICON(主力买,单笔最大量,34);
DRAWTEXT(主力买,单笔最大量*0.9,'主力买'),COLORYELLOW;
MA30:=EMA(CLOSE,30);
强弱:=EMA(CLOSE,900);
DRAWICON(CROSS(MA30,强弱),单笔最大量*1.1,23);
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{AI量化分时主源码如下}现价赋值:C,画白色, 线宽为2
均价11赋值:240的C*V日累和/240的V日累和,画黄色, 线宽为2
TT赋值:C的有效数据周期数
前高赋值:REF(TT日内H最高值,1)
突破赋值:CROSS(C,REF(TT日内H最高值,1)) AND C/均价11< 1.09 AND TT>1 AND TT< 240
主力扫盘赋值:统计13日满足突破的天数>=3 AND CROSS(C,REF(TT日内H最高值,1))
已主力扫盘赋值:上次主力扫盘距今天数< 13
HJ_2赋值:开盘价>0 AND 2日内最高价最高值/2日内最低价最低值< 1.25 AND 1日前的CLOSE< 3日内最低价最低值+(3日内最高价最高值-3日内最低价最低值)*0.85
HJ_9赋值:CLOSE的2日指数移动平均
HJ_10赋值:CLOSE的3日指数移动平均
HJ_11赋值:HJ_9和HJ_10较大值
X2赋值:CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(2日内最高价最高值,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/当前流通股本<=0.2) AND C/REF(C,1)< 1.07
NX赋值:MA(((SLOPE(C,20)*5)+C),10)
B1赋值:HOUR=09 AND MINUTE=45
B20赋值:15日内L最低值
B30赋值:上次B1距今天数
B4赋值:B30日前的B20
B5赋值:CONST(B4),COLORFF80FF,CIRCLEDOT, 线宽为2
C1赋值:HOUR=09 AND MINUTE=45
C2赋值:15日内H最高值
C3赋值:上次C1距今天数
C4赋值:C3日前的C2
C5赋值:CONST(C4),COLORFF80FF,CIRCLEDOT, 线宽为2
DIF赋值:CLOSE的12日指数移动平均-CLOSE的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
MACD10赋值:(DIF-DEA)*2
AA0赋值:MACD10>00 AND DIF>0 AND DEA>0
A100赋值:HOUR=10 AND MINUTE=0
A20赋值:30日内H最高值
A30赋值:上次A100距今天数
A40赋值:A30日前的A20
A50赋值:CONST(A40)
A80赋值:CLOSE>A50 AND 1日前的C<=A50 AND CLOSE>NX
AB赋值:A80的100过滤
A90赋值:DYNAINFO(3)
AC赋值:CLOSE<=A90*1.04 AND CLOSE>A90
量比赋值:V/REF(V的5日简单移动平均,1)
XG赋值:AA0 AND AB AND AC AND A40>A90 AND 量比>=1
HJ_4赋值:CLOSE
HJ_5赋值:(CLOSE-5日前的CLOSE)/5日前的CLOSE
BAB1赋值:STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0)
BAB2:=STICKLINE(HJ_5< 0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0)
HJ_6赋值:CLOSE/DYNAINFO(3)
HJ_7赋值:FILTER(HJ_5>0.015 AND HJ_5>1日前的HJ_5*2 AND 成交量>1日前的成交量*2 AND CLOSE>1日前的CLOSE OR HJ_5>0.025,240)
H1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L1赋值:MIN(DYNAINFO(3),DYNAINFO(6))
P1赋值:H1-L1
阻力赋值:L1+P1*8/9,画黄色,DOTLINE
支撑赋值:L1+P1*0.5/9,画绿色,DOTLINE
DRAWTEXT(FILTER(C上穿支撑,240),L-0.01,'吸筹'),COLOR0000FF
DRAWTEXT(FILTER(C上穿阻力,240),H-0.01,'压'),COLOR0000FF
WA1赋值:V*C/100
WA2赋值:SUM((IF(((WA1/8>20) AND (CLOSE>(1日前的CLOSE))),WA1,0)),0)
WA3赋值:SUM((IF(((WA1/8>20) AND (CLOSE< (1日前的CLOSE))),WA1,0)),0)
WA4赋值:SUM((IF(((WA1/8< 20) AND (CLOSE>(1日前的CLOSE))),WA1,0)),0)
WA5赋值:SUM((IF(((WA1/8< 20) AND (CLOSE< (1日前的CLOSE))),WA1,0)),0)
机构买盘赋值:(WA2)
机构卖盘赋值:(WA3)
散户买盘赋值:(WA4)
散户卖盘赋值:(WA5)
BU赋值:上次CLOSE=60日内CLOSE最高值距今天数
SE赋值:上次CLOSE=60日内CLOSE最低值距今天数
KK1赋值:SE
KK2赋值:BU
LM1赋值:SE
LM2赋值:BU
OK赋值:KK1>KK2 AND LM1>LM2
OK1:=KK1>KK2 AND LM1< LM2
NOK赋值:KK2>KK1 AND LM2>LM1
NOK1:=KK2>KK1 AND LM2< LM1
DRAWICON(FILTER(KK1上穿KK2,240),开盘价*1,5)
DRAWTEXT(FILTER(KK1上穿KK2,240) ,开盘价*0.985,'抓'),COLORFF0000
TT1:=C的有效数据周期数
均价黄赋值:TT1的C*V日累和/TT1的V日累和
量两步赋值:V的5日简单移动平均>REF(V的5日简单移动平均,1) AND REF(V的5日简单移动平均,1)>REF(V的5日简单移动平均,2)
价两步赋值: C>=1日前的C AND 1日前的C>2日前的C
价上岗量破5赋值:C>均价黄 AND V>V的5日简单移动平均
量起爆赋值:V>=1日前的V*1
价创新高赋值:C>=0日内C最高值
量创新高赋值:V>=0日内V最高值
对昨日涨幅赋值:(C/DYNAINFO(3)-1)*100<=4.50
每日一点赋值:量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅
VV赋值:BARSSINCE(每日一点)+1
首次起爆价赋值:VV-1日前的C,NODRAW
输出起爆收益:(现价-首次起爆价)/首次起爆价*100,NODRAW
流通盘赋值:当前流通股本*100/100000000,NODRAW
起爆时间赋值:VV日前的TIME/10000,NODRAW
已爆分钟赋值:VV-1,NODRAW
当满足条件每日一点时,在C和25之间画图标
当满足条件每日一点时,在L-0.01和'←分时起爆'位置书写文字
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.5位置书写数字
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.45位置书写文字
当满足条件ISLASTBAR AND C>1时,在横轴0.85纵轴0.5位置书写文字
ACX:=FILTER(KK1上穿KK2,240)
ACX1:=BARSSINCE(ACX)+1
首次抓板价赋值:ACX1-1日前的C,NODRAW
输出抓板收益:(现价-首次抓板价)/首次抓板价*100,NODRAW
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.35位置书写数字
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.3位置书写文字
当满足条件ISLASTBAR AND C>1时,在横轴0.85纵轴0.35位置书写文字
全仓买进赋值:CROSS(C,REF(TT日内H最高值,1)) AND HHVBARS(成交量,TT)=0 AND C/均价11< 1.09 AND TT>1 AND TT< 240 AND 上次主力扫盘距今天数>=20 AND 对昨日涨幅
当满足条件全仓买进 时,在前高和 '←全仓'位置书写文字
当满足条件全仓买进时,在C和23之间画图标
对昨日涨幅1:=(C/DYNAINFO(3)-1)*100<=7
价2步赋值:C/3日前的C>1.04
当满足条件价2步时,在C*0.995和'←突'位置书写文字
现赋值:100*(C-1日前的C)/1日前的C
量赋值:FROM开盘价的V日累和
如果现>=0 AND V>当前流通股本*0.0005 AND PERIOD=0返回V否则返回0
如果现< 0 AND V>当前流通股本*0.0005 AND PERIOD=0返回V否则返回0
如果现>=0 AND V< 当前流通股本*0.0005 AND PERIOD=0返回V否则返回0
如果现< 0 AND V< 当前流通股本*0.0005 AND PERIOD=0返回V否则返回0
B31赋值:100*大买/量
B32赋值:100*大卖/量
B33赋值:100*小买/量
B34赋值:100*小卖/量
DRAWRECTREL(133,CONST(100-B31)*1000/100,159,1000,RGB(255,0,0))
DRAWRECTREL(269,CONST(100-B32)*1000/100,294,1000,RGB(0,255,0))
DRAWRECTREL(405,CONST(100-B33)*1000/100,426,1000,RGB(128,0,0))
DRAWRECTREL(536,CONST(100-B34)*1000/100,557,1000,RGB(0,128,0))
DRAWTEXT_FIX(PERIOD=0,0.135,8,0,CON2STR(B31,0)) 画黄色
DRAWTEXT_FIX(PERIOD=0,0.270,8,0,CON2STR(B32,0)) COLORFF0000
DRAWTEXT_FIX(PERIOD=0,0.403,8,0,CON2STR(B33,0)) COLORFF0000
DRAWTEXT_FIX(PERIOD=0,0.539,8,0,CON2STR(B34,0)) COLORFF0000
{AI量化能量副源码如下}流通盘赋值:当前流通股本
如果当前流通股本<2000000返回V/当前流通股本*100否则返回V/流通盘*100
标准输出量:IF(统计0日满足V>流通盘/1000的天数>0,流通盘/1000,0),画洋红色
STICKLINE(C<1日前的C,0,成交量,0.1,0),画绿色
STICKLINE(C>1日前的C,0,成交量,0.1,0),画红色
STICKLINE(C=1日前的C,0,成交量,0.1,0),画白色
总量赋值:0的V日累和,画青色,NODRAW
单笔最大输出量:0日内V最高值,画白色,DOTLINE
输出单笔最大换手:240日内DBHS最高值,画白色,DOTLINE
牛赋值:(CLOSE的500日指数移动平均-1日前的CLOSE的500日指数移动平均)/1日前的CLOSE的500日指数移动平均*100,COLORSTICK
DRAWICON(牛的120日指数移动平均-0.0004上穿牛的200日指数移动平均,单笔最大量*0.8,17)
DRAWICON(牛的200日指数移动平均上穿牛的120日指数移动平均-0.0004,V,8)
Q赋值:BETWEEN(C/(SUM(成交额,C的有效数据周期数)/SUM(成交量*100,C的有效数据周期数)),1.05,0.95)
Q2:=IF(Q=0,MA(C,C的有效数据周期数),(SUM(成交额,C的有效数据周期数)/SUM(成交量*100,C的有效数据周期数)))
DRAWICON(CROSS((C/Q2),1.03),-V/4,6)
现输出量:成交量,成交量STICK
STICKLINE(C<1日前的C AND V>1日前的单笔最大量 AND TIME>94200,0,成交量,0.1,0),画绿色
STICKLINE(C>1日前的C AND V>1日前的单笔最大量 AND TIME>94200,0,成交量,0.1,0),画红色
STICKLINE(C=1日前的C AND V>1日前的单笔最大量 AND TIME>94200,0,成交量,0.1,0),画白色
STICKLINE(V>1日前的单笔最大量*1.5 AND C>1日前的C AND DBHS>0.15 AND TIME>94500,0,成交量,0.1,0),画黄色
STICKLINE(C>1日前的C AND DBHS>0.22 AND TIME<94200,0,成交量,0.1,0),COLOR66FFFF, 线宽为2
LXTP赋值:((V>1日前的V AND DBHS>=0.1 AND 1日前的V>2日前的单笔最大量) OR (V>1日前的单笔最大量 AND DBHS>=0.08 AND 2日前的V>3日前的单笔最大量)) AND C>1日前的C
LXTP1赋值:((V>1日前的V*0.9 AND DBHS>=0.1 AND 1日前的V>2日前的单笔最大量) OR (V>1日前的单笔最大量*0.9 AND DBHS>=0.1 AND 2日前的V>3日前的单笔最大量)) AND C>1日前的C
当满足条件LXTP1时,在V*1.4和'@'位置书写文字
当满足条件LXTP时,在V*1.1和'@'位置书写文字
XG赋值:LXTP,画黄色
VA赋值:IF(CLOSE>1日前的CLOSE,成交量/10,-成交量/10)
输出OBV:SUM(IF(CLOSE=1日前的CLOSE,0,VA),0),画黄色, 线宽为2
当满足条件ISLASTBAR=1时,在标准量和'←标准量'位置书写文字
当满足条件ISLASTBAR=1时,在OBV和'←OBV'位置书写文字
A1赋值:(成交量/CLOSE)/2
A2赋值:SUM(IF(A1>100 AND CLOSE>1日前的CLOSE,A1,0),0)
A3赋值:SUM(IF(A1>100 AND CLOSE<1日前的CLOSE,A1,0),0)
A4赋值:SUM(IF(A1<100 AND CLOSE>1日前的CLOSE,A1,0),0)
A5赋值:SUM(IF(A1<100 AND CLOSE<1日前的CLOSE,A1,0),0)
A6赋值:((A2+A3)+A4)+A5
量比赋值:0的成交量日累和*240/V的5日简单移动平均/C的有效数据周期数,NODRAW
A7赋值:IF(( 到最后交易的周期=2),((100*A2)/A6),0),NODRAW
A8赋值:((IF(( 到最后交易的周期=2),((100*A3)/A6),0)))
A9赋值:((IF(( 到最后交易的周期=2),((100*A4)/A6),0)))
A10:=((IF(( 到最后交易的周期=2),((100*A5)/A6),0)))
主力买盘赋值:A2
主力卖盘赋值:A3
主力买赋值:主力买盘上穿主力卖盘 AND 量比>0.5,NODRAW
当满足条件主力买时,在单笔最大量和34之间画图标
当满足条件主力买时,在单笔最大量*0.9和'主力买'位置书写文字
MA30赋值:CLOSE的30日指数移动平均
强弱赋值:CLOSE的900日指数移动平均
DRAWICON(MA30上穿强弱,单笔最大量*1.1,23)