黄金短线通达信指标公式源码

合集下载

通达信指标公式源码黄金超短副图

通达信指标公式源码黄金超短副图

X_1:=1151230;X_2:=IF(DATE<X_1,1,0);X_3:=1;X_4:=MA((2*CLOSE+HIGH+LOW)/4,5);X_5:=X_4*1.02;X_6:=X_4*0.98;X_7:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);X_8:=DMA(CLOSE,X_7);X_9:=1.07*X_8;X_10:=0.93*X_8;X_11:=(X_5-REF(X_5,5))/REF(X_5,5)*1000;X_12:=(X_9-REF(X_9,5))/REF(X_9,5)*1000;X_13:=MA(CLOSE,9);X_14:=X_5>X_9;X_15:=COUNT(X_12>=REF(X_12,1),2)>=2;X_16:=MA(VOL,10)>=MA(VOL,55);X_17:=COUNT(CLOSE>OPEN,7)>=4;X_18:=X_14 AND X_15 AND X_16 AND X_17;X_19:=LLV(LOW,10);X_20:=HHV(HIGH,25);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*4,4);X_22:=(LOW+HIGH+CLOSE*2)/4;X_23:=EMA(X_22,14);X_24:=(X_6-X_13)/X_13*100;X_25:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;X_26:=REF((X_6-X_25)/X_25*100,1);X_27:=REF(X_18,1) OR REF(X_18,2);X_28:=REF(COUNT(VOL>MA(VOL,5) OR VOL>MA(VOL,20) OR VOL>MA(VOL,135) AND CLOSE>OPEN,10),1)>=6;X_29:=REF(X_5>REF(X_5,1) AND X_9>REF(X_9,1) AND X_5>X_9 ANDCOUNT(CLOSE>OPEN,7)>=4,1);X_30:=X_5>X_9 AND X_9>=REF(X_9,1);X_31:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1) AND MA(CLOSE,55)>=REF(MA(CLOSE,55),1);X_32:=LOW<X_6*1 AND LOW<X_13*1.006;X_33:=X_24<=1.5 OR (X_24>1.5 AND LOW<X_23);X_34:=X_26<=1 OR (X_26>1 AND LOW<X_23);X_35:=CLOSE>DTPRICE(REF(CLOSE,1),0.09);X_36:=X_27 AND X_30 AND X_28 AND X_31 AND X_32 AND X_29 AND X_33 AND X_34 AND X_35;X_37:=IF(REF(EXIST(REF(X_36,1) AND HIGH>ZTPRICE(REF(LOW,1),0.04),4),1),0,1);X_38:=IF(NAMELIKE(55) OR NAMELIKE(56) OR NAMELIKE(10),0,1);X_39:=IF(CODELIKE(57),0,1);阶段卖出:3.2,COLORCYAN;顶部清仓:3.5,COLORGREEN;强弱分界:1.85,DOTLINE,COLORYELLOW;重点关注:0.5,COLORRED;底部介入:0.2,COLORGREEN;乖离1:X_24,NODRAW,COLORYELLOW;乖离2:X_26,NODRAW,COLORYELLOW;STICKLINE(X_21>REF(X_21,1),X_21,REF(X_21,1),3,1),COLORRED;STICKLINE(X_21<=REF(X_21,1),X_21,REF(X_21,1),3,1),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(顶部清仓,X_21),20),X_21+0.02,2);DRAWICON(FILTER(CROSS(X_21,底部介入),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(阶段卖出,X_21),20),X_21+0.02,2);DRAWNUMBER(ISLASTBAR,2.5,X_21),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(0.5,X_21),20),0.6,2);STICKLINE(X_21>REF(X_21,1),X_21,REF(X_21,1),3,1),COLORRED;STICKLINE(X_21<=REF(X_21,1),X_21,REF(X_21,1),3,1),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(顶部清仓,X_21),20),X_21+0.02,2);DRAWICON(FILTER(CROSS(X_21,底部介入),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(阶段卖出,X_21),20),X_21+0.02,2);DRAWNUMBER(ISLASTBAR,2.5,X_21),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(0.5,X_21),20),0.6,2);X_40:=X_36 AND X_37 AND X_3;超短:IF(X_40,2.5,0),STICK,COLORMAGENTA,LINETHICK4;X_41:=EXIST(X_40,5) AND EXIST(CROSS(MA(CLOSE,9),X_6),2) AND (CLOSE>REF(CLOSE,1) AND CLOSE>OPEN) AND CLOSE>X_6 AND LOW<MA(CLOSE,9) AND CLOSE/OPEN>1.009;持股:FILTER(X_41,2),NODRAW,COLORYELLOW;DRAWICON(持股,1,23);。

通达信黄金线+高低线主图公式源码

通达信黄金线+高低线主图公式源码

