通达信指标公式画线颜色色码大全

DRAWTEXT(CROSS(MA5,MA6) AND \AND \,L*0.92,'←再买'),COLORMAGENTA;

XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04)); XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100); XL3:=CROSS(XL2,(0 - 20));

DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●买点'); DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝对底部'); X6:=REF(CLOSE,1);

X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100); X8:=CROSS(79,X7); X9:=FILTER(X8,4);

DRAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5; STICKLINE(C>1.098*REF(C,1),C,O,0,0),COLORYELLOW; AAA:=CONST(HHV(H,90)); R1:=MA(CLOSE,1); R2:=MA(CLOSE,3); R3:=(MA(R2,1)*1); R4:=(MA(R2,3)*1);

DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进'),COLORYELLOW; LC:=REF(CLOSE,1);

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21);

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;

VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR12:=(HIGH+LOW+CLOSE)/3;

VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14)); VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));

VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);

VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15); VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR18:=100-ABS(VAR17);

VAR19:=IF(VAR18<90,VAR18,100); VAR1A:=IF(VARE>0,VARE,0); VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 VAR13<=-150,-15,VAR16))+60;

VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100; DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出'),LINETHICK1,COLORFFCC66; AA1:=AMOUNT/V; BB1:=L

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L

老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0; DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;

AND 货斐波那契数列指标公式源码:

DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2 COLORSTICK; TJ:=MACD>0;T:=MACD<0; A:=LLV(MACD,50)=MACD;

DRAWICON(A AND FILTERX(A,20), MACD,1);

DRAWTEXT(BARSLAST(TJ)=1,MACD,'1'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=2,MACD,'2'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=3,MACD,'3'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=5,MACD,'5'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=8,MACD,'8'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=13,MACD,'13'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=21,MACD,'21'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=34,MACD,'34'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=55,MACD,'55'),COLORYELLOW; DRAWTEXT(BARSLAST(T)=1,MACD,'1'),COLORGREEN; DRAWTEXT(BARSLAST(T)=2,MACD,'2'),COLORGREEN; DRAWTEXT(BARSLAST(T)=3,MACD,'3'),COLORGREEN; DRAWTEXT(BARSLAST(T)=5,MACD,'5'),COLORGREEN; DRAWTEXT(BARSLAST(T)=8,MACD,'8'),COLORGREEN; DRAWTEXT(BARSLAST(T)=13,MACD,'13'),COLORGREEN; DRAWTEXT(BARSLAST(T)=21,MACD,'21'),COLORGREEN; DRAWTEXT(BARSLAST(T)=34,MACD,'34'),COLORGREEN; DRAWTEXT(BARSLAST(T)=55,MACD,'55'),COLORGREEN;

斐波那契数列主图公式源码 ZT:=C/REF(C,1)>1.097; XH:=FILTER(ZT,13); BH:=BARSLAST(ZT);

CZ:=REF(H,BH)-REF(L,BH);

STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),7,0),COLORRED; STICKLINE(C,REF(L,BH),REF(L,BH),7,0),COLORBLUE;

STICKLINE(ZT,REF(O,BH),REF(C,BH),7,0),COLORYELLOW; DRAWTEXT(ZT,L*0.98,'涨停'),COLORF00FF0; VARZT:=BARSLAST(C/REF(C,1)>1.097);

STICKLINE(VARZT=2,L*0.97,L*0.98,8,0),COLOR0000FF; DRAWTEXT(VARZT=2,L*0.95,'3天'),COLORYELLOW; STICKLINE(VARZT=4,H*1.03,H*1.02,8,0),COLOR9966FF; DRAWTEXT(VARZT=4,H*1.06,'5天'),COLORYELLOW; STICKLINE(VARZT=7,L*0.97,L*0.98,8,0),COLOR00FFFF; DRAWTEXT(VARZT=7,L*0.95,'8天'),COLORYELLOW; STICKLINE(VARZT=12,H*1.03,H*1.02,8,0),COLORFF33FF; DRAWTEXT(VARZT=12,H*1.06,'13天'),COLORYELLOW; STICKLINE(VARZT=20,L*0.97,L*0.98,8,0),COLOR0066FF; DRAWTEXT(VARZT=20,L*0.95,'21天'),COLORYELLOW; STICKLINE(VARZT=33,H*1.03,H*1.02,8,0),COLOR9932CD; DRAWTEXT(VARZT=33,H*1.06,'34天'),COLORYELLOW; STICKLINE(VARZT=54,L*0.97,L*0.98,8,0),COLOR006600; DRAWTEXT(VARZT=54,L*0.95,'55天'),COLORYELLOW;

