通达信指标公式源码 黄金分割线主图指标

合集下载

通达信时间黄金分割主图指标公式源码编程思路破译

通达信时间黄金分割主图指标公式源码编程思路破译

通达信时间黄金分割主图指标公式源码编程思路破译源码编程思路破译高点赋值:15低点赋值:10时间赋值:1价格赋值:1前期高点赋值:收盘价/120日内最高价的最高值近期高点赋值:收盘价/21日内最高价的最高值PURC赋值:最高价在0日前的高点*10天内第1个最高价的最后一日取值设为常数PLZ赋值:上次PURC=最高价距今天数的最后一日取值设为常数+1顶X赋值:如果PLZ=1,返回最高价,否则返回PLZ-1日前的最高价的最后一日取值设为常数QQT赋值:最低价在0日前的低点*10天内第1个最低价的最后一日取值设为常数PLL赋值:上次QQT=最低价距今天数的最后一日取值设为常数+1 低X赋值:如果PLL=1,返回最低价,否则返回PLL-1日前的最低价的最后一日取值设为常数AAZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*0.809(进行)四舍五入,否则返回无效数ABZ赋值:对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*0.5(进行)四舍五入ACZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*0.618(进行)四舍五入,否则返回无效数ADZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*0.382(进行)四舍五入,否则返回无效数AEZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*0.236(进行)四舍五入,否则返回无效数AFZ赋值:对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1(进行)四舍五入AGZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1.809(进行)四舍五入,否则返回无效数AHZ赋值:对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1.5(进行)四舍五入AIZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1.618(进行)四舍五入,否则返回无效数AJZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1.382(进行)四舍五入,否则返回无效数AKZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1.236(进行)四舍五入,否则返回无效数ALZ赋值:对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2(进行)四舍五入AMZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2.236(进行)四舍五入,否则返回无效数ANZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2.382(进行)四舍五入,否则返回无效数AOZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2.5(进行)四舍五入,否则返回无效数APZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2.618(进行)四舍五入,否则返回无效数AQZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2.809(进行)四舍五入,否则返回无效数ARZ赋值:如果时间=1,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*3(进行)四舍五入,否则返回无效数ASZ赋值:对如果PLZ>PLL,返回PLZ,否则返回PLL(进行)四舍五入当满足条件到最后交易的周期=AAZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=ABZ时,在顶X和低X位置之间画当满足条件到最后交易的周期=ACZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=ADZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AEZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AFZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AGZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AHZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AIZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AJZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AKZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=ALZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AMZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=ANZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AOZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=APZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=AQZ时,在顶X和低X位置之间画当满足条件到最后交易的周期=ARZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色当满足条件到最后交易的周期=ASZ时,在顶X和低X位置之间画柱状线,宽度为0,0不为0则画空心柱.,画洋红色QAZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1/8(进行)四舍五入,否则返回无效数QBZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2/8(进行)四舍五入,否则返回无效数QCZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*3/8(进行)四舍五入,否则返回无效数QDZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*4/3(进行)四舍五入,否则返回无效数QEZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*5/8(进行)四舍五入,否则返回无效数QGZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*6/8(进行)四舍五入,否则返回无效数QHZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*7/8(进行)四舍五入,否则返回无效数QIZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*9/8(进行)四舍五入,否则返回无效数QJZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*1/3(进行)四舍五入,否则返回无效数QKZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*2/3(进行)四舍五入,否则返回无效数QMZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*10/8(进行)四舍五入,否则返回无效数QNZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*11/8(进行)四舍五入,否则返回无效数QOZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*5/3(进行)四舍五入,否则返回无效数QPZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*13/8(进行)四舍五入,否则返回无效数QQZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*14/8(进行)四舍五入,否则返回无效数QRZ赋值:如果时间=2,返回对如果PLZ>PLL,返回PLZ,否则返回PLL-PLZ-PLL的绝对值*15/8(进行)四舍五入,否则返回无效数输出BCVB:当满足条件到最后交易的周期=AAZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=ABZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=ACZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=ADZ时,在顶X*0.98位置书写文字画洋红色输出DGDGV:当满足条件到最后交易的周期=AEZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AFZ时,在顶X*0.98位置书写文字画洋红色输出VFBVBV:当满足条件到最后交易的周期=AGZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AHZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AIZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AJZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AKZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=ALZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AMZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=ANZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AOZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=APZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=AQZ时,在顶X*0.98位置书写文字画洋红色当满足条件到最后交易的周期=ARZ时,在顶X*0.98位置书写文字画洋红色程序源码高点:=15;低点:=10;时间:=1;价格:=1;前期高点:=C/HHV(H,120);近期高点:=C/HHV(H,21);PURC:=CONST(FINDHIGH(H,0,高点*10,1));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));QQT:=CONST(FINDLOW(L,0,低点*10,1));PLL:=CONST(BARSLAST(QQT=L))+1;低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));AAZ:=IF(时间=1,ROUND(IF(PLZ>PLL,PLZ,PLL)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AWNULL);ARZ:=IF(时间=1,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*3),DRAWNULL);ASZ:=ROUND(IF(PLZ>PLL,PLZ,PLL));{时间黄金分割处画竖线指标}X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ABZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ACZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ADZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AEZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AFZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AGZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AHZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AIZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AJZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AKZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ALZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AMZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ANZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AOZ,顶X,低X,0,0),COLORMAGENTA;X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=AQZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ARZ,顶X,低X,0,0),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=ASZ,顶X,低X,0,0),COLORMAGENTA;QAZ:=IF(时间=2,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1/8),DRAWNULL);QBZ:=IF(时间=2,ROUND(IF(PLZ>PLL,PLZ,PLL)-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AGENTA;DRAWTEXT(CURRBARSCOUNT=ABZ,顶X*0.98,'0.500')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ACZ,顶X*0.98,'0.618')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ADZ,顶X*0.98,'0.382')COLORMAGENTA;DGDGV:DRAWTEXT(CURRBARSCOUNT=AEZ,顶X*0.98,'0.236')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AFZ,顶X*0.98,'1.00')COLORMAGENTA;VFBVBV:DRAWTEXT(CURRBARSCOUNT=AGZ,顶X*0.98,'1.809')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AHZ,顶X*0.98,'1.500')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AIZ,顶X*0.98,'1.618')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AJZ,顶X*0.98,'1.382')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AKZ,顶X*0.98,'1.236')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ALZ,顶X*0.98,'2.00')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AMZ,顶X*0.98,'2.236')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ANZ,顶X*0.98,'2.382')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AOZ,顶X*0.98,'2.500')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=APZ,顶X*0.98,'2.618')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AQZ,顶X*0.98,'2.809')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ARZ,顶X*0.98,'3.00')COLORMAGENTA;该公式包含未来函数:DHIGH未发现:DOPEN...该公式包含未来函数:DLOW。

通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式

通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式

通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式均线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(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),COLOR0 000FF,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>=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,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<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>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) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;地量:=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,NO DRAW;止损价格:IF(C<=REF(C,AAC)*0.95,REF(C,AAC)*0.95,DRAWNULL),COLORGREEN,NO DRAW;{庄家成本}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,DOTLINE,COLORWHITE;IF(庄家成本>REF(庄家成本,1),庄家成本,DRAWNULL),COLORFF00FF,LINETHICK2; {3D立体K线}STICKLINE(C>O,C,O,3.2,0),COLOR000066;STICKLINE(C>O,C,O,2.0,0),COLOR000077;STICKLINE(C>O,C,O,1.5,0),COLOR000099;STICKLINE(C>O,C,O,0.9,0),COLOR0000CC;STICKLINE(C>O,C,O,0.5,0),COLOR0000FF;STICKLINE(C>0,O,C,0,0),COLORFFFFFF;STICKLINE(C<O,L,H,0,0),COLOR009900;STICKLINE(C<O,C,O,3.2,0),COLOR009900;STICKLINE(C<O,C,O,2.5,0),COLOR00BB00;STICKLINE(C<O,C,O,1.5,0),COLOR00DD00;STICKLINE(C<O,C,O,0.5,0),COLOR00FF00;STICKLINE(C<O,C,O,0,0),COLORFFFFFF;阳涨幅:=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;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) AND C>=MA(C,26);XG0:=COUNT(XG1,30)=1 AND XG2 AND FILTER(XG2,10);DRAWTEXT(XG0,L*0.98,'↖回踩买'),COLORYELLOW;。

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

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

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

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;。

通达信黄金线主图指标公式

通达信黄金线主图指标公式

