【股票指标公式下载】-【通达信】决策曲线(逆时针曲线)

合集下载

【股票指标公式下载】-【通达信】决策曲线(逆时针曲线)

【股票指标公式下载】-【通达信】决策曲线(逆时针曲线)

【通达信】决策曲线〔逆时针曲线〕-指标公式源码MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,IF(PDI<MDI AND ADX>MDI AND ADX>50,-3,0));{9}{RSI}LC:=REF(CLOSE,1);RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;{10}P08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));{10}{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));P09:=IF(CCI>180,2,IF(CCI<-180,-2,0));{12}{W%R}WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;P10:= IF(WR1>80,1,IF(WR1<20,-1,0));{13}{OSC}OSC:=100*(CLOSE-MA(CLOSE,20));P11:=IF(OSC>0,1,IF(OSC<0,-1,0));{14}{MTM}MOM:=CLOSE-REF(CLOSE,7);P12:=IF(MOM>0,1,IF(MOM<0,-1,0));{15}{DPO}DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);P13:=IF(DPO>0,1,IF(DPO<0,-1,0));{16}{布林线}MB:=MA(CLOSE,12);R:=(CLOSE-MB)*(CLOSE-MB);X1:=MA(R,12);X2:=SQRT(X1);D1:=1;UPPER:=MB+(D1*X2);LOWER:=MB-(D1*X2);P14:=IF(CLOSE>UPPER,2,IF(CLOSE<LOWER,-2,0));{18}{BRAR}BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)* 100;AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;P15:=IF(BR>350 OR AR>180,3,IF(BR<45 OR AR<45,-3,0));{21} {VR}TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),14);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);VR:=0100*(TH*2+TQ)/(TL*2+TQ);P16:=IF(VR>350,3,IF(VR<45,-3,0));{24}{WVAD}WVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;P17:=IF(WVAD>0,1,IF(WVAD<0,-1,0));{25}{EMV}VOLUME:=MA(VOL,4)/VOL;MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);P18:=IF(EMV>0,1,IF(EMV<0,-1,0));{26}{OBV}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);MAOBV:=EMA(OBV,24);P19:=IF(OBV>MAOBV,1,IF(OBV<MAOBV,-1,0));{27}{PVI}PVI:= PVI,COLORWHITE;MPVI:=EMA(PVI,24),COLORYELLOW;P20:=IF(PVI>MPVI,1,IF(PVI<MPVI,-1,0));{28}{NVI}NVI:=NVI,COLORWHITE;MNVI:=EMA(NVI,24),COLORYELLOW;P21:=IF(NVI>MNVI,2,IF(NVI<MNVI,-2,0));{30}{MASS}MASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);MA7:=MA(CLOSE,9);P22:=IF(MA7>REF(MA7,1) AND MASS>26.5,2,IF(MA7<REF(MA7,1) AND MASS<26.5,-2,0));{32}{VHF}NUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));DEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);VHF:=IF(DEN=0,0,NUM/DEN);VHF1:=EMA(VHF,240);P23:=IF(VHF>VHF1,1,IF(VHF<VHF1,-1,0));{33}{PUCU}PU:=MA(CLOSE,13);CU:=MA(VOL,13);PU1:=(PU-REF(PU,1))/REF(PU,1)*100;CU1:=(CU-REF(CU,1))/REF(CU,1)*100;逆时针曲线:=PU1+CU1;P24:=IF(逆时针曲线>REF(逆时针曲线,1),1,IF(逆时针曲线<REF(逆时针曲线,1),-1,0));{ASI}LC2:=REF(CLOSE,1);AA:=ABS(HIGH-LC2);BB:=ABS(LOW-LC2);CC:=ABS(HIGH-REF(LOW,1));DD:=ABS(LC2-REF(OPEN,1));R2:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC ANDBB>AA,BB+AA/2+DD/4,CC+DD/4));X01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1));SI:=16*X01/R2*MAX(AA,BB);ASI:=SUM(SI,0),COLORWHITE;MASI:=MA(ASI,6),COLORYELLOW;P25:=IF(CLOSE<HHV(CLOSE,13) ANDASI=HHV(ASI,13),1,IF(CLOSE>LLV(CLOSE,13) AND ASI=LLV(ASI,13),-1,0)); {BIAS}BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;P26:=IF(BIAS1>10,1,IF(BIAS1<-10,-1,0));决策曲线:(36+P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P1 6+P17+P18+P19+P20+P21+P22+P23+P24+P25+P26)*1.36;MAJCQX:MA(决策曲线,3);STICKLINE(C>0,36,36,10,0),COLOR00FF00;STICKLINE(C>0,56,56,10,0),COLORFF00FF;STICKLINE(C>0,71,71,10,0),COLORRED;STICKLINE(C>0,44,44,10,0),COLORYELLOW;【通达信】决策曲线〔逆时针曲线〕-指标公式效果图 (文档来源:假设水财经社区)。

【股票指标公式下载】-【通达信】回归经典(副图)

【股票指标公式下载】-【通达信】回归经典(副图)

【通达信】回归经典(副图)-指标公式源码cz01:=REF(HHV(L,3),1);cz02:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);WH01:=C>=cz01 AND C>=cz02;WH02:=C>=cz01 AND C<cz02;WH03:=C<cz01 AND C>=cz02;WH04:=C<cz01 AND C<cz02;STICKLINE(WH01,50,60,2,1),COLORRED;STICKLINE(WH02,45,55,2,1),COLORWHITE;STICKLINE(WH03,45,55,2,1),COLORFF80FF;STICKLINE(WH04,40,50,2,1),COLORBLUE;RSV:=(CLOSE-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;K:MEMA(RSV,M1);D:MEMA(K,M2);J:3*K-2*D;【通达信】回归经典(副图)-指标公式效果图(文档来源:若水财经社区)----------------下面是赠送的excel操作练习不需要的下载后可以编辑删除(Excel 2003部分)1.公式和函数1.(1)打开当前试题目录下文件excel-10.xls;(2)利用函数计算每个人各阶段总成绩,并利用函数计算各阶段的平均成绩;(3)“平均成绩”行数字格式都为带一位小数(例如0.0)格式;(4)同名存盘。

步骤:a)文件→在各阶段总成绩单元格内,点插入,点函数,在对话框中选择求和函数“SUM”,在对话中Number1内点右侧的按钮,将出现另外一个对话框,在文件中选择需要求和的单元格,然后点该对话框的右侧按钮,点确定(完成一个总成绩求和后,利用填充柄完成其他的总成绩求和,或者重复上面的顺序)→在平均成绩单元格内,点插入,点函数,选择算术平均值函数AVERAGE,出现对话框后,采用求和时的相同方法,完成操作→选中平均成绩行,点右键点设臵单元格,点数字,在分类项下点数值,设小数位为1,b)确定→保存2.(1)打开当前试题目录下文件excel-13.xls;(2)根据工作表中给定数据,按“合计=交通费+住宿费+补助”公式计算“合计”数,并计算交通费、住宿费和补助的合计数;(3)所有数字以单元格格式中货币类的“¥”货币符号、小数点后2位数表现(如:¥2,115.00格式);(4)同名存盘。

【股票指标公式下载】-【通达信】决策(涨跌、双线持币、单线持股、空仓)

【股票指标公式下载】-【通达信】决策(涨跌、双线持币、单线持股、空仓)

