通达信融合副图公式
{牛牛指标网提供:www.tdx001.com}
复制内容到剪贴板
- 长期趋势:ZIG(3,N1), COLOR00FF00,LINETHICK2;
- 短期趋势:ZIG(3,N2),COLORYELLOW,LINETHICK2;
- 短涨天数:BARSLASTCOUNT(短期趋势>REF(短期趋势,1)),NODRAW;
- VAR771:=(C-REF(C,短涨天数))/REF(C,短涨天数)*100;
- 短涨幅度%:IF(短涨天数>0,VAR771, DRAWNULL),NODRAW;
- 回调天数:BARSLASTCOUNT(短期趋势<REF(短期趋势,1)),NODRAW;
- VAR772:=(C-REF(C,回调天数))/REF(C,回调天数)*100;
- 回调幅度%:IF(回调天数>0,VAR772, DRAWNULL),NODRAW;
- 上涨天数:BARSLASTCOUNT(长期趋势>REF(长期趋势,1)),NODRAW;
- VAR773:=(C-REF(C,上涨天数))/REF(C,上涨天数)*100;
- 上涨幅度%:IF(上涨天数>0,VAR773, DRAWNULL),NODRAW;
- 下跌天数:BARSLASTCOUNT(长期趋势<REF(长期趋势,1)),NODRAW;
- VAR774:=(C-REF(C,下跌天数))/REF(C,下跌天数)*100;
- 下跌幅度%:IF(下跌天数>0,VAR774, DRAWNULL),NODRAW;
- VAR1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR3:=SUM(VAR1,5);
- VAR4:=SUM(VAR2,5);
- VAR5:=IF(VAR3>VAR4,(VAR3-VAR4)/VAR3,IF(VAR3=VAR4,0,(VAR3-VAR4)/VAR4));
- VAR6:=MA(VAR5,5);
- VAR8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VARA:=SUM(VAR8,3);
- VARB:=SUM(VAR9,3);
- VARC:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VARD:=MA(VARC,3);
- 火: BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)), COLORRED;
- VARE:=HHV(CLOSE,2);
- VARF:=BARSLAST(VARE<REF(VARE,2));
- VAR10:=IF(VARF>=1,LLV(VARE,VARF),LOW);
- VAR11:=VAR10+VAR10*VARF*0.5/100;
- VAR12:=IF(VAR11<REF(VAR11,1),MA(LOW,3),VAR11);
- VAR13:=VAR10+VAR10*(VARF-1)*1.618/100;
- 山: COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5);
- VAR14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR16:=SUM(VAR8,3);
- VAR17:=SUM(VAR9,3);
- VAR18:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VAR19:=MA(VARC,3);
- 买入或持股: STICKLINE(山>0,火,0,2,0), COLORRED;
- VAR1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR1C:=SUM(VAR8,3);
- VAR1D:=SUM(VAR9,3);
- VAR1E:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VAR1F:=MA(VARC,3);
- 下跌→抛出: STICKLINE(山>0,火,山,2,1), COLORF0F000;
- VAR20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR22:=SUM(VAR8,3);
- VAR23:=SUM(VAR9,3);
- VAR24:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VAR25:=MA(VARC,3);
- 观望: STICKLINE(山=0 AND 火=0,0,1,4,1), COLORBLUE;
- VAR26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR28:=SUM(VAR8,3);
- VAR29:=SUM(VAR9,3);
- VAR2A:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VAR2B:=MA(VARC,3);
- 植被: STICKLINE(山<火,火,山,1,0), COLOR00FF00;
- VAR2C:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR2D:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR2E:=SUM(VAR8,3);
- VAR2F:=SUM(VAR9,3);
- VAR30:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VAR31:=MA(VARC,3);
- VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;
- K: SMA(SMA(VAR32,2,1),2,1),COLOR00FF00 , ;
- D: SMA(SMA(SMA(VAR32,2,1),2,1),3,1), COLORYELLOW;
- J: (3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)), COLORF00FF0;
- VAR33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
- VAR34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
- VAR35:=SUM(VAR8,3);
- VAR36:=SUM(VAR9,3);
- VAR37:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
- VAR38:=MA(VARC,3);
- STICKLINE(REF(山,1)=0 AND 山>0,0,-1,2,0), COLORRED;
- DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1),'调整'),COLORYELLOW , ;
- {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);
- VAR881:=(HIGH+LOW+OPEN+2*CLOSE)/5;
- VAR882:=REF(VAR881,1);
- VAR883:=SMA((CLOSE-VAR882),6,1)/SMA(ABS(CLOSE-VAR882),6,1)*100;
- VAR884:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
- VAR885:=EMA(0.667*REF(VAR884,1)+0.333*VAR884,5);
- VAR886:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR884>=VAR885 AND VAR884<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
- VAR887:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
- VAR888:=SMA(MAX(VAR881-VAR882,0),10,1)/SMA(ABS(VAR881-VAR882),10,1)*100;
- VAR889:=IF(COUNT(VAR888<20,5)>=1 AND COUNT(VAR881=LLV(VAR881,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);
- 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;
- A88:=(VAR07>VAR06 AND VAR07>25 AND VAR06<25);
- B88:=ZIG(3,50/5)*100,COLORRED,LINETHICK2;
- G88:=MA(B88,2),COLORGREEN,LINETHICK2;
- D88:=CROSS(B88,G88)*1000,COLORRED;
- W88:=CROSS(G88,B88)*1000,COLORBLUE;
- E88:=REF(INDEXC,1);
- F88:=SMA(MAX(INDEXC-E88,0),3,1)/SMA(ABS(INDEXC-E88),3,1);
- VAR8810:=F88 AND F88<8;
- VAR8811:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- VAR8812:=SMA(VAR8811,3,1);
- VAR8813:=SMA(VAR8812,3,1);
- VAR8814:=VAR8813 AND VAR8813<20;
- MM:=A88 AND D88 AND VAR8810 AND VAR8814 ;
- DRAWTEXT(W88=1000,H*1.05,'卖' ),COLOR00FF00;
- DRAWTEXT(D88=1000,L*0.95,'买'),COLORRED;
- KA0:=(HHV(C,45)-LLV(C,45))/45;
- KA1:=SMA(C,3,1);
- KA2:=SMA(C-KA0*3,3,1);
- KA3:=SMA(KA1-KA0*3,3,1);
- 短期策略:=KA2>=KA3,NODRAW;
- 短期拐点:=REF(短期策略,1)=0 AND 短期策略=1,NODRAW;
- CSAR:=SAR(10,2,20);
- 持股:=IF(CSAR<=L,CSAR,0);
- 涅磐:=EMA(SLOPE(C,21)*20+C,42);
- 般若:=EMA(C,5);
- VAR1GG:=(C+H+O+L)/4;
- 卖出:=XMA(VAR1GG,20)*(1+80/1000);
- 买入:=XMA(VAR1GG,32)*(1-100/1000);
- 菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};
- 开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);
- 抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐;
- DRAWICON(抛物线转向,(H),16);{趋势底};
- 般:=XMA(CLOSE,7);
- 若:=MEMA(CLOSE,3);
- 趋势延伸:=短期拐点 AND 菩提>H AND NOT(抛物线转向);
- DRAWICON(趋势延伸,H,5);
- DRAWICON(LONGCROSS(若,般,3) AND H>菩提,H,17);
- DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>菩提)=1,H,2);
|