买阴卖阳散户就该急跌买 急升卖通达信公式 副图 源码附图
VAR1:=MAX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
VAR2:=(HIGH+LOW)/2+MA(VAR1,2);
VAR3:=(HIGH+LOW)/2-MA(VAR1,2);
VAR4:=REF(VAR2,BArslAST(VAR2<=REF(VAR2,1)));
VAR5:=LLV(VAR2,2*1.5);
VAR6:=IF(VAR5!=REF(VAR5,1) AND VAR4<REF(VAR4,1),VAR4,IF(VAR4=VAR5,VAR4,VAR5));
VAR7:=BARSLAST(crOSS(0.5,VAR2=VAR6))+1;
VAR8:=CROSS(COUNT(CROSS(CLOSE,VAR6) OR CROSS(CLOSE,REF(VAR6,2)) AND VAR2>VAR6,VAR7),0.5);
VAR9:=BARSLAST(VAR8);
VAR10:=BARSLAST(CROSS(HHV(VAR3,VAR9+1),CLOSE));
VAR11:=MA(CLOSE,18);
VAR12:=CLOSE>=VAR11*1.004;
VAR13:=VAR11>=REF(VAR11,1);
VAR14:=VAR12 AND VAR13;
VAR15:=IF(CLOSE<OPEN,(CLOSE-LOW)/(HIGH-LOW),0);
X:CROSS(VAR9,VAR10) AND CLOSE/REF(LLV(LOW,3),1)<1 AND CLOSE<OPEN AND CLOSE!=LOW AND VAR14 AND VAR15>0.03 AND VAR15<0.3 AND (C-REF(C,1))/REF(C,1)*100<(0-4) AND CLOSE<expma(CLOSE,14) AND CLOSE>EXPMA(CLOSE,21) AND REF(DOWNNDAY(C,1),1);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:MAX(MAX(最高价-最低价,1日前的收盘价-最高价的绝对值),ABS(1日前的收盘价-最低价))
VAR2赋值:(最高价+最低价)/2+VAR1的2日简单移动平均
VAR3赋值:(最高价+最低价)/2-VAR1的2日简单移动平均
VAR4赋值:REF(VAR2,上次VAR2<=REF(VAR2,1距今天数))
VAR5赋值:2*1.5日内VAR2最低值
VAR6赋值:IF(VAR5!=1日前的VAR5 AND VAR4<1日前的VAR4,VAR4,IF(VAR4=VAR5,VAR4,VAR5))
VAR7赋值:上次0.5上穿VAR2=VAR6距今天数+1
VAR8赋值:CROSS(COUNT(CROSS(收盘价,VAR6) OR CROSS(收盘价,2日前的VAR6) AND VAR2>VAR6,VAR7),0.5)
VAR9赋值:上次VAR8距今天数
VAR10:=上次CROSS(VAR9+1日内VAR3最高值,收盘价距今天数)
VAR11:=收盘价的18日简单移动平均
VAR12:=收盘价>=VAR11*1.004
VAR13:=VAR11>=1日前的VAR11
VAR14:=VAR12 AND VAR13
VAR15:=IF(收盘价<开盘价,(收盘价-最低价)/(最高价-最低价),0)
输出X:VAR9上穿VAR10 AND 收盘价/REF(3日内最低价最低值,1)<1 AND 收盘价<开盘价 AND 收盘价!=最低价 AND VAR14 AND VAR15>0.03 AND VAR15<0.3 AND (C-REF(C,1))/REF(C,1)*100<(0-4) AND 收盘价<收盘价的14日指数移动平均 AND 收盘价>收盘价的21日指数移动平均 AND REF(DOWNNDAY(C,1),1)