【通达信】决策(涨跌、双线持币、单线持股、空仓)-指标公式源码V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW;V10日涨跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW; V30日涨跌%: (C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; V60日涨跌%: (C-REF(CLOSE,60))/REF(CLOSE,60)*100,COLORYELLOW,NODRAW; V120日涨跌%:(C-REF(CLOSE,120))/REF(CLOSE,120)*100,COLORMAGENTA,NODRAW;V180日涨跌%:(C-REF(CLOSE,180))/REF(CLOSE,180)*100,COLORMAGENTA,NODRAW;V250日涨跌%:(C-REF(CLOSE,250))/REF(CLOSE,250)*100,COLORMAGENTA,NODRAW;MB1:EMA(CLOSE,5),COLOR0000FF;MB2:EMA(MB1,3),COLOR80FFFF;MB3:EMA(MB2,3),COLORFF80FF;MB4:EMA(MB3,3),COLORFFFFFF;MB5:EMA(MB4,3),,COLOR0080FF;双线持币:HHV(MA(HIGH,2),2),COLORGREEN,LINETHICK2;单线持股:LLV(MA(HIGH,2),1),COLORRED,LINETHICK1;QB1:EMA(CLOSE,30),COLOR00FFFF;QB2:EMA(QB1,3),COLOR00FFFF;QB3:EMA(QB2,3),COLOR00FFFF;QB4:EMA(QB3,3),COLOR00FFFF;QB5:EMA(QB4,3),COLOR00FFFF;QB6:EMA(QB5,3),COLOR00FFFF;MBQ1:=EMA(CLOSE,13);MBQ2:=EMA(MBQ1,3);MBQ3:=EMA(MBQ2,3);MBQ4:=EMA(MBQ3,3);MBQ5:=EMA(MBQ4,3);RSV1:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100;RSVQ:=(CLOSE-LLV(LOW,196))/(HHV(HIGH,196)-LLV(LOW,196))*100;MBQ6:=SMA(RSVQ,30,1)>SMA(SMA(RSVQ,30,1),15,1) OR SMA(RSV1,6,1)> SMA(SMA(RSV1,6,1),3,1) ;MBB:=ABS(MBQ1-MBQ5)<0.01 AND MBQ6 ;DRAWICON(MBB,L*0.95,13);LX:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,LINETHICK1;J:=SUM(VOL*CLOSE,5)/SUM(VOL,5);M:=EMA(J,2),COLORWHITE,LINETHICK1;DRAWICON((CROSS(M,LX) AND MBQ6),LX-0.05,11);DRAWTEXT((CROSS(M,LX) AND MBQ6),LX,' ←介入,'),COLOR00FF00;RZSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18));K1:=EMA(RZSV,3);D1:=EMA(K1,3);J1:=3*K1-2*D1;山:=(3*K1-2*D1);KDJ1:=REF(COUNT(J1<REF(J1,1),5)>=3,1) AND REF(J1,1)<0.2;KDJ2:=J1>REF(J1,1);RWSV1:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100; RWSVQ:=(CLOSE-LLV(LOW,196))/(HHV(HIGH,196)-LLV(LOW,196))*100;MWB6:=SMA(RWSVQ,30,1)>SMA(SMA(RWSVQ,30,1),15,1) OR SMA(RWSV1,6,1)> SMA(SMA(RWSV1,6,1),3,1) ;观注:DRAWTEXT( FILTER(KDJ1 AND KDJ2 AND MWB6,3),H-0.4,'△'),COLORFF00EE;DRAWTEXT( FILTER(KDJ1 AND KDJ2 AND MWB6,3),H-0.5,'△'),COLORFF00EE; STICKLINE(观注,O,C,4,1),LINETHICK2,COLORFFFFFF;龙盘250Ⅰ:EXPMA(CLOSE,250),CROSSDOT,LINETHICK1,COLORWHITE;龙盘120Ⅱ:MA(C,120),CIRCLEDOT,LINETHICK0,;VAXR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAXR22:=SMA(VAXR21,3,1);VAXR23:=SMA(VAXR22,3,1);VAXR24:=SMA(VAXR23,3,1);VAXR25:=CROSS(VAXR23,VAXR24) AND VAXR23<20;DRAWTEXT(FILTER(VAXR25,10)=1,LOW-0.6,'←抄底'),COLORRED;DRAWICON(FILTER(VAXR25,10)=1,LOW,9);空仓:IF(CLOSE<SAR(4,2,10),SAR(4,2,10),DRAWNULL),CIRCLEDOT,COLOR008080 ;DIFZ:=EMA(C,12)-EMA(C,26);DEAZ:=EMA(DIFZ,9);MACDZ:=2*(DIFZ-DEAZ);HH0:=CONST(HHV(H,120))*1;{以现价的N日最高值为高点,我取120日,这个取值可以根据自己电脑的版面而定}LL0:=CONST(LLV(L,120))*1;{以现价的N日最低值为高点}MM0:=CONST((HH0+LL0)/2);{取中间值}HL0:=CONST(IF(CONST(C)>=MM0,LL0-(HH0-LL0)*0.2,HH0+(HH0-LL0)*0.2)); {此句为便于叠加副图不影响版面,当现价大于中间值时将叠加副图放在主图上沿反之放下沿LL0-(HH0-LL0)*0.2是限制副图大小0.2可根据自己的喜好调节}HH1:=IF(CONST(C)<MM0,HH0,HL0);{再次设定叠加副图的最高值,根据现价与中间值的关系可上可下}LL1:=IF(CONST(C)>=MM0,LL0,HL0);{再次设定叠加副图的最低值}HL1:=(HH1+LL1)/2;{最后确定副图的中间值位置}STICKLINE(MACDZ>0,MACDZ*2+HL1,HL1,1,0),COLOR400080;STICKLINE(MACDZ>0 ANDMACDZ>REF(MACDZ,1),MACDZ*2+HL1,HL1,1,0),COLOR0000FF;STICKLINE(MACDZ<0,MACDZ*2+HL1,HL1,1,0),COLOR00D900;STICKLINE(MACDZ<0 ANDMACDZ>REF(MACDZ,1),MACDZ*2+HL1,HL1,1,0),COLORC080FF;(DIFZ*2+HL1),COLORRED;(DEAZ*2+HL1),COLORFFFFFF;IF(DIFZ<=REF(DIFZ,1),DIFZ*2+HL1,DRAWNULL),COLORFFF000;【通达信】决策(涨跌、双线持币、单线持股、空仓)-指标公式效果图(文档来源:若水财经社区)。

通达信仿麟龙决策曲线指标公式源码(附图)

通达信仿麟龙决策曲线指标公式源码(附图)

