《通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式.docx》由会员分享,可在线阅读,更多相关《通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式.docx(4页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式均线25:MA(CLOSE,25);均线43:MA(CLOSE,43);均线50:MA(CLOSE,50),COLOR0000FF;均线88:MA(CLOSE,88);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(ISLASTBA
2、R=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(
3、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
4、)+O)/3 ,COLORCC3299,NODRAW;顶点:IF(CURRBARSCOUNT=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60),1),DRAWNULL),COLOREAEAAE,DOTLINE;低点:IF(CURRBARSCOUNT=200 AND H=顶点,O,C,3,0),COLORBLUE;STICKLINE(CCI=100 AND L=低点,O,C,3,0),COLORYELLOW;DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0);DRAWBAND(压力,RGB(0,190
5、,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(CURRBARSCOUN
6、T=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 REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(CREF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(C
7、LOSE REF(CLOSE,1) AND CO ,OPEN,CLOSE,3,0 ),COLOR000055;红K;STICKLINE(CLOSE REF(CLOSE,1) AND CO ,OPEN,CLOSE,2.7,0 ),COLOR000077;红K;STICKLINE(CLOSE REF(CLOSE,1) AND CO ,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
8、.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 ),
9、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
10、,1 ),COLORCYAN;STICKLINE(CO,C,O,3,0),COLORFFCC00;STICKLINE(CREF(C,1) AND CO ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(CREF(C,1) AND CO ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE=REF(C,AAC)*1.1,REF(C,AAC)*1.1,DRAWNULL),COLORMAGENTA,NODRAW;止损价格:IF(CREF(庄家成本,1),庄家成本,DRAWNULL),COLORFF00FF,LINETHICK2;
11、3D立体K线STICKLINE(CO,C,O,3.2,0),COLOR000066;STICKLINE(CO,C,O,2.0,0),COLOR000077;STICKLINE(CO,C,O,1.5,0),COLOR000099;STICKLINE(CO,C,O,0.9,0),COLOR0000CC;STICKLINE(CO,C,O,0.5,0),COLOR0000FF;STICKLINE(C0,O,C,0,0),COLORFFFFFF;STICKLINE(CO,L,H,0,0),COLOR009900;STICKLINE(CO,C,O,3.2,0),COLOR009900;STICKLINE(
12、CO,C,O,2.5,0),COLOR00BB00;STICKLINE(CO,C,O,1.5,0),COLOR00DD00;STICKLINE(CO,C,O,0.5,0),COLOR00FF00;STICKLINE(C=REF(C,1)*(1+阳涨幅/100)ANDVOLREF(VOL,1)*阳倍量;DRAWTEXT(CURRBARSCOUNT100 AND 单阳,L*0.98,阳),COLOR00FFFF;高不破价:=REF(C,BARSLAST(单阳);低不破价:=REF(L,BARSLAST(单阳);单阳不破:=CURRBARSCOUNT100 AND BARSLAST(单阳)低不破价
13、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
14、单阳不破,低不破价*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,
15、8),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,9),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,10),COLORGREEN;PP1:=H=MA(C,5)*(100+8)/100 AND NOT(C/REF(C,1)1.095);DRAWICON(PP1,H*1.02,15);MA2:=MA(C,2);布林上轨:=MA(CLOSE,20)+2*STD(CLOSE,20);XG1:=CROSS(MA2,布林上轨);XG2:=L=MA(C,26);XG0:=COUNT(XG1,30)=1 AND XG2 AND FILTER(XG2,10);DRAWTEXT(XG0,L*0.98,回踩买),COLORYELLOW;