通达信黄金线主图指标公式RC1:=REF(C,1);大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};大阴二一: REF((L+H)/2,大阴T),NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块};AA:=(C-REF(C,1))/REF(C,1)*100;ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945;DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945;涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW;跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW;比系数:=1.3;金线:=1;临界点:=0;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);均线:=MA5>REF(MA5,1) AND MA10<REF(MA10,1) AND MA20<REF(MA20,1);RV1:=REF(V,1);RV2:=REF(V,2);RV3:=REF(V,3);RC2:=REF(C,2);RC3:=REF(C,3);RC4:=REF(C,4);RO1:=REF(O,1);RO2:=REF(O,2);RO3:=REF(O,3);RO4:=REF(O,4);不破价顶:=C>=RC3 AND RC1>=RC3 AND RC2>=RC3;不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;均价:=AMOUNT/VOL/100;RJ1:=REF(均价,1);RJ2:=REF(均价,2);阳柱:=C>=O OR (C<O AND 均价>RC1);三日二阳:=COUNT(阳柱,3)>=2;基价柱阳:=RC3>RO3;价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);均价升:=(C+RC1+RC2)/3>RC3;量渐升:=V>RV1 AND RV1>RV2 ;量渐减:=V<=RV1 AND RV1<=RV2 ;均量减:=(V+RV1+RV2)/3<=RV3 AND NOT(量渐升);日价量比:=C/V;日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);均价升幅:=(C+RC1+RC2)/3/RC3;均量升幅:=(V+RV1+RV2)/3/RV3;价量比:=比系数*均价升幅/均量升幅>1;基前跳空:=RO3>RC4 AND RC4>RO4;黄金柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空;BACKSET101T:=BACKSET(黄金柱1T,5);FILTER101T:=FILTER(BACKSET101T,4);黄金柱1:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底 ;BACKSET101:=BACKSET(黄金柱1,4);FILTER101:=FILTER(BACKSET101,3);黄金柱11:=黄金柱1 AND REF(黄金柱1,1);BACKSET1011:=BACKSET(黄金柱11,4);FILTER1011:=FILTER(BACKSET1011,3);黄金柱12:=黄金柱1 AND REF(黄金柱1,2);BACKSET1012:=BACKSET(黄金柱12,4);FILTER1012:=FILTER(BACKSET1012,3);黄金柱13:=黄金柱1 AND REF(黄金柱1,3);BACKSET1013:=BACKSET(黄金柱13,4);FILTER1013:=FILTER(BACKSET1013,3);黄金柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201T:=BACKSET(黄金柱2T,5);FILTER201T:=FILTER(BACKSET201T,4);黄金柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201:=BACKSET(黄金柱2,4);FILTER201:=FILTER(BACKSET201,3);黄金柱21:=黄金柱2 AND REF(黄金柱2,1);BACKSET2011:=BACKSET(黄金柱21,4);FILTER2011:=FILTER(BACKSET2011,3);黄金柱22:=黄金柱2 AND REF(黄金柱2,2);BACKSET2012:=BACKSET(黄金柱22,4);FILTER2012:=FILTER(BACKSET2012,3);黄金柱23:=黄金柱2 AND REF(黄金柱2,3);BACKSET2013:=BACKSET(黄金柱23,4);FILTER2013:=FILTER(BACKSET2013,3);黄金柱3T:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301T:=BACKSET(黄金柱3T,5);FILTER301T:=FILTER(BACKSET301T,4);黄金柱3:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301:=BACKSET(黄金柱3,4);FILTER301:=FILTER(BACKSET301,3);黄金柱31:=黄金柱3 AND REF(黄金柱3,1);BACKSET3011:=BACKSET(黄金柱31,4);FILTER3011:=FILTER(BACKSET3011,3);黄金柱32:=黄金柱3 AND REF(黄金柱3,2);BACKSET3012:=BACKSET(黄金柱32,4);FILTER3012:=FILTER(BACKSET3012,3);黄金柱33:=黄金柱3 AND REF(黄金柱3,3);BACKSET3013:=BACKSET(黄金柱33,4);FILTER3013:=FILTER(BACKSET3013,3);黄金柱4T:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);FILTER401T:=FILTER(BACKSET401T,4);黄金柱4:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);BACKSET401:=BACKSET(黄金柱4,4);FILTER401:=FILTER(BACKSET401,3);黄金柱41:=黄金柱4 AND REF(黄金柱4,1);BACKSET4011:=BACKSET(黄金柱41,4);FILTER4011:=FILTER(BACKSET4011,3);黄金柱42:=黄金柱4 AND REF(黄金柱4,2);BACKSET4012:=BACKSET(黄金柱42,4);FILTER4012:=FILTER(BACKSET4012,3);黄金柱43:=黄金柱4 AND REF(黄金柱4,3);BACKSET4013:=BACKSET(黄金柱43,4);FILTER4013:=FILTER(BACKSET4013,3);黄金柱5T:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501T:=BACKSET(黄金柱5T,5);FILTER501T:=FILTER(BACKSET501T,4);黄金柱5:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501:=BACKSET(黄金柱5,4);FILTER501:=FILTER(BACKSET501,3);黄金柱51:=黄金柱5 AND REF(黄金柱5,1);FILTER5011:=FILTER(BACKSET5011,3);黄金柱52:=黄金柱5 AND REF(黄金柱5,2);BACKSET5012:=BACKSET(黄金柱52,4);FILTER5012:=FILTER(BACKSET5012,3);黄金柱53:=黄金柱5 AND REF(黄金柱5,3);BACKSET5013:=BACKSET(黄金柱53,4);FILTER5013:=FILTER(BACKSET5013,3);黄金柱6T:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601T:=BACKSET(黄金柱6T,5);FILTER601T:=FILTER(BACKSET601T,4);黄金柱6:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601:=BACKSET(黄金柱6,4);FILTER601:=FILTER(BACKSET601,3);黄金柱61:=黄金柱6 AND REF(黄金柱6,1);BACKSET6011:=BACKSET(黄金柱61,4);FILTER6011:=FILTER(BACKSET6011,3);黄金柱62:=黄金柱6 AND REF(黄金柱6,2);BACKSET6012:=BACKSET(黄金柱62,4);FILTER6012:=FILTER(BACKSET6012,3);黄金柱63:=黄金柱6 AND REF(黄金柱6,3);BACKSET6013:=BACKSET(黄金柱63,4);FILTER6013:=FILTER(BACKSET6013,3);FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6;STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'↖黄金柱'),COLOR0099FF;K1:=SUMBARS(FIL,1);STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF;DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'↖元帅柱'),COLOR0000FF;K2:=SUMBARS(FILT,1);STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线 AND 临界点;BACKSET10LJ:=BACKSET(黄金柱LJ ,4);FILTER10LJ:=FILTER(BACKSET10LJ,3);STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJ AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线 AND 临界点 ;BACKSET10LJT:=BACKSET(黄金柱LJT ,5);FILTER10LJT:=FILTER(BACKSET10LJT,5);STICKLINE(FILTER10LJT ANDNOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJT AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF;STICKLINE(涨停,H,L,0,0),COLORFF00FF;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;。

黄金分时买卖主图指标通达信指标公式源码

黄金分时买卖主图指标通达信指标公式源码

一个黄金分时买卖,用着感觉还不错"GG.CDP#DAY"COLORYELLOWDOTLINE;DRAWNUMBER(CURRBARSCOUNT=1,"GG.CDP#DAY","GG.CDP#DAY"),COLORY ELLOW;"GG.AH#DAY",COLORRED;DRAWNUMBER(CURRBARSCOUNT=1,"GG.AH#DAY","GG.AH#DAY"),COLORMAGENTA; "GG.NH#DAY",COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1,"GG.NH#DAY","GG. NH#DAY"),COLORCYAN;"GG.NL#DAY",COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1,"GG.NL#DAY","GG.N L#DAY"),COLORLICYAN;"GG.AL#DAY",COLORLIRED;DRAWNUMBER(CURRBARSCOUNT=1,"GG.AL#DAY","GG.AL# DAY"),COLORLIMAGENTA;{黄金分割}HH:=CONST(HHV(C,0));LL:=CONST(LLV(C,0));HL:=HH-LL;A76:=0.764*HL+LL,COLORCYAN,POINTDOT;A61:=0.618*HL+LL,COLORCYAN,POINTDOT;A38:=0.382*HL+LL,COLORCYAN,POINTDOT;A23:=0.236*HL+LL,COLORCYAN,POINTDOT;A51:=0.495*HL+LL,COLORCYAN,POINTDOT;A52:=0.505*HL+LL,COLORCYAN,POINTDOT;DRAWBAND(HH,RGB(0,30,30),A76,RGB(0,30,30));DRAWBAND(A23,RGB(0,30,30),LL,RGB(0,30,30));DRAWBAND(A76,RGB(100,30,100),A61,RGB(100,30,100));DRAWBAND(A38,RGB(100,30,100),A23,RGB(100,30,100));DRAWBAND(A61,RGB(100,90,0),A38,RGB(100,90,0));DRAWBAND(A51,RGB(180,100,100),A52,RGB(180,100,100));DRAWTEXT(CURRBARSCOUNT=240,HH*0.999,'高'),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=240,LL*1.001,'低'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=240,A76,'压'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=240,A23,'撑'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=240,A52,'中'),COLOR00FFFF;{分时量}预测量:="FSKY.预测量#DAY";主买:="FSKY.主买#DAY";前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前4:="FSKY.前4#DAY";前5:="FSKY.前5#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=500/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,255,0);A2:=IF(ZX>=KP,0,255);A3:=IF(ZX>=KP,0,255);DRAWRECTREL(0,160,MM*预测量,190,RGB(90,90,90)); DRAWRECTREL(0,160,MM*今量,190,RGB(A1,A2,A3)); DRAWRECTREL(0,160,MM*主买,190,RGB(250,250,280));ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";A4:=IF(ZC>=ZO,255,0);A5:=IF(ZC>=ZO,0,255);A6:=IF(ZC>=ZO,0,255);DRAWRECTREL(0,120,MM*昨量,150,RGB(A4,A5,A6));JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";A7:=IF(JC>=JO,255,0);A8:=IF(JC>=JO,0,255);A9:=IF(JC>=JO,0,255);DRAWRECTREL(0,80,MM*前量,110,RGB(A7,A8,A9));JO3:="FSKY.JO3#DAY";JC3:="FSKY.JC3#DAY";A10:=IF(JC3>=JO3,255,0);A11:=IF(JC3>=JO3,0,255);A12:=IF(JC3>=JO3,0,255);DRAWRECTREL(0,40,MM*前4,70,RGB(A10,A11,A12));JO4:="FSKY.JO4#DAY";JC4:="FSKY.JC4#DAY";A13:=IF(JC4>=JO4,255,0);A14:=IF(JC4>=JO4,0,255);A15:=IF(JC4>=JO4,0,255);DRAWRECTREL(0,0,MM*前5,30,RGB(A13,A14,A15)); {分时K}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*1200;CL:=500-(ZX/ZS-1)*1200;HI:=500-(ZG/ZS-1)*1200;LO:=500-(ZD/ZS-1)*1200;N1:=IF(TIME>=130000 OR TIME<91500,360,860);Z1:=IF(ZX>=KP,255,0);Z2:=IF(ZX>=KP,0,255);Z3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1+35,HI,N1+35,LO,RGB(Z1,Z2,Z3)); Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1+25,OP,N1+45,CL,RGB(Q1,Q2,Q3)); ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*1200;ZCP:=500-(ZC/ZS-1)*1200;ZZG:=500-(ZH/ZS-1)*1200;ZZD:=500-(ZL/ZS-1)*1200;Z4:=IF(ZC>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=500-(JL4/ZS-1)*1200;Z13:=IF(JC4>=JO4,255,0);Z14:=IF(JC4>=JO4,0,255);Z15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-85,ZZZG4,N1-85,ZZZD4,RGB(Z13,Z14,Z15)); Q13:=IF(JC4>=JO4,255,0);Q14:=IF(JC4>=JO4,0,255);Q15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-95,ZZKP4,N1-75,ZZCP4,RGB(Q13,Q14,Q15)); JO5:="FSKY.JO5#DAY";JC5:="FSKY.JC5#DAY";JH5:="FSKY.JH5#DAY";JL5:="FSKY.JL5#DAY";ZZKP5:=500-(JO5/ZS-1)*1200;ZZCP5:=500-(JC5/ZS-1)*1200;ZZZG5:=500-(JH5/ZS-1)*1200;ZZZD5:=500-(JL5/ZS-1)*1200;Z16:=IF(JC5>=JO5,255,0);Z17:=IF(JC5>=JO5,0,255);Z18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-115,ZZZG5,N1-115,ZZZD5,RGB(Z16,Z17,Z18)); Q16:=IF(JC5>=JO5,255,0);Q17:=IF(JC5>=JO5,0,255);Q18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-125,ZZKP5,N1-105,ZZCP5,RGB(Q16,Q17,Q18)); JO6:="FSKY.JO6#DAY";JC6:="FSKY.JC6#DAY";JH6:="FSKY.JH6#DAY";JL6:="FSKY.JL6#DAY";ZZKP6:=500-(JO6/ZS-1)*1200;ZZCP6:=500-(JC6/ZS-1)*1200;ZZZG6:=500-(JH6/ZS-1)*1200;ZZZD6:=500-(JL6/ZS-1)*1200;Z19:=IF(JC6>=JO6,255,0);Z20:=IF(JC6>=JO6,0,255);Z21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-145,ZZZG6,N1-145,ZZZD6,RGB(Z19,Z20,Z21)); Q19:=IF(JC6>=JO6,255,0);Q20:=IF(JC6>=JO6,0,255);Q21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-155,ZZKP6,N1-135,ZZCP6,RGB(Q19,Q20,Q21)); JO7:="FSKY.JO7#DAY";JC7:="FSKY.JC7#DAY";JH7:="FSKY.JH7#DAY";JL7:="FSKY.JL7#DAY";ZZKP7:=500-(JO7/ZS-1)*1200;ZZCP7:=500-(JC7/ZS-1)*1200;ZZZG7:=500-(JH7/ZS-1)*1200;ZZZD7:=500-(JL7/ZS-1)*1200;Z22:=IF(JC7>=JO7,255,0);Z23:=IF(JC7>=JO7,0,255);Z24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-175,ZZZG7,N1-175,ZZZD7,RGB(Z22,Z23,Z24)); Q22:=IF(JC7>=JO7,255,0);Q23:=IF(JC7>=JO7,0,255);Q24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-185,ZZKP7,N1-165,ZZCP7,RGB(Q22,Q23,Q24)); JO8:="FSKY.JO8#DAY";JC8:="FSKY.JC8#DAY";JH8:="FSKY.JH8#DAY";JL8:="FSKY.JL8#DAY";ZZKP8:=500-(JO8/ZS-1)*1200;ZZCP8:=500-(JC8/ZS-1)*1200;ZZZG8:=500-(JH8/ZS-1)*1200;ZZZD8:=500-(JL8/ZS-1)*1200;Z25:=IF(JC8>=JO8,255,0);Z26:=IF(JC8>=JO8,0,255);Z27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-205,ZZZG8,N1-205,ZZZD8,RGB(Z25,Z26,Z27));Q25:=IF(JC8>=JO8,255,0);Q26:=IF(JC8>=JO8,0,255);Q27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-215,ZZKP8,N1-195,ZZCP8,RGB(Q25,Q26,Q27));JO9:="FSKY.JO9#DAY";JC9:="FSKY.JC9#DAY";JH9:="FSKY.JH9#DAY";JL9:="FSKY.JL9#DAY";ZZKP9:=500-(JO9/ZS-1)*1200;ZZCP9:=500-(JC9/ZS-1)*1200;ZZZG9:=500-(JH9/ZS-1)*1200;ZZZD9:=500-(JL9/ZS-1)*1200;Z28:=IF(JC9>=JO9,255,0);Z29:=IF(JC9>=JO9,0,255);Z30:=IF(JC9>=JO9,0,255);DRAWRECTREL(N1-235,ZZZG9,N1-235,ZZZD9,RGB(Z28,Z29,Z30));Q28:=IF(JC9>=JO9,255,0);Q29:=IF(JC9>=JO9,0,255);Q30:=IF(JC9>=JO9,0,255);DRAWRECTREL(N1-245,ZZKP9,N1-225,ZZCP9,RGB(Q28,Q29,Q30));MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*1200;DRAWRECTREL(N1+28,XMA5,N1+42,XMA5,RGB(255,255,255));MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*1200;DRAWRECTREL(N1+18,XMA10,N1+52,XMA10,RGB(250,250,280));MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*1200;DRAWRECTREL(N1+10,XMA20,N1+60,XMA20,RGB(0,0,255)),COLORC0C0C0; MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*1200;DRAWRECTREL(N1+0,XMA60,N1+70,XMA60,RGB(0,255,0)),COLOR808000; 阻力:REFDATE(REF(HHV(C,60),FROMOPEN-60),DATE)DOTLINE,COLORCYAN; H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力1:=L1+P1*7/8,COLOR663300,DOTLINE;支撑:=L1+P1*0.5/8,COLOR663300,DOTLINE;现价:=CLOSE;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW; DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*0.999,'买★'),COLORRED;{吸} DRAWTEXT(LONGCROSS(现价,阻力1,2),现价,'跑啊★'),COLORCYAN;{抛}; 输赢线:EMA(C,120),COLORBLACK,LINETHICK1;分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;D:CLOSE,LINETHICK2,COLORWHITE;TT:=BARSCOUNT(C);ZZ:=SUM(AMOUNT,TT)/SUM(VOL*100,TT);ZZ1:=BETWEEN(C/ZZ,1.05,0.95);均线1:=IF(ZZ1=0,MA(C,TT),ZZ);涨幅:=(C/DYNAINFO(3)-1)*100;均线涨幅:=(均线1/DYNAINFO(3)-1)*100;涨幅差:=涨幅-均线涨幅;IF(涨幅差>4.5,C,DRAWNULL),COLORGREEN,LINETHICK5;IF(涨幅差<-4.5,C,DRAWNULL),COLORRED,LINETHICK5;。

