通达信公式大全_通达信公式大全详解
指标源码
源码主图:
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
VAR3:=(VAR1-MA(VAR1,70))/(0.015*AVEDEV(VAR1,70));
VAR4:=IF(VAR2=150 AND VAR2200 AND VAR3=150 AND VAR3200,10,0);
VAR5:=IF(VAR2=-150 AND VAR2-200 AND VAR3=-150 AND VAR3-200,-10,VAR4);
{买点计算 ZZQ}
VAR99:=(HIGH+LOW+CLOSE)/3;
VAR98:=(MA(VAR99,14)-VAR99)/(0.015*AVEDEV(VAR99,14));
VAR97:=(MA(VAR99,70)-VAR99)/(0.015*AVEDEV(VAR99,70));
VAR96:=IF(VAR98=150 AND VAR98200 AND VAR97=150 AND VAR97200,10,0);
VAR95:=IF(VAR98=-150 AND VAR98-200 AND VAR97=-150 AND VAR97-200,-10,VAR96);
{买点计算结束}
VAR6:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR7:=100-ABS(VAR6);
VAR8:=IF(VAR790,VAR7,100);
PJX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
短期强弱1F:IF(MA(CLOSE,60)MA(CLOSE,20),PJX,DRAWNULL), LINETHICK2,COLORLIBLUE;
IF(MA(CLOSE,60)=MA(CLOSE,20),PJX,DRAWNULL), LINETHICK2,COLORRED;
VAR1A:=IF(PJX0,PJX,0);
VAR1B:=IF(VAR3=200 AND VAR2=150,15,IF(VAR3=-200 AND VAR2=-150,-15,VAR5))+60;
VAR1C:=VAR1A48 AND VAR1B60 AND VAR8100;
VAR1D:=VAR1A48 AND VAR1B60 AND VAR8100;
DRAWTEXT(VAR1D AND COUNT(VAR1D,30)=1,80,'短线反弹'),COLORFF7B00;
STICKLINE(VAR1D AND COUNT(VAR1D,30)=1,60,80,5,0),COLORFFBE00;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,80,'短线高点'),COLORFF62FF;
STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,60,80,5,0),COLOR0000E9;
VAR2C:=IF(VAR3=200 AND VAR2=150,15,IF(VAR3=-200 AND VAR2=-150,-15,0))+30;
VAR2E:=VAR1A48 AND VAR2C30 AND VAR8100;
VAR2F:=VAR1A48 AND VAR2C30 AND VAR8100;
DRAWTEXT(VAR2E AND COUNT(VAR2E,30)=1,50,'短线反弹2'),COLOR333399;
STICKLINE(VAR2E AND COUNT(VAR2E,30)=1,30,50,5,0),COLORFFFF66;
DRAWTEXT(VAR2F AND COUNT(VAR2F,30)=1,50,'短线高点2'),COLORFFCC66;
STICKLINE(VAR2F AND COUNT(VAR2F,30)=1,30,50,5,0),COLORFFCC66;
VAR3D:=IF(VAR3=200 AND VAR2=150,-15,IF(VAR3=-200 AND VAR2=-150,15,VAR5));
VAR3E:=VAR3D0 AND VAR8100;
VAR3F:=VAR1A48 AND VAR3D0 AND VAR8100;
DRAWTEXT(VAR790 AND VAR2+VAR3=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,'短线反弹3'),COLORYELLOW;
STICKLINE(VAR790 AND VAR2+VAR3=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,0,5,0),COLORYELLOW;
DRAWTEXT(VAR3E AND COUNT(VAR3E,30)=1,20,'短线高点3'),COLORFF2266;
STICKLINE(VAR3E AND COUNT(VAR3E,30)=1,20,0,5,0),COLORFF2266;
强势线:60,COLORYELLOW;
VAR9:=IF(VAR790,40,30);
分界线:30,COLORFFFFFF;
STICKLINE(FILTER(VAR1B=45,5),-20,-10,5,0),COLOR077BF6;
DRAWTEXT(FILTER(VAR1B=45,5),0,'强支撑'),COLOR077BF6;
STICKLINE(FILTER(VAR1B=75,5),75,60,5,0),COLORRED;
DRAWTEXT(FILTER(VAR1B=75,5),75,'高压'),COLORRED;
STICKLINE(PJX=-19,-25,-20,12,0),COLORRED;
STICKLINE(PJX=70,85,80,12,0),COLORYELLOW;
DRAWTEXT(FILTER(VAR50,5),30,'★'),COLORYELLOW;{卖点}
DRAWTEXT(FILTER(VAR950,5),30,'☆'),COLORYELLOW;{买点}
多空预警:0,COLOR0726CA;
{PARTLINE(VAR9=40 AND VAR2=0 AND VAR3=0,多空预警,COLOR0000B5);
PARTLINE(VAR9=40 AND VAR2=0 AND VAR3=0,多空预警,COLOR077BF6); }
IF(VAR9=40 AND VAR2=0 AND VAR3=0,多空预警,DRAWNULL),COLORFFFF00,LINETHICK3;
IF(VAR9=40 AND VAR2=0 AND VAR3=0,多空预警,DRAWNULL),COLOR077BF6,LINETHICK3;
{短强:MA((PJX-REF(PJX,1)),3),COLORWHITE;};
指标用法:
1.黄色是强势线,白色是分界线,红色是多空预警线
2.主红色柱是短线高点,说明这里压力比较大,突破不了要减仓
3.同时出现多个信号12.3要注意
祝君好运!
大家的分享和宣传是我最大的福音