通达信黄金线+高低线主图公式源码黄金线+高低线主图公式(源码贴图):PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{画量柱标识:}{1.画倍量黄金柱标识}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,17);{2.画梯量黄金柱标识}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.008,'倍量黄金线'),COLORMAGENTA;HJZ:=(3*C+H+L+O)/6;HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36; HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;STICKLINE(黄金柱,O,C,3.3,0),COLORRED;STICKLINE(黄金柱,H,L,0.1,0),COLORRED;DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW;XG:=SUMBARS(FILTER(黄金柱,2),1);STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;XG1:=SUMBARS(FILTER(黄金柱,2),1);STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'←平量黄金线'),COLORFFCC00 ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'←梯量黄金线'),COLORCYAN ;STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;高:=REF(HHV(H,1),3);低:=REF(LLV(L,1),3);H19:=高-(高-低);H38:=高-(高-低);H中:=高-(高-低);H61:=高-(高-低);H80:=高-(高-低);顶点:REFDATE(高,DATE),COLORWHITE;低点:REFDATE(低,DATE),COLORWHITE;Q:=(O+C)/2;DRAWKLINE(Q,Q,Q,Q);。

通达信指标公式源码 金买卖指标

通达信指标公式源码 金买卖指标

DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:EMA(DIFF,9),COLORFFFF00;MACD:(DIFF-DEA)*2;STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORRED; STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN; STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORFF00FF; STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;多转空:=((((LLV(MACD,4)>0) AND (MACD<REF(MACD,1))) AND (REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));DRAWICON(多转空,MACD,2);DRAWICON(空转多,MACD,1);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;DRAWTEXT(低位金叉,DEA,' 低位金叉'),COLORFF00FF;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE(二次金叉,0,0.2,2,0),COLORFF00FF;DRAWTEXT(二次金叉,DEA*1.06,'二次金叉'),COLORRED;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); DRAWTEXT(底背离,-0.2-MACD,'底背离'),COLORWHITE;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWTEXT(顶背离,0.2+MACD,'顶背离'),COLORWHITE;。

通达信指标公式源码均线画线黄金分割指标

通达信指标公式源码均线画线黄金分割指标