通达信黄金分割压力和支撑画线主图指标公式

通达信黄金分割压力和支撑画线主图指标公式

通达信黄金分割压力和支撑画线主图指标公式通达信黄金分割压力和支撑画线主图指标公式股票软件源码如下: N1:=20;N2:=10;N3:=5;AA:=REF(H,N1)=HHV(H,2*N1+1);QY:=BACKSET(AA,N1+1);CC:=FILTER(QY,N1) AND H=HHV(H,N1+1);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,ISLASTBAR,REF(H, GDCS2-1),1),COLOR0055FF,POINTDOT,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1),COLORYELLOW,POINTDOT,LINETHICK2;} AA1:=REF(L,N1)=LLV(L,2*N1+1);QY1:=BACKSET(AA1,N1+1);CC1:=FILTER(QY1,N1) AND L=LLV(L,N1+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=DDCS2,L,ISLASTBAR,REF(L, DDCS2-1),1),COLOR0055FF,POINTDOT,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLORYELLOW,POINTDOT,LINETHICK2;}LAA:=REF(H,N2)=HHV(H,2*N2+1);LQY:=BACKSET(LAA,N2+1);LCC:=FILTER(LQY,N2) AND H=HHV(H,N2+1);LDDD:=BARSLAST(LCC);LGDTS:=IF(LCC,CURRBARSCOUNT,0);LDINGBU:=IF(LDDD,REF(H,LDDD),H);{顶部}LDINGBUTS:=IF(LDDD,REF(LGDTS,LDDD),LGDTS);LDINGBU1:=REF(LDINGBU,LDDD+1);LGDCS1:=CONST(LDINGBUTS);LDINGBUTS1:=REF(LDINGBUTS,LDDD+1);LGDCS2:=CONST(LDINGBUTS1);LDINGBU2:=REF(LDINGBU1,LDDD+1);LMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);{DRAWLINE(CURRBARSCOUNT=LGDCS2,H,ISLASTBAR,REF( H,LGDCS2-1),1),COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=LGDCS1,H,ISLASTBAR,REF(H ,LGDCS1-1),1),COLORYELLOW,POINTDOT;}LAA1:=REF(L,N2)=LLV(L,2*N2+1);LQY1:=BACKSET(LAA1,N2+1);LCC1:=FILTER(LQY1,N2) AND L=LLV(L,N2+1);LDD1:=BARSLAST(LCC1);LDDTS:=IF(LCC1,CURRBARSCOUNT,0);LYDB:=IF(LDD1,REF(L,LDD1),L);LDDTS1:=IF(LDD1,REF(LDDTS,LDD1),LDDTS);LDDCS1:=CONST(LDDTS1);LZDB:=REF(LYDB,LDD1+1);LDDTS2:=REF(LDDTS1,DD1+1);LDDCS2:=CONST(LDDTS2);DDYL2:=DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBA RSCOUNT=LGDCS1,H,1) COLORWHITE;DDZC2:=DRAWLINE(CURRBARSCOUNT=LDDCS2,L,CURRBA RSCOUNT=LDDCS1,L,1) COLORWHITE;ZGSTAR:=(DDYL2+DDZC2)/2;ZGEND:=CONST((DDYL2+DDZC2)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);LLAA:=REF(H,N3)=HHV(H,2*N3+1);LLQY:=BACKSET(LLAA,N3+1);LLCC:=FILTER(LLQY,N3) AND H=HHV(H,N3+1);LLDDD:=BARSLAST(LLCC);LLGDTS:=IF(LLCC,CURRBARSCOUNT,0);LLDINGBU:=IF(LLDDD,REF(H,LLDDD),H);{顶部}LLDINGBUTS:=IF(LLDDD,REF(LLGDTS,LLDDD),LLGDTS);LLDINGBU1:=REF(LLDINGBU,LLDDD+1);LLGDCS1:=CONST(LLDINGBUTS);LLDINGBUTS1:=REF(LLDINGBUTS,LLDDD+1);LLGDCS2:=CONST(LLDINGBUTS1);LLDINGBU2:=REF(LLDINGBU1,LLDDD+1);LLMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);{DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,ISLASTBAR,REF( H,LLGDCS2-1),1),COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=LLGDCS1,H,ISLASTBAR,REF( H,LLGDCS1-1),1),COLORYELLOW,POINTDOT;}LLAA1:=REF(L,N3)=LLV(L,2*N3+1);LLQY1:=BACKSET(LLAA1,N3+1);LLCC1:=FILTER(LLQY1,N3) AND L=LLV(L,N3+1);LLDD1:=BARSLAST(LCC1);LLDDTS:=IF(LLCC1,CURRBARSCOUNT,0);LLYDB:=IF(LLDD1,REF(L,LLDD1),L);LLDDTS1:=IF(LLDD1,REF(LLDDTS,LLDD1),LDDTS);LLDDCS1:=CONST(LLDDTS1);LLZDB:=REF(LLYDB,LLDD1+1);LLDDTS2:=REF(LLDDTS1,DD1+1);LLDDCS2:=CONST(LLDDTS2);GDYL3:=DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,CURRB ARSCOUNT=LLGDCS1,H,1) COLORYELLOW;DDZC3:=DRAWLINE(CURRBARSCOUNT=LLDDCS2,L,CURRB ARSCOUNT=LLDDCS1,L,1) COLORYELLOW;LZGSTAR:=(GDYL3+DDZC3)/2;LZGEND:=CONST((GDYL3+DDZC3)/2);LSTARDAY:=IF(LLDDCS2<LLGDCS2,LLDDCS2,LLGDCS2);GDYL1:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBAR SCOUNT=GDCS1,H,1) COLORRED;DDZC1:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBAR SCOUNT=DDCS1,L,1) COLORRED;长线压力:DDZC1+(GDYL1-DDZC1)*0.809,COLORRED;长线支撑:DDZC1+(GDYL1-DDZC1)*0.191,COLORRED;中线压力:DDZC2+(DDYL2-DDZC2)*0.809,COLORGREEN;中线支撑:DDZC2+(DDYL2-DDZC2)*0.191,COLORGREEN;短线压力:DDZC3+(GDYL3-DDZC3)*0.809,COLORBLUE;短线支撑:DDZC3+(GDYL3-DDZC3)*0.191,COLORBLUE;L中轨:DRAWLINE(CURRBARSCOUNT=LSTARDAY,LZGSTAR,ISLASTBAR,LZGEND,1),COLORYELLOW;中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR, ZGEND,1),COLORWHITE;长GDYL:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOU NT=GDCS1,H,1) COLORRED,POINTDOT;长DDZC:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOU NT=DDCS1,L,1) COLORRED,POINTDOT;中DDYL:DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBARSCOU NT=LGDCS1,H,1) COLORWHITE,POINTDOT;中DDZC:DRAWLINE(CURRBARSCOUNT=LDDCS2,L,CURRBARSCOU NT=LDDCS1,L,1) COLORWHITE,POINTDOT;短GDYL:DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,CURRBARSCO UNT=LLGDCS1,H,1) COLORYELLOW,POINTDOT;短DDZC:DRAWLINE(CURRBARSCOUNT=LLDDCS2,L,CURRBARSCO UNT=LLDDCS1,L,1) COLORYELLOW,POINTDOT;。

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

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

