通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、庄家最害怕的副图指标公式
JH:=VOL*CLOSE;
JHO:=SUM(JH,2)/SUM(VOL,2);
JH0:=EMA(JHO,10);
AAA:=(JHO-JH0)*20/JHO;
超:=STICKLINE(AAA>0ANDAAA>=REF(AAA,1),0,AAA,3,0),COLORLIRED;
级:=STICKLINE(AAA>0ANDAAA<REF(AAA,1),0,AAA,3,1),COLORLIRED;
好:=STICKLINE(AAA<0ANDAAA>=REF(AAA,1),0,AAA,3,1),COLORGREEN;
的:=STICKLINE(AAA<0ANDAAA<REF(AAA,1),0,AAA,3,0),COLORGREEN;
公:=EMA(IF(AAA>0ANDAAA<REF(AAA,1),0,AAA),3);
式:=CROSS(REF(公,1),公)AND公>0;
谢:=EMA(IF(AAA<0ANDAAA<REF(AAA,1),0,AAA),3);
了:=CROSS(REF(谢,1),谢)AND谢<0;
必买:=CROSS(C,DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=LLV(LOW,10),HHV(HIGH,6),1));
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*2000;
X1:=IF(X<REF(X,1),X,DRAWNULL),COLORWHITE,LINETHICK2;
XO:=MA(X,2),COLOR9932CD;
SI:=REF(X,1);
STICKLINE(X>SI,X,SI,2.3,0),COLOR0000FF;
STICKLINE(X>SI,X,SI,0.3,0),COLORCC66FF;
STICKLINE(X<SI,X,SI,2.3,0),COLOR00BB00;
STICKLINE(X<SI,X,SI,0.3,0),COLOR00FF00;
STICKLINE(式,X,SI,2.15,0),COLOR545454;
STICKLINE(了,X,SI,2.15,0),COLORDB7093;
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,3,0),COLORWHITE;
AA1:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
轻度控盘:STICKLINE(控盘<0AND0.9*控盘>REF(控盘,1),控盘,0,3,0),COLORYELLOW;
轻度出货:STICKLINE(控盘<0AND1.1*控盘<REF(控盘,1),控盘,0,3,0),COLORFFFF79;
开始控盘:=IF(AA1,5,0),LINETHICK1,COLORYELLOW;
有庄控盘:IF(控盘>REF(控盘,1)AND控盘>0,控盘,0),COLORRED,NODRAW;
STICKLINE(控盘>REF(控盘,1)AND控盘>0,控盘,0,3,0),COLORRED;
VAR2:=100*WINNER(CLOSE*0.95);
高度控盘:IF(VAR2>50ANDCOST(85)<CLOSEAND控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(VAR2>50ANDCOST(85)<CLOSEAND控盘>0,控盘,0,3,0),COLORFF00FF;
主力出货:IF(控盘<REF(控盘,1)AND控盘>0,控盘,0),COLOR00FF00,NODRAW;
STICKLINE(控盘<1.2*REF(控盘,1)AND控盘>0,控盘,0,3,0),COLOR00FF00;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
{柱状线}
MACD1:=(DIF1-DEA1)*2*60;
MACD上:IF(MACD1>REF(MACD1,1),MACD1,DRAWNULL),
STICK,COLORRED,LINETHICK1;
MACD下:IF(MACD1<REF(MACD1,1),MACD1,DRAWNULL),
STICK,COLORFF9900,LINETHICK1;
{买点提示}
A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
BL:=REF(CLOSE,A1+1)>CLOSEANDDIF1>REF(DIF1,A1+1)ANDCROSS(DIF1,DEA1);
{STICKLINE(BL,0,1,2,0),COLOR00FF00;}
买点:DRAWICON(BL,DEA1,23);
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
DBL:=REF(CLOSE,A2+1)<CLOSEANDREF(DIF1,A2+1)>DIF1ANDCROSS(DEA1,DIF1);
买点1:DRAWICON(DBL,DEA1,12);
低位金叉:=CROSS(DIF1,DEA1)ANDDIF1<-0.1;
DRAWTEXT(低位金叉,-0.36,'低位金叉');
JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));
二次金叉:=CROSS(DIF1,DEA1)ANDDEA1<0ANDCOUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,DEA1*1.04,13);
DRAWTEXT(二次金叉,-0.22,'二次金叉'),COLORFF00FF;
A10:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底背离:=REF(CLOSE,A10+1)>CLOSEANDDIF1>REF(DIF1,A10+1)ANDCROSS(DIF1,DEA1);
DRAWLINE(A10=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK2;
DRAWTEXT(底背离,-0.50,'底背离'),COLOR00FF00;
A20:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A20+1)<CLOSEANDREF(DIF1,A20+1)>DIF1ANDCROSS(DEA1,DIF1);
DRAWLINE(A20=0,DEA1,顶背离,DEA1,0),COLORWHITE,LINETHICK2;
{STICKLINE(底背离,X,SI,1,0),COLORYELLOW;}
STICKLINE(低位金叉,X,SI,1,0),COLORWHITE;
STICKLINE(必买,X,(X+SI)/2,2.3,0),COLORFF9900;
STICKLINE(必买,X,(X+SI)/2,0.1,0),COLORWHITE;
STICKLINE(低位金叉AND底背离,X,(X+SI)/2,2.3,0),COLORYELLOW;
STICKLINE(低位金叉AND底背离,X,(X+SI)/2,0.1,0),COLORCC66FF;
STICKLINE(二次金叉,X,SI,2.0,0),COLORYELLOW;
{主力进场}
VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);
VAR14:=EMA(VAR13,10);
VAR15:=LLV(LOW,33);
VAR16:=EMA(IF(LOW<=VAR15,VAR14,0),3);
主力进场:=IF(VAR16>REF(VAR16,1),VAR16,0),COLORRED,NODRAW;
STICKLINE(主力进场,X,SI,0.1,0),COLORRED;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
J:=3*K-2*D,COLORFF00FF;
X3:=LLV(J,2)=LLV(J,8);
A:=250;
JH1:=HHV(MAX(K,MAX(D,J)),A);
DH:=HHV(MAX(DIF1,DEA1),A);
SH:=INTPART(JH1/DH)/2;
DIFF50:=SH*DIF1+50,COLORFFFF00;
DEA50:=SH*DEA1+50,COLORBLUE;
诱空:=IF(1.5*(DIFF50-DEA50)>0ANDREF(1.5*(DIFF50-DEA50),1)<REF(1.5*(DIFF50-DEA50),2)AND1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);
低位:=CROSS(J,REF(J+0.01,1))ANDX3ANDJ<19;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
值:=LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)ANDCROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(诱空,3)AND诱空,X,'洗盘'),COLOR00FF00;
VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
VAR4:=EMA(VAR3,5);
VAR5:=3*VAR3-2*VAR4;
AA:=CROSS(VAR5,VAR3)ANDVAR3<2.1ANDC>O;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=LLV(LOW,13);
VAR8:=HHV(HIGH,13);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);
VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);
多:VAR9,COLORRED,POINTDOT;
空:EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLOR00FF00;
STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORWHITE;
STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORFFCC66;
STICKLINE(AA,0,30,40,1),COLORYELLOW;
STICKLINE(AA,16,29,38,0),COLORGREEN;
STICKLINE(AA,1,14,38,0),COLORGREEN;
STICKLINE(AA,15,15,40,1),COLORYELLOW;
STICKLINE(AA,30,50,10,0),COLORYELLOW;
STICKLINE(AA,53,55,10,1),COLORRED;
STICKLINE(AA,57,59,10,1),COLORRED;
STICKLINE(AA,61,63,10,1),COLORRED;
STICKLINE(AA,65,67,10,1),COLORRED;
STICKLINE(AA,69,75,12,0),COLORFFCCCC;
DRAWTEXT(AA,85,'干杯'),COLORYELLOW;
DRAWTEXT(AA,26,'五粮液'),COLORYELLOW;
{DRAWTEXT(AA,12,'XO'),COLORYELLOW;};
EMA250:=MA(C,250);
EMA6:=MA(C,6);
EMA18:=MA(C,18);
EMA55:=MA(C,55);
EMA144:=MA(C,144);
EMA288:=MA(C,288);
中线【买入】:=COUNT(CLOSE<EMA18,5)=4AND
CLOSE/EMA18>1.004ANDCROSS(CLOSE,EMA18)ANDEMA18>=
REF(EMA18,1);
IF(中线【买入】,40,0);
DRAWTEXT(中线【买入】,40,'中线【买入】'),COLORRED;
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
T:=FILTER(IF(VAR111<=VAR110ANDVAR18>REF(VAR18,1),VAR18*8,0),20);
IF(T,50,0);
DRAWTEXT(T,50,'←洗盘结束'),COLORFF00FF;
DRAWTEXT(T,50,'|'),COLORFF00FF;
VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR22:=SMA(VAR21,3,1);
VAR23:=SMA(VAR22,3,1);
VAR24:=SMA(VAR23,3,1);
VAR25:=CROSS(VAR23,VAR24)ANDVAR23<20;
IF(FILTER(VAR25,10)=1,50,0);
DRAWTEXT(FILTER(VAR25,10)=1,60,'←抄底'),COLORRED;
DRAWTEXT(FILTER(VAR25,10)=1,50,'|'),COLORRED;
VAR29:=CROSS(VAR24,VAR23)ANDVAR23>80;
IF(FILTER(VAR29,5)=1,80,100);
DRAWTEXT(FILTER(VAR29,5)=1,80,'←逃顶'),COLORBLUE;
DRAWTEXT(FILTER(VAR29,5)=1,80,'|'),COLORBLUE;
二、一个让庄家都害怕的指标公式
VAR1:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
买盘:=IF((CLOSE>OPEN),(VAR1*(HIGH-LOW)),IF((CLOSE<OPEN),(VAR1*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)));
卖盘:=IF((CLOSE>OPEN),(0-(VAR1*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(VAR1*(HIGH-LOW))),(0-(VOL/2))));
买卖差:=(买盘+卖盘);
STICKLINE((买卖差<0),0,买卖差,5,0),COLOR33FF33;
JX1:=BARSSINCE(买盘);
JY1:=IF(((121>JX1)AND(JX1>0)),JX1,120);
JY2:=IF(((4>JX1)AND(JX1>0)),JX1,3);
VAR30:=MA(VOL,JY2);
神比:=(买盘/VAR30);
鬼比:=(卖盘/VAR30);
VAR2:=(HIGH-LOW);
VAR3:=ABS((OPEN-CLOSE));
VAR4:=(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE>OPEN),OPEN,CLOSE)-LOW);
VAR6:=((VAR3/VAR2)*VOL);
VAR7:=((VAR4/VAR2)*VOL);
VAR8:=((VAR5/VAR2)*VOL);
VAR9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
VARA:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);
VARB:=(((MA(CLOSE,5)>MA(CLOSE,10))AND(MA(CLOSE,10)>MA(CLOSE,30)))AND(MA(CLOSE,30)>MA(CLOSE,60)));VARC:=((MA(CLOSE,5)<MA(CLOSE,10))AND(MA(CLOSE,10)<MA(CLOSE,30)));
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE-VARD),0),6,1)/SMA(ABS((CLOSE-VARD)),6,1))*100);
DRAWTEXT(((DATE>700101)ANDCROSS(84,VARE)),HIGH,'■卖出'),COLORF2A3A4;
VAR40:=((IF((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE>OPEN)),VAR6,买盘)+买盘)/2);
VAR41:=((IF(((VAR7>VAR6)AND(VAR7>VAR8)),VAR7,买盘)+买盘)/2);
VAR42:=((IF(((VAR8>VAR6)AND(VAR8>VAR7)),VAR8,买盘)+买盘)/2);
VAR50:=((IF((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE<OPEN)),VAR6,卖盘)+卖盘)/2);
三日上攻:=MA((((VAR40+VAR41)+VAR42)/3),JY2);
三日下攻:=MA(VAR50,JY2);
多头:STICKLINE((CLOSE>MA(CLOSE,30)),0,VOL,5,1),COLOR0000FF;
空头:STICKLINE((CLOSE<MA(CLOSE,30)),0,VOL,5,1),COLOR00FF00;
STICKLINE((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE>OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE<OPEN)),0,VAR6,4,0),COLORFF0000;
STICKLINE(((VAR8>VAR6)AND(VAR8>VAR7)),0,VAR8,4,0),COLORFFFFFF;
STICKLINE(((VAR7>VAR6)AND(VAR7>VAR8)),0,VAR7,4,0),COLORFF00FF;
STICKLINE((VOL>(MA(VOL,5)*2.5)),0,VOL,2,0);
STICKLINE((买盘>0),买盘,0,2,0),COLOR0000FF;
上攻均量:=MA(买盘,JY1);
下攻均量:=MA(卖盘,JY1);
DRAWTEXT(((((((((VAR7>VAR6)AND(VARA>2))AND(VAR9>VAR8))AND(CLOSE>MA(CLOSE,5)))AND(CLOSE>MA(CLOSE,30)))AND(HIGH>MA(CLOSE,60)))AND(VOL>MA(VOL,5)))AND(VAR7>=MA(VOL,5))),VOL,'▼出货');
DRAWTEXT(((((((VAR8>VAR6)AND(VAR8>VAR7))AND(VARA<(0-2)))AND(CLOSE<MA(CLOSE,30)))AND(VAR8<(MA(VOL,5)/2)))AND(MA(VOL,5)<MA(VOL,10))),VOL,'●低进');
DRAWTEXT((((((VAR6>(MA(VOL,5)*2))AND(VAR6>=VAR7))AND(VAR6>=VAR8))AND(CLOSE>OPEN))OR((VOL>(MA(VOL,5)*3))ANDVARB)),VOL,'◆强势');
HSL:=DYNAINFO(37);
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARC,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG>28,28,VARG);
INPUT:N1(5,1,100),n2(10,1,100),n3(50,1,100);
drawgbklast(close>0,strip(rgb(60,120,0),rgb(10,90,0),));
ma1:=ma(c,250);
ratio:=if(ma1>ref(ma1,1),31,200);
total:capital*C*100,colorred,linethick3;
amt1:ema(amount,N1)*ratio,colorffff00;
amt2:ema(amount,N2)*ratio,coloryellow;
amt3:ema(amount,N3)*ratio,colorgreen,linethick2;
吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;
备钱:吸筹,COLOR0FFFFF;
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
买入时机:IF(CROSS(J,3),65,0),colorFF00FF,linethick3;
DRAWTEXT(买入时机,70.1,'跟庄'),COLOR00FF00;
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORred;
红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;
趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),color00FFFF;
秘密买点:IF(趋势<=3,20,0),color00ff00,linethick3;
机构建仓:IF(趋势<5,40,0),colorFFFFFF,linethick3;
AA:=((WMA(CLOSE,5)-REF(WMA(CLOSE,5),1))/REF(WMA(CLOSE,5),1));BB:=((WMA(INDEXC,5)-REF
(WMA(INDEXC,5),1))/REF(WMA(INDEXC,5),1));DD:=REF(LLV(CLOSE,120),1);WW:=((100*(CLOSE-DD))/((REF
(HHV(CLOSE,120),1))-DD));今日资金流入值:=(AMOUNT/100000000);三日资金流入值:=(EMA(今日资金流入值,5)
/REF(EMA(今日资金流入值,5),5));庄股:=((((((三日资金流入值>=2)AND(AA>BB))AND(WW<35))
AND1)AND(BARSCOUNT(CLOSE)>30))OR(((((三日资金流入值>=2)AND(AA>BB))AND(WW<100))
AND1)AND(BARSCOUNT(CLOSE)<50)));庄家显形:IF(庄股,888,0),LINETHICK0,colorFF00FF;STICKLINE
(庄家显形,0,30,40,1),ColorFFFF00;STICKLINE(庄家显形,16,29,38,0),Color0000FF;STICKLINE(庄家显形,
1,14,38,0),Color0000FF;
STICKLINE(庄家显形,15,15,40,1),ColorFFFF00;STICKLINE(庄家显形,30,50,10,0),
Color00FFFF;STICKLINE(庄家显形,53,55,10,1),Color0000FF;STICKLINE(庄家显形,57,59,10,1),Color0000FF;
STICKLINE(庄家显形,61,63,10,1),Color0000FF;STICKLINE(庄家显形,65,67,10,1),Color0000FF;STICKLINE
(庄家显形,69,75,10,0),Color00FF00;DRAWTEXT(庄家显形,25,'庄家'),ALIGN0,Color00FF00;DRAWTEXT
(庄家显形,11,'已显形'),ALIGN0,Color00FF00;
[源码注释]通达信公式动态翻译结果
赋值:30
(收盘价/N日前的收盘价-1)*100<-20 AND 统计N日中满足收阳线的天数<统计N日中满足收阴线的天数
推荐阅读:发现庄家副图指标
市值:=500;
VOL_MA5=MA(VOL,5);
VOL_MA10=MA(VOL,10);
VOL_VS_MA5=VOL>=(REF(VOL_MA5,1)*2);
VOL_VS_MA10=VOL>=(REF(VOL_MA10,1)*2);
VOL_MATCH=(VOL_VS_MA5ORVOL_VS_MA10);
IFVOL_MATCHTHEN{
VOL_VS_MA5_VALUE=VOL/REF(VOL_MA5,1);
VOL_VS_MA10_VALUE=VOL/REF(VOL_MA10,1);
IFVOL_VS_MA5_VALUE>VOL_VS_MA10_VALUETHEN
SIGNAL_STENGTH:VOL_VS_MA5_VALUE;
ELSE
SIGNAL_STENGTH:VOL_VS_MA10_VALUE;
}
//SIGNAL_STENGTH:VOL_VS_MA5ORVOL_VS_MA10;
//IFVOL_MATCHTHEN
//SIGNAL:3;
//—————–选股条件—————–
//市值
SMALL_STOCK_SHARE=ZGB*CLOSE/100000000;
COND2=SMALL_STOCK_SHARE<=市值;
SELECT_MATCH=VOL_MATCHANDCOND2;
SELECTSELECT_MATCH;
//ORREF(SELECT_MATCH,1)ORREF(SELECT_MATCH,2)
//ORREF(SELECT_MATCH,3)ORREF(SELECT_MATCH,4)
发现大庄源码}
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;
STICKLINE(控盘>REF(控盘,1)AND控盘<0,控盘,0,1,1),COLORFF00FF;
无庄控盘:=控盘<0;
STICKLINE(控盘>REF(控盘,1)AND控盘>0,控盘,0,1,1),COLOR0000FF;
有庄控盘:=控盘>REF(控盘,1)AND控盘>0;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(控盘<REF(控盘,1)AND控盘>0,控盘,0,1,1),COLORFFFF00;
主力出货:=控盘<REF(控盘,1)AND控盘>0;
STICKLINE(VAR2>50ANDCOST(85)<CLOSEAND控盘>0,控盘,0,1,1),COLOR00FFFF;
高度控盘:VAR2>50ANDCOST(85)<CLOSEAND控盘>0,COLOR00FFFF,LINETHICK2;
A10:=CROSS(控盘,0);
控盘B:=FILTER(IF(A10,1,0),5);
{分时价格原码}
JJ:=DYNAINFO(11);
{波段买卖原码}
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.03;
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1)AND(C-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1)AND控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1)AND控盘<-0.2;
BTJ22:=控盘>REF(控盘,1)AND控盘<0;
{波段买卖条件}
BTJ3:=CROSS(财,神)AND财<-0.3;
BTJ32:=CROSS(财,神)AND财<-0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财)AND财>1.618;
{以下为信号};
BTJ81:=FILTER(BTJ1ANDBTJ2ANDBTJ3,13);
BTJ811:=FILTER(BTJ11ANDBTJ2ANDBTJ3,13);
BTJ82:=FILTER(BTJ12ANDBTJ22ANDBTJ32,13);
DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;
DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;
STJ81:=FILTER(STJ1ANDSTJ01ANDSTJ31,13);
STJ82:=FILTER(STJ02ANDSTJ32,13);
STJ83:=STJ81ANDSTJ82;
DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;
DIFF:(EMA(CLOSE,8)-EMA(CLOSE,55))*10,COLORRED;
DEA:EMA(DIFF,3),COLORGREEN;
庄:=BTJ11ANDBTJ2ANDBTJ3;
有庄:FILTER(庄,55),COLORWHITE;
DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;
N:=30;M:=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,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/CLOSE<1.010ANDVar326>0,91,0);
STICKLINE(Var327>90,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(Var327>90,LOW*0.95,'追涨'),COLORYELLOW;
LC:=REF(CLOSE,1);
RS1:=SMA(MAX(CLOSE-LC,0),M,1)/SMA(ABS(CLOSE-LC),M,1)*100;
MA1:MA(RS1,N1),COLORWHITE;
RSI:RS1,COLORRED,LINETHICK2;
BOLL:MA(RSI,N1);
UPPER:BOLL+2.382*STD(RSI,N1);
LOWER:BOLL-2.382*STD(RSI,N1);
M:1.250.60;
N11.250.60
每日公式解答:
股票公式编写要求:
30日均线连跌超过5天后拐头向上的选股公式。
股票公式编写结果:
XG:REF(DOWNNDAY(MA(C,30),5),1)ANDMA(C,30)>REF(MA(C,30),1);
评论(0)