【股票指标公式下载】-【通达信】日BS(多头买入、多头卖出)
通达信技术指标公式大全
通达信技术指标公式大全本文档汇总了通达信软件中常用的技术指标公式,供参考使用。
1. 移动平均线指标公式- 简称:MA简称:MA- 公式:MA(CLOSE, N)公式:MA(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的移动平均线。
说明:计算收盘价CLOSE在N周期内的移动平均线。
2. 相对强弱指标公式- 简称:RSI简称:RSI- 公式:RSI(CLOSE, N)公式:RSI(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的相对强弱指标。
说明:计算收盘价CLOSE在N周期内的相对强弱指标。
3. 随机指标公式- 简称:KDJ简称:KDJ- 公式:KDJ(N, M, RSV)公式:KDJ(N, M, RSV)- 说明:计算随机指标K、D、J。
说明:计算随机指标K、D、J。
4. 线性回归指标公式- 简称:LINEARREG简称:LINEARREG- 公式:LINEARREG(CLOSE, N)公式:LINEARREG(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的线性回归。
说明:计算收盘价CLOSE在N周期内的线性回归。
5. 移动平均收敛/发散指标公式- 简称:MACD简称:MACD- 公式:MACD(EMA12, EMA26, MACD9)公式:MACD(EMA12, EMA26, MACD9)- 说明:计算移动平均线的收敛/发散指标。
说明:计算移动平均线的收敛/发散指标。
6. 布林带指标公式- 简称:BOLL简称:BOLL- 公式:BOLL(CLOSE, N)公式:BOLL(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的布林带指标。
说明:计算收盘价CLOSE在N周期内的布林带指标。
7. 高低价指标公式- 简称:H_L简称:H_L- 公式:H_L(HIGH, LOW)公式:H_L(HIGH, LOW)- 说明:根据最高价HIGH和最低价LOW计算高低价指标。
通达信多种买入卖出信号提示主图指标公式
MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:=MA(CLOSE,120);MA250:=MA(CLOSE,250);中期临界点: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90), VOL),LINETHICK2,COLORRED;{涨跌家数}涨:INDEXADV,NODRAW,COLORLIMAGENTA ;跌:INDEXDEC,NODRAW,COLORGREEN;▼天顶:=HHV(HIGH,35),COLORGREEN, LINETHICK1.8;▲地底:=LLV(LOW,55),COLORRED,LINETHICK1.8;无间道:=(▼天顶+▲地底)/2,COLORRED,CIRCLEDOT,LINETHICK;DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.98,1);{DRAWTEXT(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.96,' 波段 低吸');}DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,2);{DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,'波段高抛');}{财务数据}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;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量 柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) ORREF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3); 黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051), BT2052),BT2053);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)) ,0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DA Y1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1 )),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,D AY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRA WNULL,REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRA WNULL,REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRA WNULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLOR YELLOW,NODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0))); 立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;{DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;}DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;{STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;}{DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;}{DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;}{STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;};{ 涨停 标注}STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;{涨停天数}VARZT:=BARSLAST(C/REF(C,1)>1.094);DRAWTEXT(VARZT=2,L*0.95,'3T'),COLORYELLOW;DRAWTEXT(VARZT=4,H*1.06,'5T'),COLORYELLOW;DRAWTEXT(VARZT=7,L*0.95,'8T'),COLORYELLOW;DRAWTEXT(VARZT=12,H*1.06,'13T'),COLORYELLOW;DRAWTEXT(VARZT=20,L*0.95,'21T'),COLORYELLOW;DRAWTEXT(VARZT=33,H*1.06,'34T'),COLORYELLOW;DRAWTEXT(VARZT=54,L*0.95,'55T'),COLORYELLOW;DRAWTEXT(VARZT=88,H*1.06,'89T'),COLORYELLOW;DRAWTEXT(VARZT=143,L*0.95,'144T'),COLORYELLOW;DRAWTEXT(VARZT=232,H*1.06,'233T'),COLORYELLOW;DRAWTEXT(VARZT=376,L*0.95,'377T'),COLORYELLOW;Z:=ISLASTBAR;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)>REF(O,1)&&C>O&&Z,0.98,0.2, 1,'①乾:阳极,防变'),COLORFF00FF;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98,0.2 ,1,'②兑:阳减,调整'),COLORFFFF00;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)<=REF(O,1)&&C>O&&Z,0.98,0.2 ,1,'③离:阳光,关注'),COLOR00FFFF;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)<=REF(O,1)&&C<=O&&Z,0.98,0. 2,1,'④震:继阴, 空仓 '),COLORFF0000;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)>REF(O,1)&&C>O&&Z,0.98,0.2 ,1,'⑤巽:继阳, 持股 '),COLORFF00FF;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98,0. 2,1,'⑥坎:阴风,看跌'),COLORFF0000;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)<=REF(O,1)&&C>O&&Z,0.98,0. 2,1,'⑦艮:阴减, 反弹 '),COLOR00FFFF;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)<=REF(O,1)&&C<=O&&Z,0.98, 0.2,1,'⑧坤:阴极,待转'),COLORFF0000;{暴跌 买入 }TJ1:=EMA((C-L),20)/EMA((H-L),20)*100;TJ2:=(L-ABS(MIN(C,O)))/L<=1;TJ3:=ABS((L-MA(C,5)))/L*100>10;TJ4:=TJ1 AND TJ2 AND TJ3;DRAWTEXT(TJ4 AND TJ1>REF(TJ1,1),LOW*0.95,'BD'),COLORRED; DRAWICON(TJ4 AND TJ1>REF(TJ1,1),L*0.95,1);{暴涨}DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;DRAWTEXT(起爆,L*0.99,'↖暴涨'),COLORYELLOW,LINETHICK2;。
通达信主力资金进入指标公式
通达信主力资金进入指标公式【控盘、出货、吸货、对倒出货洗盘、黄色底部吸货、多头买入、多头卖出】VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF;STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF; VAR1:=EMA(EMA(CLOSE,3),1);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;主力出货:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;主力吸货:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货洗盘:0,COLOR00FF00;黄色底部吸货:0,COLORYELLOW;DRAWTEXT(CROSS(控盘,0),0-3,'买。
【股票指标公式下载】-【通达信】量能平台(清仓、出货、高抛)
【股票指标公式下载】-【通达信】量能平台(清仓、出货、高抛)【通达信】量能平台(清仓、出货、高抛)-指标公式源码MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60),COLORRED,LINETHICK2;MA144:MA(CLOSE,144),COLOR9F5F9F,LINETHICK2;ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1) *31,DAY+ INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0) ),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周5:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE ,T3)+CLOSE)/5,CO LORE6E8FA,LINETHICK2;周10:=(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CL OSE,T3)+REF(CLOSE ,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE, T8)+CLOSE)/10,COLORBLUE,LINETHICK2;日跌: L*0.99,NODRAW,COLORFF00FF;周跌: L*0.94,NODRAW,COLORFF00FF;清仓:=1.66*MA(FORCAST(CLOSE,2),40);出货:=1.36*MA(FORCAST(CLOSE,2),40);高抛:=1.16*MA(FORCAST(CLOSE,2),40);低吸:=0.82*MA(FORCAST(CLOSE,2),40);满仓:=0.72*MA(FORCAST(CLOSE,2),40);强通1:=清仓>REF(清仓,1);强通2:=出货>REF(出货,1);强通3:=高抛>REF(高抛,1);强通4:=低吸>REF(低吸,1);强通5:=满仓>REF(满仓,1);上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,; 五强:=MA5>REF(MA5,1);十强:=MA10>REF(MA10,1);二十强:=MA20>REF(MA20,1);三十强:=MA30>REF(MA30,1);六十强:=MA60>REF(MA60,1);小均强:=五强 AND 十强;均强:=十强 AND 二十强 AND 三十强;大均强:=十强 AND 二十强 AND 三十强 AND 六十强;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60);强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20);强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10);强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13);开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4; 强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强; VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1);顶部1:=DSA*1.0888;顶部2:=DSA*1.158;顶部3:=DSA*1.218;底部1:=DSA*0.9518;底部2:=DSA*0.888;底部3:=DSA*0.8;五日走强:=MA5>REF(MA5,1);十日走强:=MA10>REF(MA10,1);二十日走强:=MA20>REF(MA20,1);六十日走强:=MA60>REF(MA60,1);低位主升:=五日走强 AND 十日走强 AND 六十日走强;主升浪:=五日走强 AND 十日走强 AND 二十日走强;大主升浪:=十日走强 AND 二十日走强 AND 六十日走强;大主升浪2:=五日走强 AND 十日走强 AND 二十日走强 AND 六十日走强;总主升:=主升浪 AND 大主升浪 AND 大主升浪2;总主升浪:=低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升,;强势主升低买:=L<底部1 AND 总主升浪AND 强势为王AND C<dsa;< bdsfid="139" p=""></dsa;<>猎股小王:=L<底部1 AND C<="">{DRAWICON(猎股小王>0,L*0.97,1);DRAWTEXT(猎股小王>0,L*0.97, '猎'),COLORYELLOW;}猎股大王出击:=强势主升低买AND 猎股小王AND H<dsa;< bdsfid="145" p=""></dsa;<>A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4);生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4);主升持仓:=持仓>生命线,;主升1:=持仓>REF(持仓,1),;主升2:=生命线>REF(生命线,1),;主升:=主升1 AND 主升2,;主升猎股王:=(猎股大王出击 AND 主升持仓 AND 主升) OR (猎股小王 AND 主升持仓 AND 主升);绝对的主升:=(主升猎股王 AND 小均强) OR (猎股小王 AND 小均强); {DRAWICON(绝对的主升>0,L*0.97,1);}Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,1)),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));VAR2:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4), 4),4);天:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2));地:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1));高兴:=STICKLINE(地>天 AND 地<0 AND("KDJ.J"(9,3,3)>REF("KDJ.J"(9,3,3),1) AND"KDJ.D"(9,3,3)<20 AND "KDJ.J"(9,3,3)<20) AND V=LLV(V,10) ANDIF(CROSS(Q,0),1,0),10,0,1,0)=1,COLORRED;{DRAWICON(高兴,L*0.915,1);DRAWTEXT(高兴,L*0.915, '兴'),COLORYELLOW;}HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;Z GDISPLAY:=0;MADISPLA Y:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高压:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT =GDCS1,H,1) COLORFF00FF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H, GDCS2-1),1),COLOR0055F F,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1),COLORYELLO W,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低支:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT =DDCS1,L,1) COLORFF00FF,LINETHICK1;ZGSTAR:=(高压+低支)/2;ZGEND:=CONST((高压+低支)/2);STARDAY:=IF(DDCS2<gdcs2,ddcs2,gdcs2);< bdsfid="204" p=""></gdcs2,ddcs2,gdcs2);<>中轨:=DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLAS TBAR,ZGEND,1),COLORFF0 0FF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLORMAGEN TA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,D DCS2-1),1),COLORCYAN, POINTDOT;CBFB:=COSTEX(C,REF(C,1));JL:=IF(C>CBFB,V,0);CL:=IF(C<cbfb,v,0);< bdsfid="212" p=""></cbfb,v,0);<>JLH:=SUM(JL,4);CLH:=SUM(CL,4);LHB:=CLH/JLH;TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) AND C>=O,1,0);{DRAWICON(TJ1,L*0.93,1);DRAWTEXT(TJ1,L*0.93, '钱'),COLORYELLOW;}N:=5;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1) ,COLORYELLOW,LINETHICK0;V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3,2,1);V5:=SMA(操盘线,2,1);赢尽天下抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<ref(操盘线,2) and="" 操盘线<23="" ,25,0)="" cross(var1,8);<="" p="" bdsfid="226">。
通达信指标公式大全
通达信指标公式大全在股票交易中,技术分析是一种非常重要的分析方法,而通达信作为国内领先的股票软件,提供了丰富的指标公式供投资者使用。
本文将为大家详细介绍通达信中常用的指标公式,希望能对投资者的股票交易有所帮助。
1. 移动平均线。
移动平均线是一种常用的趋势分析工具,通达信中提供了多种不同周期的移动平均线指标公式,包括简单移动平均线(MA)、指数移动平均线(EMA)和加权移动平均线(WMA)。
投资者可以根据自己的交易策略选择不同周期的移动平均线进行分析。
2. 相对强弱指标(RSI)。
相对强弱指标是一种用于衡量股价超买超卖情况的指标,通达信中提供了RSI的计算公式。
投资者可以通过RSI指标判断股票的买卖时机,提高交易的准确性。
3. 指数平滑移动平均线(MACD)。
MACD是一种趋势跟踪指标,通达信中提供了MACD的计算公式。
通过观察MACD的金叉死叉情况,投资者可以判断股票的买卖信号,把握住交易机会。
4. 布林带。
布林带是一种用于衡量股价波动情况的指标,通达信中提供了布林带的计算公式。
投资者可以通过观察股价与布林带的位置关系,判断股价的波动情况,从而制定合理的交易策略。
5. 成交量指标。
成交量是股票交易中非常重要的一个指标,通达信中提供了多种成交量指标的计算公式,包括成交量均线、成交量震荡等。
投资者可以通过观察成交量指标,判断股票交易的活跃程度,从而作出交易决策。
6. 动量指标。
动量指标是一种用于衡量股价变化速度的指标,通达信中提供了动量指标的计算公式。
投资者可以通过观察动量指标,判断股价的趋势变化,从而把握住交易机会。
7. 威廉指标。
威廉指标是一种用于衡量股价超买超卖情况的指标,通达信中提供了威廉指标的计算公式。
投资者可以通过观察威廉指标,判断股价的超买超卖情况,制定合理的交易策略。
总结:以上是通达信中常用的指标公式,投资者可以根据自己的交易策略选择合适的指标进行分析,提高交易的准确性和盈利能力。
希望本文能对投资者在股票交易中的指标选择和分析有所帮助。
通达信主力资金买卖点分时主图指标公式
通达信主力资金买卖点分时主图指标公式攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FRO MOPEN)/FROMOPEN;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;攻击流量:=攻击量A+攻击量B,COLORSTICK;攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;资金出入:=资金流入+资金流出,COLORSTICK;资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));DRAWTEXT_FIX(1,0.250,0.88,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORCYAN;DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORCYAN;XG:HHV(H,480),DOTLINE,COLORRED;STICKLINE(FILTER(CROSS(C,REF(XG,1)),10) AND C>REF(XG,1),C*0.99,C,8,0),COLORGREEN;DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10) ANDC>REF(XG,1),C*0.99,'突破'),COLORYELLOW;RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;MA1:=REF(C,JY);MA2:=REF(MA1,JY);MA3:=REF(MA2,JY);MA4:=REF(MA3,JY);MA5:=REF(MA4,JY);MA6:=REF(MA5,JY);MA7:=REF(MA6,JY);MA8:=REF(MA7,JY);MA9:=REF(MA8,JY);CK:REFDATE((C+MA1+MA2+MA3+MA4+MA5+MA6+MA7 +MA8+MA9)/10,DATE),COLORAC59FF,CIRCLEDOT;DRAWTEXT(ISLASTBAR,CK,' 参考线'),COLOR0000FF;DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);DEA:=EMA(DIF,9);MACD1:=10*(DIF-DEA);MACD2:=EMA(MACD1,2);STICKLINE(MACD1>=MACD2 AND MACD1>=0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR00 00B4;STICKLINE(MACD1<MACD2 AND MACD1>0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR00B 400;STICKLINE(MACD1>=MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR5151A2;STICKLINE(MACD1<MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR887 43A;XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARS COUNT(CLOSE));主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);底:=1;1.02,NODRAW;高:=1.03;DRAWTEXT(CROSS(主力,1.02),C*0.999,'-拉升'),COLORCYAN;DRAWICON(CROSS(主力,1.04),C,24);DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORLIMAGENTA;A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));机构买盘:=(A2),LINETHICK2;机构卖盘:=(A3),LINETHICK2;散户买盘:=(A4);散户卖盘:=(A5);DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORMAGENTA;DRAWTEXT(LONGCROSS(支撑,C,2),C,'买'),COLORYELLOW;DRAWTEXT(LONGCROSS(C,阻力,2),C,'卖'),COLORGREEN;量价:=(VOL/CLOSE)/3;B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);B3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);B6:=B2+B3;DD1:=1;比:=B2/B3;BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%');BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%');BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(B2-B3))/B6,0)),'%');DRAWTEXT_FIX(DD1=1,0,0.70,0,BBB1),COLORRED;DRAWTEXT_FIX(DD1=1,0,0.75,0,BBB2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0,0.80,0,BBB3),COLOR00FFFF;。
通达信精准组合买卖指标公式
通达信精准组合买卖指标公式VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3);VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);组合买: (VAR11+VAR13+VAR15+VAR17), COLORWHITE;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;VAR2:=EMA(EMA(EMA(VAR1,4),4),4);VAR03:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1), MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2)) AND MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1)<0;VAR04:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1),0);VAR05:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1), MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2)) AND MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1)>0;买一: VAR03, STICK,COLORRED;买二: VAR04 OR VAR05, STICK,COLORWHITE;AA1:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);N:=IF((AA1 > 0.35),6,65);B:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));YCZT:=CROSS(B,-2); LX1:=(EMA((AMOUNT/10000000),1) /3);LX2:=(WINNER(C)/0.3); LX3:=IF(C<0,LX1,V); LX4:=IF(C<0,LX2,V);LX5:=IF((BARSCOUNT(C)>100),LX3,LX4);量:=LX5/1000;动量:=(EMA(量,13)*1.5);A01:=IF((量>动量),量,0);A02:=BARSLAST((A01>0)); A03:=REF(量,A02);趋势:=IF((量<=A01),量,A03);突破:=IF(((((量=趋势) AND (C>REF(C,1))) AND (量>REF(量,1))) AND (REF(A02,2)>0)),888,0);涨停:YCZT AND FILTER(突破 ,5 ),COLORRED;DRAWTEXT(涨停>0,4.5,'★涨停'),COLORYELLOW;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60);MA120:=MA(C,120);MA250:=MA(C,250);角度5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;起爆:角度5>角度10 AND 角度10>角度20 AND 角度20>30,COLORWHITE;黑龙: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.5,100,0),LINETHICK3,COLORRED;组合卖: (VAR12+VAR14+VAR16+VAR18), COLORYELLOW;DRAWTEXT(VAR13,0.6,'●'), COLORRED;DRAWICON(组合买,组合买,5);DRAWICON(组合卖,组合卖,9);DRAWICON(VAR10>0,4.2,3);DRAWTEXT(VAR10 AND VARF AND VARC,2.8,' 30%下单莫错过!'), COLORMAGENTA;DRAWTEXT(VAR18,3,'空仓'), COLORGREEN;备买: IF(DRAWICON(VAR10>0,4.2,3)<=3,1,0),COLORWHITE,LINETHICK 1;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;RSV0:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;{黑马狂奔}A2:=((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))-REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1))/REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1)>90 AND A2<0,7),(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'跑'),COLOR00FF00;DRAWTEXT(CROSS((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)))AND (EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))<A5,(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'黑马');DRAWTEXT(CROSS((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),A5)AND ((MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)))<80,(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'追涨');DRAWTEXT(CROSS(((MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2))),0)AND (EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))<40,5,'大黑马');机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2;DEA :=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),9);基础:=( EMA(CLOSE,12) - EMA(CLOSE,26)<-0.1 AND EMA(CLOSE,12) - EMA(CLOSE,26)>DEA);开仓区: IF(STICKLINE( 基础,LLV(L,30),LLV(L,30)*1.1,4,0)<=3,1,0),COLORWHITE,LINETHICK1;LCA:=REF(CLOSE,1);RSII:=((SMA(MAX((CLOSE - LCA),0),3,1) / SMA(ABS((CLOSE - LCA)),3,1)) * 100);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);准备:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(准备=1,5),LOW-1.97,'★拉升'),COLORLIMAGENTA;拉升: IF(DRAWTEXT(FILTER(准备=1,5),LOW-1.17,'★拉升')<=3,1,0),COLORLIMAGENTA;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;K:SMA(RSV0,M1,1),COLORYELLOW,LINETHICK1;D:SMA(K,M2,1),COLORWHITE,LINETHICK1;J:3*K-2*D,COLORFF00FF,LINETHICK1;IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;DRAWICON(CROSS(J,1),J,1);DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);金叉股: IF(DRAWICON(CROSS(J,1),J,1)<=3,1,0),COLORYELLOW;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;ZKK:="KD.K#WEEK"(9,3,3);ZKD:="KD.D#WEEK"(9,3,3);KCD:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)<30,13);KCD1:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)>30,13);XG1:=KCD;DIFW:="MACD.DIF#WEEK"(12,26,9);DEAW:="MACD.DEA#WEEK"(12,26,9);P:=10;A:=5;FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13);XG2:=FCA;建仓区: IF((VARO7<10),80,100) ,COLORYELLOW,LINETHICK1;。
最新主力买卖通达信指标公式源码
最新主力买卖通达信指标公式源码通达信是国内广泛使用的炒股软件之一,提供了许多技术指标供投资者使用。
其中一个重要的指标是最新主力买卖指标,也称为资金流向指标。
该指标用于判断市场买卖力量的强弱,帮助投资者做出买卖决策。
首先,计算主力卖出成交量的公式如下:SellVol:REF(VOL,1)*(CLOS>OPEN)其中,REF(VOL,1)表示昨日的成交量,VOL表示当日的成交量,CLOS表示收盘价,OPEN表示开盘价。
公式的意思是,如果今日的收盘价大于开盘价,则认为当日的成交量为主力卖出成交量。
然后,计算主力买入成交量的公式如下:BuyVol:REF(VOL,1)*(CLOS<OPEN)类似地,如果今日的收盘价小于开盘价,则认为当日的成交量为主力买入成交量。
接下来,计算主力买卖比的公式如下:BuySellRatio:EMA(BuyVol,5)/EMA(SellVol,5)其中,EMA表示指数移动平均线,BuyVol和SellVol分别表示主力买入和主力卖出成交量。
该公式计算了主力买入成交量和主力卖出成交量的指数移动平均线,并得到了主力买卖比。
最后,计算主力买卖指标的公式如下:MainForceIndex:HHV(BuySellRatio,30)*100/LLV(BuySellRatio,30)其中,HHV表示最高价,LLV表示最低价。
该公式通过计算主力买卖比的最高值和最低值,并将其乘以100后除以最低值,得到了主力买卖指标。
通过以上公式的计算,可以得到最新主力买卖指标的数值。
当指标数值高于70时,表示市场有较强的买入力量;当指标数值低于30时,表示市场有较强的卖出力量。
投资者可以根据这些指标数值进行买卖决策。
总结起来,通达信最新主力买卖指标的公式源码如下:SellVol:REF(VOL,1)*(CLOS>OPEN)BuyVol:REF(VOL,1)*(CLOS<OPEN)BuySellRatio:EMA(BuyVol,5)/EMA(SellVol,5)MainForceIndex:HHV(BuySellRatio,30)*100/LLV(BuySellRatio,30)以上为公式的源码,投资者可以根据这些公式进行编程实现,方便使用最新主力买卖指标。
通达信指标公式——至今为止最全的
通达信指标公式——至今为止最全的通达信指标公式——至今为止最全的{优秀买卖主}{无未来函数,可放心使用}多头线:EMA(C,3),COLORYELLOW;空头线:EMA(C,5),COLOR00FF00;均衡线:EMA(空头线,5),COLORWHITE,;IF(多头线>=REF(多头线,1) AND 多头线>=空头线,多头线,DRAWNULL),COLORRED,LINETHICK3;V AR1:=IF(CLOSE/REF(CLOSE,1)>1.050 ANDHIGH/CLOSE<1.010 ANDIF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0); STICKLINE(VAR1>90,L,L*0.92,0.1,0),COLORFF00FF; DRAWTEXT(V AR1>90,LOW*0.92,'买'),COLORFF00FF; V AR2:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.09),0.9),3),1);DRAWTEXT(CROSS(CLOSE,V AR2),LOW,'S'),COLORYELL OW;STICKLINE(CROSS(V AR2,CLOSE),H*1.05,H,0.1,0),COLOR WHITE;DRAWTEXT(CROSS(V AR2,CLOSE),HIGH*1.05,'卖'),COLORWHITE;V AR3:=REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;DRAWTEXT(CROSS(84,V AR4),H*1.03,'逃顶'),COLORYELLOW ;V AR5:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);V AR6:=SMA(ABS(LOW-VAR5),13,1)/SMA(MAX(LOW-VAR 5,0),10,1);V AR7:=EMA(V AR6,10);V AR8:=LLV(LOW,33);V AR9:=EMA(IF(LOW<=V AR8,V AR7,0),5);主力进场:=FILTER(V AR9>REF(V AR9,1),5); DRAWTEXT(FILTER(VAR9>REF(V AR9,1),5),LOW*0.995 ,'☆↑'),COLOR0000FF;DRAWTEXT(FILTER(VAR9>REF(V AR9,1),5),LOW*0.96,'主力进场'),COLOR0000FF;STICKLINE(FILTER(V AR9>REF(V AR9,1),5),CLOSE,OPE N,1,0),COLOR0000FF;STICKLINE(FILTER(V AR9>REF(V AR9,1),5),LOW,HIGH, 1,0),COLOR0000FF;DRAWTEXT(FILTER(V AR5>REF(V AR5,1),5),LOW*1.08,'主力出场'),COLOR70DB93;STICKLINE(FILTER(V AR5>REF(V AR5,1),5),LOW,HIGH, 1,0),COLOR70DB93;{----------------------------------------------------------}{BIAS18}N1 :=6;N2:=18;N3:=36;BIAS1 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100; BIAS2 :(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,COL ORRED,LINETHICK2;BIAS3 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100,COL ORBLUE;{----------------------------------------------------------}{买卖准推荐}N1:=6;N2:=18;N3:=36;BIAS6 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*600+300; BIAS18:(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*600+300 ,COLORMAGENTA,LINETHICK1;BIAS36 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*600+30 0,COLORBLUE;{上面增加BIAS}V AR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);V AR2:=HIGH-REF(HIGH,1);V AR3:=REF(LOW,1)-LOW;V AR4:=SUM(IF(V AR2>0 ANDV AR2>V AR3,V AR2,0),25);V AR5:=SUM(IF(V AR3>0 ANDV AR3>V AR2,V AR3,0),25);V AR6:=V AR4*100/V AR1;V AR7:=V AR5*100/V AR1;V AR8:=MA(ABS(V AR7-V AR6)/(V AR7+V AR6)*100,15);V AR9:=(V AR8+REF(V AR8,15))/2;A:=(V AR7>V AR6 AND V AR7>25 AND V AR6<25); B:ZIG(3,50/5)*100,COLORRED;G:MA(B,2),COLORYELLOW;D:=CROSS(B,G)*1000,COLORRED;W:=CROSS(G,B)*1000,COLORBLUE;操盘:IF(B>G,(B-G)*18,0),LINESTICK,COLORRED;观望:IF(B<G,(G-B)*18,0),LINESTICK,COLORGREEN; E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1 );V AR10:=F AND F<8;V AR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9) )*100;V AR12:=SMA(VAR11,3,1);V AR13:=SMA(VAR12,3,1);V AR14:=V AR13 AND V AR13<20;MM:=A AND D AND V AR10 AND V AR14 ;DRAWTEXT(W=1000,B*1.05,'★卖' ),COLOR00FF00; DRAWTEXT(D=1000,B*1.05,'★买'),COLORRED;{-------------------------------------------------------------}{直效主图}{INPUT:N(10,1,150),CX(1,1,2);}MA06:MA(C,6),COLORMAGENTA,POINTDOT;MA18:MA(C,18),LINESTICK,COLOR880000,,LINETHICK2; IF(MA06>=REF(MA06,1),MA06,DRAWNULL),COLOR00 00CC,LINETHICK2;IF(MA06<REF(MA06,1) ANDCX=1,MA06,DRAWNULL),COLOR009900,LINETHICK2; IF(MA18>=REF(MA18,1) ANDCX=2,MA18,DRAWNULL),COLOR0000CC,LINETHICK2; IF(MA18<REF(MA18,1) ANDCX=2,MA18,DRAWNULL),COLOR009900,LINETHICK2; BZA06:=BARSLAST(C<MA06);BZB06:=BARSLAST(MA06<REF(MA06,1));BZA18:=BARSLAST(C<MA18);BZB18:=BARSLAST(MA18<REF(MA18,1));BDA06:=BARSLAST(C>MA06);BDB06:=BARSLAST(MA06>REF(MA06,1));BDA18:=BARSLAST(C>MA18);BDB18:=BARSLAST(MA18>REF(MA18,1));V06:MA(VOL,6),COLOR6666CC,NODRAW;V36:MA(VOL,36),COLORFFCC00,NODRAW;VVOL:V,COLORFF00FF,NODRAW;A1:=REF(C,N)=HHV(C,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);HD:=FILTER(C1,N);A2:=REF(C,N)=LLV(C,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);LD:=FILTER(C2,N);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD)); T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ; T2:=BARSLAST(HD)>BARSLAST(LD) ANDNOT(LD);IF(T1,A,DRAWNULL),COLORCC6600,LINETHIC K2;IF(T2,B,DRAWNULL),COLORDDDDDD,LINETHICK2;IF(T1,A*0.9,DRAWNULL),COLORCC6600,LINETHICK1;IF(T2,B*1.1,DRAWNULL),COLORDDDDDD,LINETHICK1; YIN1:=BDA06>=2 AND BDB06=1 AND CX=1;YIN2:=BDA18>=2 AND BDB18=1 AND CX=2;YIN3:=BZA06>=2 AND BZB06=1 AND V06>V36 AND CX=1;YIN4:=BZA06>=2 AND BZB06=1 AND V06>V36 AND CX=2;DRAWTEXT(YIN1 OR YIN2,H*1.05,'卖出'),COLOR00FFFF; DRAWTEXT(YIN3 OR YIN4,L*0.95,'买入'),COLOR00FF00; {-----------------------------------------------------------------}{成交天机--通达信}A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;实际量:VOL,LINETHICK0;{V AR1:=DYNAINFO(17)*REF(MA(VOL,5),1);V AR2:=DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT;预测:=IF(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,V AR1,V AR2)/10000;预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,V AR1,V AR2),V AR1,0,7,1),COLORGRAY;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OP EN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDO T,COLORRED;主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LO W)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LIN ETHICK0,COLORGREEN;换手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE; STICKLINE(C>=REF(C,1) ,0,VOL,2.5,1),COLORRED; STICKLINE(C<REF(C,1),0,VOL,2.5,1),COLORGREEN; STICKLINE(主买>0,0,主买,2.5,0),COLORRED; STICKLINE(主卖<0 ,0,主卖,2.5,0),COLORGREEN;资金异动:VOL/MA(VOL,55)*100,COLORYELLOW; STICKLINE(资金异动>100 ,0,VOL,0.6,0),COLORYELLOW;MA5:MA(V,5),COLORWHITE;MA13:MA(V,13),COLORRED;DRAWTEXT(CROSS(MA5,MA13),(V *1.05),'★'),COLORYELLOW;MA6:MA(V,6),COLORMAGENTA,LINETHICK2;MA36:MA(V,36),COLORBLUE,LINETHICK2;{---------------------------------------------------------------------} {买卖决策}{强烈推荐,超准好指标}来势线:EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;福星: EMA(来势线,7), COLORSTICK,COLORRED;V AR00:=CLOSE/REF(LLV(LOW,35),5)< 1;决策: IF(V AR00,0.5,0), STICK,COLORBLUE;必买: IF(TROUGHBARS(3,15,1)=0 ANDHIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ; 必卖:IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1; 趋势线:(EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5, COLORRED;逃顶线:EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00 ,LI NETHICK1 ;{---------------------------------------------------------------------}[今日操盘必读四大热点] [天天热点周周劲暴] [聚焦国有金融企业高管限薪令]<span id="HTML_quotebody40754540" value="[B]以下是引用md20090615在2009-9-9 7:50:14的发言:[/B]通达信软件在股民当中使用率还是比较高得,从这些指标公式中就能看出,股民对通达信的操作及解读相当透彻的,这一系列指标公式也是相当的精准实用,股民在解读通达信指标公式专题时,不但能认识到自己在操作上的不足,也能很好的学习到了前辈的经验及技巧。
【股票指标公式下载】-【通达信】成交量CT扫描(多头、空头、成交总量、买盘)
【通达信】成交量CT扫描(多头、空头、成交总量、买盘)-指标公式源码■多头:0,COLOR0000FF;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,3,1),COLOR0000FF;□空头:0,COLORFF937F;STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,1),COLORFF937F;VAR0:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交总量:VOL,POINTDOT;主买:IF(CLOSE>OPEN,VAR0*(HIGH-LOW),IF(CLOSE<OPEN,VAR0*((HIGH-OPEN)+(CLO SE-LOW)),VOL/2)),COLORRED,POINTDOT;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));主买占%:买盘/100000,COLORRED,NODRAW;主卖:IF(CLOSE>OPEN,0-VAR0*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR0*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));主卖占%:-卖盘/100000,COLOR00FF00,POINTDOT,NODRAW;震动调整:=(买盘 + 卖盘);STICKLINE((震动调整 < 1),1,震动调整,3,0),COLOR70DB93;买卖量差%:(买盘+卖盘)/100000,COLORFF00FF;STICKLINE((买卖量差% < 0),0,买卖量差%,3,0),COLORWHITE,LINETHICK0;VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,2,0),COLORFF0000;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORFFFFFF;STICKLINE((买盘 > 0),买盘,0,2,0),COLOR0000FF;成交量大于3日:BETWEEN(V,MA(V,3)*1.1,MA(V,3)*3),POINTDOT,COLOR6699FF;【通达信】成交量CT扫描(多头、空头、成交总量、买盘)-指标公式效果图(文档来源:若水财经社区)。
通达信成交量资金流指标公式
通达信成交量资金流指标公式V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);机构量:ZLCJ,COLORMAGENTA,NODRAW;大户量:DHCJ,COLORYELLOW,NODRAW;中户量:ZHCJ,COLORLIBLUE,NODRAW;散户量:SHCJ,COLORBLUE,NODRAW;。
通达信系统交易系统公式
通达信公式管理器四交易系统:1. BIAS注释:乖离率的值围绕零上下波动1.负的乖离率越小,空头回补的可能性越大,因此,负的乖离率向下跌破买入线,为买入时机;2.正的乖离率越大,表示短期获利越大,获利回吐的可能性越高,因此正的乖离率向上突破卖出线,为卖出时机.参数:N 天数,计算乖离率时用一般12天LL 买入线,一般-6;LH卖出线,一般6公式:BIAS:=CLOSE-MACLOSE,N/MACLOSE,N100;ENTERLONG:CROSS-LL,BIAS;EXITLONG:CROSSBIAS,LH;翻译:BIAS赋值:收盘价-收盘价的N日简单移动平均/收盘价的N日简单移动平均100多头买入:-LL上穿BIAS多头卖出:BIAS上穿LH注释:CCI小于-100时为买入信号;CCI大于+100时为卖出信号;参数:N计算CCI时用,一般14天公式:INDEX:=CCIN;ENTERLONG:CROSS-100,INDEX;EXITLONG:CROSSINDEX,100;翻译:INDEX赋值:CCIN多头买入:-100上穿INDEX多头卖出:INDEX上穿100注释:N缺省为14;市场行情趋向明显时,效果理想;PDI上升方向线MDI下降方向线线从下向上突破MDI线,显示有新多头进场,为买进信号线从下向上突破PDI线,显示有新空头进场,为卖出信号参数:N天数计算趋向值用公式:TR:=SUMMAXMAXHIGH-LOW,ABSHIGH-REFCLOSE,1,ABSLOW-REFCLOSE,1,N;HD :=HIGH-REFHIGH,1;LD :=REFLOW,1-LOW;PDM:=SUMIFHD>0&&HD>LD,HD,0,N;MDM:=SUMIFLD>0&&LD>HD,LD,0,N;PDI:=PDM100/TR;MDI:=MDM100/TR;ENTERLONG:CROSSPDI,MDI;EXITLONG:CROSSMDI,PDI;翻译:N缺省为14TR赋值:最高价-最低价和最高价-昨收的绝对值的较大值和最低价-昨收的绝对值的较大值的N日累和赋值:最高价-昨日最高价赋值:昨日最低价-最低价PDM赋值:如果HD>0并且HD>LD,返回HD,否则返回0的N日累和MDM赋值:如果LD>0并且LD>HD,返回LD,否则返回0的N日累和PDI赋值:PDM100/TRMDI赋值:MDM100/TR多头买入:PDI上穿MDI多头卖出:MDI上穿PDI4.KD指标交易系统注释:1.线K向上突破线D,且K值在20以下,买进信号;2.线K向下跌破线D,且K值在80以上,卖出信号;参数:N、M1、M2天数,计算KD时用,一般为9、3、3公式:WRSV:=CLOSE-LLVLOW,N/HHVHIGH,N-LLVLOW,N100;WK:=SMAWRSV,M1,1;D:=SMAWK,M2,1;ENTERLONG:CROSSWK,D&&WK<20;EXITLONG:CROSSD,WK&&WK>80;翻译:WRSV赋值:收盘价-N日内最低价的最低值/N日内最高价的最高值-N日内最低价的最低值100WK赋值:WRSV的M1日1日权重移动平均D赋值:WK的M2日1日权重移动平均多头买入:WK上穿D并且WK<20多头卖出:D上穿WK并且WK>805.布林带交易系统注释:一、收盘价向上突破下限,为买入信号;二、收盘价向上突破上限,为卖出信号;三、参数:N 天数,在计算布林带时用,一般26天P一般为20,用于调整上限和下限的值公式:MID :=MACLOSE,N;UPPER:=MID+2STDCLOSE,N;LOWER:=MID-2STDCLOSE,N;ENTERLONG:CROSSCLOSE,LOWER;EXITLONG:CROSSCLOSE,UPPER;翻译:赋值:收盘价的N日简单移动平均UPPER赋值:MID+2收盘价的N日估算标准差LOWER赋值:MID-2收盘价的N日估算标准差多头买入:收盘价上穿LOWER多头卖出:收盘价上穿UPPER6.KDJ交易系统注释:参数:N: 9; M1: 3J线向上突破零线,买入信号J线向下跌破100,卖出信号公式:RSV:=CLOSE-LLVLOW,N/HHVHIGH,N-LLVLOW,N100;K:=SMARSV,M1,1;D:=SMAK,M1,1;J:=3K-2D;ENTERLONG:CROSSJ,0;EXITLONG:CROSS100,J;翻译:RSV赋值:收盘价-N日内最低价的最低值/N日内最高价的最高值-N日内最低价的最低值100 K赋值:RSV的M1日1日权重移动平均D赋值:K的M1日1日权重移动平均J赋值:3K-2D多头买入:J上穿0多头卖出:100上穿J7.均线交易系统MA注释:一、收盘价短期均线向上突破长期均线,买入信号;二、收盘价短期均线向下跌破长期均线,卖出信号;三、参数:SHORT: 5短期天数LONG: 20长期天数;公式:ENTERLONG:CROSSMACLOSE,SHORT,MACLOSE,LONG;EXITLONG:CROSSMACLOSE,LONG,MACLOSE,SHORT;翻译:多头买入:收盘价的SHORT日简单移动平均上穿收盘价的LONG日简单移动平均多头卖出:收盘价的LONG日简单移动平均上穿收盘价的SHORT日简单移动平均8.MACD交易系统注释:一、分析MACD柱状线,由红变绿正变负,卖出信号;由绿变红,买入信号;二、参数:LONG、SHORT、M 天数,计算MACD时用,一般26、12、9公式:DIFF:=EMACLOSE,SHORT - EMACLOSE,LONG;DEA := EMADIFF,M;MACD := 2DIFF-DEA;ENTERLONG:CROSSMACD,0;EXITLONG:CROSS0,MACD;翻译:DIFF赋值:收盘价的SHORT日指数移动平均- 收盘价的LONG日指数移动平均赋值: DIFF的M日指数移动平均赋值: 2DIFF-DEA多头买入:平滑异同平均上穿0多头卖出:0上穿平滑异同平均9.动力指标交易系统MTM注释:参数:N 间隔天数,也是求移动平均的天数,一般为6线向上突破零,买入信号;线向下跌破零,卖出信号;公式:WMTM:=MTM;ENTERLONG:CROSSWMTM,0;EXITLONG:CROSS0,WMTM;翻译:WMTM赋值:动量线多头买入:WMTM上穿0多头卖出:0上穿WMTM10.PSY心理线交易系统注释:1.心理线向下跌破下限,买入时机;2.心理线向上突破上限,卖出时机;3.参数:N:12 LL 下限,一般取10 ;LH上限,一般取85公式:MYPSY:=PSYN,1;ENTERLONG:CROSSLL,MYPSY;EXITLONG:CROSSMYPSY,LH;翻译:MYPSY赋值:PSYN,1多头买入:LL上穿MYPSY多头卖出:MYPSY上穿LH变动速率交易系统注释:向下跌破零,卖出信号;向上突破零,买入信号;3.参数:N: 12 间隔天数;M: 6计算移动平均的天数公式:WROC:=ROCN,M;ENTERLONG:CROSSWROC,0;EXITLONG:CROSS0,WROC;翻译:WROC赋值:ROCN,M多头买入:WROC上穿0多头卖出:0上穿WROC相对强弱交易系统注释:向上突破下限,买入信号;向下跌破上限,卖出信号;3.参数:N统计天数,一般取6LL 下限,一般取20LH 上限,一般取80公式:LC:=REFCLOSE,1;WRSI:=SMAMAXCLOSE-LC,0,N,1/SMAABSCLOSE-LC,N,1100;ENTERLONG:CROSSWRSI,LL;EXITLONG:CROSSLH,WRSI;翻译:LC赋值:昨收WRSI赋值:收盘价-LC和0的较大值的N日1日权重移动平均/收盘价-LC的绝对值的N日1日权重移动平均100多头买入:WRSI上穿LL多头卖出:LH上穿WRSI13.VR容量比率交易系统注释:1.一般40至70,低位区,卖进;80至150,盘整区,持有;160至350,获利区,获利了结;向下跌破下限,买入信号;向上突破上限,卖出信号;4.参数:N统计天数,一般取26; LH 上限,一般取70;LL 下限,一般取250公式:WVR := SUMIFCLOSE>OPEN,VOL,0+IFCLOSE=OPEN,VOL/2,0,N/SUMIFCLOSE<OPEN,VOL,0+IFCLOSE=OPEN,VOL/2,0,N100;ENTERLONG:CROSSLL,WVR;EXITLONG:CROSSWVR,LH;翻译:赋值: 如果收阳线,返回成交量手,否则返回0+如果平盘,返回成交量手/2,否则返回0的N日累和/如果收阴线,返回成交量手,否则返回0+如果平盘,返回成交量手/2,否则返回0的N日累和100 多头买入:LL上穿WVR多头卖出:WVR上穿LH大盘随机交易系统注释:参数:N1: 18 ; N2: 12 ;公式:RSV:=INDEXC-LLVINDEXL,N1/HHVINDEXH,N1-LLVINDEXL,N1100;K:=SMARSV,N2,1;{多头买入} ENTERLONG: CROSSK,20;{多头卖出} EXITLONG: CROSSHSL,5 OR CROSSK,80;翻译:RSV赋值:收盘价-N1日内最低价的最低值/N1日内最高价的最高值-N1日内最低价的最低值100K赋值:RSV的N2日1日权重移动平均多头买入: K上穿20多头卖出: 换手线上穿5 OR K上穿80.注释:公式:翻译:。
通达信全仓买的主图指标公式
通达信全仓买的主图指标公式PP3:EMA(C,3),COLORRED,LINETHICK2;PP5:EMA(C,5),COLOR00FF00,LINETHICK2;PPP:EMA(PP5,5),COLORWHITE,LINETHICK2;NX:MA(C,250),COLORRED,LINETHICK3;QSX:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;HHV1:=HHV(HIGH,60);LLV1:=LLV(LOW,60);VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR2:=REF(VAR1,1);VAR3:=SMA((CLOSE-VAR2),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100;VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);VAR7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;VAR8:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;VAR9:=IF(COUNT(VAR8<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORRED,LINETHICK3;DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;VAR01:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);VAR02:=HIGH-REF(HIGH,1);VAR03:=REF(LOW,1)-LOW;VAR04:=SUM(IF(VAR02>0 AND VAR02>VAR03,VAR02,0),25);VAR05:=SUM(IF(VAR03>0 AND VAR03>VAR02,VAR03,0),25);VAR06:=VAR04*100/VAR01;VAR07:=VAR05*100/VAR01;VAR08:=MA(ABS(VAR07-VAR06)/(VAR07+VAR06)*100,15);VAR09:=(VAR08+REF(VAR08,15))/2;A:=(VAR07>VAR06 AND VAR07>25 AND VAR06<25);B:=ZIG(3,50/5)*100,COLORRED,LINETHICK2;G:=MA(B,2),COLORGREEN,LINETHICK2;D:=CROSS(B,G)*1000,COLORRED;W:=CROSS(G,B)*1000,COLORBLUE;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);VAR10:=F AND F<8;VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR12:=SMA(VAR11,3,1);VAR13:=SMA(VAR12,3,1);VAR14:=VAR13 AND VAR13<20;MM:=A AND D AND VAR10 AND VAR14 ;DRAWTEXT(W=1000,H*1.05,'卖' ),COLOR00FF00;DRAWTEXT(D=1000,L*0.95,'买'),COLORRED;。
通达信买盘卖盘控盘指标公式
通达信买盘卖盘控盘指标公式AB1:=VOL*CLOSE;AB2:=SUM(AB1,1)/SUM(VOL,1);AB3:=EMA(AB2,17);AB4:=(C*2+H+L)/4*10;AB5:=EMA(AB4,13)-EMA(AB4,34);AB6:=EMA(AB5,5);AB7:=2*(AB5-AB6)*5.5;AB8:=(INDEXC*2+INDEXH+INDEXL)/4;AB9:=EMA(AB8,13)-EMA(AB8,34);AB10:=EMA(AB9,3);AB11:=(AB9-AB10)/2;个股资金:=(AB2-AB3)*100/AB2;主力资金:=AB7;大资金:=AB11;红点主力进场:IF(个股资金>0 AND 主力资金>0 AND 大资金>0,-10,DRAWNULL),COLORRED,CIRCLEDOT,LINETHICK1;V1:=EMA(EMA(CLOSE,20),20);力度:=(V1-REF(V1,1))/REF(V1,1)*1000,COLORFF00FF,LINETHICK2;开始控盘:IF(CROSS(力度,0),20,0),LINETHICK2,COLORYELLOW;【庄控盘】:IF(力度>REF(力度,1) AND 力度>0,8,0),LINETHICK2,COLORRED;白线主力减仓:IF(力度< REF(力度,1) AND 力度>0,力度,0),LINETHICK2,COLORWHITE;绿点主力出场:IF(个股资金<=0 AND 主力资金<=0 AND 大资金<=0,-10,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK1;主力动态:(个股资金+主力资金+大资金),COLORYELLOW,NODRAW;STICKLINE(主力动态>0,0,主力动态,1,0),COLORFF00FF;STICKLINE(主力动态<=0,0,ABS(主力动态),1,0),COLORGREEN;比例:(主力动态-REF(主力动态,1))/REF(主力动态,1),NODRAW;底部:0,COLORFFCC66,LINETHICK2;虚:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,-1,-1),COLOR00C0C0;实:VOL,VOLSTICK;换手:=VOL/CAPITAL*100;贰换:SUM(V/CAPITAL*100,20),NODRAW,COLORMAGENTA;动态市盈:=C/FINANCE(33),COLOR16CDEC,LINETHICK0 ;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK2;主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK2;买卖盘:=-(主动买盘/主动卖盘),NODRAW,COLORYELLOW;日净入(WS):(主动买盘+主动卖盘)/10000,NODRAW,COLORMAGENTA;STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED;STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00;STICKLINE(换手>0 ,0, 主动买盘,0,0),COLORYELLOW;STICKLINE(换手>0,VOL, 主动买盘, 0,0) ,COLORRED;AHC2:=(HIGH - LOW);AHC3:=ABS((OPEN - CLOSE));AHC4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));AHC5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);AHC6:=((AHC3 / AHC2) * VOL);AHC7:=((AHC4 / AHC2) * VOL);AHC8:=((AHC5 / AHC2) * VOL);AHCA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);AHCB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));AHCC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));AB601:=HHV(V,5);AB602:=O>C;AB702:=C>O;AB703:=C=O;AB704:=((SUM(V,5)/AB601));AB705:=IF(AB704>0.3,1,0);AB706:=IF(AB602 AND AB705,V,0);AB707:=IF(AB702 AND AB705,V,0);钱出A:=SUM(AB706,5),COLORGREEN,LINETHICK2;钱入A:=SUM(AB707,5),COLORRED,LINETHICK2;钱出:=SUM(AB706,20),COLORGREEN,LINETHICK2;钱入:=SUM(AB707,20),COLORRED,LINETHICK2;伍净入(SW):(钱入A-钱出A)/100000,COLORYELLOW,NODRAW;贰净入:(钱入-钱出)/100000,COLORRED,NODRAW;P5:MA(实,5),COLORMAGENTA,LINETHICK2;P35:MA(实,35),COLORBLUE,LINETHICK2;P135:MA(实,135),COLORWHITE,LINETHICK2;DRAWTEXT(CROSS(P5,P135),(V *1.05),★),COLORYELLOW;0,COLORBROWN;。
【股票指标公式下载】-【通达信】主力净买卖(主买、主卖、主力活跃度、主力净流入)
【通达信】主力净买卖(主买、主卖、主力活跃度、主力净流入)-指标公式源码
JE:=VOL;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主买:=(QJ0*(JJ-MIN(CLOSE,OPEN)));
主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
TMP:=主买-主卖;
主力活跃度:(主买+主卖)*10000/(2*FINANCE(7)),NODRAW;
STICKLINE(TMP>0,0,主力活跃度,2,0),COLORRED;
STICKLINE(TMP<0,0,主力活跃度,2,0),COLORGREEN;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买
量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
卖
量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*( HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
主力净流入亿元:MA(买量+卖量
/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1;
【通达信】主力净买卖(主买、主卖、主力活跃度、主力净流入)-指标公式效果图
(文档来源:若水财经社区)。
「精选指标」通达信集杀多洗盘买入背离于一身的指标公式
「精选指标」通达信集杀多洗盘买入背离于一身的指标公式通达信指标公式今天通达信集杀多洗盘买入背离于一身的指标公式使用说明这里发的指标公式均是通达信电脑版软件,手机软件有的可能不能用注意:指标只是参考,决策靠自己。
有需要的可以研究研究,为自己的操作做一个参考。
章鱼哥RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;A:=250;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9),COLORBLUE,LINETHICK0;MACD:=2*(DIFF-DEA);MM:=IF(MACD< 0,MACD,0);JJ:=MM> REF(MM,1);ZZ:=REF(JJ,1)=1;准备:=(JJ AND ZZ)*DEA;STICKLINE(准备=DEA,1,-1,2,1),COLORFFFF00;JH:=HHV(MAX(K,MAX(D,J)),A);DH:=HHV(MAX(DIFF,DEA),A);SH:=INTPART(JH/DH)/2;DIFF50:=SH*DIFF+50,COLORFFFF00;DEA50:=SH*DEA+50,COLORBLUE;STICKLINE(DIFF50>DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORRED;STICKLINE(DIFF50<DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORFFFF00;红柱:IF(1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1.5*(DIFF50-DEA50),0),STICK,COLORLICYAN;绿柱:IF(1.5*(DIFF50-DEA50)<REF(1.5*(DIFF50-DEA50),1),1.5*(DIFF50-DEA50),0),STICK,COLORGREEN;缩头:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)>REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)< REF(1.5*(DIFF50-DEA50),1),1,0);缩脚:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);杀多:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)> REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)<REF(1.5*(DIFF50-DEA50),1),1,0);诱空:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0);DRAWTEXT(FILTER(杀多,3) AND 杀多,1.5*(DIFF50-DEA50),'杀多'),COLORFF00FF;DRAWTEXT(FILTER(缩头,3) AND 缩头,1.5*(DIFF50-DEA50)+0.2,'卖'),COLORFF00FF;DRAWTEXT(FILTER(诱空,3) AND 诱空,1.5*(DIFF50-DEA50),'?洗盘'),COLOR00FF00;DRAWTEXT(FILTER(缩脚,3) AND 缩脚,1.5*(DIFF50-DEA50)-0.2,'买'),COLOR00FF00;DRAWTEXT(FILTER(阻力,16) AND 1.5*(DIFF50-DEA50)>=0,1.5*(DIFF50-DEA50)+0.01,'阻力'),COLOR00FFFF;VRA:=REF(CLOSE,1);VRB:=SMA(MAX(CLOSE-VRA,0),6,1)/SMA(ABS(CLOSE-VRA),6,1)*100;VRC:=(2*CLOSE+HIGH+LOW)/4;VR0:=LLV(LOW,34);VR1:=HHV(HIGH,34);VR2:=EMA((VRC-VR0)/(VR1-VR0)*100,6);VR3:=EMA(0.667*REF(VR2,1)+0.333*VR2,4);VA1:=(REF(HIGH,1)+REF(LOW,1))/2;VA2:=MA(CLOSE,20)+2*STD(CLOSE,20);VA3:=REF(CLOSE,1);VA4:=SMA(MAX(CLOSE-VA3,0),7,1)/SMA(ABS(CLOSE-VA3),7,1)*100;VA5:=CROSS(79,VA4);VA6:=FILTER(VA5,4);VVD:=MA(CLOSE,80)-MA(CLOSE,10)/3;VA7:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);X1:=CROSS(VA1,VA2) OR VA6;X2:=CROSS(84,VRB);STICKLINE(X1 OR X2,1.5*(DIFF50-DEA50)*1.05,1.5*(DIFF50-DEA50)*1.08,3,0);Y1:=IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA2>VA3,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0);Y2:=IF(CLOSE<VVD AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0);Y3:=CROSS(VA7,10);Y4:=IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 ANDCOUNT(VR2>VR3,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0);STICKLINE(Y1 OR Y2 OR Y3 OR Y4,1.5*(DIFF50-DEA50)*0.90,1.5*(DIFF50-DEA50)*0.99,3,0);DD:=C=HHV(C,180);EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;上升背离:(CC AND EE)*1.5*(DIFF50-DEA50),LINETHICK2,COLORWHITE;顶背离:(DD AND EE AND DEA< HHV(DEA,180))*3*ABS(DIFF50-DEA50),STICK,LINETHICK3,COLORGREEN;FF:=C=LLV(C,180);GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;下降背离:(LL AND GG)*1.5*(DIFF50-DEA50),LINETHICK2,COLORYELLOW;底背离:(FF AND GG AND DEA> LLV(DEA,180))*3*(DIFF50-DEA50),STICK,LINETHICK3,COLORRED;温馨提示如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】日BS(多头买入、多头卖出)-指标公式源码
{N 1 100 5}
A0:=(L+H+C*2)/4;
A1:=EMA(A0,N);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
{多头买入}买:IF(A1X>=0 AND
REF(A1X,1)<0,1,0),COLOR0000FF,STICK,LINETHICK5;
DRAWTEXT(买>0,1.5,'买'),COLORFFFFFF;
{多头卖出}卖:IF(A1X<0 AND
REF(A1X,1)>=0 ,1,0),COLORDCC705,STICK,LINETHICK5;
DRAWTEXT(卖>0,1.2,'卖'),COLORFFFFFF;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*60;
不贪:CROSS(AAA1-REF(AAA1,1),5),COLOR8080FF,STICK,LINETHICK3; DRAWTEXT(不贪>0,1.9,'不贪'),COLORFFFFFF;
J1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)),5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)),5,1),3,1);
底买:CROSS(J1,-0.02) OR CROSS(J1,0.03),COLOR00F0F0,STICK,LINETHICK6; DRAWTEXT(底买>0,1.3,'底买'),COLORFFFFFF;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
底:CROSS(RSI1,25),COLOR00F0F0,STICK,LINETHICK6;
DRAWTEXT(底>0,1.3,'底'),COLORFFFFFF;
KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);
买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
买2:=CROSS("RSI.RSI1"(6,2,2),20) OR
CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);
买0:=买1+买2+买3;
底背买:IF(买0>1,买0,0),COLOR28FFFF,STICK,LINETHICK1;
DRAWTEXT(底背买>0,1.7,'底背买'),COLORFFFFFF;
D1:=(L+H+C*2)/4;
D2:= MA(D1,4);
D3:=HHV(D2,10);
D4:=MA(D3,3);
D5:=1.25*D4-0.25*D3;
A:=IF(D5>D3,D3,D5);
F1:=LLV(D2,10);
F2:=MA(F1,3); F3:=1.25*F2-0.25*F1;
B:=IF(F3<F1,F1,F3);
MA13:=MA(C,13);
擎天买:CROSS(C,B) AND CROSS(C,MA13) AND
CROSS(C,A),COLOR0000FF,STICK,LINETHICK5;
DRAWTEXT(擎天买>0,0.7,'擎天买'),COLORFFFFFF;
N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1) ,COLORYELLOW,LINETHICK0;
VAR2:=8,COLORGREEN,LINETHICK0;
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
V5:=SMA(操盘线,2,1);
抄底:IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,25,0) AND CROSS(VAR1,VAR2),COLOR00FFFF,STICK,LINETHICK5; DRAWTEXT(抄底>0,0.5,'抄底'),COLORFFFFFF;
RSV:=(C-LLV(LOW,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
HX:=EMA((VA-VB)/(VC-VB)*100,5);
LX:=EMA(HX,3);
乖离买:CROSS(K,D) AND CROSS(HX,LX),COLOR00FFFF,STICK,LINETHICK5; DRAWTEXT(乖离买>0,1.5,'乖离买'),COLORFFFFFF;
N1:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
短线持股:C>=MA(C,N1),COLOR0000FF;
【通达信】日BS(多头买入、多头卖出)-指标公式效果图
(文档来源:若水财经社区)。