用法: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;。

江恩时空 百分比 黄金分割通达信指标公式源码

江恩时空 百分比 黄金分割通达信指标公式源码

通达信江恩时空百分比黄金分割主图源码江恩时空百分N:=6000;高:=REFDATE(HHV(H,N),DATE);低:=REFDATE(LLV(L,N),DATE);H11:=高-(高-低)*1.000;H10:=高-(高-低)*0.875;H9:=高-(高-低)*0.750;H8:=高-(高-低)*0.666;H7:=高-(高-低)*0.625;H6:=高-(高-低)*0.500;H5:=高-(高-低)*0.375;H4:=高-(高-低)*0.333;H3:=高-(高-低)*0.250;H2:=高-(高-低)*0.125;H1:=高-(高-低)*0.000;STICKLINE(CURRBARSCOUNT=18,高,高,120,1),COLORGREEN; STICKLINE(CURRBARSCOUNT=18,H1,H1,120,1),COLORCYAN; STICKLINE(CURRBARSCOUNT=18,H2,H2,120,1),COLORCCCCCC; DRAWTEXT(CURRBARSCOUNT=10,H1,'0.000'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.125'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.250'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.333'),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=10,H5,' 0.375'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.500'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=10,H7,' 0.625'),COLORRED; DRAWTEXT(CURRBARSCOUNT=10,H8,' 0.666'),COLORRED; DRAWTEXT(CURRBARSCOUNT=10,H9,' 0.750'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,H10,' 0.875'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=10,H11,' 1.000'),COLORGREEN; STICKLINE(CURRBARSCOUNT=18,H3,H3,120,1),COLORYELLOW; STICKLINE(CURRBARSCOUNT=18,H4,H4,120,1),COLORLIRED; STICKLINE(CURRBARSCOUNT=18,H6,H6,120,1),COLORGREEN; STICKLINE(CURRBARSCOUNT=18,H5,H5,120,1),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=18,低,低,120,1),COLORRED;STICKLINE(CURRBARSCOUNT=18,H7,H7,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H8,H8,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H9,H9,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H10,H10,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H11,H11,120,1),COLORRED; DRAWTEXT(CURRBARSCOUNT=35,高*0.99,CON2STR(高,2)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=35,H11,CON2STR(H11,2)),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=35,H10,CON2STR(H10,2)),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=35,H9,CON2STR(H9,2)),COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=35,H8,CON2STR(H8,2)),COLORRED;DRAWTEXT(CURRBARSCOUNT=35,H1,CON2STR(H1,2)),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=35,H2,CON2STR(H2,2)),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=35,H3,CON2STR(H3,2)),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=35,H6,CON2STR(H6,2)),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=35,H4,CON2STR(H4,2)),COLORLIRED;DRAWTEXT(CURRBARSCOUNT=35,H5,CON2STR(H5,2)),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=35,H7,CON2STR(H7,2)),COLORRED;低点:=800;高点:=800;时间:=1;价格:=1;调点:=1;PURC:=CONST(FINDHIGH(H,0,高点*10,1));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));QQT:=CONST(FINDLOW(L,0,低点*10,1));PLL:=CONST(BARSLAST(QQT=L))+1;低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));ATM:=时间=2 OR 时间=2;QTM:=时间=1 OR 时间=1;BTM:=时间=1 OR 时间=1 OR 时间=1;AAZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.809),DRAWNULL);ABZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.5),DRAWNULL);ACZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.618),DRAWNULL);ADZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.382),DRAWNULL);AEZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.236),DRAWNULL);AFZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1),DRAWNULL);AGZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.809),DRAWNULL);AHZ:=IF(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URRBARSCOUNT=QXZ OR CURRBARSCOUNT=QYZ OR CURRBARSCOUNT=QZZ ;STICKLINE(HXCS1 OR HXCS2 ,顶X,低X,0,0),COLORMAGENTA;DRAWKLINE(H,O,L,C);天XX线:=IF(价格=5 AND 时间=5,DRAWNULL,顶X),COLORMAGENTA;地XX线:=IF(价格=5 AND 时间=5,DRAWNULL,低X),COLORMAGENTA;顶点:天XX线,COLORMAGENTA;底点:地XX线,COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QSZ,顶X*0.98,'1/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QTZ,顶X*0.98,'2/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QCZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QUZ,顶X*0.98,'3/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QVZ,顶X*0.98,'5/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QGZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QWZ,顶X*0.98,'6/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QRZ OR CURRBARSCOUNT=QXZ,顶X*0.98,'7/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QJZ OR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QYZ,顶X*0.98,'1/3')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QZZ,顶X*0.98,'2/3')COLORMAGENTA;黄金分割低点:=800;高点:=800;时间:=1;价格:=1;调点:=2;PURC:=CONST(FINDHIGH(H,0,高点*10,1));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=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(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*23/8),DRAWNULL);QYZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*7/3),DRAWNULL);HXCS2:=CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QCZOR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QGZ OR CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QJZ OR CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QRZOR CURRBARSCOUNT=QSZ OR CURRBARSCOUNT=QTZ OR CURRBARSCOUNT=QUZ OR CURRBARSCOUNT=QVZ OR CURRBARSCOUNT=QWZ OR CURRBARSCOUNT=QXZ OR CURRBARSCOUNT=QYZ OR CURRBARSCOUNT=QZZ ;STICKLINE(HXCS1 OR HXCS2 ,顶X,低X,0,0),COLORMAGENTA;DRAWKLINE(H,O,L,C);天XX线:=IF(价格=5 AND 时间=5,DRAWNULL,顶X),COLORMAGENTA;地XX线:=IF(价格=5 AND 时间=5,DRAWNULL,低X),COLORMAGENTA;顶点:天XX线,COLORMAGENTA;底点:地XX线,COLORMAGENTA;NOTEXT1:IF(价格=1 OR 价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*0.5,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT2:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.236,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT3:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.382,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT4:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.618,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT5:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.809,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT6:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*1/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT7:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*2/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT8:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*3/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT10:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*5/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT11:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*6/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT12:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*7/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT13:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*1/3,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT14:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*2/3,DRAWNULL),COLORMAGENTA,DOTLINE;DRAWTEXT(CURRBARSCOUNT=AAZ OR CURRBARSCOUNT=AGZ OR CURRBARSCOUNT=AQZ,顶X*0.98,'0.809')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ABZ OR CURRBARSCOUNT=AHZ OR CURRBARSCOUNT=AOZ,顶X*0.98,'0.500')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ACZ OR CURRBARSCOUNT=AIZ OR CURRBARSCOUNT=APZ,顶X*0.98,'0.618')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ADZ OR CURRBARSCOUNT=AJZ OR CURRBARSCOUNT=ANZ,顶X*0.98,'0.382')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AEZ OR CURRBARSCOUNT=AKZ OR CURRBARSCOUNT=AMZ,顶X*0.98,'0.236')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ASZ,顶X*0.98,'0.00')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AFZ,顶X*0.98,'1.00')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AGZ,顶X*0.98,'1.809')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AIZ,顶X*0.98,'1.618')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AJZ,顶X*0.98,'1.382')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AKZ,顶X*0.98,'1.236')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AHZ,顶X*0.98,'1.500')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ALZ,顶X*0.98,'2.00')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AMZ,顶X*0.98,'2.236')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ANZ,顶X*0.98,'2.382')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=APZ,顶X*0.98,'2.618')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AQZ,顶X*0.98,'2.809')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AOZ,顶X*0.98,'2.500')COLORMAGENTA; N:=6000;高:=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;H6:=高-(高-低)*0.764;H7:=高-(高-低)*0.236;STICKLINE(CURRBARSCOUNT=8,高,高,0,1),COLORGREEN; STICKLINE(CURRBARSCOUNT=8,H1,H1,0,1),COLORCYAN; STICKLINE(CURRBARSCOUNT=8,H2,H2,0,1),COLORCCCCCC; DRAWTEXT(CURRBARSCOUNT=10,高,' 1.000'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,H1,'0.809'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.618'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.500'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.382'),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.236'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=10,低,' 0.000'),COLORRED;STICKLINE(CURRBARSCOUNT=8,H3,H3,0,1),COLORYELLOW; STICKLINE(CURRBARSCOUNT=8,H4,H4,0,1),COLORLIRED;STICKLINE(CURRBARSCOUNT=8,H6,H6,0,1),COLORGREEN;STICKLINE(CURRBARSCOUNT=8,H5,H5,0,1),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=8,低,低,0,1),COLORRED;STICKLINE(CURRBARSCOUNT=8,H7,H7,0,1),COLORRED;DRAWTEXT(CURRBARSCOUNT=50,高*0.99,CON2STR(高,2)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=50,H1,CON2STR(H1,2)),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=50,H2,CON2STR(H2,2)),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=50,H3,CON2STR(H3,2)),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=50,H6,CON2STR(H6,2)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=50,H4,CON2STR(H4,2)),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=50,低*1.01,CON2STR(低,2)),COLORRED;。