自动C:=INDEXC;自动H:=INDEXH;自动L:=INDEXL;自动O:=INDEXO;大盘低:=CONST(LLV(自动L,叠加行指));大盘高:=CONST(HHV(自动H,叠加行指));大盘差:=大盘高-大盘低;当前低:=CONST(LLV(L,叠加行指));当前高:=CONST(HHV(H,叠加行指));当前差:=当前高-当前低;比:=当前差/大盘差;大盘:当前低+(自动C-大盘低)*比,NODRAW; 变H:=当前低+(自动H-大盘低)*比;变L:=当前低+(自动L-大盘低)*比;变O:=当前低+(自动O-大盘低)*比;自动HYC:=HY_INDEXC;自动HYH:=HY_INDEXH;自动HYL:=HY_INDEXL;自动HYO:=HY_INDEXO;大盘低HY:=CONST(LLV(自动HYL,叠加行指)); 大盘高HY:=CONST(HHV(自动HYH,叠加行指)); 大盘差HY:=大盘高HY-大盘低HY;当前低HY:=CONST(LLV(L,叠加行指));当前高HY:=CONST(HHV(H,叠加行指));当前差HY:=当前高HY-当前低HY;比HY:=当前差HY/大盘差HY;行业:当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;STICKLINE(CURRBARSCOUNT<=叠加行指,变H,变L,0,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加行指,变O,大盘,2,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加行指AND 大盘>=变O,变O,大盘,2,1),COLORAAAAAA; STICKLINE(CURRBARSCOUNT<=叠加行指,变HYH,变HYL,0,0),COLORYELLOW;STICKLINE(CURRBARSCOUNT<=叠加行指,变HYO,行业,2,0),COLORYELLOW;STICKLINE(CURRBARSCOUNT<=叠加行指AND 行业>=变HYO,变HYO,行业,2,1),COLORYELLOW; MA1:MA(CLOSE,M1)COLORWHITE;MA2:MA(CLOSE,M2)COLORYELLOW;MA3:MA(CLOSE,M3)COLORMAGENTA;MA4:MA(CLOSE,M4)COLORLIBLUE;MA5:MA(CLOSE,M5)COLORCYAN;昨天MA1:=REF(MA1,1);昨天MA2:=REF(MA2,1);昨天MA3:=REF(MA3,1);昨天MA4:=REF(MA4,1);昨天MA5:=REF(MA5,1);M1向上:=BARSLASTCOUNT(MA1>REF(MA1,1));M2向上:=BARSLASTCOUNT(MA2>REF(MA2,1));M3向上:=BARSLASTCOUNT(MA3>REF(MA3,1));M4向上:=BARSLASTCOUNT(MA4>REF(MA4,1));M5向上:=BARSLASTCOUNT(MA5>REF(MA5,1));SA:=MAX(MAX(MA1,MA2),MAX(MA3,MA4));SB:=MIN(MIN(MA1,MA2),MIN(MA3,MA4));JD1:=MAX(MAX(MA(C,M1),MA(C,M2)),MA(C,M3));JX1:=MIN(MIN(MA(C,M1),MA(C,M2)),MA(C,M3));多头N:=(昨天MA1>=昨天MA2 AND 昨天MA2>=昨天MA3 AND 昨天MA3>=昨天MA4 AND 昨天MA4>=昨天MA5);向上N:=(MA1>昨天MA1 AND MA2>昨天MA2 AND MA3>昨天MA3 AND MA4>昨天MA4 AND MA5>昨天MA5);多头:BARSLASTCOUNT(多头N>0)COLORWHITE,NODRAW;向上:BARSLASTCOUNT(向上N>0)COLORWHITE,NODRAW;五线顺上N:=多头>0 AND 向上>0;一阳三线:(JX1/JD1*100>98.5 AND C>JD1 AND O<JX1 AND REF(MA(C,M3),1)/MA(C,M3)<1 AND C>MA(C,M5))COLORLIRED,NODRAW;四线粘合:100*(SA-SB)/SB,COLORYELLOW,NODRAW;N线顺上:BARSLASTCOUNT(五线顺上N>0)COLORMAGENTA,NODRAW;DRAWTEXT(一阳三线=1,L,' 一阳'),COLORLIRED;显示:=黄金分割*1000-1000;DRAWRECTREL(显示, 1,1000,1,RGB(94,38,18));{顶} DRAWRECTREL(显示,189,1000,189,RGB(94,38,18));{八零九} DRAWRECTREL(显示,374,1000,374,RGB(94,38,18));{六一八} DRAWRECTREL(显示,495,1000,495,RGB(94,0,0));{半分位} DRAWRECTREL(显示,610,1000,610,RGB(94,38,18));{三八二} DRAWRECTREL(显示,807,1000,807,RGB(94,38,18));{一九一} DRAWRECTREL(显示,999,1000,1000,RGB(94,38,18));{底}{上轨趋势线}WA1:=(REF(H,上轨+1)=HHV(H,上轨+1+1))*趋势开关;WB1:=FILTER(WA1,上轨+1);WC1:=BACKSET(WB1,上轨+1+1); {高}WD1:=FILTER(WC1,上轨+1);{高点}WT0:=BACKSET(ISLASTBAR,BARSLAST(WC1)+1);WU0:=WT0>REF(WT0,1); {前高}WR1:=BACKSET(ISLASTBAR,BARSLAST(WD1)+1);WS1:=WR1>REF(WR1,1); {前一高}WR2:=BACKSET(WS1,REF(BARSLAST(WD1),1)+2);WS2:=WR2>REF(WR2,1); {前二高}WR3:=BACKSET(WS2,REF(BARSLAST(WD1),1)+2);WS3:=WR3>REF(WR3,1); {前三高}压力1:DRAWLINE(WS1,H,WC1,H,1)COLOR004000;压力2:DRAWLINE(WS2,H,WS1,H,1)COLOR004000;压力3:DRAWLINE(WS3,H,WS2,H,1)COLOR004000,LINETHICK2; 高:=REF(L,BARSLAST(WU0))COLOR808080,DOTLINE;高1:REF(H,BARSLAST(WS1))COLOR808080,DOTLINE;高2:REF(H,BARSLAST(WS2))COLOR808080,DOTLINE;高3:=REF(H,BARSLAST(WS3))COLOR808080,DOTLINE;{下轨趋势线}WA2:=(REF(L,下轨+1)=LLV(L,下轨+1+1))*趋势开关;WB2:=FILTER(WA2,下轨+1);WC2:=BACKSET(WB2,下轨+1+1);{低}WD2:=FILTER(WC2,下轨+1);{低点}WT:=BACKSET(ISLASTBAR,BARSLAST(WC2)+1);WU:=WT>REF(WT,1); {前低}WT1:=BACKSET(ISLASTBAR,BARSLAST(WD2)+1);WU1:=WT1>REF(WT1,1); {前一低}WT2:=BACKSET(WU1,REF(BARSLAST(WD2),1)+2);WU2:=WT2>REF(WT2,1); {前二低}WT3:=BACKSET(WU2,REF(BARSLAST(WD2),1)+3);WU3:=WT3>REF(WT3,1); {前三低}下轨3:DRAWLINE(WU1,L,WC2,L,1)COLORLIRED,LINETHICK2; 下轨2:DRAWLINE(WU2,L,WU1,L,1)COLOR0080FF,LINETHICK2;下轨1:DRAWLINE(WU3,L,WU2,L,1)COLOR0080FF,LINETHICK2;低:=REF(L,BARSLAST(WU))COLOR808080,DOTLINE;低1:REF(L,BARSLAST(WU1))COLOR808080,DOTLINE;低2:REF(L,BARSLAST(WU2))COLOR808080,DOTLINE;低3:=REF(L,BARSLAST(WU3))COLOR808080,DOTLINE;{上轨信号}向下:=BARSLASTCOUNT(高3>高2);向上K:=BARSLASTCOUNT(高3<高2);DRAWTEXT(向下=1,H,'向下'),COLORLIGREEN;DRAWTEXT(向上K=1,H,'向上'),COLORLIGREEN;下跌:=BARSLASTCOUNT(高3>高2 AND 高2>高1 AND 低2>低1);DRAWTEXT(下跌=1,H,'下跌'),COLORLIGREEN;回落:=BARSLASTCOUNT(高3<高2 AND 高2>高1 AND 低2>低1);DRAWTEXT(回落=1,H,'回落'),COLORLIGREEN;加速跌:=BARSLASTCOUNT(高3>高2 AND 高2>高1 AND 高1>高AND 压力1<压力2);{正轨信号}上升:=BARSLASTCOUNT(低2>低3);下降:=BARSLASTCOUNT(低2<低3);DRAWTEXT(上升=1,L,'上升'),COLORMAGENTA;DRAWTEXT(下降=1,L,'下降'),COLORGREEN;转强:=BARSLASTCOUNT(低2<低1);转弱:=BARSLASTCOUNT(低2>低1);DRAWTEXT(转强=1,L,'转强'),COLORMAGENTA;DRAWTEXT(转弱=1,L,'转弱'),COLORGREEN;KQW:=CONST(C);加速上:=BARSLASTCOUNT(低>低1);加速涨:BARSLAST(加速上=1 AND KQW>下轨3 AND 下轨3>下轨2 AND 下轨2>REF(下轨2,1) AND 高1<高2),COLORYELLOW,NODRAW;反弹:=BARSLASTCOUNT(低3>低2 AND 低2>低1 AND 低1<低);STICKLINE(CLOSE>=OPEN,CLOSE,HIGH,0,0), COLORRED;STICKLINE(CLOSE>=OPEN,OPEN,LOW,0,0), COLORRED;STICKLINE(CLOSE<OPEN,OPEN,HIGH,0,0), COLOR00EC00;STICKLINE(CLOSE<OPEN,CLOSE,LOW,0,0), COLOR00EC00;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.9.2,0),COLOR0000A1;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.9.2,0),COLOR0000B5;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.9.8,0),COLOR0000C5;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.4,0),COLOR0000D4;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.2,0),COLOR0000FF;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.9.2,0),COLOR009000;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.9.2,0),COLOR00B400;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.9.8,0),COLOR00C100;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.4,0),COLOR00DB00;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.2,0),COLOR00EC00;涨停:=(CLOSE/REF(C,1)>=1.09)AND C=H;STICKLINE(涨停,L,H,0,0),COLORYELLOW;STICKLINE(涨停,CLOSE,OPEN,2.9.2,0),COLOR00AAFF;STICKLINE(涨停,CLOSE,OPEN,1.9.2,0),COLOR00CCFF;STICKLINE(涨停,CLOSE,OPEN,0.9.8,0),COLOR00FFFF;跌停:=(C/REF(C,1)<=0.91)AND C=L;STICKLINE(跌停,L,H,0,0),COLORGREEN;STICKLINE(跌停,CLOSE,OPEN,2.9.2,0),COLOR009000;STICKLINE(跌停,CLOSE,OPEN,1.9.2,0),COLOR00B400;STICKLINE(跌停,CLOSE,OPEN,0.9.8,0),COLOR00C100;DRAWTEXT(加速涨,L,'加速涨')COLORYELLOW;DRAWTEXT(反弹=1,L,'反弹'),COLORYELLOW;DRAWTEXT(加速跌=1,H,'加速跌'),COLORLIGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.160,0,'80.9%')COLOR0000F7; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.345,0,'61.8%')COLOR0000F7; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.465,0,' 50%')COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.580,0,'38.2%')COLOR0000F7; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.780,0,'19.1%')COLOR0000F7;。