通达信仿麟龙决策曲线指标公式源码(附图)通达信仿麟龙决策曲线指标公式源码(附图)MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))* 100;K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR2:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOS E,1))),ABS(REF(CLOSE,1)-LOW)),7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,IF(PDIMDI AND ADX>50,-3,0));{9}{RSI}LC:=REF(CLOSE,1);RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC), 5)*100;{10}P08:=IF(RSI1>80,1,IF(RSI1180,2,IF(CCI0,1,IF(OSC0,1,IF(DP OUPPER,2,IF(CLOSE180,3,IF(BRREF(CLOSE,1),VOL,0),14);TL:=SUM(IF(CLOSE350,3,IF(VR0,1,IF(WVAD0,1,IF(EMVMAOBV,1,IF(OBVMPVI,1,IF(PVIMNVI,2,IF(NVI26.5,2,IF(MA 7VHF1,1,IF(VHFREF(逆时针曲线,1),1,IF(逆时针曲线AA,BB+AA/2+DD/4,CC+DD/4));X01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1)); SI:=16*X01/R2*MAX(AA,BB);ASI:=SUM(SI,0),COLORWHITE;MASI:=MA(ASI,6),COLORYELLOW;P25:=IF(CLOSELLV(CLOSE,13) ANDASI=LLV(ASI,13),-1,0));{BIAS}BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;P26:=IF(BIAS1>10,1,IF(BIAS10,36,36,10,0),COLOR00FF00; STICKLINE(C>0,56,56,10,0),COLORFF00FF;STICKLINE(C>0,71,71,10,0),COLORRED; STICKLINE(C>0,44,44,10,0),COLORYELLOW;。

【股票指标公式下载】-【通达信】回归线(浮动筹码、绝地反击)

【股票指标公式下载】-【通达信】回归线(浮动筹码、绝地反击)

【通达信】回归线(浮动筹码、绝地反击)-指标公式源码VAR1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR3:=(SMA(VAR2,3,1)-18)*1.55;VAR4:=SMA(VAR3,3,1);VAR5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;VAR6:=SMA(VAR5,10,1);VAR7:=(EMA(SMA(VAR6,8,1),34)-25)*2.6;VAR8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VAR9:=POW(MA(LOW,5),2)+MA(LOW,5);VARA:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARB:=((VAR8-LLV(VAR9,64))/(HHV(VARA,64)-LLV(VAR9,64))*150+65-10)/2; VARC:=SMA(VARB,3,1)*1.5-46;VARD:=SMA(VARC,3,1);VARE:=3*VARC-2*VARD;VARF:=(VAR1+VAR2+VAR5)/3;VAR10:=((VAR3+VAR3+VAR6+VARC)/4-15)*1.67;VAR11:=((VAR4+VAR4+VAR7+VARD)/4-15)*1.67;VAR12:=((VAR1+VAR5*2+VARF+VAR10+VAR11+VARB+VARC+VARD+VARE)/10-15)*1.6 7;VAR13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;VAR14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92; VAR15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93; VAR16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94; VAR17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95; VAR18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91; VAR19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96; VAR1A:=((VAR13*8+VAR14*8+VAR15*8+VAR16+VAR17+VAR18+VAR19)/28-0.1)*185 ;VAR1B:=SMA(VAR1A,3,1);VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;浮动筹码: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/13 ;浮动筹码1: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/21 ;浮动筹码2: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/34;获利筹码: (VAR3+VAR6+VAR1B*2)/4 ;40;20;0;VARA1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60 ))*80;VARB1:=SMA(VARA1,7,1);VARC1:=SMA(VARB1,5,1);英雄:IF(CROSS(VARB,VARC) AND VARB<20,100,0),LINETHICK2,COLORRED; VAR2N:=LLV(LOW,3)<=LLV(LOW,60);VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));绝地反击:IF(VAR2N AND VAR3N,90,0),COLORYELLOW,LINETHICK2;【通达信】回归线(浮动筹码、绝地反击)-指标公式效果图(文档来源:若水财经社区)。

通达信最终版本缠论主图指标公式

通达信最终版本缠论主图指标公式

通达信最终版本缠论主图指标公式N:=(1,100,8);KK:=(0,2,0);TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAAB:=(3*C+H+L+O)/6;VVAR1:=(8*AAAB+7*REF(AAAB,1)+6*REF(AAAB,2)+5*REF(A AAB,3)+4*REF(AAAB,4)+3*REF(AAAB,5)+2*REF(AAAB,6)+REF(AA AB,8))/36;VVAR6:=(LLV(VVAR1,2)+LLV(VVAR1,4)+LLV(VVAR1,6))/3;短线:IF(KK=0, VVAR1, DRAWNULL),COLORWHITE;中线:IF(KK=0,VVAR6, DRAWNULL),COLORYELLOW;DRAWBAND(短线,RGB(200,10,10),中线,RGB(10,200,10));DRAWKLINE(H,O,L,C);下跌:IF(KK=0 AND VVAR1=VVAR6,VVAR6, DRAWNULL),COLORGREEN;中:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOS E,24))/4;上轨:IF(KK=1,中+3*STD(中,10),DRAWNULL),COLOR000088,LINETHICK1;IF(KK=1,2*MA(上轨,12)-MA(C,21),DRAWNULL),COLOR666666;N1:=(1,100,10);N2:=(1,100,10);DISP:=(1,3,2);K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,RE F(BARSLAST(TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF( BARSLAST(TJ4),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,COLO RLIRED;中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,COLO RLIGREEN;中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLO RRED;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLO RGREEN;趋势高:PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE;趋势低:PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 ORHHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1)AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;STICKLINE(C>REF(C,1)*1.099,C,O,2.7,0)COLORRED,LINETHIC K2;STICKLINE(C<REF(C,1)*0.901,C,O,2.7,0)COLORGREEN,LINET HICK2;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORRED;DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORGREEN;DD1:=BARSLAST(ABS(极点保留)!=1);DRAWICON(极点保留=1,局部极点,2);DRAWICON(极点保留=-1,局部极点,1);{MA5:MA(CLOSE,5),COLORMAGENTA,LINETHICK1;判:IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORCYAN,LINE THICK1;};V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL ,1)-1,VOL/REF(VOL,1)-1);STICKLINE(V2>=1,O,C,1,0),COLORYELLOW;TY:=C;{收盘价}A1:=REF(TY,10)=HHV(TY,2*10+1);{10日前收盘价等于21天内最高价}VB1:=FILTER(A1,10);{当出现A1条件时,过滤10天后连续出现的信号}C1:=BACKSET(VB1,10+1);{将当前位置到11天前的位置设为1} HD:=FILTER(C1,10);{将当前位置到10天后的位置设为1}A2:=REF(TY,10)=LLV(TY,2*10+1);{10天前的收盘价等于21天内最低价}VB2:=FILTER(A2,10); {过滤10天内连续出现的信号}C2:=BACKSET(VB2,10+1);{将当前位置到11天前的位置设为1} LD:=FILTER(C2,10);{当出现C2后,10天后的数据不予记录}A:=REF(C,BARSLAST(HD));{设值上次高点位置}B:=REF(C,BARSLAST(LD));{设值上次低点位置}T11:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);{上升波段回调不创新低没新高}T21:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);{下降波段反弹不创新高没新低}波峰:IF(T11,A,A),COLORFF00FF,POINTDOT;{符合T1条件,高位线为紫色点状线}STICKLINE(T11,A,A,9,0),COLORFF00FF;{高位画横线}波谷:IF(T21,B,B),COLOR80FF00,POINTDOT;{符合T2条件,高位线为绿色点状线}STICKLINE(T21,B,B,9,0),COLOR80FF00;{低位画横线};。

决策自用KDJ通达信指标公式源码

决策自用KDJ通达信指标公式源码

决策自用KDJ通达信指标公式源码通达信的KDJ指标公式源码如下:```/* KDJ公式,n为时间周期K=(2*C-L1-H1)/(H1-L1)*100D=MA(K,n)J=3*K-2*D*/input:n(9), //KDJ计算周期length(14); // D计算周期var:highest(0), // 周期内最高价lowest(0), // 周期内最低价sum(0), // K值之和average(0), // K值平均值lengthCount(0); // D计算周期计数array:K[900](0), //K值数组D[900](0), //D值数组J[900](0); //J值数组value1 = (2*close - lowest(low, n) - highest(high, n)) / (highest(high, n) - lowest(low, n)) * 100;sum = sum + value1;average = sum / n;if barstatus(1) = 2 thenbeginlengthCount = lengthCount + 1;K[lengthCount] = average;if lengthCount >= length thenbeginD[lengthCount] = Average(K, length);J[lengthCount] = 3 * K[lengthCount] - 2 * D[lengthCount];end;//如果要取得KDJ的值,可以在这里输出相应的数值//Value1 = K[lengthCount];//Value2 = D[lengthCount];//Value3 = J[lengthCount];//清空计数器if lengthCount >= 900 thenlengthCount = 0;//清空KDJ值数组if CurrentBar = 1 thenbeginfor lengthCount = 0 to 900beginK[lengthCount] = 0;D[lengthCount] = 0;J[lengthCount] = 0;end;end;end;```这段代码使用的是KDJ的标准公式,其中n为KDJ计算周期,length为D计算周期。

【股票指标公式下载】-【通达信】时空上下限制(天线、地线、上涨、下跌)

【股票指标公式下载】-【通达信】时空上下限制(天线、地线、上涨、下跌)

【通达信】时空上下限制(天线、地线、上涨、下跌)-指标公式源码HH:=HHV(H,200);LL:=LLV(L,200);上涨:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW; ↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW;最高%:(HH/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW;下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW; ↓空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLOR00FF00;中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLOR00FF00;STICKLINE(上涨=0,天线,地线,0,-1),COLORYELLOW;STICKLINE(下跌=0,天线,地线,0,-1),COLORGREEN;DRAWTEXT(下跌=0,地线*1.01,'-最低'),COLOR00FF00;DRAWTEXT(上涨=0,天线*0.99,'-最高'),COLOR0000FF;{2}高:=天线;低:=地线;H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;DRAWTEXT(下跌=0,高,'高'),COLORGREEN;DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;DRAWTEXT(上涨=0,H1,'风险'),COLORCYAN; DRAWTEXT(上涨=0,H2,'高位'),COLORGRAY; DRAWTEXT(上涨=0,H3,'中'),COLORYELLOW; DRAWTEXT(上涨=0,H4,'低吸'),COLORLIRED; DRAWTEXT(上涨=0 ,H5,'盘整'),COLORMAGENTA; DRAWTEXT(上涨=0,低,'低'),COLORRED; DRAWTEXT(上涨=5,H*1.02,'5'),COLOR00FFFF; DRAWTEXT(上涨=8,H*1.02,'8'),COLOR00FFFF; DRAWTEXT(上涨=13,H*1.02,'13'),COLOR00FFFF; DRAWTEXT(上涨=21,H*1.02,'21'),COLOR00FFFF; DRAWTEXT(上涨=34,H*1.02,'34'),COLOR00FFFF; DRAWTEXT(上涨=55,H*1.02,'55'),COLOR00FFFF; DRAWTEXT(上涨=89,H*1.02,'89'),COLOR00FFFF; DRAWTEXT(上涨=144,H*1.02,'144'),COLOR00FFFF; DRAWTEXT(上涨=180,H*1.02,'180'),COLOR00FFFF; DRAWTEXT(上涨=250,H*1.02,'250'),COLOR00FFFF; DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00; DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00; DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00; DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00; DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00; DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00; DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00; DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00; DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00; DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00; {3}C2:=REF(C,1);跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,C,O,3.3,0),COLORBLUE; STICKLINE(跌停,H,L,0,0),COLORBLUE;STICKLINE(涨停,C,O,3.3,0),COLOR0077FF; STICKLINE(涨停,C,O,2.8,0),COLOR0099FF; STICKLINE(涨停,H,L,0,0),COLOR00FFFF;【通达信】时空上下限制(天线、地线、上涨、下跌)-指标公式效果图(文档来源:若水财经社区)。

通达信黑马决策辅助主图指标公式

通达信黑马决策辅助主图指标公式

通达信黑马决策辅助主图指标公式黄金柱B:=V/REF(V,1)>=2.0;K1B:=SUMBARS(黄金柱B,1) ;K2B:=SUMBARS(黄金柱B,2);K3B:=SUMBARS(黄金柱B,3);K4B:=SUMBARS(黄金柱B,4);K5B:=SUMBARS(黄金柱B,5);K6B:=SUMBARS(黄金柱B,6);K7B:=SUMBARS(黄金柱B,7);K8B:=SUMBARS(黄金柱B,8);K9B:=SUMBARS(黄金柱B,9);K10B:=SUMBARS(黄金柱B,10);AABB:STICKLINE(K1B,REFV(L,K1B-1)*1.002,REFV(L,K1B-1),2,0),COLORYELLOW;T60B:=V=HHV(V,60);T100B:=V=HHV(V,100);T2B:=V/REF(VOL,1)>=3;T3B:=REF(C,1)/REF( O,1)<3;MA5:=MA(CLOSE,M1),LINETHICK1,COLORYELLOW;MA10:=MA(CLOSE,M2),LINETHICK1,COLORWHITE;MA20:=MA(CLOSE,M3),LINETHICK1,COLORYELLOW;稳健操盘线:MA(CLOSE,M4),POINTDOT,COLORRED;MA60:=MA(CLOSE,M5),POINTDOT,LINETHICK1,COLORGREE N;TR1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N1,1);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N1,1);DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N1,1);PDI:=DMP*100/TR1,COLORRED;MDI:=DMM*100/TR1,COLORGREEN;ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N1,1),COLORYELLOW;阶段线1:=16;阶段线2:=30;DMI1:=PDI>MDI AND ADX>=30;DMI2:=PDI<MDI AND ADX>=30;DMI3:=PDI>MDI AND 16<ADX<30;DMI4:=PDI<MDI AND 16<ADX<30;DMI5:=ADX<=16 AND (PDI>MDI OR PDI<MDI);DMI6:=ADX>60;ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(ZT,O,C,3,0),COLORRED;DRAWTEXT(ZT,L*0.98,' '),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,3,0),COLORRED;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;VAR111:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=IF(CLOSE>OPEN,VAR111*(HIGH-LOW),IF(CLOSE<OPEN,VAR111*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;卖:=IF(CLOSE>OPEN,0-VAR111*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR111*(HIGH-LOW),0-VOL/2)),COLOR00FF00 ;买卖差:=(买+卖);买卖比:=ABS(买/卖);水平面:=MA(CLOSE,89),COLORFF00FF;BBI:=(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA (CLOSE,M4))/4;MA1:=MA(CLOSE,24),COLOR00E300,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL ,1)-1,VOL/REF(VOL,1)-1);MA13:=MA(CLOSE,13);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);A1:=MIN(O,C);B1:=ABS(O-C);T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));T11:=T111 AND REF(T111,1)=0;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2X:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);A1XX:=CROSS(MA(C,1),MA(C,3));XG:=A1XX;VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;A10:=CROSS(控盘,0);无庄控盘:=IF(控盘<0,控盘,0),COLORGRAY,NODRAW;短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:=SMA(短线,3,1),LINETHICK0,COLORFF00FF;绿柱:=SMA(中线,3,1),COLORSTICK,COLOR00FF00;开始控盘:=IF(A10,5,0),LINETHICK1,COLORWHITE;有庄控盘:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;VAR2:=100*WINNER(CLOSE*0.95);高度控盘:=IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;主力出货:=IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);{柱状线}AAA1:=(DIF1-DEA1)*2*60;买入线:=10;绝密:=AAA1-REF(AAA1,1),COLORMAGENTA;金叉:=CROSS(EMA(C,1),EMA(C,3));AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL);选股王:=CROSS(绝密,买入线);突破买点:=有庄控盘 AND 选股王;XXBB:= EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;抄牛底:=REF(XXBB,1)<50 AND XXBB-REF(XXBB,1)>25;蓝宝石:=抄牛底 AND 金叉;追拉升:=REF(XXBB,1)>50 AND XXBB-REF(XXBB,1)>40;回踩买点:=主力出货 AND 选股王;DRAWTEXT(回踩买点,L*0.995,'↖牛回踩'),COLORYELLOW;DRAWICON(回踩买点,L*0.985,26);抄底王:=金叉 AND 选股王,COLORGRAY;DRAWTEXT(抄底王,L*0.985,'↖抄底王'),COLORWHITE;DRAWICON(抄底王,L*0.975,27);VV1:=(C*2+H+L)/4*10;VV2:=EMA(VV1,13)-EMA(VV1,34);VV3:=EMA(VV2,5); V4:=2*(VV2-VV3)*5.5;主力撤:=IF(V4<=0,V4,0),COLORGREEN;主力进:=IF(V4>=0,V4,0);VV5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*VV5-2*SMA(VV5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:=IF(VB>=0,VB,0),COLORYELLOW;大盘资金撤走:=IF(VB<=0,VB,0),COLORRED;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:=EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金:=STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);{DRAWTEXT (AA,30,'准备现金'),COLORCC9900;}买入股票:=STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:=(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;{DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;}红宝石:=BB AND 金叉;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);加仓:=IF(FILTER(YXF=1,5),1,0),STICK,COLORFFFFFF,LINETHICK3;A51:=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);FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;QS:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));绿宝石:=加仓 AND 金叉;{DRAWTEXT (绿宝石,L*0.945,'绿宝石'),COLORFF00FF;}LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底线买阳:=CROSS(RSI20,11)*1,COLORRED;黄宝石:=底线买阳 AND 金叉;{DRAWTEXT (黄宝石,L*0.935,'黄宝石'),COLOR0099FF;}控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.005;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005; STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13); BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13); {DRAWICON(BTJ82,L*0.993,23);}{追买}; {DRAWICON(BTJ811,L*0.980,5);}{DRAWICON(绿宝石,L*0.988,27);DRAWICON(黄宝石,L*0.986,26);}{DRAWICON(蓝宝石,L*0.982,24);DRAWICON(红宝石,L*0.980,25);}DRAWICON(追拉升,L*0.985,23);{DRAWICON(突破买点,L*0.985,21);}VAR1A:=EMA(EMA(CLOSE,9),9);专用:=(VAR1A-REF(VAR1A,1))/REF(VAR1A,1)*1000; VAR2A:=100*WINNER(CLOSE*0.95);高手专用:=VAR2A>50 AND COST(85)<CLOSE AND 专用>0;CV:=CLOSE;BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;UPR:=BBIBOLL+6*STD(BBIBOLL,11);DWN:=BBIBOLL-6*STD(BBIBOLL,11);QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));HSL:=(XVL/20)/1.15;强势股:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22))>1500;绝杀前十:=高手专用 AND 高度控盘,COLORFF00FF;{机构增仓}JA1:=(DVOL/C)/2;A2:=SUM(IF(JA1>100 AND CLOSE>REF(CLOSE,1),JA1,0),0);A3:=SUM(IF(JA1>100 AND CLOSE<REF(CLOSE,1),JA1,0),0);A4:=SUM(IF(JA1<100 AND CLOSE>REF(CLOSE,1),JA1,0),0);A5:=SUM(IF(JA1<100 AND CLOSE<REF(CLOSE,1),JA1,0),0);A6:=A2+A3+A4+A5;机买:=(A2/A6)*100;机卖:=(A3/A6)*100;主力差:=机买-机卖;机构加仓:=(主力差>=REF(主力差,1)+1.5)*50 AND 机买>机卖;机构抄底:=金叉 AND 机构加仓;DRAWTEXT (机构抄底,L*0.97,'↖机构入驻'),COLORCYAN;机构追买:=机构加仓 AND 追拉升;DRAWTEXT (机构追买,L*0.97,'↖机构吃单'),COLORFF00FF;{猎庄}LVAR2:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;LVAR3:=SMA(LVAR2,20,1);LVAR4:=SMA(LVAR3,15,1);猎庄:=LVAR3-LVAR4;多空分界:=1;抓庄:=CROSS(猎庄,多空分界) AND 猎庄>=REF(MA(猎庄,多空分界),1);跟庄抄底:=金叉 AND 抓庄;{DRAWTEXT (跟庄抄底,L*0.97,'跟庄'),COLORCYAN;}{稳健追涨}WMA1:=EMA(CLOSE,5);WMA2:=EMA(CLOSE,10);WMA3:=EMA(CLOSE,20);WMA4:=EMA(CLOSE,30);WMA5:=EMA(CLOSE,60);WVAR1:=MAX(WMA1,MAX(WMA2,MAX(WMA3,WMA4)));WVAR2:=MIN(WMA1,MIN(WMA2,MIN(WMA3,WMA4)));WVAR3:=(WVAR1-WVAR2)/WVAR2*1000;WVAR4:=WMA1>REF(WMA1,1) AND WMA2>REF(WMA2,1) AND WMA3>REF(WMA3,1) AND WMA4>REF(WMA4,1) AND WMA5>REF(WMA5,1);WVAR5:=WVAR3<5;WVAR6:=COUNT(WVAR5=1,5)>0;WVAR7:=CROSS(WMA1,WMA4);稳健追涨:=WVAR4 AND WVAR6 AND WVAR7;稳健抄底:=金叉 AND 稳健追涨;{DRAWTEXT (稳健抄底,L*0.97,'稳健'),COLORCYAN;}{均线粘合}JDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);JDEA:=EMA(JDIF,9);JMACD:=(JDIF-JDEA)*2;JBOLL:=MA(CLOSE,20);JUPPER:=JBOLL+2*STD(CLOSE,20);JLOWER:=JBOLL-2*STD(CLOSE,20);JK1:=CLOSE>OPEN ;JK2:=VOL>=2*REF(VOL,1);JK3:=CROSS(JDIF,JDEA) AND JDIF<=0 ;JK4:=CROSS(CLOSE,JBOLL);均线粘合:=JK1 AND JK2 AND JK3 AND JK4 ;机构拉升:=机构加仓 AND 均线粘合;DRAWTEXT (机构拉升,L*0.97,'↖机构拉升'),COLORFF00FF;VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARC),H*1.02,2);{DRAWTEXT(CROSS(82,VARC),2,'|逃庄'),COLORWHITE ;}VAR34:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);VAR35:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);VAR36:=IF(VAR34>0.010, 0.900, 1) AND IF(VAR34>(-0.025), 1, 1.200);VAR37:=VAR36*(VAR35-VAR34)*100;VAR38:=SUM(VAR37, 10);VAR310:=VAR38>20;VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,1,0);{VAR38>VAR39;} VAR327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND VAR326>0, 1, 0);{STICKLINE(VAR327=1,0,1,2,0),COLORYELLOW;}DRAWICON(VAR327=1,L*0.95,1);{DRAWTEXT(VAR327=1,-1,'|杀庄'),COLORWHITE;}HZ:=EMA(CLOSE,13);短波:=EMA(HZ,1);中波:=EMA(HZ,26);均线148天:=EMA(C,148);成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100;HZ2:=EMA(HZ,8);拉升一号:=CROSS(短波,HZ2);DRAWICON(拉升一号,L*0.99,11);DRAWTEXT (拉升一号,L*0.97,'↖黑马拉升'),COLORFF00FF;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;红线上牛股起:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16* REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12* REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8* REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4* REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210, COLORRED,LINETHICK2;绿线下熊股出:MA(红线上牛股起,6),COLORGREEN,LINETHICK2;涨停紫色:STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,3.05,0),COLORMAGENTA;。