江恩时空 百分比 黄金分割通达信指标公式源码

江恩时空 百分比 黄金分割通达信指标公式源码

通达信江恩时空百分比黄金分割主图源码江恩时空百分N:=6000;高:=REFDATE(HHV(H,N),DATE);低:=REFDATE(LLV(L,N),DATE);H11:=高-(高-低)*1.000;H10:=高-(高-低)*0.875;H9:=高-(高-低)*0.750;H8:=高-(高-低)*0.666;H7:=高-(高-低)*0.625;H6:=高-(高-低)*0.500;H5:=高-(高-低)*0.375;H4:=高-(高-低)*0.333;H3:=高-(高-低)*0.250;H2:=高-(高-低)*0.125;H1:=高-(高-低)*0.000;STICKLINE(CURRBARSCOUNT=18,高,高,120,1),COLORGREEN; STICKLINE(CURRBARSCOUNT=18,H1,H1,120,1),COLORCYAN; STICKLINE(CURRBARSCOUNT=18,H2,H2,120,1),COLORCCCCCC; DRAWTEXT(CURRBARSCOUNT=10,H1,'0.000'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.125'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.250'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.333'),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=10,H5,' 0.375'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.500'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=10,H7,' 0.625'),COLORRED; DRAWTEXT(CURRBARSCOUNT=10,H8,' 0.666'),COLORRED; DRAWTEXT(CURRBARSCOUNT=10,H9,' 0.750'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,H10,' 0.875'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=10,H11,' 1.000'),COLORGREEN; STICKLINE(CURRBARSCOUNT=18,H3,H3,120,1),COLORYELLOW; STICKLINE(CURRBARSCOUNT=18,H4,H4,120,1),COLORLIRED; STICKLINE(CURRBARSCOUNT=18,H6,H6,120,1),COLORGREEN; STICKLINE(CURRBARSCOUNT=18,H5,H5,120,1),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=18,低,低,120,1),COLORRED;STICKLINE(CURRBARSCOUNT=18,H7,H7,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H8,H8,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H9,H9,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H10,H10,120,1),COLORRED; STICKLINE(CURRBARSCOUNT=18,H11,H11,120,1),COLORRED; DRAWTEXT(CURRBARSCOUNT=35,高*0.99,CON2STR(高,2)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=35,H11,CON2STR(H11,2)),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=35,H10,CON2STR(H10,2)),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=35,H9,CON2STR(H9,2)),COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=35,H8,CON2STR(H8,2)),COLORRED;DRAWTEXT(CURRBARSCOUNT=35,H1,CON2STR(H1,2)),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=35,H2,CON2STR(H2,2)),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=35,H3,CON2STR(H3,2)),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=35,H6,CON2STR(H6,2)),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=35,H4,CON2STR(H4,2)),COLORLIRED;DRAWTEXT(CURRBARSCOUNT=35,H5,CON2STR(H5,2)),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=35,H7,CON2STR(H7,2)),COLORRED;低点:=800;高点:=800;时间:=1;价格:=1;调点:=1;PURC:=CONST(FINDHIGH(H,0,高点*10,1));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));QQT:=CONST(FINDLOW(L,0,低点*10,1));PLL:=CONST(BARSLAST(QQT=L))+1;低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));ATM:=时间=2 OR 时间=2;QTM:=时间=1 OR 时间=1;BTM:=时间=1 OR 时间=1 OR 时间=1;AAZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.809),DRAWNULL);ABZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.5),DRAWNULL);ACZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.618),DRAWNULL);ADZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)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RBARSCOUNT=QJZ OR CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QRZOR CURRBARSCOUNT=QSZ OR CURRBARSCOUNT=QTZ OR CURRBARSCOUNT=QUZ OR CURRBARSCOUNT=QVZ OR CURRBARSCOUNT=QWZ OR CURRBARSCOUNT=QXZ OR CURRBARSCOUNT=QYZ OR CURRBARSCOUNT=QZZ ;STICKLINE(HXCS1 OR HXCS2 ,顶X,低X,0,0),COLORMAGENTA;DRAWKLINE(H,O,L,C);天XX线:=IF(价格=5 AND 时间=5,DRAWNULL,顶X),COLORMAGENTA;地XX线:=IF(价格=5 AND 时间=5,DRAWNULL,低X),COLORMAGENTA;顶点:天XX线,COLORMAGENTA;底点:地XX线,COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QSZ,顶X*0.98,'1/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QTZ,顶X*0.98,'2/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QCZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QUZ,顶X*0.98,'3/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QVZ,顶X*0.98,'5/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QGZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QWZ,顶X*0.98,'6/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QRZ OR CURRBARSCOUNT=QXZ,顶X*0.98,'7/8')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QJZ OR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QYZ,顶X*0.98,'1/3')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QZZ,顶X*0.98,'2/3')COLORMAGENTA;黄金分割低点:=800;高点:=800;时间:=1;价格:=1;调点:=2;PURC:=CONST(FINDHIGH(H,0,高点*10,1));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));QQT:=CONST(FINDLOW(L,0,低点*10,1));PLL:=CONST(BARSLAST(QQT=L))+1;低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));ATM:=时间=1 OR 时间=3;QTM:=时间=2 OR 时间=3;BTM:=时间=1 OR 时间=2 OR 时间=3;AAZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.809),DRAWNULL); ABZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.5),DRAWNULL); ACZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.618),DRAWNULL); ADZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.382),DRAWNULL); AEZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.236),DRAWNULL); AFZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1),DRAWNULL); AGZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.809),DRAWNULL);AIZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.618),DRAWNULL);AJZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.382),DRAWNULL);AKZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL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PLL)*18/8),DRAWNULL);QUZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*19/8),DRAWNULL);QVZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*21/8),DRAWNULL); QWZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*22/8),DRAWNULL);QXZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*23/8),DRAWNULL);QYZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*7/3),DRAWNULL);HXCS2:=CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QCZOR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QGZ OR CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QJZ OR CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QRZOR CURRBARSCOUNT=QSZ OR CURRBARSCOUNT=QTZ OR CURRBARSCOUNT=QUZ OR CURRBARSCOUNT=QVZ OR CURRBARSCOUNT=QWZ OR CURRBARSCOUNT=QXZ OR CURRBARSCOUNT=QYZ OR CURRBARSCOUNT=QZZ ;STICKLINE(HXCS1 OR HXCS2 ,顶X,低X,0,0),COLORMAGENTA;DRAWKLINE(H,O,L,C);天XX线:=IF(价格=5 AND 时间=5,DRAWNULL,顶X),COLORMAGENTA;地XX线:=IF(价格=5 AND 时间=5,DRAWNULL,低X),COLORMAGENTA;顶点:天XX线,COLORMAGENTA;底点:地XX线,COLORMAGENTA;NOTEXT1:IF(价格=1 OR 价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*0.5,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT2:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.236,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT3:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.382,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT4:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.618,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT5:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX线)*0.809,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT6:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*1/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT7:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*2/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT8:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*3/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT10:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*5/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT11:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*6/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT12:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*7/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT13:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*1/3,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT14:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*2/3,DRAWNULL),COLORMAGENTA,DOTLINE;DRAWTEXT(CURRBARSCOUNT=AAZ OR CURRBARSCOUNT=AGZ OR CURRBARSCOUNT=AQZ,顶X*0.98,'0.809')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ABZ OR CURRBARSCOUNT=AHZ OR CURRBARSCOUNT=AOZ,顶X*0.98,'0.500')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ACZ OR CURRBARSCOUNT=AIZ OR CURRBARSCOUNT=APZ,顶X*0.98,'0.618')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ADZ OR CURRBARSCOUNT=AJZ OR CURRBARSCOUNT=ANZ,顶X*0.98,'0.382')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AEZ OR CURRBARSCOUNT=AKZ OR CURRBARSCOUNT=AMZ,顶X*0.98,'0.236')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ASZ,顶X*0.98,'0.00')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AFZ,顶X*0.98,'1.00')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AGZ,顶X*0.98,'1.809')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AIZ,顶X*0.98,'1.618')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AJZ,顶X*0.98,'1.382')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AKZ,顶X*0.98,'1.236')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AHZ,顶X*0.98,'1.500')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ALZ,顶X*0.98,'2.00')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AMZ,顶X*0.98,'2.236')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=ANZ,顶X*0.98,'2.382')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=APZ,顶X*0.98,'2.618')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AQZ,顶X*0.98,'2.809')COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=AOZ,顶X*0.98,'2.500')COLORMAGENTA; N:=6000;高:=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;H6:=高-(高-低)*0.764;H7:=高-(高-低)*0.236;STICKLINE(CURRBARSCOUNT=8,高,高,0,1),COLORGREEN; STICKLINE(CURRBARSCOUNT=8,H1,H1,0,1),COLORCYAN; STICKLINE(CURRBARSCOUNT=8,H2,H2,0,1),COLORCCCCCC; DRAWTEXT(CURRBARSCOUNT=10,高,' 1.000'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,H1,'0.809'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.618'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.500'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.382'),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.236'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=10,低,' 0.000'),COLORRED;STICKLINE(CURRBARSCOUNT=8,H3,H3,0,1),COLORYELLOW; STICKLINE(CURRBARSCOUNT=8,H4,H4,0,1),COLORLIRED;STICKLINE(CURRBARSCOUNT=8,H6,H6,0,1),COLORGREEN;STICKLINE(CURRBARSCOUNT=8,H5,H5,0,1),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=8,低,低,0,1),COLORRED;STICKLINE(CURRBARSCOUNT=8,H7,H7,0,1),COLORRED;DRAWTEXT(CURRBARSCOUNT=50,高*0.99,CON2STR(高,2)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=50,H1,CON2STR(H1,2)),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=50,H2,CON2STR(H2,2)),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=50,H3,CON2STR(H3,2)),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=50,H6,CON2STR(H6,2)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=50,H4,CON2STR(H4,2)),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=50,低*1.01,CON2STR(低,2)),COLORRED;。

