洗盘回调介入通达信公式 主图 源码附图
T11:=CONST(LLVBARS(LOW,10));
T11HIGH:=CONST(REF(HIGH,T11));
CC1:=CONST(CURRBARSCOUNT);
T22:=CONST(BARSLAST(CURRBARSCOUNT>CC1+T11 AND H>T11HIGH));
T22HIGH:=CONST(REF(HIGH,T22));
T33:=CONST(BARSLAST(CURRBARSCOUNT>CC1+T22 AND HIGH>T22HIGH));
T33HIGH:=CONST(REF(HIGH,T33));
{C>=T33HIGH AND REF(C,1)<T33HIGH AND DYNAINFO(17)>2;}
N:=10;
T1K:=CONST(LLVBARS(LOW,N));
T1HIGH:=CONST(REF(HIGH,T1K));
CC:=CONST(CURRBARSCOUNT);
T2K:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1K)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2K));
T3K:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2K)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3K));
洗盘杀入线:DRAWLINE(CURRBARSCOUNT=10+1,T3HIGH,ISLASTBAR, T3HIGH,1),LINETHICK1,COLORLIRED;
DRAWTEXT(ISLASTBAR, T3HIGH,'杀入线')LINETHICK1,COLORLIRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
回调:MA(CLOSE,10000);
买线:EMA(C,2),COLORRED;
卖线:EMA(SLOPE(C,21)*20+C,42),COLORGREEN;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF;
界: MA(CLOSE,27),LINETHICK1,COLOR00FFFF;
{STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLOR0000FF;}
{STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLORFF0000;}
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐点'),COLOR00FFFF;
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐点'),COLOR00FF00;
DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'回调!'),COLORFFFFFF;
BU:=CROSS(买线,卖线);{股票指标网}
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,CLOSE,OPEN,2.5,0),COLOR0000AA;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,2.5,0),COLORAAAA00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,1.5,0),COLOR00FFFF;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
T11赋值:CONST(LLVBARS(最低价,10))
T11最高价:=CONST(T11日前的最高价)
CC1赋值:CONST( 到最后交易的周期)
T22赋值:CONST(上次 到最后交易的周期>CC1+T11 AND H>T11最高价距今天数)
T22最高价:=CONST(T22日前的最高价)
T33赋值:CONST(上次 到最后交易的周期>CC1+T22 AND 最高价>T22最高价距今天数)
T33最高价:=CONST(T33日前的最高价)
{C>=T33最高价 AND 1日前的C2
}
N赋值:10
T1K赋值:CONST(LLVBARS(最低价,N))
T1HIGH赋值:CONST(T1K日前的最高价)
CC赋值:CONST( 到最后交易的周期)
T2K赋值:CONST(上次( 到最后交易的周期 >(CC+T1K距今天数) AND (最高价>T1HIGH)))
T2HIGH赋值:CONST(T2K日前的最高价)
T3K赋值:CONST(上次( 到最后交易的周期 >(CC+T2K距今天数) AND (最高价>T2HIGH)))
T3HIGH赋值:CONST(T3K日前的最高价)
输出洗盘杀入线:DRAWLINE( 到最后交易的周期=10+1,T3HIGH,ISLASTBAR, T3HIGH,1),LINETHICK1,COLORLIRED
当满足条件ISLASTBAR时,在 T3HIGH和'杀入线'位置书写文字
DRAWKLINE(最高价,开盘价,最低价,收盘价)
LC赋值:1日前的收盘价
RSI赋值:((SMA(MAX((收盘价 - LC),0),3,1) / SMA((收盘价 - LC的绝对值),3,1)) * 100)
FF赋值:收盘价的3日指数移动平均
MA15赋值:收盘价的21日指数移动平均
输出回调:收盘价的10000日简单移动平均
输出买线:C的2日指数移动平均,画红色
输出卖线:EMA(SLOPE(C,21)*20+C,42),画绿色
输出指导线: EMA((EMA(收盘价,4)+EMA(收盘价,6)+EMA(收盘价,12)+EMA(收盘价,24))/4,2),LINETHICK1,COLORFFFFFF
输出界: 收盘价的27日简单移动平均,LINETHICK1,COLOR00FFFF
{STICKLINE((MA15 > 1日前的MA15),MA15,MA15,9,6), 线宽为2,COLOR0000FF
}
{STICKLINE((MA15 < 1日前的MA15),MA15,MA15,9,6), 线宽为2,COLORFF0000
}
DRAWTEXT(FF上穿MA15,(最低价 * 0.99),'上拐点'),COLOR00FFFF
DRAWTEXT(MA15上穿FF,(最高价 * 1.02),'下拐点'),COLOR00FF00
DRAWTEXT(85上穿RSI,(最高价 * 1.02),'回调!'),COLORFFFFFF
BU赋值:买线上穿卖线
{股票指标网}
SEL赋值:卖线上穿买线
当满足条件买线>=卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线>=卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线<卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线<卖线时,在收盘价和开盘价之间画柱状线
STICKLINE(买线上穿卖线 OR 卖线上穿买线,开盘价,收盘价,1.5,0),COLOR00FFFF