通达信指标公式源码黄金分割+单阳不破+黄金均线主图(源码 主图)

通达信指标公式源码黄金分割+单阳不破+黄金均线主图(源码 主图)

用法:1.黄金分割线结合均线判断支持和压力,均线为5日8日和55日144日。

短线60分钟来分析判断买卖。

2.选股尽量选在55日和144日均线以上的票,利用单阳不破,选缩量回调到黄金分割和这2条均线支持时买入,获利概率较大。

N的参数:N 10 10000 150源码如下:MA5:MA(C,5);MA10:MA(C,8),LINETHICK1,COLORYELLOW ;MA55:MA(C,55),LINETHICK3,COLORLIMAGENTA;MA144:MA(C,144),LINETHICK2,COLORGREEN;高1:=HHV(H,N);低1:=LLV(L,N);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;高:REFDATE(高1,DATE);低:REFDATE(低1,DATE);一:REFDATE(H1,DATE);二:REFDATE(H2,DATE);{涨停标注}STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;{财务数据}DRAWTEXT_FIX(ISLASTBAR,0.18,0.01,1,'上市日期:'),COLOR00FF00; DRAWNUMBER_FIX(ISLASTBAR,0.18,0.01,0,FINANCE(42)),COLOR00FF00; DRAWTEXT_FIX(1,0.01,0.13,0,EXTERNSTR(0,1)),COLORRED; DRAWTEXT_FIX(1,0.26,0.01,0,EXTERNSTR(0,2)),COLORDD00DD; DRAWTEXT_FIX(1,0.01,0.066,0,EXTERNSTR(0,3)),COLOR00DD00; DRAWTEXT_FIX(ISLASTBAR ,0.06,0.01,1,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW;三:REFDATE(H3,DATE);四:REFDATE(H4,DATE),COLORRED;五:REFDATE(H5,DATE);{DRAWTEXT(CURRBARSCOUNT=1.00,一,'一(0.191)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,二,'二(0.382)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,三,'三(0.50)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,四,'四(0.618'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,五,'五(0.809)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,高,'高'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=1.00,低,'低'),COLORYELLOW; DRAWKLINE(H,O,L,C);};盘整天数:=5;{盘整天数自己调,以5--7日为最佳}下探幅度:=5;上冲幅度:=25;涨停:=(C-REF(C,1))/REF(C,1)>0.09;{涨幅大于9个点}缩量:=HHV(VOL,盘整天数-2)<REF(VOL,盘整天数-1) AND SUM(VOL, 盘整天数)>2* SUM(VOL, 盘整天数-2);七伤拳:=缩量AND REF(涨停,盘整天数) AND COUNT(涨停,盘整天数+1)=1 AND (HHV(H,盘整天数)-REF(C,盘整天数))/REF(C,盘整天数)*100<上冲幅度AND (LLV(L,盘整天数)-REF(C,盘整天数))/REF(C,盘整天数)*100>(下探幅度*-1);DRAWTEXT(七伤拳,LOW*0.98,'七伤拳'),COLORRED;阳涨幅:=3.5;阳倍量:=1.9;单阳收:=C;单阳开:=O;单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量; DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00FFFF;高不破价:=REF(C,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))=低不破价); STICKLINE(单阳不破,低不破价-低不破价*0.0005,低不破价,4,0),COLORGREEN; STICKLINE(单阳不破,高不破价,高不破价,4,0),COLORRED;STICKLINE(单阳,单阳开,单阳收,2,0),COLORYELLOW;DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;。

