通达信洗盘拉升和公式
VAR1A:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2A:=SMA(ABS(LOW-VAR1A),13,1)/SMA(MAX(LOW-VAR1A,0),10,1);
VAR3A:=EMA(VAR2A,34);
VAR4A:=LLV(LOW,5);
VAR5A:=EMA(IF(LOW<=VAR4A,VAR3A,0),24);
洗盘:IF(VAR5A>REF(VAR5A,1),VAR5A,0),COLORGREEN;
STICKLINE(VAR5A>REF(VAR5A,1),0,VAR5A,2,0 ),COLORGREEN;
主力拉升:IF(VAR5A<REF(VAR5A,1),VAR5A,0),COLORRED,NODRAW;
STICKLINE(VAR5A<REF(VAR5A,1),0,VAR5A,2,0),COLORRED;
XP:=REF(洗盘,1);
LS:=主力拉升;
XPLS:=(XP AND LS);
AAA:=BARSLAST (VAR5A>REF(VAR5A,1))=1 ;
STICKLINE (AAA=1,0,50,2,0),COLORYELLOW;
DRAWTEXT(XPLS,主力拉升,'洗盘'),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1A赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR2A赋值:SMA(最低价-VAR1A的绝对值,13,1)/SMA(最低价-VAR1A和0较大值,10,1)
VAR3A赋值:VAR2A的34日指数移动平均
VAR4A赋值:5日内最低价最低值
如果最低价<=VAR4A返回VAR3A否则返回0
输出洗盘:IF(VAR5A>1日前的VAR5A,VAR5A,0),画绿色
STICKLINE(VAR5A>1日前的VAR5A,0,VAR5A,2,0 ),画绿色
输出主力拉升:IF(VAR5A<1日前的VAR5A,VAR5A,0),画红色,NODRAW
STICKLINE(VAR5A<1日前的VAR5A,0,VAR5A,2,0),画红色
XP赋值:1日前的洗盘
LS赋值:主力拉升
XPLS赋值:(XP AND LS)
AAA赋值:BARSLAST (VAR5A>1日前的VAR5A)=1
STICKLINE (AAA=1,0,50,2,0),画黄色
当满足条件XPLS时,在主力拉升和'洗盘'位置书写文字