“黄金分割率坐标系”主图公式(通达信)

“黄金分割率坐标系”主图公式(通达信)

“黄金分割率坐标系”主图公式(通达信)“黄金分割率坐标系”主图公式(通达信)黄金分割是一个古老的数学方法。

它的各种神奇的作用和魔力,屡屡在实际中发挥我们意想不到的作用。

十一国庆期间有几位会员来信要求讲讲黄金分割线的使用,同时在这里一并答复来电来信要求讲其它技术的朋友,在以后的3-4个月里陆续满足大家的要求。

首先,我们说说如何得到黄金分割线,并根据它的指导进行下一步的买卖实际的操作。

画黄金分割线的第一步是记住若干个特殊的数字:1.191,1.382,1.50,1.618,1.809,2.00,2.618,4.236,6.854,这些数字中0.382,0.618,1.382,1.618最为重要,价格极为容易在由这四个数产生的黄金分割线处产生支撑和压力。

现在大多软件的黄金分割线的特殊的数字:0,0.382,0.5,0.618,1,有的还有扩散线。

第二步是找到一个或两个基点。

这个点是上升行情结束,调头向下的最高点,或者是下降行情结束,调头向上的最低点。

当然,我们知道这里的高点和低点都是指一定的范围,是局部的。

只要我们能够确认一个趋势(无论是上升还是下降)已经结束或暂时结束,则这个趋势的转折点就可以作为进行黄金分割的起点,这个点一经选定,我们就可以画出黄金分割线了。

运用黄金分割法研判趋势是很实用的一个方法,在与会员研讨中却发现很多人应用这个方法,本人将自己的体会谈一谈,供有兴趣的会员参考。

一、用一个基点的上升或下降行情的使用方法在上升行情时,我们关心上涨到什么位置将遇到压力。

黄金分割线提供的位置是基点价位乘上特殊数字。

假设,基点价格为10元,则:10.00=10×1.000 13.82=10×1.382 15=10×1.500 16.18=10×1.618 20.00=10×2.000 26.18=10×2.618这几个价位可能成为未来的压力位。

黄金主图指标通达信指标公式源码

黄金主图指标通达信指标公式源码
白线:1.06*VAR3,COLORWHITE,LINETHICK2;
MA4:MA(C,4),COLORWHITE,LINETHICK1;
MA24:MA(C,24), COLORGREEN,LINETHICK1;
IF(MA4>=REF(MA4,1),MA4,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT_FIX(ISLASTBAR,0.05,0.9,0,'出现黄色的金柱,出现涨在即,在白线之上跟,会有意想不到的收获!'),COLORGREEN;
WWW1:=C>MA(C,63);
黄金!:=C>黄金柱AND WWW1 AND (C>HHV(MA((LOW+HIGH+CLOSE)/3,5),60)) AND (C>1.06*(EMA((EMA(CLOSE*VOL,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)
C1:=C>=MA4;C2:=C<=MA4;
DRAWICON(CROSS(C1,C2),L-0.2,1);
JJ:=(3*C+H+L+O)/6; VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);
LJL:=FILTER(TJ1,5);

黄金分割(主图 指标)通达信指标公式源码

黄金分割(主图 指标)通达信指标公式源码

黄金分割(主图指标){参数:T 1 1000 180设置:T1 1 500 10}DRAWGBK(C>0, RGB(01,01,01),RGB(01,01,01),0,0,1);{黑色} DRAWKLINE(H,O,L,C);{黄金分割}HH:=REF(HHV(H,T),T1);LL:=REF(LLV(L,T),T1);H1:=HH-(HH-LL)*0.191;H2:=HH-(HH-LL)*0.382;H3:=HH-(HH-LL)*0.5;H4:=HH-(HH-LL)*0.618;H5:=HH-(HH-LL)*0.764;H6:=HH-(HH-LL)*0.809;H7:=HH-(HH-LL)*0.236;顶1:=HH+(HH-LL)*0.191;顶2:=HH+(HH-LL)*0.382;顶3:=HH+(HH-LL)*0.618;底1:=IF((HH-LL)<LL,LL-(HH-LL)*0.191,LL-LL*0.191);底2:=IF((HH-LL)<LL,LL-(HH-LL)*0.382,LL-LL*0.382);底3:=IF((HH-LL)<LL,LL-(HH-LL)*0.618,LL-LL*0.618);高:=IF(CURRBARSCOUNT<=T+T1 AND CURRBARSCOUNT>T1,REFDATE(HH,DATE),DRAWNULL);一:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H1,DATE),DRAWNULL); 二:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H2,DATE),DRAWNULL); 三:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H3,DATE),DRAWNULL); 四:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H4,DATE),DRAWNULL); 五:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H5,DATE),DRAWNULL); 六:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H6,DATE),DRAWNULL); 七:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H7,DATE),DRAWNULL); 低:=IF(CURRBARSCOUNT<=T+T1 AND CURRBARSCOUNT>T1,REFDATE(LL,DATE),DRAWNULL);NOTEXT1:高,COLOR007799;{NOTEXT2:IF(GOQI,DRAWNULL,一),DOTLINE,COLOR777777; NOTEXT3:IF(GOQI,DRAWNULL,二),DOTLINE,COLOR777777; NOTEXT4:IF(GOQI,DRAWNULL,三),DOTLINE,COLOR777777; NOTEXT5:IF(GOQI,DRAWNULL,四),DOTLINE,COLOR777777; NOTEXT6:IF(GOQI,DRAWNULL,五),DOTLINE,COLOR777777; NOTEXT7:IF(GOQI,DRAWNULL,六),DOTLINE,COLOR777777;}AA:REFDATE(一,DATE),DOTLINE,COLOR555555;BB:REFDATE(二,DATE),DOTLINE,COLOR005858;CC:REFDATE(三,DATE),DOTLINE,COLOR777777;DD:REFDATE(四,DATE),DOTLINE,COLOR005858;EE:REFDATE(五,DATE),DOTLINE,COLOR555555;FF:REFDATE(六,DATE),DOTLINE,COLOR555555;GG:REFDATE(七,DATE),DOTLINE,COLOR555555;NOTEXT8:低,COLOR668800;TT:=INTPART(T*0.5)+T1;TT1:=(CURRBARSCOUNT=TT);TT2:=(CURRBARSCOUNT=TT-32);TT3:=(CURRBARSCOUNT=TT-40);DRAWTEXT(TT1 AND 高,高-(高-低)*0.025,STRCAT(' 【高点】:',CON2STR(HH,2))),COLOR007799;DRAWTEXT(TT1 AND 一,一+(高-低)*0.020,STRCAT('191 (809):',CON2STR(H1,2))),COLOR888888;DRAWTEXT(TT1 AND 二,二+(高-低)*0.020,STRCAT('382 (618):',CON2STR(H2,2))),COLOR008888;DRAWTEXT(TT1 AND 三,三+(高-低)*0.020,STRCAT(' 【中点】:',CON2STR(H3,2))),COLOR000088;DRAWTEXT(TT1 AND 四,四+(高-低)*0.020,STRCAT('618 (382):',CON2STR(H4,2))),COLOR008888;DRAWTEXT(TT1 AND 五,五+(高-低)*0.020,STRCAT('764 (236):',CON2STR(H5,2))),COLOR888888;DRAWTEXT(TT1 AND 六,六+(高-低)*0.020,STRCAT('809 (191):',CON2STR(H6,2))),COLOR888888;DRAWTEXT(TT1 AND 七,七+(高-低)*0.020,STRCAT('236 (764):',CON2STR(H7,2))),COLOR888888;DRAWTEXT(TT1 AND 低,低+(高-低)*0.020,STRCAT(' 【低点】:',CON2STR(LL,2))),COLOR668800;DRAWTEXT(TT3 AND 高,高+(高-低)*0.040,''),COLOR007799;{顶距};DRAWTEXT_FIX(1,0.68,0.02,0,'【注意:高低点的位置是否找对?不对一定要调整参数找准!】'),COLOR0000FF;。

