通达信古道西风主图指标公式,通达信八旗兵主图指标公式
admin888
|通达信古道西风主图指标公式,通达信八旗兵主图指标公式
通达信古道西风主图指标公式
中轴:=ma(C,21),COLORFFCC33;
压力:=中轴 + 2*stD(C,21),COLORRED,LINETHICK2;
支撑:=中轴 - 2*STD(C,21),COLORRED,LINETHICK2;
压力1:=CONST(HHV(压力,60));
支撑1:=CONST(LLV(支撑,60));
TT:=IF(ISLASTBAR,240/FROMOPEN,1);
NN:=30;
最高2:=CONST(HHV(H,NN));
最低2:=CONST(LLV(L,NN));
PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW;
RCC1:=最高2*0.9-(最高2-最低2)*PP;
最低R:=MIN(RCC1,最低2);
高:=MAX(最高2,压力1);
低:=MIN(最低R,支撑1);
差:=(高-低);
色彩峰:=高-低;
STICKLINE(色彩峰>0,低,低+色彩峰*1.02,10,0),COLOR00Aac0;
STICKLINE(色彩峰>0,低,低+色彩峰*0.92,10,0),COLOR0099B0;
STICKLINE(色彩峰>0,低,低+色彩峰*0.85,10,0),COLOR0088A0;
STICKLINE(色彩峰>0,低,低+色彩峰*0.8,10,0),COLOR007790;
STICKLINE(色彩峰>0,低,低+色彩峰*0.75,10,0),COLOR006680;
STICKLINE(色彩峰>0,低,低+色彩峰*0.7,10,0),COLOR005570;
STICKLINE(色彩峰>0,低,低+色彩峰*0.65,10,0),COLOR004460;
STICKLINE(色彩峰>0,低,低+色彩峰*0.6,10,0),COLOR003350;
STICKLINE(色彩峰>0,低,低+色彩峰*0.55,10,0),COLOR002240;
STICKLINE(色彩峰>0,低,低+色彩峰*0.5,10,0),COLOR001130;
STICKLINE(色彩峰>0,低,低+色彩峰*0.45,10,0),COLOR000020;
A:=ema((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);
A99:=EMA((EMA(C,17)+EMA(C,19)+EMA( C,21))/3,3),COLOR1090FF;
A233:=A-(A99-A),COLORFF9010;
DRAWBAND(A99,RGB(130,100,50),A,RGB(130,100,50));
DRAWBAND(A,RGB(110,130,80),A233,RGB(110,130,80));
中轴 + 2*STD(C,21),COLORRED,LINETHICK2;
中轴 - 2*STD(C,21),COLORRED,LINETHICK2;
A1:EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;
A2:=EMA((EMA(C,3)+EMA(C,5)+EMA( C,7))/3,3),COLOR1020FF;
A3:EMA((EMA(C,5)+EMA(C,7)+EMA( C,9))/3,3),COLOR1030FF;
A4:=EMA((EMA(C,7)+EMA(C,9)+EMA( C,11))/3,3),COLOR1040FF;
A5:EMA((EMA(C,9)+EMA(C,11)+EMA( C,13))/3,3),COLOR1050FF;
A6:=EMA((EMA(C,11)+EMA(C,13)+EMA( C,15))/3,3),COLOR1060FF;
A7:EMA((EMA(C,13)+EMA(C,15)+EMA( C,17))/3,3),COLOR1070FF;
A8:=EMA((EMA(C,15)+EMA(C,17)+EMA( C,19))/3,3),COLOR1080FF;
A9:EMA((EMA(C,17)+EMA(C,19)+EMA( C,21))/3,3),COLOR1090FF;
A10:=EMA((EMA(C,19)+EMA(C,21)+EMA( C,23))/3,3),COLOR10C0FF;
A11:EMA((EMA(C,21)+EMA(C,23)+EMA( C,25))/3,3),COLOR10E0FF;
A15:A-(A1-A*0.997),COLORFf1010;
A16:=A-(A2-A),COLORFF2010;
A17:A-(A3-A),COLORFF3010;
A18:=A-(A4-A),COLORFF4010;
A19:A-(A5-A),COLORFF5010;
A20:=A-(A6-A),COLORFF6010;
A21:A-(A7-A),COLORFF7010;
A22:=A-(A8-A),COLORFF8010;
A23:A-(A9-A),COLORFF9010;
A24:=A-(A10-A),COLORFFC010;
A25:A-(A11-A*0.997),COLORFFE010;
IF(A15
IF(A17
IF(A19
IF(A21
IF(A23
IF(A25
IF(A1
IF(A3
IF(A5
IF(A7
IF(A9
IF(A11
DRAWTEXT(C>=MA(C,20) ,MA(C,20) ,'◎' ),COLOR0000FF;
DRAWTEXT(C
FD:=(H-L)/3;
OPEN1:=O>FD*2+L;
OPEN3:=O
OPEN2:=NOT(OPEN1 OR OPEN3);
CLOSE1:=C>FD*2+L;
CLOSE3:=C
CLOSE2:=NOT(CLOSE1 OR CLOSE3);
DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);
WQS1:=OPEN2 AND CLOSE2;
KFZD:=NOT(DFZD OR WQS1);
ZD:=(H+L)/2;
QSXS:=ZD>REF(H,1);
WQS2:=NOT(QSXS OR QSXX);
ZTDL:=V>REF(V,1)*1.1;
ZTDL2:=ZTDL AND FTDL<1;
FTDL2:=FTDL AND ZTDL<1;
mfi1:=(H-L)/(V/10000);
MFI2:=(H-L)/(V/1000000);
ZMFI1:=MFI1>REF(MFI1,1);
ZMFI2:=MFI2>REF(MFI2,1);
ZMFI:=ZMFI1 OR ZMFI2;
FMFI:=NOT(ZMFI);
LD:=ZTDL2 AND ZMFI;
ST:=FTDL2 AND FMFI;
WZ:=FTDL2 AND ZMFI;
QF:=ZTDL2 AND FMFI;
S1:=DFZD AND QSXS ;
S2:=KFZD AND QSXX ;
S3:=DFZD AND QSXX;
S4:=KFZD AND QSXS;
S5:=DFZD AND WQS2;
S6:=KFZD AND WQS2;
S7:=WQS1 AND (QSXS OR QSXX OR WQS2);
DRAWKLINE(H,O,L,C);
STICKLINE(S2 ,C ,O,3,0 ),COLORFF2020;
STICKLINE(S1,C,O,3 ,0 ),COLOR2020FF;
STICKLINE(S3,C,O,3,0),COLORYELLOW;
STICKLINE(S4,C,O,3,0),COLORFFCC66;
STICKLINE(S5,C,O,3,0),COLORFF00FF;
STICKLINE(S6,C,O,3,0),COLOR00FF00;
STICKLINE(S7,C,O,3,0),COLORGRAY;
STICKLINE(1,C,O,0,0),COLOREEEEEE;
通达信八旗兵主图指标公式
TS:=130;
N:=99;
M:=3;
高:=CONst(REF(HHV(H,TS),M));
低:=CONST(REF(LLV(L,TS),M));
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
DA:=IF(CURRBARSCOUNT>DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/10);
LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(LO*GZ) AND C1
LH10:=SUM(IF(C1>=LO AND C1
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*N/100,HI/GZ,6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,6,0)COLOR606060,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,6,0)COLOR606060,LINETHICK3;
{八旗兵}ZF:(ema(SUM(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)),3),49) * 10)+Ema(C,20);
飞扬古:=(EMA(MA(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)),3),13) * 10000),LINETHICK0,COLORFFFFFF;
【康熙帝】:EMA(ZF,34),LINETHICK2,COLOR00FFFF;
ZFF:=(EMA(SUM(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)),3),49) * 10000);
康熙帝:=EMA(ZFF,34),LINETHICK0,COLOR00FFFF;
大1:=MA(ZFF,3);
旗1:=MA(大1,3);
展1:=MA(旗1,3);
大:MA(ZF,3),COLOR66ddfF;
旗:MA(大,3),COLOR66CCFF;
展:MA(旗,3),COLOR66AAFF;
热:MA(展,3),COLOR9900FF;
血:MA(热,3),COLOR7700FF;
染:MA(血,3),COLOR0000FF;
KK:=(高-低)/6;
超跌:=(飞扬古 < (0 - 200));
超跌A:=(((((((REF(超跌,1) OR REF(超跌,2)) OR REF(超跌,3)) OR REF(超跌,4)) OR REF(超跌,5)) OR REF(超跌,6)) OR REF(超跌,7)) AND (crOSS(飞扬古,(0 - 200)) OR CROSS(飞扬古,康熙帝)));
超跌B:=(((大1 < (0 - 300)) OR (旗1 < (0 - 300))) OR (展1< (0 - 300)));
DRAWICON(大1 < (0 - 300),【康熙帝】,6);
DRAWICON(((飞扬古 < (0 - 100)) AND CROSS(飞扬古,康熙帝)),L,7);
STICKLINE(超跌A,L*1.036,L*1.03,6,0),COLORFFFF00;
DRAWICON(超跌A,L*1.039,14);
STICKLINE(超跌A,L*1.036,L*1.027,1,0),POINTDOT,COLORFFFFFF;
STICKLINE((((超跌B OR REF(超跌B,1)) AND CROSS(飞扬古,康熙帝)) AND (飞扬古 > (0 - 200))),L*1.036,L*1.03,6,0),COLORFFFFFF;
DRAWICON((((超跌B OR REF(超跌B,1)) AND CROSS(飞扬古,康熙帝)) AND (飞扬古 > (0 - 200))),L*1.038,14);
STICKLINE((((超跌B OR REF(超跌B,1)) AND CROSS(飞扬古,康熙帝)) AND (飞扬古 > (0 - 200))),L*1.036,L*1.027,1,0),POINTDOT,COLORFFFFFF;
ARA:=(100 * WINNER(CLOSE));
VARA:=(0.85 * CLOSE);
VARB:=(100 * WINNER(VARA));
高控:=((ARA > 70) OR (VARB > 30));
M1:=((((飞扬古 > 0) AND (飞扬古 > 大)) AND (康熙帝 > REF(康熙帝,1))) AND (康熙帝 < 0));
M2:=(((((飞扬古 > 0) AND (飞扬古 > 康熙帝)) AND (康熙帝 > REF(康熙帝,1))) AND (康熙帝 > 0)) AND 高控);
M3:=(高控 AND (飞扬古 > 0));
AB:=ISLASTBAR;
DRAWICON((AB AND (M3 OR 大>REF(大,1) AND 旗>REF(旗,1) AND 展>REF(展,1))),高,9);
DRAWTEXT((AB AND (M3 OR 大>REF(大,1) AND 旗>REF(旗,1) AND 展>REF(展,1))),高*0.99,'??'),COLOR00FFFF;
DRAWTEXT((AB AND (M3 OR 大>REF(大,1) AND 旗>REF(旗,1) AND 展>REF(展,1))),高*0.99,'$'),COLOR0000FF;
DRAWTEXT((AB AND (M3 OR 大>REF(大,1) AND 旗>REF(旗,1) AND 展>REF(展,1))),高-KK,'?'),COLOR0000FF;
DRAWTEXT((AB AND M3),高-2*KK,'?'),COLORFFFFFF;
DRAWTEXT((AB AND M3),高-3*KK,'?'),COLORFF0000;
TT:=CONST((AB AND M3));
DRAWTEXT(TT AND CURRBARSCOUNT=20,高*0.99,'大旗不倒赚钱不跑'),COLOR00FFFF;
{黄金分割}H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
顶点:=REFDATE(高,DATE),COLORWHITE;
%19.8:REFDATE(H19,DATE),COLORYELLOW;
%38.2:=REFDATE(H38,DATE),COLORMAGENTA;
%50:REFDATE(H中,DATE),COLORRED;
%61.8:=REFDATE(H61,DATE),COLORMAGENTA;
%80.9:REFDATE(H80,DATE),COLORYELLOW;
低点:=REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,%19.8,'%19.8'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%80.9,'%80.9'),COLORYELLOW;
CG:=MA(C,17),COLORYELLOW,LINETHICK0;
STICKLINE(CLOSE>=CG,LOW,HIGH,0.4,1), COLORRED;
STICKLINE(CLOSE>=CG,OPEN,CLOSE,3,0), COLORRED;
STICKLINE(CLOSE>=CG AND CLOSE>OPEN,OPEN,CLOSE,3,1), COLORRED;
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。