以下是通达信有买卖提示的质变波段主图指标公式源码和使用说明
通达信有买卖提示的质变波段主图指标公式源码:
开关:=0;
//开关:=1;
TJ:=REFX(&CLOSE,6)>0;
阴跌绵绵:=COUNT(C<REF(C,1),12)>=8;
动移均价:=DMA(CLOSE,VOL/SUM(VOL,5));
现价偏离:=CLOSE/动移均价<0.92;
回调买入:FILTER(阴跌绵绵AND现价偏离ANDCLOSE>LOW,10),coloryellow;
VarA:=LLV(LOW,35);
VarB:=HHV(HIGH,30);
VarC:=EMA((CLOSE-VarA)/(VarB-VarA)*4,4)*25;
趋势:IF(tj+开关,VarC,NULL),ColorFF00FF,linethick2;
VarD:=87.5;
VarE:=(VarC-LLV(VarC,4))/(HHV(VarC,4)-LLV(VarC,4))*4*25;
目标位:DRAWTEXT(IF(CROSS(趋势,VarD)ANDVarE=100,50,0),56,’目标’),ColorFF00FF;
跑:DRAWTEXT(IF(CROSS(VarD,趋势)AND(tj+开关),87,0),85,’跑’),Color00FF00;
Var6:=(2*C+H+L)/4;
Var8:=LLV(LOW,30);
VarA:=HHV(HIGH,30);
B:=EMA((Var6-Var8)/(VarA-Var8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0ANDB-B1>=0AND(tj+开关),79,80,6,0),COLOR00FF00;
STICKLINE(B>0ANDB-B1<0AND(tj+开关),79,80,6,0),colorcyan;
STICKLINE(B>0ANDB-B1>=0AND(tj+开关),49,50,6,0),colorred;
STICKLINE(B>0ANDB-B1<0AND(tj+开关),49,50,6,0),colorcyan;
STICKLINE(B>0ANDB-B1>=0AND(tj+开关),19,20,6,0),COLOR00FF00;
STICKLINE(B>0ANDB-B1<0AND(tj+开关),19,20,6,0),colorcyan;
STICKLINE(B-B1>0AND(tj+开关),B,B1,8,1),colorred;
STICKLINE(B-B1<0AND(tj+开关),B,B1,8,1),Color00FF00;
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,21);
VA:=HHV(HIGH,34);
防线B:=EMA((V1-V2)/(VA-V2)*100,13);
防线BB:=EMA((0.667*REF(防线B,1)+0.333*防线B),2);
//战略线:EMA(0.382*REF(防线B,2)+0.618*防线B,12),coloryellow;
//买卖图票.这是另一段代码可以移除
VAR1:=HHV(HIGH,13)-LLV(LOW,13);
VAR2:=HHV(HIGH,13)-CLOSE;
VAR3:=CLOSE-LLV(LOW,13);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF(VAR9>100,VAR9-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
VAR14:IF(CROSS(VAR12,VAR13)ANDVAR12>VAR13ANDVAR12<18,20,0);
DRAWICON(VAR14>0AND(tj+开关),EMA(VAR13,5),1);
VAR15:IF(CROSS(VAR13,VAR12)ANDVAR12<VAR13ANDVAR12>60,VAR13,88);
STICKLINE((CROSS(VAR13,VAR12)ANDVAR12<VAR13ANDVAR12>60)AND(tj+开关),VAR13,88,2,1);
DRAWICON(VAR15<88AND(tj+开关),VAR15,2);
顶部:88;
排序:IF(VAR14>0AND(tj+开关),5,0),STICK,colorcyan;
DRAWTEXT_FIX(1,0.01,0.82,0,'”耀金牛”祝您:金光闪耀,牛气冲天!需要整),colorwhite;
A:=DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),COLORBLUE,LINETHICK2;
TY:=C;
成本:=(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORRED,LINETHICK2;
MA5:MA(C,5)COLORWHITE;
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA062:MA(C,62)COLORFF1CAE;
MA0:MA(C,0)COLORYELLOW,LINETHICK2;
K:=(C+H+L)/3;
D:=MA(K,4);
阻力:=HHV(D,55),COLORYELLOW,LINETHICK2;
顶部:=HHV(H*0.98,55)COLORFFFFFF,LINETHICK2;
DRAWTEXT(REF(C,1)<DANDC>DANDD<REF(D,1),L*0.98,’D’),COLORYELLOW,LINETHICK2;
{均线}
TYP:=(HIGH+LOW+2*C)/4;
均线:=EMA(TYP,3),LINETHICK2,COLORWHITE;
均线上轨:=HHV(均线,14),LINETHICK2,COLORYELLOW;
均线下轨:=LLV(均线,14),LINETHICK2,COLORGREEN;
角度:=ATAN((均线/REF(均线,1)-1)*100)*180/3.1416;
{K线优化}
STICKLINE(角度>0,O,C,0.5,0),COLORRED;
STICKLINE(角度<0,O,C,0.5,0),COLORCYAN;
STICKLINE(角度<0,O,C,3,0),COLORFF6600;{蓝K线持币}
STICKLINE(角度<0,O,C,2,0),COLORFF9900;
STICKLINE(角度<0,O,C,1.2,0),COLORFFCC00;
STICKLINE(角度<0,O,C,0.2,0),COLORCYAN;
STICKLINE(角度>0,O,C,3,0),COLOR000099;
STICKLINE(角度>0,O,C,2,0),COLOR0000CC;{红K线持股}
STICKLINE(角度>0,O,C,1.3,0),COLOR0000FF;
STICKLINE(角度>0,O,C,0.3,0),COLORCC66FF;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
AA:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)>0ANDCROSS(DX,MA(DX,2)),1,0);
DRAWICON(FILTER(AA=1,5),L*0.97,23);
BB:=IF(HHV(DX,2)=HHV(DX,7)ANDCOUNT(DX>0,2)>0ANDCROSS(MA(DX,2),DX),1,0);
STICKLINE(CROSS(20,((SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)))*(100)),(-400),0,8,0),COLORRED;
〖明天买入〗:0,COLORRED;
STICKLINE(CROSS(((SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)))*(100),80),0,400,8,0),COLOR00FF00;
〖明天卖出〗:0,COLOR00FF00;
VAR1:=(HIGH+LOW+CLOSE)/(3);
VAR2:=(VAR1-MA(VAR1,14))/((0.015)*(AVEDEV(VAR1,14)));
VAR3:=(VAR1-MA(VAR1,70))/((0.015)*(AVEDEV(VAR1,70)));
VAR4:=IF((VAR2>=150)AND(VAR2<200)AND(VAR3>=150)AND(VAR3<200),100,IF((VAR2<=(-150))AND(VAR2>(-200))AND(VAR3<=(-150))AND(VAR3>(-200)),(-100),0));
VAR5:=IF((VAR2>=150)AND(VAR2<200)AND(VAR3>=150)AND(VAR3<200),100,0);
VAR6:=IF((VAR2<=(-150))AND(VAR2>(-200))AND(VAR3<=(-150))AND(VAR3>(-200)),(-100),0);
IF((VAR2>=200),200,IF((VAR2<=(-200)),(-200),VAR4)),COLORFFFFFF;
〖测顶〗:0-IF((VAR3>=200),200,VAR5)+400,COLORYELLOW;
〖测底〗:0-IF((VAR3>=200),0,IF((VAR3<=(-200)),(-200),VAR6))-400,COLORFF00FF;
通达信有买卖提示的质变波段主图指标公式截图
评论(0)