散户找底看盘通达信公式和谐源码分享
VAR1:=30;
VAR2:=15;
VAR3:=HHV(HIGH,VAR1)=HIGH;
VAR4:=BARSLAST(VAR3);
VAR5:=LLV(LOW,VAR2)=LOW;
VAR6:=BARSLAST(VAR5);
VAR7:=HHV(HIGH,VAR1)=HIGH;
VAR8:=BARSLAST(VAR7);
VAR9:=BARSLAST(VAR5);
VAR8=0;
HIGH;
VAR10:=STICKLINE(VAR9=0 AND VAR5 AND FILTERX(VAR5,VAR8+1),REF(LOW,VAR9),REF(HIGH,VAR8),0,0);
STICKLINE(VAR10>0,0,(-10),0,0),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(VAR10,(-8),450),COLORYELLOW;
VAR11:=REF(LOW,1);
VAR12:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),13,1)*100;
VAR13:=EMA(IF(CLOSE*1.2,VAR12*13,VAR12/13),13);
VAR14:=LLV(LOW,34);
VAR15:=HHV(VAR13,34);
VAR16:=IF(LLV(LOW,56),1,0);
VAR17:=EMA(IF(LOW<=VAR14,(VAR13+VAR15*2)/2,0),3)/618*VAR16;
VAR18:=VAR17>REF(VAR17,1);
VAR19:=REF(LLV(LOW,100),3);
VAR20:=REFDATE(VAR19,DATE);
VAR21:=LOW=VAR20;
VAR22:=VAR18 AND VAR21;
VAR23:=VAR22>REF(VAR22,1);
QIDONG:(VAR23>REF(VAR23,1))*50,COLORLIRED,LINETHICK2;
趋势: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),COLORYELLOW;
VAR24:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR25:=SMA(ABS(LOW-VAR24),13,1)/SMA(MAX(LOW-VAR24,0),10,1);
VAR26:=EMA(VAR25,10);
VAR27:=LLV(LOW,33);
VAR28:=EMA(IF(LOW<=VAR27,VAR26,0),3)/1;
VAR29:=SMA(ABS(HIGH-VAR24),13,1)/SMA(MIN(HIGH-VAR24,0),10,1);
VAR30:=EMA(VAR29,10);
VAR31:=HHV(HIGH,33);
VAR32:=EMA(IF(HIGH>=VAR31,VAR30,0),3)/3;
主力拉高:IF(VAR32<REF(VAR32,1),VAR32/1,0),NODRAW,COLORYELLOW;
STICKLINE(VAR32<REF(VAR32,1),0,VAR32/2,2,0),COLORYELLOW;
出货:IF(VAR32>REF(VAR32,1),VAR32,0),NODRAW,COLORCYAN;
STICKLINE(VAR32>REF(VAR32,1),0,VAR32/2,2,0),COLORCYAN;
90,DOTLINE,COLORLIRED;
100,DOTLINE,COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:30
VAR2赋值:15
VAR3赋值:VAR1日内最高价最高值=最高价
VAR4赋值:上次VAR3距今天数
VAR5赋值:VAR2日内最低价最低值=最低价
VAR6赋值:上次VAR5距今天数
VAR7赋值:VAR1日内最高价最高值=最高价
VAR8赋值:上次VAR7距今天数
VAR9赋值:上次VAR5距今天数
VAR8=0
最高价
VAR10:=STICKLINE(VAR9=0 AND VAR5 AND FILTERX(VAR5,VAR8+1),VAR9日前的最低价,VAR8日前的最高价,0,0)
STICKLINE(VAR10>0,0,(-10),0,0),COLORLIMAGENTA, 线宽为2
DRAWTEXT(VAR10,(-8),450),画黄色
VAR11:=1日前的最低价
VAR12:=SMA(最低价-VAR11的绝对值,13,1)/SMA(最低价-VAR11和0较大值,13,1)*100
如果收盘价*1.2返回VAR12*13否则返回VAR12/13
VAR14:=34日内最低价最低值
VAR15:=34日内VAR13最高值
VAR16:=IF(56日内最低价最低值,1,0)
VAR17:=EMA(IF(最低价<=VAR14,(VAR13+VAR15*2)/2,0),3)/618*VAR16
VAR18:=VAR17>1日前的VAR17
VAR19:=REF(100日内最低价最低值,3)
VAR20:=REFDATE(VAR19,DATE)
VAR21:=最低价=VAR20
VAR22:=VAR18 AND VAR21
VAR23:=VAR22>1日前的VAR22
输出QIDONG:(VAR23>1日前的VAR23)*50,COLORLIRED, 线宽为2
输出趋势:3*SMA((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1)-2*SMA(SMA((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1),3,1),画黄色
VAR24:=REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR25:=SMA(最低价-VAR24的绝对值,13,1)/SMA(最低价-VAR24和0较大值,10,1)
VAR26:=VAR25的10日指数移动平均
VAR27:=33日内最低价最低值
如果最低价<=VAR27返回VAR26否则返回0
VAR29:=SMA(最高价-VAR24的绝对值,13,1)/SMA(最高价-VAR24和0的较小值,10,1)
VAR30:=VAR29的10日指数移动平均
VAR31:=33日内最高价最高值
如果最高价>=VAR31返回VAR30否则返回0
输出主力拉高:IF(VAR32<1日前的VAR32,VAR32/1,0),NODRAW,画黄色
STICKLINE(VAR32<1日前的VAR32,0,VAR32/2,2,0),画黄色
输出出货:IF(VAR32>1日前的VAR32,VAR32,0),NODRAW,画青色
STICKLINE(VAR32>1日前的VAR32,0,VAR32/2,2,0),画青色
90,DOTLINE,COLORLIRED
100,DOTLINE,画绿色