最牛B的黄金分割线 有整套操作流程通达信指标公式源码

最牛B的黄金分割线 有整套操作流程通达信指标公式源码

最牛B的黄金分割线有整套操作流程通达信指标公式源码黄金分割是一种主图指标,包含三条水平线:红色的顶点线、黄色的%61.8线(俗称黄金线)和绿色的低点线。

这三条线都是支撑线和压力线。

当股价接近任意一条线时,该线就成为支撑线或压力线。

使用黄金分割指标时,当股价上穿任意一条线且有量能配合时,可以考虑买入。

当股价回调但不破下面一条线时,带量反弹是上签买点。

当股价上涨到接近上面的一条线时,可以考虑卖出。

以下为参数和函数,依次填写到参数表里:P1(0,,5);P2(0,,10);P3(0,,20);P4(0,,30);P5(0,,60);以下为函数,全部粘贴到大框里:MA5: MA(CLOSE,P1);MA10: MA(CLOSE,P2);MA20: MA(CLOSE,P3);MA30: MA(CLOSE,P4);MA60: MA(CLOSE,P5);XXX(C>REF(C,1)*1.095,C,O,2,0),COLORYELLOW;JXX:=BARSLASTCOUNT(C<MA20);JXX1:=BACKSET((JXX>=4)*JXX,JXX);JXS:=BARSLASTCOUNT(C>MA20);JXS1:=BACKSET((JXS>=4)*JXS,JXS);XXX:=BARSLASTCOUNT(NOT(JXX1 OR JXS1));JXL:=BARSLASTCOUNT(REF(JXX1>0,KGC));JXH:=BARSLASTCOUNT(REF(JXS1>0,KGC));XWZ:=FILTERX(LLV(L,JXL)=L,JXL);SWZ:=FILTERX(HHV(H,JXH)=H,JXH);高点和低点可以通过REF函数来获取,REF函数的第一个参数是需要引用的值,第二个参数是引用的距离。

在这种情况下,我们需要引用最近的SWZ和XWZ,因此可以使用BARSLAST函数来获取它们的位置。

分割主图通达信指标公式源码

分割主图通达信指标公式源码