【股票指标公式下载】-【通达信】综合主图(支撑、阻力、强攻、回调)

【股票指标公式下载】-【通达信】综合主图(支撑、阻力、强攻、回调)

【通达信】综合主图(支撑、阻力、强攻、回调)-指标公式源码V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:MA(CLOSE,5),COLOR888899;MA13:MA(CLOSE,13),COLORFF9900,LINETHICK2;VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) ANDREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);VAR6:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);VAR7:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR8:=VAR7 AND COUNT(VAR6,2);VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) AND CROSS(VAR9,MA(VAR9,2)))=1,5);VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(MA(VAR9,2),VAR9))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR8 AND NOT(REF(VAR8,1));强攻:IF(MA3>REF(MA3,1) ANDMA3>=0,MA13,DRAWNULL),COLORYELLOW,LINETHICK2;回调:IF(MA3<REF(MA3,1) AND MA3>0,MA13,DRAWNULL),COLORGREEN,LINETHICK2; {KDJ}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR4;买3:=(VAR14 OR VAR15) AND VAR2;买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);买5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11);{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 ANDCLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 ANDCLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;{绿}STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00; STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;{灰}STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000099;DRAWICON(VAR16,LOW-0.02,7);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,1);DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.01,2);VAR111:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR222:=REF(VAR111,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR333:=REF(VAR222,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR444:=REF(VAR333,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR555:=REF(VAR444,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR666:=REF(VAR555,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR777:=REF(VAR666,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR888:=REF(VAR777,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR999:=REF(VAR888,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR999,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); STICKLINE(VAR111 OR VAR222 OR VAR333 OR VAR444 OR VAR555 OR VAR666 OR VAR777 OR VAR888 OR VAR999 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR1110:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR1111:=REF(VAR1110,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR1112:=REF(VAR1111,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR1113:=REF(VAR1112,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR1114:=REF(VAR1113,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR1115:=REF(VAR1114,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR1116:=REF(VAR1115,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR1117:=REF(VAR1116,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR1118:=REF(VAR1117,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR1110 OR VAR1111 OR VAR1112 OR VAR1113 OR VAR1114 OR VAR1115 OR VAR1116 OR VAR1117 ORVAR1118,CLOSE,REF(CLOSE,1),3,1),COLORLIBLUE;VAR1119:=REF(VARD OR VARE OR VARF OR VAR1110 OR VAR1111 OR VAR1112 OR VAR1113 OR VAR1114 OR VAR1115 OR VAR1116 OR VAR1117 OR VAR1118,1) AND VAR111;STICKLINE(VAR1119,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA;VAR111A:=REF(VAR111 OR VAR222 OR VAR333 OR VAR444 OR VAR555 OR VAR666 OR VAR777 OR VAR888 OR VAR999 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR111A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR008800;【通达信】综合主图(支撑、阻力、强攻、回调)-指标公式效果图(文档来源:若水财经社区)。

通达信交易决策公式新黑马必抓副图 重要牛股指标

通达信交易决策公式新黑马必抓副图 重要牛股指标

公式源码:VARX:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX1:=SMA(VARX,3,1);VARX2:=SMA(VARX1,3,1);VARX3:=REF(LOW,1);VARX4:=SMA(ABS(LOW-VARX3),3,1)/SMA(MAX(LOW-VARX3,0),3,1)*100; VARX5:=EMA(IF(CLOSE*1.2,VARX4*10,VARX4/10),3);VARX6:=LLV(LOW,30);VARX7:=HHV(VARX5,30);VARX8:=IF(LLV(LOW,58),1,0);A9:= DATETODAY(DATE);DS:=IF(A9<9966,1,DRAWNULL);CMSHORT:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,8)/(AMOUNT/VOL/100)/100));CMMID:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13) /(AMOUNT/VOL/100)/100));CMLONG:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,2 0)/(AMOUNT/VOL/100)/100));DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34), 11);XSR:=1150501;XS:=IF(DATE<XSR,1,DRAWNULL);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100; VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100; VARR3:=(2*CLOSE+HIGH+LOW)/4;VARR4:=LLV(LOW,26);VARR5:=HHV(HIGH,34);VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;VARR8:=EMA(VARR6,7);VARR9:=SMA(VARR1,3,1);VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VARR13:=(VARR10+VARR11+VARR12)/3;VARR14:=IF(VARR13<=-20,10,0);VARR15:=HHV(VARR14,10);VARR24:=LLV(LOW,36);VARR25:=HHV(HIGH,30);VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1 ;VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);VARB29:=IF(A9<15366,1,DRAWNULL);AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MA30:=MA(C,34);BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1)*XS; 加速度5:=EMA((速度5-REF(速度5,1)),3)*VARB29;五日乖离率:=(C-AA05)/AA05*VARB29*100*DS;三拾日乖离率:=(C-MA30)/MA30*100*VARB29;。

决策系统 通达信指标公式源码

决策系统 通达信指标公式源码

STICKLINE(C>0,75,0,10,0),COLOR2B5516;MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VVAR1:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:LLV(LOW,30),COLORCDFFBB;{短期底部:=LLV(HIGH,30); }短期底部1:=LLV(HIGH,36);短底:=EMA(VVAR1,5);支撑:=HHV(短底,60);压力1:HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'逃→'),COLOR00FFFF;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地- B6) / B7),2) * 80);VAR111:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200);飞龙顶底线1:=SMA(VAR111,3,1);VAR222:=SMA(飞龙顶底线1,3,1);VAR333:=((3 * 飞龙顶底线1) - (2 * VAR222));VAR444:=LLV(LOW,5);VAR555:=HHV(HIGH,5);VAR666:=(EMA((((CLOSE - VAR444) / (VAR555 - VAR444)) * 100),4) * 2);VAR777:=EMA(((0.667 * REF(VAR666,1)) + (0.333 * VAR666)),2);VAR888:=((3 * VAR666) - (2 * VAR777));VAR999:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR999 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARFFF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((飞龙顶底线1+ VAR666) + VARD) + VAR16);VAR1A:=(((VAR222 + VAR777) + VARE) + VAR17);VAR1B:=(((VAR333 + VAR888) + VARFFF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR20:=DMA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4); VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线+ (2 * STD(VAR2C,26)));UPPER:=(短线- (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);MA5:=MA(CLOSE,80);短期底部:(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底部2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位2:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);压力2:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));压力位:IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D)))),COLORFFFFFF; 支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D < D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24))))); RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1)))));RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D > D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24)))));长期底部:LLV(HIGH,30),COLOR00FF00;DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'底↑成'),COLOR0EABFF;RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);DRAWTEXT(FILTER((((((LOW <= 压力位) AND (WINNER(CLOSE) <= 0.07)) AND (CLOSE >= 压力位)) AND (CLOSE < 上1)) AND ((CLOSE / OPEN) > 1.02)),3),LOW,'追'),COLOR936EF0;中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR1:=EMA(CLOSE,8);飞龙顶底线:=EMA(VAR1,20);VAR2:=CROSS(VAR1,飞龙顶底线);VAR3:=(VAR1 < MA(CLOSE,20));VAR4:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR5:=SMA(VAR4,5,1);VAR6:=SMA(VAR5,8,1);VAR7:=(CROSS(VAR5,VAR6) AND (VAR6 < 5));VAR8:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR7);VAR9:=IF((CLOSE > 1000),VAR7,VAR8);VARF:=CROSS(X1,X2);MA115:=VARF;低买:=(VAR2 AND VAR3);黑马起步:=VAR9;DRAWTEXT(X8,(HIGH * 1.03),'出↓货'),COLOR9000F5;DRAWTEXT((黑马起步> 0),(HIGH * 1.04),'逃↓命'),COLOR0000FF;逃遁:=(SMA(HIGH,21,2) * 1.05);STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.8,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.5,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.2,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.8,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1,0),COLORFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.8,0),COLOR070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.5,0),COLOR0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.2,0),COLOR0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLOR0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.8,0),COLOR0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.2,0),COLOR076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,0,0),COLOR077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,0,0),COLOR0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,0,0),COLOR0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,0,0),COLORDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,0,0),COLORDE9100;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2.8,0),COLOR0090FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2.5,0),COLOR009FFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),COLOR00B5FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,1,0),COLOR00E4FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0,0),COLOR00FFFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0,0),COLOR00FFFF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),OPEN,LOW,0,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,HIGH,0,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,2.8,0),COLORFF00FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,2.5,0),COLORFF62FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,2,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,1,0),COLORFFA8FF;DRAWTEXT(FILTER(((((LLV(LOW,0) AND ((MA30 - REF(MA30,1)) > 0)) AND (LOW <= 短期底部)) AND (WINNER(CLOSE) < 0.05)) AND ((CLOSE / OPEN) > 0.13)),7),(LOW - 0.09),'见●底'),COLOR00B2FF;阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位2- REF(超跌位2,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力1)) AND (CLOSE < 压力1)) AND ((压力2- REF(压力2,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'出↑击'),COLORD4DEE9;DRAWTEXT((((((低买> 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'←黑马'),COLOR00FF00; DRAWTEXT((((((CROSS(VAR2C,短线) AND ((CLOSE - REF(HIGH,1)) > 0)) AND ((中线- REF(中线,1)) > 0)) AND (HIGH <= 压力1)) AND (CLOSE < MA20)) AND (LOW <= 中线)),(LOW - 0.06),'关注'),COLOR00FF00;DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力1)) AND ((XY - REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'买'),COLORFFFFFF;DRAWTEXT(FILTER(((((((LOW <= 天) AND (CLOSE >= MA20)) AND (HIGH < 压力1)) AND ((天- REF(天,1)) > 0)) AND (CLOSE < 压力1)) AND ((MA20 - REF(MA20,1)) > 0)),6),(LOW - 0.12),'全仓'),COLORFFFFFF;DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人- REF(人,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上1)) AND ((CLOSE / OPEN) > 1.03)),5),LOW,'买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'抄★底'),COLOR0000FF;DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上1)) AND (HIGH > 上1)) AND (CLOSE > 阻挡线)),5),LOW,'涨→10%'),COLORFFFFFF;DRAWTEXT(((CROSS(压力,阻挡) AND (WINNER(CLOSE) <= 0.17)) AND ((X1 - REF(X1,1)) > 0)),(LOW - 0.08),'←大胆买'),COLOR00FFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'短抄'),COLORA100FF; DRAWTEXT((((CROSS(D,0) AND (HIGH < 压力位)) AND (VAR5P <= (0 - 7))) AND (CLOSE < XY)),(LOW - 0.11),'半仓'),COLOR00FFFF;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < MA5)) AND (HIGH < 压力1)) AND LLV(LOW,0)),10),LOW,'果断买'),COLOR00FFFF;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW- 0.06),'买'),COLOR00FF00;DRAWTEXT(((CROSS(阻挡,长期底部) AND (BB10 > 1)) AND (HIGH < 支撑)),LOW,'←出击'),COLOR00FF00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力1)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部2<= MA80)),8),LOW,'底'),COLOR00FFFF;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 - REF(MA20,1)) > 0.02)),(LOW - 0.03),'绝佳●买点'),COLORFFF0FF;DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'大牛●浮水'),COLORD3E7FF; DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'短线买');。

决策曲线通达信指标公式源码

决策曲线通达信指标公式源码

MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR2:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)), 7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,IF(PDI<MDI AND ADX>MDI AND ADX>50,-3,0));{9}{RSI}LC:=REF(CLOSE,1);RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;{10}P08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));{10}{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));P09:=IF(CCI>180,2,IF(CCI<-180,-2,0));{12}{W%R}WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;P10:= IF(WR1>80,1,IF(WR1<20,-1,0));{13}{OSC}OSC:=100*(CLOSE-MA(CLOSE,20));P11:=IF(OSC>0,1,IF(OSC<0,-1,0));{14}{MTM}MOM:=CLOSE-REF(CLOSE,7);P12:=IF(MOM>0,1,IF(MOM<0,-1,0));{15}{DPO}DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);P13:=IF(DPO>0,1,IF(DPO<0,-1,0));{16}{布林线}MB:=MA(CLOSE,12);R:=(CLOSE-MB)*(CLOSE-MB);X1:=MA(R,12);X2:=SQRT(X1);UPPER:=MB+(D1*X2);LOWER:=MB-(D1*X2);P14:=IF(CLOSE>UPPER,2,IF(CLOSE<LOWER,-2,0));{18}{BRAR}BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)*100; AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;P15:=IF(BR>350 OR AR>180,3,IF(BR<45 OR AR<45,-3,0));{21}{VR}TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),14);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);VR:=0100*(TH*2+TQ)/(TL*2+TQ);P16:=IF(VR>350,3,IF(VR<45,-3,0));{24}{WVAD}WVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;P17:=IF(WVAD>0,1,IF(WVAD<0,-1,0));{25}{EMV}VOLUME:=MA(VOL,4)/VOL;MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);P18:=IF(EMV>0,1,IF(EMV<0,-1,0));{26}{OBV}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);MAOBV:=EMA(OBV,24);P19:=IF(OBV>MAOBV,1,IF(OBV<MAOBV,-1,0));{27}{PVI}PVI:= PVI,COLORWHITE;MPVI:=EMA(PVI,24),COLORYELLOW;P20:=IF(PVI>MPVI,1,IF(PVI<MPVI,-1,0));{28}{NVI}NVI:=NVI,COLORWHITE;MNVI:=EMA(NVI,24),COLORYELLOW;P21:=IF(NVI>MNVI,2,IF(NVI<MNVI,-2,0));{30}{MASS}MASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);MA7:=MA(CLOSE,9);P22:=IF(MA7>REF(MA7,1) AND MASS>26.5,2,IF(MA7<REF(MA7,1)AND MASS<26.5,-2,0));{32}{VHF}NUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));DEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);VHF:=IF(DEN=0,0,NUM/DEN);VHF1:=EMA(VHF,240);P23:=IF(VHF>VHF1,1,IF(VHF<VHF1,-1,0));{33}{PUCU}PU:=MA(CLOSE,13);CU:=MA(VOL,13);PU1:=(PU-REF(PU,1))/REF(PU,1)*100;CU1:=(CU-REF(CU,1))/REF(CU,1)*100;逆时针曲线:=PU1+CU1;P24:=IF(逆时针曲线>REF(逆时针曲线,1),1,IF(逆时针曲线<REF(逆时针曲线,1),-1,0)); {ASI}LC2:=REF(CLOSE,1);AA:=ABS(HIGH-LC2);BB:=ABS(LOW-LC2);CC:=ABS(HIGH-REF(LOW,1));DD:=ABS(LC2-REF(OPEN,1));R2:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC ANDBB>AA,BB+AA/2+DD/4,CC+DD/4));X01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1));SI:=16*X01/R2*MAX(AA,BB);ASI:=SUM(SI,0),COLORWHITE;MASI:=MA(ASI,6),COLORYELLOW;P25:=IF(CLOSE<HHV(CLOSE,13) AND ASI=HHV(ASI,13),1,IF(CLOSE>LLV(CLOSE,13) AND ASI=LLV(ASI,13),-1,0));{BIAS}BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;P26:=IF(BIAS1>10,1,IF(BIAS1<-10,-1,0));决策曲线:(36+P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P16 +P17+P18+P19+P20+P21+P22+P23+P24+P25+P26)*1.36,COLORMAGENTA; MAJCQX:MA(决策曲线,3)COLORWHITE,NODRAW ;STICKLINE(C>0,20,20,10,0),COLORYELLOW;STICKLINE(C>0,75,75,10,0),COLORBROWN;STICKLINE(C>0,82.5,82.5,10,0),COLORLIBLUE;STICKLINE(C>0,27.5,27.5,10,0),COLORLIRED;DRAWTEXT(CROSS( 决策曲线,20),22.5,'↙买点'),COLORRED; DRAWTEXT(CROSS( 决策曲线,27.5),30,'↙加仓'),COLORWHITE; DRAWTEXT(CROSS(82.5, 决策曲线),80,'↖清仓'),COLORYELLOW; DRAWTEXT(CROSS(75, 决策曲线),72.5,'↖卖点'),COLORGREEN;。

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