通达信指标公式源码 短线无敌指标(源码)

通达信指标公式源码 短线无敌指标(源码)

JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(Y TSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*R EF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YT SL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933; STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;DRAWTEXT(短买,REF(CLOSE,1),'←短买'),COLOR33FFCC;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF;。

通达信指标公式源码 短线买卖指标组合

通达信指标公式源码 短线买卖指标组合

1.投机指标投机5:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORred;投机10:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORwhite;投机20:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000;投机30:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF;抄底: IF(TROUGHBARS(2,5,1)=0 ANDHIGH>LOW+0.01,20,0),COLORFF66FF ,LINETHICK2 ;卖出: IF(投机20>=100,30,0),LINETHICK2,COLORGREEN;2.收藏很久(N 1 100 5)趋势线:3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,N,1),3,1);见底: 10;准备: IF(趋势线<=20,40,0);买入: IF(CROSS(趋势线,见底),60,0),colorred;卖出: IF(趋势线>=80,100,0);3.绝对稳赚(N 1 100 5)Var1:=REF(CLOSE,2);A2: SMA(MAX(CLOSE-Var1,0),N,1)/SMA(ABS(CLOSE-Var1),N,1)*100, COLORyellow;买1: IF(A2<16,30,0); DRAWTEXT(A2<10,60,'买'),COLORF0F000;Var2:=REF(CLOSE,1);Var3:=SMA(MAX(CLOSE-Var2,0),5,1)/SMA(ABS(CLOSE-Var2),5,1)*100;抄底: IF(Var3<10,30,0);DRAWTEXT(Var3<10,40,'底'),COLORF0F000;逢高派发区: STICKLINE(A2>=80,A2+1,A2-1,1.5,0), COLORRED,LINEthICK3; VAR1J:=close/(ema(ema((c+l+h)/3,3),26)*0.9)<0.95 ;放箭:IF(VAR1J,15,0),STICK,linethick3,COLORRED;DRAWTEXT(VAR1J ,10,'箭'),COLORF0F000;Vare1:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);Vare2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);Vare3:=IF(Vare1>0.010, 0.900, 1) AND IF(Vare1>(-0.025), 1, 1.200);Vare4:=Vare3*(Vare2-Vare1)*100;Vare5:=SUM(Vare4, 10);Vare6:=SMA(Vare5, 40, 1);Vare7:=IF(CLOSE and MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,88,0);{Var38>Var39;}Vare8:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND Vare7>0, 91, 0);追击:IF(Vare8>90,40,0),STICK,linethick3,COLORyellow;DRAWTEXT(Vare8>90,30,'追击'),COLORyellow;4.抄底逃顶王(P1 1 100 10 P2 1 100 3)80, POINTDOT,LINETHICK2;20, POINTDOT,LINETHICK2;VAR1:=LLV(LOW,P1);VAR2:=HHV(HIGH,P1);K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK2 , ; D: EMA(0.667*REF(K,1)+0.333*K,3),LINETHICK1 ,;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1); VARD:=EMA(IF(C< EMA(C,250),VARC*1000,VARC*10),3);火焰山:EMA(IF(L<=LLV(L,30),VARD/2+HHV(VARD,30),0),3)/618; STICKLINE(火焰山>100,0,火焰山*1.2,8,0);STICKLINE(火焰山>100,0,火焰山,4,1);抄底: IF(TROUGHBARS(2,5,1)=0 ANDHIGH>LOW+0.01,20,0),COLORYELLOW ,LINETHICK2 ;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),45,0),COLORGREEN,LINETHICK2;DRAWTEXT(顶A=50,45,'逃顶'),COLOR00FF00;DRAWTEXT(抄底=20,30,'抄底'),COLORRED;抓牛股:LS:=C/REF(C,1)>1.048 AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));抓牛:FILTER(LS,28);波段阻击AA05:MA(C,5),LINETHICK3,COLOR00CCFF;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORRED;AA10:MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORGREEN;AA30:MA(C,30);三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;IF(BB30>15 AND AA30>REF(AA30,1),AA30,DRAWNULL),LINETHICK3,COLORFF00FF;波段狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10<REF(AA10,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<AA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(波段狙击,LOW*0.98,'←波段狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;短线上涨极限:(H-MA(C,5))/MA(C,5)>0.1;短期下跌极限:(MA(C,5)-L)/L>0.1;智能KDJ: 特点抄底很灵验,底部三根线,顶部二根线,-10、0、10、90、105,抢钱轴-10,见顶105N : 2 90 9M1: 2 30 3M2: 2 30 3{KDJ}RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D;顶轴:105, POINTDOT;上轴:90, POINTDOT;下轴:10, POINTDOT;底轴:0, POINTDOT;抢钱轴:-10, POINTDOT;DRAWTEXT(CROSS(J,顶轴) ,100,'大出'), COLORYELLOW;DRAWTEXT(CROSS(J,上轴) ,90,'小出'), COLOR99FFCC;DRAWTEXT(CROSS(下轴,J) ,10,'小进'), COLORBLUE;DRAWTEXT(CROSS(底轴,J) ,0,'大进'), COLORRED;DRAWTEXT(CROSS(抢钱轴,J) ,-5,'狂进'), COLORWHITE;{黄金方块}RA:=LLV(LOW,35);RB:=HHV(HIGH,30);RC:=EMA((CLOSE-RA)/(RB-RA)*4,4)*19;近日均价:=MA(CLOSE,5),COLORYELLOW,LINETHICK2;STICKLINE(RC<6 AND100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19))>97 ,0 ,近日均价*1.15 ,2 , 0),COLORYELLOW;{提示}VAR1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;VAR2:=EMA(VAR1,9);VAR3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; VAR4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR5:=SMA(VAR4,13,8);Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);趋势:=3*Q3-2*Q4;Q5:=趋势>1*REF(趋势, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(趋势,5);A1:=EMA(Q3, 3);A2:=EMA(A1, 3);A3:=EMA(A2, 3);A4:=EMA(A3, 3);A5:=EMA(A4, 3);A6:=EMA(A5, 3);A:=EMA(A4, 3);DRAWTEXT(CROSS(趋势, 20) AND Q10<-13,10,'看量入场'), COLORRED; DRAWTEXT(CROSS(趋势, A5) AND REF(趋势,1)<34,REF(趋势,1),'盯紧'), COLORWHITE;DRAWTEXT(CROSS(趋势, A1) AND Q5 AND A1<20 AND Q1>9 ORA1>1*REF(A1, 1)AND Q1>4 AND A1<60, 45, '调'), COLOR00FF00;黄金分割提示; 可提示分割点,安装在任意主图高:=REF(HHV(H,60),3);低:=REF(LLV(L,60),3);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H50:=高-(高-低)*0.500;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;TOP:REFDATE(高,DATE),POINTDOT,COLORWHITE,NODRAW;%80.9:REFDATE(H19,DATE),POINTDOT,COLORYELLOW,NODRAW;%61.8:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA,NODRAW;{%50.0:REFDATE(H50,DATE),POINTDOT,COLORGREEN,NODRAW;}%38.2:REFDATE(H61,DATE),POINTDOT,COLORMAGENTA,NODRAW;%19.8:REFDATE(H80,DATE),POINTDOT,COLORYELLOW,NODRAW; BOTTOM:REFDATE(低,DATE),POINTDOT,COLORWHITE,NODRAW; DRAWTEXT(ISLASTBAR,TOP,' ←%顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,%80.9,' ←%80.9'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%61.8,' ←%61.8'),COLORMAGENTA; {DRAWTEXT(ISLASTBAR,%50.0,' ←%50.0'),COLORGREEN;} DRAWTEXT(ISLASTBAR,%38.2,' ←%38.2'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,%19.8,' ←%19.1'),COLORYELLOW; DRAWTEXT(ISLASTBAR,BOTTOM,' ←%低点'),COLORWHITE;黑码启动组合{东方求败}股价:=(H+L+C)/3;股价运动:=股价,LINETHICK2,COLORBLUE;运动趋势:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA (XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XM A(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(X MA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA( XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(股价,3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3), 3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3), 3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3);良机区1:=运动趋势*0.9;良机区2:=运动趋势*0.875;良机区3:=运动趋势*0.85;涨1:=O<良机区3;求败1:IF(涨1,0.3,0),COLOR0000FF;涨2:=L<良机区2 AND 运动趋势>REF(运动趋势,1);求败2:IF(涨2,0.5,0),COLOR008000;涨3:=L<良机区3 AND 运动趋势>REF(运动趋势,1);求败3:IF(涨3,1,0),COLOR00FFFF;VAR6:=REF(LOW,1)*0.83;VAR7:=LOW*0.1;VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;VAR9:=EMA(VAR8,60);VARA:=EMA(VAR6,60);VARB:=VARA-2;VARC:=IF(C<=VAR9,VARB,VARA);{VARD:=MA(C,80)-MA(C,10)/17;}启动:=FILTER(VARC-VARB=0 ANDCROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF (EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)), 4);马启:IF(启动,1.5,0),COLORFFFFFF;{理想实现}VARS2:=IF(MONTH<12,1,1);VARS3:=(2.28*CLOSE+HIGH+LOW)/4;VARS4:=LLV(LOW,34);VARS5:=HHV(HIGH,34);理想:=EMA((VARS3-VARS4)/(VARS5-VARS4)*100,13)*VARS2,LINETHICK4,COL ORRED;论坛:=EMA(0.667*REF(理想,1)+0.333*理想,2),LINETHICK2,COLORFF9933; 理想实现:(CROSS(理想,论坛) AND 理想<22),LINETHICK2,COLOR0099FF; {横盘放量选股}横盘放量:LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR") AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX"AND"KDJ.D">REF("KDJ.D",1);{STICKLINE(横盘放量,0,0.5,1,0),COLOR000099;}{笑傲江湖}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);笑傲江湖:IF(SSS-SSB=2 AND SSS>REF(SSS,1),1.3,0),COLORFFFF00;{终结者}X:=1;LGL:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 AND C/REF(C,1)>0.905 ANDC/REF(C,1)<1.05 AND VOL/CAPITAL*100<5,50,0);WR1:=-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*X; WR2:=-100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100; WR3:=-100*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100*X; BIAS1:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;BIAS2:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;BIAS3:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;S1:=(WR1+WR2+WR3+BIAS1+BIAS2+BIAS3)/6*X;S2:=EMA(S1,3);S3:=ABS(BIAS1-BIAS3);SX:=(S1+S3)/2;XC1:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;CCC:=XC1+SX;ZJZ:=IF( LGL>0 AND CCC<0,200,0)*X;LXL:=IF(SX<0 AND C=LLV(C,5) AND C/REF(C,1)>0.905 AND C/REF(C,1)<1.05 ANDVOL/CAPITAL*100<5,-50,0);JBJ:=IF(CCC<0 AND LXL=-50,100,0)*X;MA3:= MA(C,3);C0:=REF(C,2)*0.865;C1:=REF(C,13)*0.772;BOT:=MIN(C0,C1);HSL:=100*VOL/CAPITAL*X;MA13:=MA(C,13)*X;CXC:=IF((C-BOT)/C<3/100 AND SUM(HSL,5)/5<1.8,1,0);VMC:=IF(CXC>0 AND (LXL<0 OR LGL>0),100,0);V满仓:=VMC;V半仓A:=IF(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR (CXC>0 AND REF(C,1)/REF(C,2)>0.902)) OR(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR CXC>0) AND (LXL<0 OR LGL>0)) AND VMC<10 ,50,0) ;V93:=(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR CXC>0) AND (LXL<0 OR LGL>0)) ;V90:=((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR (CXC>0 AND REF(C,1)/REF(C,2)>0.902));V半仓:=V93 OR V90;XMM87:=V满仓OR V半仓;XMM91:=VMC;G:=MA(CLOSE,80)-MA(CLOSE,10)/3*X;初级:=IF(XMM87>0,1.5,0),STICK,LINETHICK2;中级:IF(XMM91>0,1,0),STICK,COLORFF0080;高级:IF(VMC>0 AND CLOSE<G,1.5,0),STICK,LINETHICK2;{黑码底}DIFF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIFF1,9),COLORFFFF00;A01:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));底背离:=REF(CLOSE,A01+1)>CLOSE AND DIFF1>REF(DIFF1,A01+1) AND CROSS(DIFF1,DEA1);DEA0:=EMA(DIFF1*100,9);MACD0:=2*(DIFF1*100-DEA0);黑码:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);黑码0:(底背离AND 黑码),COLORFF8000;。