分割主图原码:HH:=SYSPARAM(4);LL:=SYSPARAM(5);P16:=(LL + ((HH - LL) * 0.625));P17:=(LL + ((HH - LL) * 0.375));P7:=(LL + ((HH - LL) * 0.875));P8:=(LL + ((HH - LL) * 0.667));P10:=(LL + ((HH - LL) * 0.333));P11:=(LL + ((HH - LL) * 0.125));DRAWTEXT((ISLASTBAR = 1),P7,(' ▲87.5%:' + NUMTOSTR(P7,2))),ALIGN2,color84C1FF; DRAWTEXT((ISLASTBAR = 1),P8,(' ▲66.7%:' + NUMTOSTR(P8,2))),ALIGN2,color84C1FF; DRAWTEXT((ISLASTBAR = 1),P10,(' ▲33.3%:' +NUMTOSTR(P10,2))),ALIGN2,colorFFFF00;DRAWTEXT((ISLASTBAR = 1),P11,(' ▲12.5%:' +NUMTOSTR(P11,2))),ALIGN2,colorFFFF00;DRAWTEXT((ISLASTBAR = 1),P16,(' ⊙62.5%:' +NUMTOSTR(P16,2))),ALIGN2,colorFF00;DRAWTEXT((ISLASTBAR = 1),P17,(' ⊙37.5%:' +NUMTOSTR(P17,2))),ALIGN2,colorFF00;NNL:=(BARPOS = SYSPARAM(3));江05:(LL + ((HH - LL) * 0.05)),COLOR0010FF,linethick2;江10:(LL + ((HH - LL) * 0.1));黄191:(LL + ((HH - LL) * 0.191)),COLOR0010FF,linethick2;江22:(LL + ((HH - LL) * 0.22));江25:(LL + ((HH - LL) * 0.25));江28:(LL + ((HH - LL) * 0.28)),COLOR0010FF,linethick2;黄甘337:(LL + ((HH - LL) * 0.337));黄382:(LL + ((HH - LL) * 0.382));甘氏45:(LL + ((HH - LL) * 0.45)),COLOR0010FF,linethick2;黄500:(LL + ((HH - LL) * 0.5)),COLOR0010FF,linethick2;黄618:(LL + ((HH - LL) * 0.618));黄甘667:(LL + ((HH - LL) * 0.667)),COLOR0010FF,linethick2;黄甘75:(LL + ((HH - LL) * 0.75));黄809:(LL + ((HH - LL) * 0.809)),COLOR0010FF,linethick2;江55:(LL + ((HH - LL) * 0.55));江75:(LL + ((HH - LL) * 0.75));江78:(LL + ((HH - LL) * 0.78));江85:(LL + ((HH - LL) * 0.85));江90:(LL + ((HH - LL) * 0.9)),COLOR0010FF,linethick2;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.05)),(('江恩05%(' + NUMTOSTR(江05,2)) + ')')),color84C1FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.1)),(('江恩10%(' + NUMTOSTR(江10,2)) + ')')),color84C1FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.22)),(('江恩22%(' + NUMTOSTR(江22,2)) + ')')),color84C1FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.25)),(('江恩25%(' + NUMTOSTR(江25,2)) + ')')),color84C1FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.28)),(('江恩28%(' + NUMTOSTR(江28,2)) + ')')),COLOR0010FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.55)),(('江恩55%(' + NUMTOSTR(江55,2)) + ')')),color84C1FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.191)),(('黄金19.1%(' + NUMTOSTR(黄191,2)) + ')')),colorFFFF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.45)),(('甘氏45%(' +NUMTOSTR(甘氏45,2)) + ')')),COLOR0010FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.382)),(('★黄金38.2%(' + NUMTOSTR(黄382,2)) + ')')),colorFFFF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.337)),(('黄甘33.7%(' + NUMTOSTR(黄甘337,2)) + ')')),colorFFFF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.5)),(('黄金强弱分界(' + NUMTOSTR(黄500,2)) + ')')),COLOR0010FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.618)),(('★黄金61.8%(' + NUMTOSTR(黄618,2)) + ')')),colorFFFF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.667)),(('黄甘66.7%(' + NUMTOSTR(黄甘667,2)) + ')')),colorFFFF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.75)),(('江恩75%(' + NUMTOSTR(江75,2)) + ')')),colorDAFC8B;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.78)),(('江恩78%(' + NUMTOSTR(江78,2)) + ')')),colorDAFC8B;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.809)),(('黄金80.9%(' + NUMTOSTR(黄809,2)) + ')')),colorFFFF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.85)),(('江恩85%(' + NUMTOSTR(江85,2)) + ')')),colorDAFC8B;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.9)),(('江恩90%(' + NUMTOSTR(江90,2)) + ')')),colorDAFC8B;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.999)),(('最高价¥(' + NUMTOSTR(HH,2)) + ')')),colorFF00FF;DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.0000)),(('最低价¥(' + NUMTOSTR(LL,2)) + ')')),colorFFFF00;LL+((HH-LL)*0.764),pointdot,linethick1,coloryellow;DRAWTEXT(c>0 and ISLASTBAR=1,LL+((HH-LL)*0.764),' 0.764↑'),color009999;LL+((HH-LL)*0.236),pointdot,linethick1,coloryellow;DRAWTEXT(c>0 and ISLASTBAR=1,LL+((HH-LL)*0.236),' 0.236↑'),color009999; Input:左侧右移(5,0,100,1),右侧左移(0,0,100,1),开关(1,1,2,1),N(30,1,1000,1),M(5,1,365,1);t1:=barpos=sysparam(2)+左侧右移;t2:=barpos=sysparam(3)-右侧左移;t11:=sysparam(2)+左侧右移;t21:=sysparam(3)-右侧左移;ymd:=date;D1:=ymd[t11],linethick0;D2:=ymd[t21],linethick0;间隔:=t21-t11,linethick0;x1:=间隔*(0.191);x8:=间隔*(0.382);x05:=间隔*(0.5);x3:=间隔*(0.618);x5:=间隔*(0.809);x1831:=sysparam(2)+左侧右移+ROUND(x1); tx1:=BARPOS=x1831;VERTLINE(tx1),colorffff33,LINEDOT;D191:=ymd[x1831],linethick0;x1838:=t11+ROUND(x8);tx8:=BARPOS=x1838;VERTLINE(tx8),color00aaaa,LINEDOT;D382:=ymd[x1838],linethick0;x18305:=t11+ROUND(x05);tx05:=BARPOS=x18305;VERTLINE(tx05),color0000ff,LINEDOT;D05:=ymd[x18305],linethick0;x1833:=t11+ROUND(x3);tx3:=BARPOS=x1833;VERTLINE(tx3),color00aaaa,LINEDOT;D618:=ymd[x1833],linethick0;x1835:=t11+ROUND(x5);tx5:=BARPOS=x1835;VERTLINE(tx5),colorffff33,LINEDOT;D809:=ymd[x1835],linethick0;ph:=SYSPARAM(4);pl:=SYSPARAM(5);drawtext(t1,ph*0.99,'0点'),color00ffff; drawtext(t2,ph*0.99,'100%'),color00ffff,align2; drawtext(tx1,ph*0.99,'0.191'),colorffff33; drawtext(tx8,ph*0.99,'0.382'),color00aaaa; drawtext(tx05,ph*0.99,'0.5'),color0000ff;drawtext(tx3,ph*0.99,'0.618'),color00aaaa;drawtext(tx5,ph*0.99,'0.809'),colorffff33;input:k(1,1,3,1);hh:= SYSPARAM(4);ll:= SYSPARAM(5);HL:=hh-ll;wH := BARSlast(H=hh);wL :=BARSlast(L=ll);KK := wH-wL;a1 :=if(kk<0,hh- HL*0.25,ll+HL*0.25);a2 :=if(kk<0,hh- HL*0.75,ll+HL*0.75);a3 :=if(kk<0,hh- HL*0.3125,ll+HL*0.3125);mHL:= hh-HL*0.5;b1:=if(kk<0,hh- HL*0.125,ll+HL*0.125);b2:=if(kk<0,hh-HL*0.0625,ll+HL*0.0625);b3:=if(kk<0,hh- HL*0.375,ll+HL*0.375);b4:=if(kk<0,hh-HL*0.625,ll+HL*0.625);b5:=if(kk<0,hh- HL*0.1875,ll+HL*0.1875);b6:=if(kk<0,hh-HL*0.875,ll+HL*0.875);b7:=if(kk<0,hh- HL*0.4375,ll+HL*0.4375);b8:=if(kk<0,hh-HL*0.5625,ll+HL*0.5625);b9:=if(kk<0,hh- HL*0.6875,ll+HL*0.6875);b10:=if(kk<0,hh-HL*0.9375,ll+HL*0.9375);b11:=if(kk<0,hh- HL*0.8125,ll+HL*0.8125);A := islastbar; DRAWTEXT(A and K<>3,HH, ' 最高价:'+NUMTOSTR(HH,2)),ALIGN2,colorred;DRAWTEXT(A and K<>3,LL, ' 最低价:'+NUMTOSTR(ll,2)),ALIGN2,,COLORCYAN;DRAWTEXT(A and K<>3,mHL,' 50%:'+NUMTOSTR(mHL,2)),ALIGN2,coloryellow;DRAWTEXT(A and K=1, a1, ' 25%:'+NUMTOSTR(a1,2)),ALIGN2,coloryellow;DRAWTEXT(A and K=1, a2, ' 75%:'+NUMTOSTR(a2,2)),ALIGN2,colorgreen;DRAWTEXT(A and K=1, a3, ' 31.25%:'+NUMTOSTR(a3,3)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b1, ' 12.5%:'+NUMTOSTR(b1,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b2, ' 6.25%:'+NUMTOSTR(b2,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b3, ' 37.5%:'+NUMTOSTR(b3,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b4, ' 62.5%:'+NUMTOSTR(b4,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b5, ' 18.75%:'+NUMTOSTR(b5,3)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b6, ' 87.5%:'+NUMTOSTR(b6,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b7, ' 43.75%:'+NUMTOSTR(b7,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b8, ' 56.25%:'+NUMTOSTR(b8,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b9, ' 68.75%:'+NUMTOSTR(b9,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b10, ' 93.75%:'+NUMTOSTR(b10,2)),ALIGN2,COLORGRAY;DRAWTEXT(A and K=1, b11, ' 81.25:'+NUMTOSTR(b11,2)),ALIGN2,COLORGRAY;STICKLINE(C>=O,C,O,8,0),COLOR0000AA;STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;STICKLINE(C>=O,C,O,4,0),COLOR0000cc ;STICKLINE(C>=O,C,O,2,0),COLOR0000ee;STICKLINE(C>=O,H,L,0,0),COLOR0000ff;STICKLINE(C<=O,C,O,8,0),Color7B7b00;STICKLINE(C<=O,C,O,6,0),Color909000;STICKLINE(C<=O,C,O,4,0),ColorA8a800;STICKLINE(C<=O,C,O,2,0),COLORcece00;STICKLINE(C<=O,H,L,0,0),COLORffff00。

黄金分割主图指标

黄金分割主图指标

黄金分割主图指标2020-10-29 22:28:43使用说明:这里发的指标均是通达信电脑版软件,手机软件有的可能不通用指标源码:低点:=800;高点:=800;时间:=1;价格:=1;调点:=2;PURC:=CONST(FINDHIGH(H,0,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Z,PLL)-ABS(PLZ-PLL)*21/8),DRAWNULL);QWZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*22/8),DRAWNULL);QXZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*23/8),DRAWNULL);QYZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*7/3),DRAWNULL);QZZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*8/3),DRAWNULL);HXCS2:=CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QCZ OR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QGZOR CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QJZOR CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QNZOR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QQZOR CURRBARSCOUNT=QRZOR CURRBARSCOUNT=QSZ OR CURRBARSCOUNT=QTZ OR CURRBARSCOUNT=QUZOR CURRBARSCOUNT=QVZ OR CURRBARSCOUNT=QWZ OR CURRBARSCOUNT=QXZOR CURRBARSCOUNT=QYZ OR CURRBARSCOUNT=QZZ ;STICKLINE(HXCS1 OR HXCS2 ,顶X,低X,0,0),COLORMAGENTA;DRAWKLINE(H,O,L,C);天XX线:=IF(价格=5 AND 时间=5,DRAWNULL,顶X),COLORMAGENTA;地XX线:=IF(价格=5 AND 时间=5,DRAWNULL,低X),COLORMAGENTA;顶点:天XX线,COLORMAGENTA;底点:地XX线,COLORMAGENTA;NOTEXT1:IF(价格=1 OR 价格=2 OR 价格=3,地XX线+(天XX线-地XX线)*0.5,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT2:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX 线)*0.236,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT3:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX 线)*0.382,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT4:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX 线)*0.618,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT5:IF(价格=1 OR 价格=3,地XX线+(天XX线-地XX 线)*0.809,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT6:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*1/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT7:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*2/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT8:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*3/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT10:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*5/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT11:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*6/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT12:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*7/8,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT13:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*1/3,DRAWNULL),COLORMAGENTA,DOTLINE;NOTEXT14:IF(价格=2 OR 价格=3,地XX线+(天XX线-地XX 线)*2/3,DRAWNULL),COLORMAGENTA,DOTLINE;DRAWTEXT(CURRBARSCOUNT=AAZ OR CURRBARSCOUNT=AGZ OR CURRBARSCOUNT=AQZ,顶X*0.98,'0.809')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ABZ OR CURRBARSCOUNT=AHZ OR CURRBARSCOUNT=AOZ,顶X*0.98,'0.500')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ACZ OR CURRBARSCOUNT=AIZ OR CURRBARSCOUNT=APZ,顶X*0.98,'0.618')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ADZ OR CURRBARSCOUNT=AJZ OR CURRBARSCOUNT=ANZ,顶X*0.98,'0.382')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AEZ OR CURRBARSCOUNT=AKZ OR CURRBARSCOUNT=AMZ,顶X*0.98,'0.236')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ASZ,顶X*0.98,'0.00')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AFZ,顶X*0.98,'1.00')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AGZ,顶X*0.98,'1.809')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AIZ,顶X*0.98,'1.618')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AJZ,顶X*0.98,'1.382')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AKZ,顶X*0.98,'1.236')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AHZ,顶X*0.98,'1.500')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ALZ,顶X*0.98,'2.00')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AMZ,顶X*0.98,'2.236')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=ANZ,顶X*0.98,'2.382')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=APZ,顶X*0.98,'2.618')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AQZ,顶X*0.98,'2.809')COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=AOZ,顶X*0.98,'2.500')COLORMAGENTA;N:=6000;高:=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;H6:=高-(高-低)*0.764;H7:=高-(高-低)*0.236;STICKLINE(CURRBARSCOUNT=8,高,高,0,1),COLORGREEN;STICKLINE(CURRBARSCOUNT=8,H1,H1,0,1),COLORCYAN;STICKLINE(CURRBARSCOUNT=8,H2,H2,0,1),COLORCCCCCC;DRAWTEXT(CURRBARSCOUNT=10,高,' 1.000'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=10,H1,'0.809'),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=10,H2,'0.618'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=10,H3,'0.500'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.382'),COLORLIRED;DRAWTEXT(CURRBARSCOUNT=10,H6,'0.236'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=10,低,' 0.000'),COLORRED;STICKLINE(CURRBARSCOUNT=8,H3,H3,0,1),COLORYELLOW;STICKLINE(CURRBARSCOUNT=8,H4,H4,0,1),COLORLIRED;STICKLINE(CURRBARSCOUNT=8,H6,H6,0,1),COLORGREEN;STICKLINE(CURRBARSCOUNT=8,H5,H5,0,1),COLORMAGENT A;STICKLINE(CURRBARSCOUNT=8,低,低,0,1),COLORRED;STICKLINE(CURRBARSCOUNT=8,H7,H7,0,1),COLORRED;DRAWTEXT(CURRBARSCOUNT=50,高*0.99,CON2STR(高,2)),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=50,H1,CON2STR(H1,2)),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=50,H2,CON2STR(H2,2)),COL ORFFFFFF;DRAWTEXT(CURRBARSCOUNT=50,H3,CON2STR(H3,2)),COL ORYELLOW;DRAWTEXT(CURRBARSCOUNT=50,H6,CON2STR(H6,2)),COL ORGREEN;DRAWTEXT(CURRBARSCOUNT=50,H4,CON2STR(H4,2)),COL ORLIRED;DRAWTEXT(CURRBARSCOUNT=50,低*1.01,CON2STR(低,2)),COLORRED;。

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