【通达信】决策曲线(逆时针曲线)-指标公式源码MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,IF(PDI<MDI AND ADX>MDI AND ADX>50,-3,0));{9}{RSI}LC:=REF(CLOSE,1);RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;{10} P08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));{10}{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));P09:=IF(CCI>180,2,IF(CCI<-180,-2,0));{12}{W%R}WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;P10:= IF(WR1>80,1,IF(WR1<20,-1,0));{13}{OSC}OSC:=100*(CLOSE-MA(CLOSE,20));P11:=IF(OSC>0,1,IF(OSC<0,-1,0));{14}{MTM}MOM:=CLOSE-REF(CLOSE,7);P12:=IF(MOM>0,1,IF(MOM<0,-1,0));{15}{DPO}DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);P13:=IF(DPO>0,1,IF(DPO<0,-1,0));{16}{布林线}MB:=MA(CLOSE,12);R:=(CLOSE-MB)*(CLOSE-MB);X1:=MA(R,12);X2:=SQRT(X1);D1:=1;UPPER:=MB+(D1*X2);LOWER:=MB-(D1*X2);P14:=IF(CLOSE>UPPER,2,IF(CLOSE<LOWER,-2,0));{18} {BRAR}BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)* 100;AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;P15:=IF(BR>350 OR AR>180,3,IF(BR<45 OR AR<45,-3,0));{21}{VR}TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),14);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);VR:=0100*(TH*2+TQ)/(TL*2+TQ);P16:=IF(VR>350,3,IF(VR<45,-3,0));{24}{WVAD}WVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;P17:=IF(WVAD>0,1,IF(WVAD<0,-1,0));{25}{EMV}VOLUME:=MA(VOL,4)/VOL;MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);P18:=IF(EMV>0,1,IF(EMV<0,-1,0));{26}{OBV}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);MAOBV:=EMA(OBV,24);P19:=IF(OBV>MAOBV,1,IF(OBV<MAOBV,-1,0));{27}{PVI}PVI:= PVI,COLORWHITE;MPVI:=EMA(PVI,24),COLORYELLOW;P20:=IF(PVI>MPVI,1,IF(PVI<MPVI,-1,0));{28}{NVI}NVI:=NVI,COLORWHITE;MNVI:=EMA(NVI,24),COLORYELLOW;P21:=IF(NVI>MNVI,2,IF(NVI<MNVI,-2,0));{30}{MASS}MASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);MA7:=MA(CLOSE,9);P22:=IF(MA7>REF(MA7,1) AND MASS>26.5,2,IF(MA7<REF(MA7,1)AND MASS<26.5,-2,0));{32}{VHF}NUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));DEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);VHF:=IF(DEN=0,0,NUM/DEN);VHF1:=EMA(VHF,240);P23:=IF(VHF>VHF1,1,IF(VHF<VHF1,-1,0));{33}{PUCU}PU:=MA(CLOSE,13);CU:=MA(VOL,13);PU1:=(PU-REF(PU,1))/REF(PU,1)*100;CU1:=(CU-REF(CU,1))/REF(CU,1)*100;逆时针曲线:=PU1+CU1;P24:=IF(逆时针曲线>REF(逆时针曲线,1),1,IF(逆时针曲线<REF(逆时针曲线,1),-1,0));{ASI}LC2:=REF(CLOSE,1);AA:=ABS(HIGH-LC2);BB:=ABS(LOW-LC2);CC:=ABS(HIGH-REF(LOW,1));DD:=ABS(LC2-REF(OPEN,1));R2:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC ANDBB>AA,BB+AA/2+DD/4,CC+DD/4));X01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1));SI:=16*X01/R2*MAX(AA,BB);ASI:=SUM(SI,0),COLORWHITE;MASI:=MA(ASI,6),COLORYELLOW;P25:=IF(CLOSE<HHV(CLOSE,13) ANDASI=HHV(ASI,13),1,IF(CLOSE>LLV(CLOSE,13) AND ASI=LLV(ASI,13),-1,0)); {BIAS}BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;P26:=IF(BIAS1>10,1,IF(BIAS1<-10,-1,0));决策曲线:(36+P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P1 6+P17+P18+P19+P20+P21+P22+P23+P24+P25+P26)*1.36;MAJCQX:MA(决策曲线,3);STICKLINE(C>0,36,36,10,0),COLOR00FF00;STICKLINE(C>0,56,56,10,0),COLORFF00FF;STICKLINE(C>0,71,71,10,0),COLORRED;STICKLINE(C>0,44,44,10,0),COLORYELLOW;【通达信】决策曲线(逆时针曲线)-指标公式效果图(文档来源:若水财经社区)。

相关文档
最新文档