通达信指标公式源码探测金矿 副图源码

通达信指标公式源码探测金矿 副图源码

多方趋势:((7)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4, 1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(3 0),4,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LO W,27)))*(30),4,1),3,1),2,1)),COLOR0000FF;空方趋势:(EMA(MA(多方趋势,5),7)),COLORF0F000;STICKLINE((多方趋势>78) AND (多方趋势>=空方趋势),78,多方趋势,5,1),COLOR00FF00;STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,3,0),COLOR0000FF; STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,3,0),COLORF0F000; STICKLINE((空方趋势<14) AND (空方趋势>多方趋势),多方趋势,20,3,0),COLOR00FFFF;TJ:=FILTER((空方趋势<14) AND (空方趋势>多方趋势),6);DRAWTEXT(TJ,40,'低吸'),COLORFFFFFF;探测金矿:(空方趋势<12) AND (空方趋势<=多方趋势),COLOR00FFFF;选金股:CROSS(多方趋势,空方趋势) AND (空方趋势<22),COLOR0000FF; DRAWTEXT(CROSS(多方趋势,空方趋势) AND (空方趋势<22),30,'金股'),COLOR00FFFF;中间线:50,COLORFFFFFF,POINTDOT;LC:=REF(C,1);多头止损价:LC*0.9618,,NODRAW,COLOR00FF00;五日止损价:HHV(C,5)*0.9618,NODRAW,COLORFFAA00;空头回补价:LC*1.0382,,NODRAW,COLORFF00FF;五日回补价:LLV(C,5)*1.0382,NODRAW,COLOR00BBFF;。

