最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信单阳不破公式

    正文概述    2024-05-04 04:41:01  

    以下是通达信单阳不破公式源码和使用说明


    通达信单阳不破公式源码:

       stICKLINE(C OOR(C=OANDC REF(C,1)),H,L,0,0),COLORRED;

       STICKLINE(C OOR(C=OANDC REF(C,1)),C,O,2.5,0),COLORRED;

       STICKLINE(C OOR(C=OANDC REF(C,1)),H,L,0,0),COLORC6C600;

       STICKLINE(C OOR(C=OANDC REF(C,1)),C,O,2.5,0),COLORC6C600;

       上:=SMA(C,3,1);

       下:=Sma(C,13.5,1);

       STICKLINE(上 下,上,下,0,0),COLORWHITE;

       STICKLINE(下 上,上,下,0,0),COLORFF8000;

       AAT1:=MA(C,5);

       BBT1:=MA(C,15);

       AFT:=crOSS(AAT1,BBT1);

       STICKLINE(AFT,LLV(L,4),LLV(L,4),50,1),COLOR0080FF;

       DRAWTEXT(AFT,LLV(L,4)+0.3,'不破持股'),COLOR0080FF;

       {

       公式:

       AAt1:=MA(C,5);

       BBt1:=MA(C,15);

       xg:CROSS(AAt1,BBt1);

       }

       单阳:=C O*1.03AND REF(VOL,1)*1.5;

       不破价:=REF(L,BArslAST(单阳));

       DRAWTEXT(单阳,L-L*0.02,'阳'),COLOR00FFFF;

       LS0:=BARSLAST(单阳);

       LS11:=IF(1,LS0=1,单阳);

       LS21:=IF(1,LLV(L,1) REF(L,1),1);

       单阳不破:=LS11ANDLS21;

       STICKLINE(单阳不破,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破,不破价-不破价*0.02,'1'),COLORGREEN;

       LS12:=IF(2,LS0=2,单阳);

       LS22:=IF(2,LLV(L,2) REF(L,2),1);

       单阳不破2:=LS12ANDLS22;

       STICKLINE(单阳不破2,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破2,不破价-不破价*0.02,'2'),COLORGREEN;

       LS13:=IF(3,LS0=3,单阳);

       LS23:=IF(3,LLV(L,3) REF(L,3),1);

       单阳不破3:=LS13ANDLS23;

       STICKLINE(单阳不破3,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破3,不破价-不破价*0.02,'3'),COLORGREEN;

       LS14:=IF(4,LS0=4,单阳);

       LS24:=IF(4,LLV(L,4) REF(L,4),1);

       单阳不破4:=LS14ANDLS24;

       STICKLINE(单阳不破4,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破4,不破价-不破价*0.02,'4'),COLORGREEN;

       LS15:=IF(5,LS0=5,单阳);

       LS25:=IF(5,LLV(L,5) REF(L,5),1);

       单阳不破5:=LS15ANDLS25;

       STICKLINE(单阳不破5,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破5,不破价-不破价*0.02,'5'),COLORGREEN;

       LS16:=IF(6,LS0=6,单阳);

       LS26:=IF(6,LLV(L,6) REF(L,6),1);

       单阳不破6:=LS16ANDLS26;

       STICKLINE(单阳不破6,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破6,不破价-不破价*0.02,'6'),COLORGREEN;

       LS17:=IF(7,LS0=7,单阳);

       LS27:=IF(7,LLV(L,7) REF(L,7),1);

       单阳不破7:=LS17ANDLS27;

       STICKLINE(单阳不破7,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破7,不破价-不破价*0.02,'7'),COLORGREEN;

       LS18:=IF(8,LS0=8,单阳);

       LS28:=IF(8,LLV(L,8) REF(L,8),1);

       单阳不破8:=LS18ANDLS28;

       STICKLINE(单阳不破8,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破8,不破价-不破价*0.02,'8'),COLORGREEN;

       LS19:=IF(9,LS0=9,单阳);

       LS29:=IF(9,LLV(L,9) REF(L,9),1);

       单阳不破9:=LS19ANDLS29;

       STICKLINE(单阳不破9,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破9,不破价-不破价*0.02,'9'),COLORGREEN;

       LS110:=IF(10,LS0=10,单阳);

       LS210:=IF(10,LLV(L,10) REF(L,10),1);

       单阳不破10:=LS110ANDLS210;

       STICKLINE(单阳不破10,不破价-不破价*0.002,不破价,4,0),COLORRED;

       DRAWTEXT(单阳不破10,不破价-不破价*0.02,'10'),COLORGREEN;

       DRAWGBK(C 0,RGB(150,50,175),RGB(0,25,100),0,'',0);

       {DRAWGBK(O C,RGB(360,0,10),RGB(10,0,1),0,'01',0);}

       N8:=STRCAT(CON2STR(YEAR,0),'年');

       Y8:=STRCAT(CON2STR(MONTH,0),'月');

       R8:=STRCAT(CON2STR(DAY,0),'日');

       N:=120;

       K:=BARSLAST(CURRBARSCOUNT=N);

       GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}

       DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}

       KJ:=GD-DD;{高低点差值=分区高度}

       GD4:IF(CURRBARSCOUNT =N/30,GD,DRAWNULL);

       低:IF(CURRBARSCOUNT =N/30,DD,DRAWNULL),COLORFFFF00;

       高:IF(CURRBARSCOUNT =N/30,GD,DRAWNULL),COLOR00FFFF;

       支撑:IF(CURRBARSCOUNT =N/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;

       强势:IF(CURRBARSCOUNT =N/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;

       :IF(CURRBARSCOUNT =N/30,DD+KJ/2,DRAWNULL),COLOR0000FF;

       警示:IF(CURRBARSCOUNT =N/30,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;

       压力:IF(CURRBARSCOUNT =N/30,DD+KJ*0.809,DRAWNULL),COLOR00FF00;

       低涨:IF(CURRBARSCOUNT =N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;

       天数:BARSLAST(L=DD),COLORCYAN,NODRAW;

       今日保护价:(REF(C,2)+REF(C,1)+O)/3,COLORCC3299,NODRAW;

       顶点:IF(CURRBARSCOUNT =60,CONST(IF(ISLASTBAR=1,HHV(H,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLOREAEAAE,DOTLINE;

       低点:IF(CURRBARSCOUNT =60,CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLOREAEAAE,DOTLINE;

       STICKLINE(CCI =200ANDH =顶点,O,C,3,0),COLORBLUE;

       STICKLINE(CCI =100ANDL =低点,O,C,3,0),COLORYELLOW;

       DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0));

       DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0));

       DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0));

       DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0));

       DRAWBAND(强势,RGB(120,0,0),支撑,RGB(0,0,0));

       DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));

       STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN;

       STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;

       STICKLINE(CURRBARSCOUNT =N/30,支撑,支撑,4,0),COLORFF00FF;

       STICKLINE(CURRBARSCOUNT =N/30,强势,强势,4,0),COLORFF00FF;

       STICKLINE(CURRBARSCOUNT =N/30,突破,突破,4,0),COLORABABAB;

       STICKLINE(CURRBARSCOUNT =N/30,警示,警示,4,0),COLOR00FFFF;

       STICKLINE(CURRBARSCOUNT =N/30,压力,压力,4,0),COLOR00FFFF;

       DRAWTEXT(CURRBARSCOUNT=1,压力,'0.809'),COLOR00FFFF;

       DRAWTEXT(CURRBARSCOUNT=1,警示,'0.618'),COLOR00FFFF;

       DRAWTEXT(CURRBARSCOUNT=1,突破,'0.500'),COLORFFFFFF;

       DRAWTEXT(CURRBARSCOUNT=1,强势,'0.382'),COLOR00FFFF;

       DRAWTEXT(CURRBARSCOUNT=1,支撑,'0.191'),COLOR00FFFF;

       DA:(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;

       DB:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+

       15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+

       10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+

       5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+

       REF(DA,20))/210,COLORRED;

       DC:MA(DB,5),COLORF0F000,LINETHICK1;

       {DRAWBAND(DB,RGB(255,0,0),DC,RGB(0,255,0));}

       DRAWBAND(DB,RGB(155,50,50),DC,RGB(83,123,68));

       STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;

       STICKLINE(C OANDC REF(C,1),C,O,3,0),COLORFFCC00;

       STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,3,0),COLOR000055;{红K};

       STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.7,0),COLOR000077;{红K};

       STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.1,0),COLOR000099;

       STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;

       STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;

       STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF;

       STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999;

       STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE;

       STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;

       STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;

       STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;

       STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;

       STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;

       STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;

       STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;

       STICKLINE(C REF(C,1)ANDC O,C,O,3,0),COLORFFCC00;

       STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,3,0),COLOR990000;

       STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,2.7,0),COLORCC0000;

       STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400;

       阳涨幅:=4;

       阳倍量:=2;

       单阳:=C O*(1+阳涨幅/100)ANDVOL REF(VOL,1)*阳倍量;

       DRAWTEXT(CURRBARSCOUNT 100AND单阳,L*0.98,'阳'),COLOR00FFFF;

       高不破价:=REF(C,BARSLAST(单阳));

       中不破价:=REF((C+L)/2,BARSLAST(单阳));

       低不破价:=REF(L,BARSLAST(单阳));

       单阳不破:=CURRBARSCOUNT 100ANDBARSLAST(单阳) 11AND(LLV(L,BARSLAST(单阳)) 低不破价ORLLV(L,BARSLAST(单阳))=低不破价);

       STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,4,0),COLORRED;

       DRAWTEXT(BARSLAST(单阳)=1AND单阳不破,低不破价*0.98,'1'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=2AND单阳不破,低不破价*0.98,'2'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=3AND单阳不破,低不破价*0.98,'3'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=4AND单阳不破,低不破价*0.98,'4'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=5AND单阳不破,低不破价*0.98,'5'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=6AND单阳不破,低不破价*0.98,'6'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=7AND单阳不破,低不破价*0.98,'7'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=8AND单阳不破,低不破价*0.98,'8'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=9AND单阳不破,低不破价*0.98,'9'),COLORGREEN;

       DRAWTEXT(BARSLAST(单阳)=10AND单阳不破,低不破价*0.98,'10'),COLORGREEN;

       地量:=FILTER(LLV(AMOUNT,120)=AMOUNT,10);

       STICKLINE(地量,CLOSE,OPEN,4,0),COLORGREEN;

       DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

       DRAWTEXT(地量,LOW,'↖地量'),COLORGREEN;

       {价画直线指标};

       STICKLINE(ISLASTBAR,C,C,3333,-1),COLORWHITE;

       {止盈止损}

       买入价格:IF(CROSS((MACD.DIF),(MACD.DEA)),C,DRAWNULL),NODRAW;

       AAA:=STICKLINE(买入价格,0,C,2,0),COLORRED;

       AAC:=BARSLAST(AAA);

       止盈价格:IF(C =REF(C,AAC)*1.1,REF(C,AAC)*1.1,DRAWNULL),COLORMAGENTA,NODRAW;

       止损价格:IF(C =REF(C,AAC)*0.95,REF(C,AAC)*0.95,DRAWNULL),COLORGREEN,NODRAW;

       {}

       A:=SUMBARS(V,CAPITAL*1);{累计换手=100%的周期}

       A1:=SUM(COST(10),A)/A;{在A周期里获利10%的平均价}

       A2:=SUM(COST(20),A)/A;{在A周期里获利20%的平均价}

       A3:=SUM(COST(30),A)/A;{在A周期里获利30%的平均价}

       A4:=SUM(COST(40),A)/A;{在A周期里获利40%的平均价}

       A5:=SUM(COST(50),A)/A;{在A周期里获利50%的平均价}

       庄家成本:(5*A1+4*A2+3*A3+2*A4+A5)/15,LINETHICK2,COLORRED;




    通达信单阳不破公式截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信单阳不破公式 加入收藏