STICKLINE(VARZT=88,H*1.03,H*1.02,8,0),COLOR00FF00; DRAWTEXT(VARZT=88,H*1.06,'89天'),COLORYELLOW; STICKLINE(VARZT=143,L*0.97,L*0.98,8,0),COLORCCFFFF; DRAWTEXT(VARZT=143,L*0.95,'144天'),COLORYELLOW; STICKLINE(VARZT=232 ,H*1.03,H*1.02,8,0),COLORFF0033; DRAWTEXT(VARZT=232,H*1.06,'233天'),COLORYELLOW; STICKLINE(VARZT=376,L*0.97,L*0.98,8,0),COLORFF9966; DRAWTEXT(VARZT=376,L*0.95,'377天'),COLORYELLOW;

斐波那契均线源码:

M5:EMA(CLOSE,5),COLORWHITE;{白色} M8:EMA(CLOSE,8),COLORGRAY;{深灰色}

M13:EMA(CLOSE,13),COLORYELLOW,LINETHICK2;{黄色} M21:EMA(CLOSE,21),COLORMAGENTA;{洋红色} M34:EMA(CLOSE,34),COLORGREEN ;{绿色}

M55:EMA(CLOSE,55),COLORRED,POINTDOT,LINETHICK4;{生命线,红色} M89:EMA(CLOSE,89),COLORCYAN;{青色}

M144:EMA(CLOSE,144),COLORBROWN;{棕色}

M233:EMA(CLOSE, 233),COLORBLUE,LINETHICK3;{蓝色}

顶部:M34+2*STD(CLOSE,55),COLORYELLOW,POINTDOT,LINETHICK2; 底部:M34-2*STD(CLOSE,55),COLORYELLOW,POINTDOT,LINETHICK2;

DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.98,1); DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,2);

DRAWTEXT(REF(C,2)/REF(O,2)<0.95 AND (REF(C,2)

REF(C,1)>REF(C,2) AND REF(C,1)>(REF(C,2)+REF(O,2))/2 AND (C>REF(C,1)) AND (LLV(LOW,13)=REF(LOW,1)),LOW*0.98,'↖曙光'), COLORYELLOW;

DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND (REF(OPEN,1)

(CLOSE/OPEN>1.05) AND (CLOSE>REF(CLOSE,2)),LOW*0.98,'↖早晨'),COLORYELLOW; DRAWICON(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND (REF(OPEN,1) < REF(CLOSE,2)) AND (ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) AND (CLOSE/OPEN>1.05) AND (CLOSE>REF(CLOSE,2)),C*1.02,9);

斐波那契数列公式

var31:=HHVBARS(zig(3, 19)>ref(zig(3,19),1) and ref(zig(3,19), 1)

STICKLINE(var31=2,LOW*0.95,LOW*0.98,2,1),color0000ff; DRAWTEXT(var31=2,LOW*0.95,'3天'),COLORWHITE;

STICKLINE(var31=4,HIGH*1.05,HIGH*1.02,2,1),color9966ff; DRAWTEXT(var31=4,HIGH*1.06,'5天'),COLORWHITE; STICKLINE(var31=7,LOW*0.95,LOW*0.98,2,1),color00ffff; DRAWTEXT(var31=7,LOW*0.95,'8天'),COLORWHITE;

STICKLINE(var31=12,HIGH*1.05,HIGH*1.02,2,1),colorff33ff; DRAWTEXT(var31=12,HIGH*1.06,'13天'),COLORWHITE;

STICKLINE(var31=20,LOW*0.95,LOW*0.98,2,1),color0066ff; DRAWTEXT(var31=20,LOW*0.95,'21天'),COLORWHITE; STICKLINE(var31=33,HIGH*1.05,HIGH*1.02,2,1),colorffff00; DRAWTEXT(var31=33,HIGH*1.06,'34天'),COLORWHITE;

STICKLINE(var31=54,LOW*0.95,LOW*0.98,2,1),COLORWHITE; DRAWTEXT(var31=54,LOW*0.95,'55天'),COLORWHITE; STICKLINE(var31=88,HIGH*1.05,HIGH*1.02,2,1),color00ff00; DRAWTEXT(var31=88,HIGH*1.06,'89天'),COLORWHITE; STICKLINE(var31=143,LOW*0.95,LOW*0.98,2,1),colorccffff; DRAWTEXT(var31=143,LOW*0.95,'144天'),COLORWHITE; STICKLINE(var31=232 ,HIGH*1.05,HIGH*1.02,2,1),colorff0033; DRAWTEXT(var31=232,HIGH*1.06,'233天'),COLORWHITE; STICKLINE(var31=376,LOW*0.95,LOW*0.98,2,1),colorff9966; DRAWTEXT(var31=376,LOW*0.95,'377天'),COLORWHITE;

斐波那契周期组合公式源码

{DRAWGBK(C>0,RGB(220,220,220 ),RGB(220,220,220),10,'12',0);} {HDAY 2 9999 20 LDAY 2 9999 20 上角度 1 9999 70 下角度 1 9999 70 调点 1 4 3 }

CURR:=CURRBARSCOUNT;

TCH:=CONST(FINDHIGH(H,0,HDAY*10,1)); GTT:=CONST(BARSLAST(TCH=H))+1;

SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1))); BCL:=CONST(FINDLOW(L,0,LDAY*10,1)); DTT:=CONST(BARSLAST(BCL=L))+1;

SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));

涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1)); 跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1)); 最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点))); L斜率:=下角度/IF(C<300,1000,10);

最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点))); H斜率:=上角度/IF(C<300,1000,10);

IM68:=((SX跌H-SX涨L)/8-(SX跌H-SX涨L)/8); GH跌X:=SX跌H+(SX跌H-SX涨L)/8; DL涨X:=SX涨L-(SX跌H-SX涨L)/8; GTHT:=IF(DTT>GTT,DTT,GTT); R:=ABS(GTT-DTT);

DHH:DRAWBAND(IF(CURR<=GTHT,SX跌H,DRAWNULL),RGB(0,120,120),SX跌H,RGB(8,168,168));

DLL:DRAWBAND(IF(CURR<=GTHT,SX涨L,DRAWNULL),RGB(0,120,120),SX涨L,RGB(0,160,160)); STICKLINE(CURRBARSCOUNT=GTT,SX跌H,SX涨L,0,0),COLOR556600; STICKLINE(CURRBARSCOUNT=DTT,SX跌H,SX涨L,0,0),COLOR666666; STICKLINE(CURRBARSCOUNT=1,SX跌H,SX涨L,0,0),COLOR556600; 天线:=SX跌H; 地线:=SX涨L;

K:=(天线-地线)/(IF(跌点>=涨点,跌点,涨点)-IF(跌点>=涨点,涨点,跌点));

上斜线:=IF(地线+CONST(L斜率*4.00)*最低>=地线,地线+CONST(L斜率*4.00)*最低,DRAWNULL); 上斜线0:=IF(地线+CONST(L斜率*2.00)*最低>=地线,地线+CONST(L斜率*2.00)*最低,DRAWNULL); 上斜线1:=IF(地线+CONST(L斜率*1.5)*最低>=地线,地线+CONST(L斜率*1.5)*最低,DRAWNULL); 上斜线2:=IF(地线+CONST(L斜率*1.00)*最低>=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);

上斜线3:=IF(地线+CONST(L斜率*0.70)*最低>=地线,地线+CONST(L斜率*0.70)*最低,DRAWNULL); 上斜线4:=IF(地线+CONST(L斜率*0.50)*最低>=地线,地线+CONST(L斜率*0.50)*最低,DRAWNULL); 上斜线5:=IF(地线+CONST(L斜率*0.365)*最低>=地线,地线+CONST(L斜率*0.365)*最低,DRAWNULL);