通达信指标公式源码最牛短线

通达信指标公式源码最牛短线

通达信指标公式源码最牛短线通达信是中国股市常用的技术指标分析软件之一,其指标公式源码通常是使用C/C++语言编写。

以下是一个通达信中比较常用的短线指标公式源码示例:```cpp/**通达信最牛短线指标-动态平衡指标*公式:*DPT:=(CLOSE-LLV(LOW,34))/HHV(HIGH,34)*100;*DPB:=(HHV(HIGH,37)-CLOSE)/HHV(HIGH,37)*100;*DB:=DMA((DPT+DPB)/2,3);*BD:=DMA(DB,3);*返回值:*DB当日的DB值*BD当日的BD值*/extern "C" __declspec(dllexport) INT32 LuckyLineFLOAT*CLOSE,FLOAT*HIGH,FLOAT*LOW,INT32N,FLOAT*DB,FLOAT*BD) FLOATDPT[3];FLOATDPB[3];FLOATHHV_HIGH[3];FLOATLLV_LOW[3];for (INT32 i = 0; i < N; ++i)if (i < 34)HHV_HIGH[0]=HHV_HIGH[1]=HHV_HIGH[2]=HIGH[0];LLV_LOW[0]=LLV_LOW[1]=LLV_LOW[2]=LOW[0];}elseHHV_HIGH[0] = max(HIGH[i], HHV_HIGH[1]);HHV_HIGH[1]=HHV_HIGH[2];HHV_HIGH[2]=HHV_HIGH[0];LLV_LOW[0] = min(LOW[i], LLV_LOW[1]);LLV_LOW[1]=LLV_LOW[2];LLV_LOW[2]=LLV_LOW[0];}if (i < 37)DPB[0]=DPB[1]=DPB[2]=(HHV_HIGH[0]-CLOSE[0])/HHV_HIGH[0]*100; }DPB[0]=(HHV_HIGH[0]-CLOSE[0])/HHV_HIGH[0]*100;DPB[1]=(HHV_HIGH[1]-CLOSE[1])/HHV_HIGH[1]*100;DPB[2]=(HHV_HIGH[2]-CLOSE[2])/HHV_HIGH[2]*100;}if (i < 34)DPT[0]=DPT[1]=DPT[2]=(CLOSE[0]-LLV_LOW[0])/HHV_HIGH[0]*100; }elseDPT[0]=(CLOSE[0]-LLV_LOW[0])/HHV_HIGH[0]*100;DPT[1]=(CLOSE[1]-LLV_LOW[1])/HHV_HIGH[1]*100;DPT[2]=(CLOSE[2]-LLV_LOW[2])/HHV_HIGH[2]*100;}if (i >= 2)DB[i]=(DPT[0]+DPB[0])/2;BD[i]=(DB[i]+DB[i-1]+DB[i-2])/3;}}return 0;这是一个使用动态平衡指标计算当日的DB值和BD值的指标公式。

通达信黄金分割比例指标公式

通达信黄金分割比例指标公式

通达信黄金分割比例指标公式不会安装点击安装指南步骤操作。

N:=75;P:=5;P1:=10;A1:=REF(H,P)=HHV(H,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN; A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);CC1:=BACKSET(BB1,P1+1);DD1:=FILTER(CC1,P1);DRAWTEXT_FIX(1,0.02,0,0,'☆微信公众号:(程序化指标) ☆'),COLORRED;EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);FF1:=EE1>REF(EE1,1);长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;AA2:=REF(L,P1)=LLV(L,2*P1+1);BB2:=FILTER(AA2,P1);CC2:=BACKSET(BB2,P1+1);DD2:=FILTER(CC2,P1);EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1); FF2:=EE2>REF(EE2,1);长支:DRAWLINE(DD2,L,FF2,L,1),COLORRED; STICKLINE(C>=O,C,O,3,0),COLOR000045; STICKLINE(C>=O,C,O,2.5,0),COLOR000065; STICKLINE(C>=O,C,O,2,0),COLOR000085; STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5; STICKLINE(C>=O,C,O,1,0),COLOR0000C5; STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5; STICKLINE(C>=O,H,L,0,0),COLOR0000F5; STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500; STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500; STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500; STICKLINE(C<O,H,L,0,0),COLOR959500;高:=REFDATE(HHV(H,N),DATE);低:=REFDATE(LLV(L,N),DATE);H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;DRAWTEXT(CURRBARSCOUNT=1,高,'高'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=1,H1,'809'),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=1,H2,'618'),COLORGRAY;DRAWTEXT(CURRBARSCOUNT=1,H3,'中'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=1,H4,'382'),COLORLIRED;DRAWTEXT(CURRBARSCOUNT=1,H5,'191'),COLORMAGENT A;DRAWTEXT(CURRBARSCOUNT=1,低,'低'),COLORRED;STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORCYAN;STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORGRAY;STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORYELLOW;STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLIRED;STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

这行情只能打短线,奉献一个黄金短线指标,红箭头出现关注,短线字出现介入C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(跌停,H,L,0,1),COLORGREEN;圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF;{VARZT:=BARSLAST(平台启动);}{DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;} AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AA A,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:=FILTER(成立,3);DRAWTEXT(条件成立,L*0.99,' '),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);上轨:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORBLUE,LINETHICK1;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF, POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW ,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENT A,POINTDOT;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,PO INTDOT;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*1 00;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)* 100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,' '),LINETHICK1,COLORFF00FF; VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大顶(底)') COLORWHITE; 指标王:=CROSS(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),SMA(SMA(( CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),3,1)) AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1)<20;DRAWTEXT(VAR1,L*0.98,'★黄金点'),COLORYELLOW;DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.98,'★短线'),COLORMAGENTA;下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINET HICK2;STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,;DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));。

相关文档
最新文档