1.��ȷ�ķ�ʱ��ͼԴ�빫ʽ
2.求高手写个通达信当天开盘价在分时图上自动画线的精确分时主图指标?谢谢!
3.分时追涨公式
��ȷ�ķ�ʱ��ͼԴ�빫ʽ
突破:=REF(EMA(C,),1);
A1X:=(EMA(C,)-突破)/突破*;
多方:=IF(A1X>=0,REF(EMA(C,),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,,0),COLOR;
STICKLINE(A1X<0,空方,突破,,0),COLORCC;
EE:=(H+L+O+2*C)/5;
CRTP:=EE+(H-L);
CRZL:=2*EE-L;
CRZC:=2*EE-H;
CRFZ:=EE-(H-L);
顶:CONST(CRTP),COLORRED;
压:CONST(CRZL),COLORC7C9FF;
撑:CONST(CRZC),COLOR7C9CFF;
跳:CONST(CRFZ),COLORDDDD;
弹:MA(CLOSE,3);
支撑:EXPMA(CLOSE,);
起涨:MA(C,),COLORFFFF,LINETHICK2;
涨:IF(MA(CLOSE,)>REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORRED,LINETHICK2;
平:IF(MA(CLOSE,)=REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORFFFF,LINETHICK3;
跌:IF(MA(CLOSE,)<REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORGREEN,LINETHICK2;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR,跳 , '跳起'),LINETHICK1,COLORDDDD;
DRAWTEXT(ISLASTBAR,撑 , '撑力'),LINETHICK1,COLOR7C9CFF;
DRAWTEXT(ISLASTBAR,压 , '压力'),LINETHICK1,COLORC7C9FF;
DRAWTEXT(ISLASTBAR,顶 , '顶破'),LINETHICK1,COLORFF;
A:MA(C,)<MA(C,) AND COUNT(CROSS(MA(C,5),MA(C,)),) AND REF(L,1)<REF(MA(C,),1) AND REF(C,1)<REF(MA(C,5),1) AND C>REF(H,1) AND REF(C,1)<REF(H,2) AND COUNT(MA(C,)>REF(MA(C,),1),5)>1,NODRAW;
B:MA(C,)>MA(C,) AND REF(L,1)<REF(MA(C,),1)*1. AND C>REF(H,1) AND REF(C,1)<REF(H,2) AND REF(C,1)<REF(H,2),NODRAW;
DRAWICON(A,L-0.,);
DRAWICON(B,L-0.,);
HH:=LLV(L,7)*1.-0.;
STICKLINE(H>=HH,H,H*1.,1,0),COLORFFFF;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * );
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*>1.2;
DD1:=L<MA(C,5)*0.;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFFFF;
日跌:L*0.,NODRAW,COLORFFFF;
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
P:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
P:=今小前;
DL:=P=1 AND REF(P,1)=0 AND P=1 AND REF(P,1)=0;
STICKLINE(DL,O,C,0.1,0),COLORAAAAAA;
BB :=MAX(C,O)-(REF(MAX(C,O),2)-MAX(C,O))/2;
买点:=(H-(REF(H,2)-H)/2);
AA:MAX(BB,买点),NODRAW,COLORFFFF;
STICKLINE(C<O AND F<-3 AND F>-5,C+(O-C)/3,C+(O-C)/3,2.5,0),COLORRED;
STICKLINE(C<O AND F<-3 AND F>-5,C+2*(O-C)/3,C+2*(O-C)/3,2.5,0),COLORRED;
STICKLINE(C<O AND F<=-5 AND F>-7,C+(O-C)/2,C+(O-C)/2,2.5,0),COLORYELLOW;
STICKLINE(C<O AND F<=-7 AND F>-,C+2*(O-C)/3,C+(O-C)/3,2.5,1),COLORYELLOW;
STICKLINE(C<O AND F<=-9.9,O,C,2.5,0),COLORFF;
STICKLINE(C>O AND F>2.9 AND F<5,O+(C-O)/3,O+(C-O)/3,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>2.9 AND F<5,O+2*(C-O)/3,O+2*(C-O)/3,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>=5 AND F<7,O+(C-O)/2,O+(C-O)/2,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>=7 ,O+2*(C-O)/3,O+(C-O)/3,2.5,1),COLORYELLOW;
A1:=MA(CLOSE,)+ABS(MA(CLOSE,)-REF(MA(CLOSE,),1));
B1:=MA(CLOSE,)+MA(CLOSE,)-REF(MA(CLOSE,),1);
分水岭:IF(MA(CLOSE,)<B1,B1,MA(CLOSE,)),COLORFFFF,LINETHICK2;
操作线:分水岭-(EMA(C,3)-分水岭),COLORFFFF,LINETHICK2;
PM:MA(C,5),COLORWHITE,LINETHICK2;
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF,LINETHICK2;
S:=(PM>操作线);
DD:=分水岭<REF(分水岭,1);
IF(DD,分水岭,DRAWNULL),COLORFF,LINETHICK2;
IF(S,分水岭,DRAWNULL),COLORFF,POINTDOT,LINETHICK4;
DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{ 买入红箭头};
求高手写个通达信当天开盘价在分时图上自动画线的分时主图指标?谢谢!
用这个代码:
DYNAINFO(4),图源图COLORFFAA;
很好用的准分分时主图指标公式:
M1:=;
N1:=;
N:=;
Q:=5;
SHORT:=;
LONG:=;
MID:=;
P2:=;
DRAWGBK(C>0,RGB(,精确,时主式精时主steam4k红警源码),图源图RGB(,准分,精确),时主式精时主0,图源图'',准分0);
H1:=maX(DYNAINFO(3),精确DYNAINFO(5));
L1:=MIN(DYNAINFO(3),时主式精时主DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,图源图COLORGREEN;
支撑:L1+P1*0.5/8,COLORRED;
中:(支撑+阻力)/2,COLORWHITE,POINTDOT;
现价:CLOSE,COLORWHITE,LINETHICK2;
顶卖:stICKLINE(C>阻力,阻力,C,5,0),COLORGREEN;
底买:STICKLINE(CMR:=CDRAWTEXT(CROSS(现价,支撑),中,'★买'),rem 源码COLORRED;
STICKLINE(CROSS(现价,支撑),C,中,2,0),COLORRED;
STICKLINE(MR=1,支撑,中,2,0),COLORRED;
DRAWICON(MR=1ORCROSS(现价,支撑),中,1);
STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORYELLOW;
DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW;
MC:=C>阻力ANDCROSS(REF(C,2),C);
DRAWTEXT(CROSS(阻力,现价),jsignpdf 源码中,'★卖'),COLORGREEN;
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORGREEN;
STICKLINE(MC=1,阻力,中,2,0),COLORGREEN;
DRAWICON(MC=1ORCROSS(阻力,现价),中,2);
STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORMAGENTA;
DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,'★顶'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,阻力,arcpy 源码'顶'),COLORGREEN;
DRAWTEXT(ISLASTBAR,支撑,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'中'),COLORWHITE;
每股净资产:=STRCAT(STRCAT('每股净资产:',CON2STR(FINANCE(),2)),'元');
DRAWTEXT_FIX(1,0.,0.,0,每股净资产),COLORWHITE;
主营同比增长:=STRCAT(STRCAT('主营同比增长:',CON2STR(FINANCE(),2)),'%');
DRAWTEXT_FIX(1,0.,0.,0,主营同比增长),COLORCYAN;
净利润同比增长:=STRCAT(STRCAT('净利润同比增长:',CON2STR(FINANCE(),2)),'%');
DRAWTEXT_FIX(1,0.,easysocket源码0.,0,净利润同比增长),COLORYELLOW;
{ 销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR(FINANCE()/FINANCE()*,2)),'%');}
销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR((FINANCE()-FINANCE())/FINANCE()*,2)),'%');
DRAWTEXT_FIX(1,0.,0.,0,销售毛利率),COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,'每股收益:')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,STRCAT(CON2STR(FINANCE()/FINANCE(1),2),'元'))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'每股市盈率:')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,STRCAT(CON2STR(C/FINANCE(),2),'倍'))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'流通A股:')COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,STRCAT(CON2STR(CAPITAL/,2),'亿股'))COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,'每股未分配:元')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,CON2STR(FINANCE(),2))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'经营现金流:元')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,CON2STR(FINANCE()/FINANCE(1),2))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'☆[热点概念]:')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,EXTERNSTR(0,1))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'☆[主营行业]:')COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,EXTERNSTR(0,2))COLORCYAN;
{ DRAWTEXT_FIX(1,0.,0.,0,'[高送转信号]:')COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,EXTERNSTR(0,3))COLORCYAN;};
所属板块:=STRCAT('☆所属板块',STRCAT(STRCAT(STRCAT('[行业]—',HYBLOCK),STRCAT('[地域]—',DYBLOCK)),STRCAT('[概念]—',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.,0.,0,所属板块),COLORYELLOW;
今日人气:=DYNAINFO()/DYNAINFO();
DRAWTEXT_FIX(1,0,0.,0,'◆大盘人气:'),COLORYELLOW,LINETHICK4;
DRAWNUMBER_FIX(1,0.,0.,0,CONST(今日人气)),COLORYELLOW;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,,IF(PERIOD=3,,IF(PERIOD=4,,IF(PERIOD=5,,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME虚拟量:=IF(CURRBARSCOUNT=1,vol*TOTAL/CTIME,DRAWNULL);
虚拟量比:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0;
虚量值:=(虚拟量-VOL)/VOL,COLORWHITE,LINETHICK0;
DRAWTEXT_FIX(1,0.,0.,0,'▲量比:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.,0.,0,CONST(虚拟量比)),COLORYELLOW;
量价:=(VOL/CLOSE)/3;
统计主动买量:=SUM((IF(((量价>0.)AND(CLOSE>(REF(CLOSE,1)))),量价,0)),0);
统计主动卖量:=SUM((IF(((量价>0.)AND(CLOSE涨停能量:=((统计主动买量)/统计主动卖量)*,COLORFF;
DRAWTEXT_FIX(1,0.,0.,0,'★涨停能量:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.,0.,0,CONST(涨停能量)),COLORYELLOW;
分时追涨公式
四个分时指标公式:
★分时雄起!分时走势上部主图专用!
ma5:ma(c,5);
ma:ma(c,);
ma:ma(c,);
ma:ma(c,);
ma:ma(c,);
ma:ma(c,);
fa:=barslast(cross(ma,ma5)) and cross(ma5,ma);
fb:=fa and ma5>ma and ma>ma and ma>ref(ma,1);
STICKLINE(fb,l,l-0.,4,0),COLORYELLOW;
DRAWTEXT(fb,l-0.,'雄起'),COLORYELLOW;
fa2:=barslast(cross(ma,ma)) and cross(ma,ma);
fb2:=fa2 and ma>ma and ma>ma and ma>ref(ma,1);
STICKLINE(fb2,l,l-0.,4,0),COLORYELLOW;
DRAWTEXT(fb2,l-0.,'雄起'),COLORYELLOW;
★实战分时!下部专用!可做进一步简化处理!
input:LONG(,1,),SHORT(,1,),M(9,1,),p1(,1,),p2(,1,);
DIF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
MACD2:2*(DEA-DIF),COLORFFB2,DOTLINE;
MA5:=MA(CLOSE,5);
MA:=MA(CLOSE,);
MA:=MA(CLOSE,);
MA:=MA(CLOSE,);
MA:=MA(CLOSE,);
MA:=MA(CLOSE,);
突破线:=MIN(MA*1.1,MA*1.3);
差幅:=C/MIN(MA*1.1,MA*1.3)-1;
均线流:=(MA5>MA AND MA>MA AND MA>MA AND MA5<MA)*0.3;
PL1:=(CLOSE - MA) / MA < 0.1;
PL2:=(CLOSE - MA) / MA < 0.3;
偏离率:(PL1 = 1 AND PL2 = 1) * 0.2,STICK,COLORFFFF,LINETHICK2;
MACD超跌:=COUNT((DIF<DEA),)=;
MACD1:MACD超跌 * "MACD.MACD"(LONG,SHORT,M)*(-1),COLOR,LINETHICK2;
目标:IF(均线流=0.3 AND MACD超跌 AND 偏离率=0.2 ,0.8,0),COLORFF,LINETHICK2;
MBSJ:=BARSLAST(目标 = 0.8);
放量上涨:=V/REF(V,1) >= 1.1 AND C/REF(C,1) >= 1.;
SZSJ:=BARSLAST(放量上涨 = 1);
MACD雄起:=CROSS(DIF,DEA);
JCSJ:=BARSLAST(MACD雄起 = 1);
关注:(MACD雄起 AND REF(MACD1,1) < 0)*-0.1,COLORFF;
启动:(MBSJ <= AND SZSJ <= 1 AND JCSJ <= 1) * 1,COLORFFFF,LINETHICK2;
突破:(偏离率 = 0 AND REF(COUNT(偏离率 = 0.2,) = ,1) = 1) * -0.1,COLORRED;
STICKLINE(偏离率 = 0.2,0,0.2,1,0),colorFFFF;
DRAWTEXT(关注=-0.1,-0.,'关●注'),colorff;
DRAWTEXT(启动,0.8,'★买'),colorFFFF;
DRAWTEXT(突破=-0.1,-0.,'突●破'),colorred;
NHIGH:=REF(HIGH,);
N1LOW:=REF(LOW,1);
FF:=(((NHIGH - N1LOW) / N1LOW) > 0.);
DRAWICON((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((NHIGH - N1LOW) / N1LOW) <
0.)) AND (OPEN >= MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW <= MA
(CLOSE,P1))),0.5,1);
DRAWTEXT((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((NHIGH - N1LOW) / N1LOW) <
0.)) AND (OPEN >= MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW <= MA
(CLOSE,P1))),0.5,'★^回头望月'),colorCC;
低位雄起:CROSS(DIF,DEA) AND DIF<-0.1,colorwhite;
STICKLINE(低位雄起,0,0.,6,0),COLORwhite;
DRAWTEXT(低位雄起,低位雄起-1.5,' 低位雄起'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
雄起:CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,)=1,coloryellow;
STICKLINE(雄起,0,0.,6,0),ColorFFFF;
DRAWICON(雄起,dea*1.,1) ;
DRAWTEXT(雄起,0.5,' 雄起'),ColorYELLOW;
if(dif<0,dif,0),coloryellow,linethick2;
if(dif<0,0,dif),colorred,linethick2;
if(dif<dea,dif,dea),COLORWHITE,linethick2;
if(dif>dea,dea,dea),COLORFF{ colorffff},linethick2;
操盘:STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,4,1),COLORRED{ COLORFF};
减仓:STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,4,0),COLORblue{ COLORFF};
反弹:STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,4,1),COLORYELLOW{ COLORFFFF};
寻底:STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,4,0),COLORFFFF;
空仓:0,COLORWHITE;
★分时机密!下部专用!可做进一步简化处理!多用于开盘就抓涨!
V1:=(C*2+H+L)/4*;
V2:=EMA(V1,)-EMA(V1,);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
庄秘撤: IF(V4<=0,V4,0),COLORFF,LINETHICK2;
庄秘进: IF(V4>=0,V4,0),COLORFFFF,LINETHICK2;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,)-EMA(V8,);
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*/)*;
bb:=WINNER(CLOSE+CLOSE*0/)*;
cc:=aa-bb;
dd:=(WINNER(CLOSE-CLOSE*0.1/)-WINNER(CLOSE-CLOSE*/))*;
ee:=cc<3 and dd<0.5 and OPEN<>LOW;
a1:=DYNAINFO(6);
a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.)/(HIGH-LOW+0.)));
a3:=VOL/WINNER(LOW);
a4:=REF(HHV(CLOSE,),1);
a5:=REF(LLV(CLOSE,),1);
a6:=*(CLOSE-a5)/(a4-a5);
a7:=a2>0 or a2=1;
a8:=a7 and a3/REF(a3,3)>=3 and a6<;
a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);
a:=a8 and a9;
a:=IF(FILTER(a8,3),5,0);
a:=IF(FILTER(a,3) or ee,,0);
筹码进场日:IF(a,8,0),LINETHICK0;
STICKLINE(a,0,,5,0),colorffff;
筹码加仓日:IF(a,,0),LINETHICK0;
STICKLINE(a,0,,5,0),colorffff;
STICKLINE(a,0,5,5,0),colorff;
STICKLINE(a,0,5,4.5,0),colorff;
STICKLINE(a,0,5,4,0),colorff;
STICKLINE(a,0,5,3.5,0),colorffaa;
STICKLINE(a,0,5,3,0),colorffbb;
STICKLINE(a,0,5,2.5,0),colorffcc;
STICKLINE(a,0,5,2,0),colorffdd;
STICKLINE(a,0,5,1,0),colorffee;
STICKLINE(a,0,,4.5,0),color;
STICKLINE(a,0,,4,0),coloraa;
STICKLINE(a,0,,3.5,0),colorbb;
STICKLINE(a,0,,3,0),colorcc;
STICKLINE(a,0,,2.5,0),colordd;
STICKLINE(a,0,,2,0),coloree;
STICKLINE(a,0,,1,0),colorff;
DRAWTEXT(a,8,'筹码进场');
DRAWTEXT(a,,'筹码加仓');
Var1:=REF(LOW,1);
Var2:=SMA(ABS(LOW-Var1),,1)/SMA(MAX(LOW-Var1,0),,1)*4;
Var3:=EMA(Var2,);
Var4:=LLV(LOW,);
Var5:=EMA(IF(LOW<=Var4,Var3,0),3);
主力进场:
STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORRED;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,LINETHICK2;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,1),COLORGREEN;
Var6:=-3*SMA((CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,,1)+2*SMA(SMA((CLOSE-
LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,,1),,1);
Var7:=-3*SMA((OPEN-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,,1)+2*SMA(SMA((OPEN-LLV
(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,,1),,1);
Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(Var8 AND COUNT(Var8,)=1,,'★注意有筹码进场迹象');
★分时作为!(专门监视庄家行动变化)同时也可用于买入信号观注点!
Var1:=EMA(EMA(CLOSE,),);
作为:=(Var1-REF(Var1,1))/REF(Var1,1)*;
无庄作为:STICKLINE(作为<0,作为,0,4,0),colorwhite;
有庄作为:STICKLINE(作为>REF(作为,1) AND 作为>0,作为,0,4,1),colorred;
Var2:=*WINNER(CLOSE*0.);
出货作为:STICKLINE(作为<REF(作为,1) AND 作为>0,作为,0,4,0),colorff;
高度作为:STICKLINE(Var2> AND COST()<CLOSE AND 作为>0,作为,0,4,0),colorffff;
a:=CROSS(作为,0);
开始作为:if(a,6,0),coloryellow;
★分时实战
input:LONG(,1,),SHORT(,1,),M(6,1,),N(6,1,);
MA5:=MA(CLOSE,5);
MA:=MA(CLOSE,);
MA:=MA(CLOSE,);
MA:=MA(CLOSE,);
DIF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:EMA(DIF,M);
MACD:=2*(DIF-DEA);
Q:2*(DEA-DIF),COLORFF;
MACD超跌:=COUNT((DIF<DEA),)=;
Q1:MACD超跌 * "MACD.MACD"(LONG,SHORT,M),COLORFFFF,LINETHICK2;
{ 本行中,大智慧版本选择*(-1);飞弧版本选择*(1)}
MACD金叉:=CROSS(DIF,DEA);
DTPL:=MA>MA AND MA>MA AND MA>REF(MA,1);
关注:=(MACD金叉 AND REF(Q1,1) < 0)*-0.1;
均线:(DTPL AND MA5>MA AND MA5<MA)*-0.,colorFFB2,LINETHICK1,PRECIS2,DOTLINE;
偏离:(C<MIN(MA*1.,MA*1.1) AND C>MA)*0.,COLOR,LINETHICK1,PRECIS2,DOTLINE;
DRAWTEXT(关注,-0.,'GZ'),colorff,align1;
BDGD:=C=HHV(C,);
GDSJ:=BARSLAST(BDGD);
目标:IF(均线 AND 偏离 AND GDSJ>=N,0.5,0),COLORffff,POINTDOT,PRECIS1,LINETHICK3;
MBSJ:=BARSLAST(目标);
MAV5:=EMA(V,5);
MAV:=EMA(V,);
LNMACD:=((V-MAV5)/MAV5*2+(V-MAV)/MAV)*;
量坑:=LNMACD<=-;
优选:=目标 AND COUNT(量坑,3)>=1;
DRAWICON(优选,-0.2,);
NHIGH:=REF(HIGH,6);
N1LOW:=REF(LOW,1);
DRAWTEXT((((((CROSS(MA(CLOSE,),MA(CLOSE,)) > 0) AND (((NHIGH - N1LOW) / N1LOW) <
0.)) AND (OPEN >= MA(CLOSE,))) AND (CLOSE >= MA(CLOSE,))) AND (LOW <= MA
(CLOSE,))),0.5,'^回头望月'),colorCC;
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
STICKLINE(低位金叉,0,0.,6,1),COLORwhite;
DRAWTEXT(低位金叉,低位金叉-1.3,' 低金'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,)=1;
STICKLINE(二次金叉,0,0.2,4,0),ColorFFFF;
DRAWTEXT(二次金叉,0.4,' 二金'),ColorYELLOW;
A4:=BARSLAST(ref(cross(dif,dea),1));
B1:=ref(c,A4+1)>c and ref(dif,A4+1)<dif and cross(dif,dea);
DRAWTEXT(FILTER(B1>0,5),dif+0.2,'背离'),COLORyellow;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,3,0),COLORRED{ COLORFF};
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,3,0),COLORblue{ COLORFF};
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,3,0),COLOR4ABEFF{ COLORFFFF};
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,3,0),COLORFFFF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
周K:=MA(".K#WEEK"(9,3,3) ,5);
周D:=MA(".D#WEEK"(9,3,3) ,5);
周J:=MA(".J#WEEK"(9,3,3) ,5);
DRAWICON(k< and cross(k,d),MACD,1),align2;
周金RAWTEXT(CROSS(".K#WEEK"(9,3,3),".D#WEEK"(9,3,3)) ,MACD,'▲'),align2,COLORred;
周死RAWTEXT(CROSS(".d#WEEK"(9,3,3),".k#WEEK"(9,3,3))
,macd*1.5,'▼'),align2,COLORgreen;
月金RAWTEXT(CROSS(".K#MONTH"(9,3,3),".D#MONTH"(9,3,3))
,MACD,'▲'),align2,COLORMAGENTA;
月死:DRAWTEXT(CROSS(".D#MONTH"(9,3,3),".K#MONTH"(9,3,3))
,macd*1.5,'▼'),align2,COLOR3fbb8b;
if(dif<0,dif,0),coloryellow,linethick2;
if(dif<0,0,dif),colorred,linethick2;
if(dif<dea,dif,dea),COLORWHITE,linethick2;
if(dif>dea,dea,dea),COLORgreen{ colorffff},linethick2;
HH:=MA(CLOSE,);
GG:=MA(CLOSE,);
上:=ema((MA(HIGH,3) * 1.),);
下:=ema((MA(LOW,3) * 0.),);
决战:STICKLINE((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND
(DIF < 0)),DIF,0.3,1,0),colorFF;
{ DRAWICON((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF
< 0)),0.4,0);}
DRAWTEXT((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF
<= 0)),0.3,'DIF金叉'),colorFF;
STICKLINE(FILTER(((((MACD >= REF(MACD,5)) AND ((下 - REF(下,1)) > 0)) AND (MACD <= 0)) AND
((GG - REF(GG,1)) >= 0)),3),0,0.4,1,0),colorFF;
{ DRAWICON(FILTER(((((MACD >= REF(MACD,5)) AND ((下 - REF(下,1)) > 0)) AND (MACD <= 0)) AND
((GG - REF(GG,1)) >= 0)),3),0.5,0);}
DRAWTEXT(FILTER(((((MACD >= REF(MACD,5)) AND ((下 - REF(下,1)) > 0)) AND (MACD <= 0)) AND
((GG - REF(GG,1)) >= 0)),3),0.4,'绝佳买入'),colorFF;