上斜线6:=IF(地线+CONST(L斜率*0.250)*最低>=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);

上斜线7:=IF(地线+CONST(L斜率*0.165)*最低>=地线,地线+CONST(L斜率*0.165)*最低,DRAWNULL);

上斜线8:=IF(地线+CONST(L斜率*0.123)*最低>=地线,地线+CONST(L斜率*0.123)*最低,DRAWNULL);

上斜线9:=IF(地线+CONST(L斜率*0.06)*最低>=地线,地线+CONST(L斜率*0.06)*最低,DRAWNULL); 上9:IF(上斜线9<=天线*1.05,上斜线9,DRAWNULL),COLORAA00AA,DOTLINE; 上8:IF(上斜线8<=天线*1.05,上斜线8,DRAWNULL),COLORAA00AA,DOTLINE; 上7:IF(上斜线7<=天线*1.05,上斜线7,DRAWNULL),COLORAA00AA,DOTLINE; 上6:IF(上斜线6<=天线*1.05,上斜线6,DRAWNULL),COLORAA00AA,DOTLINE; 上5:IF(上斜线5<=天线*1.05,上斜线5,DRAWNULL),COLORAA00AA,DOTLINE; 上4:IF(上斜线4<=天线*1.05,上斜线4,DRAWNULL),COLOR0000FF,DOTLINE; 上3:IF(上斜线3<=天线*1.05,上斜线3,DRAWNULL),COLORAA00AA,DOTLINE; 上2:IF(上斜线2<=天线*1.05,上斜线2,DRAWNULL),COLORAA00AA,DOTLINE; 上1:IF(上斜线1<=天线*1.05,上斜线1,DRAWNULL),COLORAA00AA,DOTLINE; 上0:IF(上斜线0<=天线*1.05,上斜线0,DRAWNULL),COLORAA00AA,DOTLINE; 上:IF(上斜线<=天线*1.05,上斜线,DRAWNULL),COLORAA00AA,DOTLINE;

下斜线:=IF(天线-CONST(H斜率*4.00)*最高<=天线,天线-CONST(H斜率*4.00)*最高,DRAWNULL); 下斜线0:=IF(天线-CONST(H斜率*2.00)*最高<=天线,天线-CONST(H斜率*2.00)*最高,DRAWNULL); 下斜线1:=IF(天线-CONST(H斜率*1.500)*最高<=天线,天线-CONST(H斜率*1.500)*最高,DRAWNULL);

下斜线2:=IF(天线-CONST(H斜率*1.000)*最高<=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);

下斜线3:=IF(天线-CONST(H斜率*0.70)*最高<=天线,天线-CONST(H斜率*0.70)*最高,DRAWNULL); 下斜线4:=IF(天线-CONST(H斜率*0.50)*最高<=天线,天线-CONST(H斜率*0.50)*最高,DRAWNULL); 下斜线5:=IF(天线-CONST(H斜率*0.365)*最高<=天线,天线-CONST(H斜率*0.365)*最高,DRAWNULL);

下斜线6:=IF(天线-CONST(H斜率*0.250)*最高<=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);

下斜线7:=IF(天线-CONST(H斜率*0.165)*最高<=天线,天线-CONST(H斜率*0.165)*最高,DRAWNULL);

下斜线8:=IF(天线-CONST(H斜率*0.123)*最高<=天线,天线-CONST(H斜率*0.123)*最高,DRAWNULL);

下斜线9:=IF(天线-CONST(H斜率*0.06)*最高<=天线,天线-CONST(H斜率*0.06)*最高,DRAWNULL);

下9:IF(下斜线9>=地线*0.95,下斜线9,DRAWNULL),COLORAAAAAA,DOTLINE; 下8:IF(下斜线8>=地线*0.95,下斜线8,DRAWNULL),COLORAAAAAA,DOTLINE; 下7:IF(下斜线7>=地线*0.95,下斜线7,DRAWNULL),COLORAAAAAA,DOTLINE; 下6:IF(下斜线6>=地线*0.95,下斜线6,DRAWNULL),COLORAAAAAA,DOTLINE;

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4