通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
VAR5:=LLV(LOW,120);
VAR6:=HHV(HIGH,120);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,10,1);
基金仓位:=(100-VARA);
REF(基金私募仓位 80,1)AND基金私募仓位 80;
AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC 1.88,MA(DDD,3),DDD);
平仓:ZZZ*1.145,COLORCYAN,LINETHICK3;
风险:ZZZ*1.095,COLORGREEN,LINETHICK2;
回档:ZZZ*1.04,COLORYELLOW,LINETHICK1;
平衡:ZZZ*0.986,COLORWHITE,LINETHICK2;
反弹:ZZZ*0.918,COLORMAGENTA,LINETHICK1;
超低:ZZZ*0.880,COLORRED,LINETHICK2;
满仓:ZZZ*0.83,COLORBLUE,LINETHICK3;
MA5:MA(C,5);
MA6:=MA(C,6);
MA10:MA(C,10);
MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:MA(C,120);
乖离2:=(MA20-MA30)/MA30*100;
VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);
MAX1:=MAX(MA20,MA30);
MAX2:=MAX(MAX1,MA60);
MIN1:=MIN(MA20,MA30);
MIN2:=MIN(MIN1,MA60);
K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}
VAR2:=IF(K1 =8,1,0);
上火车轨:=MA20 MA30ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1)AND
MA20-MA30 REF((MA20-MA30),1);
STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;
神枪手:=DRAWTEXT(FILTER(上火车轨AND MACD.DIF 0.15AND
MACD.DIF REF( MACD.DIF ,1)ANDMA(V,60) REF(MA(V,60),1)AND
MA(V,5) MA(V,10)ANDJ1 REF(J1,1)AND
(LMA20OR(CROSS(MA5,MA20))),5),L*0.98,←神枪手);
神枪手:=FILTER(上火车轨AND MACD.DIF 0.15AND
MACD.DIF REF( MACD.DIF ,1)ANDMA(V,60) REF(MA(V,60),1)AND
MA(V,5) MA(V,10)ANDJ1 REF(J1,1)AND
(LMA20OR(CROSS(MA5,MA20))),5);{44.40%15240}
暴涨:DRAWTEXT(FILTER((VAR1ORVAR2)ANDMA10 REF(MA10,1)AND
COUNT(MA30 REF(MA30,1),3)=3ANDMA30 MA60AND
COUNT(CROSS(MA5,MA30),3)ANDJ1 MJ1ANDMA(V,5) MA(V,60)
ANDMA(V,60) REF(MA(V,60),1),5),MA60*0.99,短线暴涨),COLORRED;
DRAWTEXT(CROSS( KDJ.K (5,2,3), KDJ.D (5,2,3))AND KDJ.D (5,2,3)MJ1
ANDMA60 REF(MA60,1)ANDCOUNT(J1=1,L*0.995,←买入),COLORYELLOW;
DRAWTEXT(CROSS( KDJ.D (5,2,3), KDJ.K (5,2,3))AND KDJ.D (5,2,3) 65ANDJ1 MJ1
ANDCOUNT(J1 1,3) =1,H*1.005,←卖出),COLORGREEN;
DRAWTEXT(CROSS( KDJ.D (18,9,6), KDJ.K (18,9,6))AND KDJ.D (18,9,6) 60AND
KDJ.J (45,15,15) 90,H*1.03,←顶),COLORRED;
DRAWTEXT(CROSS(MA5,MA6)AND KDJ.K (5,3,3) =50AND
KDJ.J (5,3,3) 31,L*0.92,←再买),COLORMAGENTA;
XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1)) =1.04));
XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);
XL3:=CROSS(XL2,(0-20));
DRAWTEXT(FILTER(((XL1 0)ANDLOW),5),(LOW-0.4),●买点);
DRAWTEXT((XL3 0),(LOW-0.2),●绝对底部);
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))*100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9,(HIGH*1.02),●出货),COLOR9000F5;
STICKLINE(C 1.098*REF(C,1),C,O,0,0),COLORYELLOW;
AAA:=CONST(HHV(H,90));
R1:=MA(CLOSE,1);
R2:=MA(CLOSE,3);
R3:=(MA(R2,1)*1);
R4:=(MA(R2,3)*1);
DRAWTEXT(CROSS(R3,R4),(LOW-0.1),进),COLORYELLOW;
X1:=(C+L+H)/3;
DD:=TOTALCAPITAL;
SS:=FINANCE(7);
GG:=FINANCE(33);
TH:=DYNAINFO(39);
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(
H,55)-LLV(L,55))*100,5,1);
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),出),COLORGREEN;
{双线持币:HHV(MA(HIGH,(3)),2),LINETHICK1,COLOR00FF00;
单线持股:LLV(MA(HIGH,(3)),1),LINETHICK1,COLOR0000FF;}
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13 =150ANDVAR13=150ANDVAR14 200,10,0);
VAR16:=IF(VAR13-200ANDVAR14 =-150AND
VAR14 -200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18 90,VAR18,100);
VAR1A:=IF(VARE 0,VARE,0);
VAR1B:=IF(VAR14 =200ANDVAR13 =150,15,IF(VAR14 =-200AND
VAR13 =-150,-15,VAR16))+60;
VAR1C:=VAR1A 48ANDVAR1B 60ANDVAR19
DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,HIGH*1.02,大笔出
货),LINETHICK1,COLORFFCC66;
AA1:=AMOUNT/V;
BB1:=L1.2;
DD1:=L MA(C,5)*0.921;
EE1:=V MA(V,5)*1.5;
老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0;
DRAWTEXT(老鼠仓,(LOW*0.99),老鼠仓),COLOR40CCFF;
A74:=MA(CLOSE,20);
A75:=(CLOSE MA(CLOSE,5));
A76:=(MA(CLOSE,5) MA(CLOSE,10));
A77:=(CLOSE MA(CLOSE,10));
A78:=(MA(CLOSE,5) MA(CLOSE,20));
A79:=(CLOSE MA(CLOSE,20));
A710:=REF(A74,1);
A711:=(A74 A710);
AVX:=(((((IF(A75,10,(0-10))+IF(A76,10,(0-10)))+IF(A77,10,(0-10)))
+IF(A78,10,(0-10)))+IF(A79,10,(0-10)))+IF(A711,10,(0-10)));
DSLX:=(CLOSE/INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);
T1:=CONST(IF(C=V2))AND(DSLX =
DSLX1)),1,0));
T2:=CONST(IF(C=
DSLX1)),1,0));
T3:=CONST(IF(CV2))AND(DSLX
DSLX1)),1,0));
T4:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 =V2))AND(DSLX
DSLX1)),1,0));
T5:=CONST(IF(C=V2))AND(DSLX =
DSLX1)),1,0));
T6:=CONST(IF(C=
DSLX1)),1,0));
T7:=CONST(IF(C=V2))AND(DSLX
DSLX1)),1,0));
T8:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 V2))AND(DSLX
DSLX1)),1,0));
T9:=CONST(IF(C=1)AND(REF(AVX,1) 0))AND(V1 =V2))AND
(DSLX =DSLX1)),1,0));
T10:=CONST(IF(C=1)AND(REF(AVX,1) 0))AND(V1 V2))AND
(DSLX =DSLX1)),1,0));
T11:=CONST(IF(C=1)AND(REF(AVX,1) 0))AND(V1 =V2))AND
(DSLX DSLX1)),1,0));
T12:=CONST(IF(C=1)AND(REF(AVX,1) 0))AND(V1 V2))AND
(DSLX DSLX1)),1,0));
T13:=CONST(IF(C=V2))AND
(DSLX =DSLX1)),1,0));
T14:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND
(DSLX =DSLX1)),1,0));
T15:=CONST(IF(C=V2))AND
(DSLX DSLX1)),1,0));
T16:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND
(DSLX DSLX1)),1,0));
T17:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 =V2)),1,0));
T18:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 =V2)),1,0));
T19:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 V2)),1,0));
T20:=CONST(IF(C 200AND(CROSS(1,AVX)AND(V1 =V2)),1,0));
T21:=CONST(IF(C 200AND(CROSS(1,AVX)AND(V1 V2)),1,0));
T22:=CONST(IF(C 200AND(((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2)),1,0));
T23:=CONST(IF(C 200AND(((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2)),1,0));
T24:=CONST(IF(C 200AND(((AVX=V2)),1,0));
T25:=CONST(IF(C 200AND(((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2)),1,0));
DRAWTEXT(T1=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,理想,明显走强,参与,仓位在2/3左右),COLORFF00FF;
DRAWTEXT(T2=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,走势趋强,还显不足,短线进场,仓位在1/2左右),COLORFF00FF;
DRAWTEXT(T3=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,量价良好,没有明显走强,短线进场,仓位1/2左右),COLORFF00FF;
DRAWTEXT(T4=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右),COLORFF00FF;
DRAWTEXT(T5=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,形态变坏,重仓者减持大半,清仓者观望),COLORFF00FF;
DRAWTEXT(T6=1ANDCURRBARSCOUNT=70,AAA*0.98
,随一起下跌,明显缩量走势,考虑到风险,减持或清仓),COLORFF00FF;
DRAWTEXT(T7=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股放量下跌,走势明显偏弱,离场观望),COLORFF00FF;
DRAWTEXT(T8=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股缩量下跌,走势偏弱,离场观望。),COLORFF00FF;
DRAWTEXT(T9=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股形态良好,强势明显,量能充足,可以继续持有),COLORFF00FF;
DRAWTEXT(T10=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,上行不变,强势依然,量能开始转弱,注意风险),COLORFF00FF;
DRAWTEXT(T11=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股仍然具备上涨潜力,但股性偏弱,可考虑减仓),COLORFF00FF;
DRAWTEXT(T12=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股走势趋弱,量能不足,减持大部分),COLORFF00FF;
DRAWTEXT(T13=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股形态不佳,注意的变化,目前不适合参与),COLORFF00FF;
DRAWTEXT(T14=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,趋势不明,股价偏弱,注意量能变化,目前不宜参与),COLORFF00FF;
DRAWTEXT(T15=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,有走强迹象,但量能不足,趋势不明,不适合操作),COLORFF00FF;
DRAWTEXT(T16=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,该股走势太弱,没有参与价值。),COLORFF00FF;
DRAWTEXT(T17=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘理想,有明显走强迹象,中线参与,仓位在2/3左右),COLORFF00FF;
DRAWTEXT(T18=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,如前期经过一轮下跌,最佳买点,前期有过一段涨幅需谨慎),COLORFF00FF;
DRAWTEXT(T19=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,考虑短线进场,仓位在1/2左右,一旦量能放大,加仓买入),COLORFF00FF;
DRAWTEXT(T20=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘形态走坏,重仓者可以减去大部分仓位。),COLORFF0000;
DRAWTEXT(T21=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘缩量调整,注意风险,短线清仓观望。),COLORFF0000;
DRAWTEXT(T22=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘走势良好,量能理想,可以继续持有强势股。),COLORFF0000;
DRAWTEXT(T23=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘形态良好,但量能稍显不足,随时准备减仓。),COLORFF0000;
DRAWTEXT(T24=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘趋势不明,注意成交量变化,目前不适宜进场。),COLORFF0000;
DRAWTEXT(T25=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
,大盘趋势向下,量能萎缩,不适合进场。),COLORFF0000;
AA:=BARSCOUNT(C);
AH:=HHV(H,200);
AL:=LLV(L,200);
A0:=(AH-AL)/40;
B1:=L-A0;
STICKLINE((AA+0)/34=FLOOR((AA+0)/34),B1,B1-1.5*A0,2,0),COLORF00FF0;
DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),B1-1*A0,时间窗,变盘),COLORF00FF0;
VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR =2099ANDMONTH 2,0,1);
VAR4S:=LLV(LOW,5);VAR5S:=HHV(HIGH,4);
:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
DRAWTEXT(CROSS(散户,庄家)AND散户 30,L-0.05,←吸),COLORRED;
BBB1:=MA(C,1);
B2:=SMA(SMA(SMA(BBB1,2,1),2,1),2,1),COLORRED;
SMA2:=MA(B2,2);
VARB1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
买:DRAWTEXT(CROSS(VARB1,VAR3)ANDB2 SMA2,(LOW*0.97),←⊙买),COLORRED;
{N,1,100,30M,1,300,95}
V1:EMA(CLOSE,5),COLORYELLOW;
V2:=EMA(EMA(CLOSE,29)*1.01,10),COLORFFCC66;
DRAWICON(CROSS(V1,V2),V2,1);
V3:EMA(CLOSE,10),COLORFF00FF;
V4:EMA(EMA(CLOSE,60)*0.99,10),COLOR0099FF;
DRAWICON(CROSS(V3,V4),V4,1);
VAR1:=AMOUNT/VOL/100;
庄家运作:MA(CLOSE,18),COLORWHITE;
庄家平均成本:EMA(EMA(VAR1,2),N),COLOR00FF00;
庄家底仓成本:EMA(EMA(VAR1,13),M),COLORBLUE;
无穷成本:DMA(CLOSE,VOL/CAPITAL),COLORBLUE;
STICKLINE(C =O,C,O,3,0),COLOR00009F;
STICKLINE(C =O,C,O,1.5,0),,COLOR0E21C8{B0B0FF};
{STICKLINE(C =O,C,O,1,0),COLORYELLOW;}
STICKLINE(C =O,H,L,0,0),,COLOR0E21FC;
STICKLINE(C =O,C,O,3,0),,,COLORC35924;
{STICKLINE(C =O,C,O,2,0),COLORFF6600;}
STICKLINE(C =O,C,O,1.5,0),{COLORCYAN;},COLORF37A2B;
STICKLINE(C =O,H,L,0,0),{COLORCYAN},COLORF37A89;
VAR326:=IF(CLOSE REF(CLOSE,1),88,0);
VAR327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDHIGH/CLOSE 1.010ANDVAR326 0,91,0);
{STICKLINE(VAR327 90,L*0.99,L*0.95,4,0),COLORYELLOW;}
DRAWTEXT(VAR327 90,LOW*0.99, 追涨 ),COLORYELLOW;
P1:=2;P2:=10;
VAR1:=ABS(LOW-REF(CLOSE,P1));
VAR2:=MA(VOL,P1)/CAPITAL;
VAR3:=VAR1/CLOSE*10;
VAR4:=VAR3/VAR2;
VAR5:=ABS(LOW-REF(CLOSE,P1+P2));
VAR6:=VAR5/CLOSE*10;
VAR7:=VAR6/VAR2;
JC:=VAR7*VAR4*10;
QS:=EMA(JC,10)*1.5;
HC:=HHV(JC,20),LINETHICK0,COLORFFFF54;
LC:=LLV(JC,20),LINETHICK0,COLOR5454FF;
MC:=(HC+LC)/2,COLOR0088CC;
STICKLINE(C 0,HHV(HC,100),0,1800,0),COLORFF8080;
建仓:JC,STICK,LINETHICK3,COLORRED;
建仓轨迹:QS,COLOR00FF00;
最高仓位:HC,COLORYELLOW;
最低仓位:LC,COLORWHITE;
平均仓位:MC,COLORFF00FF;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:EMA(RSV,3);
D:MA(K,3);
STICKLINE(K D,K,D,2.5,0),colorred,LINETHICK1,NODRAW;
STICKLINE(D K,K,D,2.5,0),colorgreen,LINETHICK1,NODRAW;
线:80,colorwhite;
线:20,colorwhite;
高位谨慎减仓:80,colorred;
A1:=BARSLAST(REF(CROSS(K,D),1));
底:REF(CLOSE,A1+1) CLOSEANDK REF(K,A1+1)ANDCROSS(K,D);
DRAWLINE(A1=0,D,底背离,D,0),colorred,LINETHICK2;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:REF(CLOSE,A2+1) CLOSEANDREF(D,A2+1) DANDCROSS(D,K);
DRAWLINE(A2=0,D,顶背离,D,0),colorgreen,LINETHICK2;
DRAWTEXT(底背离 0,D-5, 底背离 ),colorred;
DRAWTEXT(顶背离 0,D-5, 顶背离 ),colorgreen;
VAR36赋值:(收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100
VAR38赋值:VAR36的3日[1日权重]移动平均
散户赋值:VAR38的3日[1日权重]移动平均
新庄赋值:散户的3日[1日权重]移动平均
GHYX赋值:散户上穿新庄AND散户 20的25日过滤=1
操盘底线赋值:0.812*收盘价的2日线性回归预测值的34日简单移动平均*1.05
触及底线赋值:(最低价 操盘底线 OR 最低价=操盘底线)
建仓区间赋值:(收盘价 操盘底线 OR 收盘价=操盘底线)
最佳买点赋值:收盘价上穿操盘底线
千年赋值:触及底线并且GHYX OR 建仓区间并且GHYX OR 最佳买点并且GHYX
输出钻石坑:如果千年,返回6,否则返回0,线宽为2,画青色
VAR2N赋值:3日内最低价的最低值 =60日内最低价的最低值
VAR3N赋值: 收阳线AND (收盘价/开盘价 1.03 OR 收盘价 1.03*1日前的收盘价)
绝地反击赋值:如果VAR2NANDVAR3N,返回90,否则返回0
输出:如果绝地反击,返回4,否则返回0,线宽为2,画红色
DIFA赋值:收盘价的6日指数移动平均-收盘价的13日指数移动平均
DEA赋值:DIFA的5日指数移动平均
RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100
K赋值:RSV的3日[1日权重]移动平均
D赋值:K的3日[1日权重]移动平均
MK日赋值:DIFA上穿DEA AND K上穿D
输出白银坑:如果MK日金叉,返回2,否则返回0,线宽为2,画黄色
主力:=EMA(100*(C-LLV(LOW,20))/(HHV(H,20)-LLV(LOW,20)),3),
COLORRED,LINETHICK2;
即将爆发线:=65,COLOR00FF00;
起爆线:=30,COLORWHITE,LINETHICK1;
TMD:=C-REF(C,1);
金
线:=100*EMA(EMA(TMD,N1),N1)/EMA(EMA(ABS(TMD),N1),N1),COLORWHITE
,LINETHICK1;
银线:=MA(金线,N2),COLOR00FF00,LINETHICK1;
STICKLINE(金线 银线,金线,银线,2.5,0),COLORRED,LINETHICK2;
STICKLINE(银线 金线,金线,银线,2.5,0),COLORGREEN,LINETHICK2;
爆发线:=30,COLORFF00FF,LINETHICK1;
起步线:=0,COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(起爆线,主力资金),起爆线, 空仓 ),COLORYELLOW;
抄底线:=-25,COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(金线,起步线),金线, 加仓 ),COLORWHITE;
DRAWTEXT(CROSS(金线,抄底线),金线, 半仓 ),COLORWHITE;
v1:ema(close,5),coloryellow;
v2:ema(ema(close,29)*1.01,10),colorffcc66;
DRAWICON(cross(v1,v2),v2,1);
v3:ema(close,10),colorff00ff;
v4:ema(ema(close,60)*0.99,10),color0099ff;
DRAWICON(cross(v3,v4),v4,1);
Var1:=AMOUNT/VOL/100;
庄家运作成本:MA(CLOSE,18),colorwhite;
庄家平均成本:EMA(EMA(Var1,2),1),color00ff00;
庄家底仓成本:EMA(EMA(Var1,13),1),colorblue;
无穷成本均线:DMA(CLOSE,VOL/CAPITAL),colorblue;
STICKLINE(C =O,C,O,7,0),COLORRED;
STICKLINE(C =O,C,O,4,0),COLOR7070ff{B0B0FF};
STICKLINE(C =O,C,O,2,0),COLORYELLOW;
STICKLINE(C =O,H,L,0,0),COLORYELLOW;
STICKLINE(C =O,C,O,7,0),COLORFF2020;
STICKLINE(C =O,C,O,4,0),COLORFF6600;
STICKLINE(C =O,C,O,2,0),{COLORCYAN;}colorffcc66;
STICKLINE(C =O,H,L,0,0),{COLORCYAN}colorffcc66;
Var326:=IF(CLOSE REF(CLOSE,1),88,0);
Var327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDHIGH/CLOSE0,
91,0);
STICKLINE(Var327 90,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(Var327 90,LOW*0.95, 追涨 ),COLORYELLOW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;
DEA:=EMA(DIF,9),COLORWHITE,LINETHICK2;
STICKLINE(DIF 0ANDDIF DEA 0,0,-0.6,10,1),COLORYELLOW;
STICKLINE(0 DIF DEAANDDIF DEA,0,-0.6,10,1),COLORRED;
STICKLINE(DIF DEA,0,-0.6,10,1),COLORGREEN;
DRAWTEXT(CROSS(DEA,DIF),0+0.1, 空仓 ),COLORGREEN;
DRAWTEXT(CROSS(DIF,0),0+0.1, 加仓 ),COLORYELLOW;
DRAWTEXT(CROSS(DIF,DEA),0+0.1, 建仓 ),COLORRED;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
庄秘撤:IF(V4 =0,V4,0),COLOR00FF00,LINETHICK2;
庄秘进:IF(V4 =0,V4,0),COLORFF00FF,LINETHICK2;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大筹金进场:IF(VB =0,VB,0),COLORYELLOW,LINETHICK2;
大筹金撤走:IF(VB =0,VB,0),COLORBLUE,LINETHICK2;
aa:=WINNER(CLOSE+CLOSE*15/100)*100;
bb:=WINNER(CLOSE+CLOSE*0/100)*100;
cc:=aa-bb;
dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
ee:=cc 3anddd 0.5andOPEN LOW;
a1:=DYNAINFO(6);
a2:=IF(LOW a1,0,IF(HIGH a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));
a3:=VOL/WINNER(LOW);
a4:=REF(HHV(CLOSE,120),1);
a5:=REF(LLV(CLOSE,120),1);
a6:=100*(CLOSE-a5)/(a4-a5);
a7:=a2 0ora2=1;
a8:=a7anda3/REF(a3,3) =3anda6 80;
a9:=REF(a8,1)orREF(a8,2)orREF(a8,3)orREF(a8,4);
a10:=a8anda9;
a11:=IF(FILTER(a8,3),5,0);
a12:=IF(FILTER(a10,3)oree,10,0);
筹码进场日:IF(a11,8,0),LINETHICK0;
STICKLINE(a12,0,15,5,0),colorff00ff;
筹码加仓日:IF(a12,88,0),LINETHICK0;
STICKLINE(a12,0,15,5,0),colorff00ff;
STICKLINE(a11,0,5,5,0),colorff7700;
STICKLINE(a11,0,5,4.5,0),colorff8800;
STICKLINE(a11,0,5,4,0),colorff9900;
STICKLINE(a11,0,5,3.5,0),colorffaa00;
STICKLINE(a11,0,5,3,0),colorffbb00;
STICKLINE(a11,0,5,2.5,0),colorffcc00;
STICKLINE(a11,0,5,2,0),colorffdd00;
STICKLINE(a11,0,5,1,0),colorffee00;
STICKLINE(a12,0,15,4.5,0),color102099;
STICKLINE(a12,0,15,4,0),color1020aa;
STICKLINE(a12,0,15,3.5,0),color1020bb;
STICKLINE(a12,0,15,3,0),color1020cc;
STICKLINE(a12,0,15,2.5,0),color1020dd;
STICKLINE(a12,0,15,2,0),color1020ee;
STICKLINE(a12,0,15,1,0),color1020ff;
DRAWTEXT(a11,8, 筹码进场
DRAWTEXT(a12,17, 筹码加仓
Var1:=REF(LOW,1);
Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4;
Var3:=EMA(Var2,13);
Var4:=LLV(LOW,34);
Var5:=EMA(IF(LOW =Var4,Var3,0),3);
股票公式编写要求:
F10里面的基金持仓比例增仓的选股公式。
股票公式编写结果:
XG:BARSLASTCOUNT(FINVALUE(255)/FINVALUE(239) 0.03)