{ 这是一个副图指标,也是选股策略,选出的股票看盘时需要注意一下几点:
1. 箱体内有没有明显的产外资金进场迹象
2. 信号出现当天的或附近是不是出货盘口
3. 5/10/30/60均线是否已经整理好(股价获得支撑后,短期均线上穿中期均线的属于混乱的多头发散)
4.尽量寻找回踩的买点(比如外盘接近5日均线的买点,防守到买入当天的5日均线价格),不要追高
以上都是策略中没有过滤掉的问题点}
DAY_NUM:=60;{满足横盘天数}{3个月内}
BREACH_NUM:=100;{突破箱体上沿到今天天数上限,时间太长的可能已经涨起来就没有价值}
AMPLITUDE_RANGE:=30;{横盘振幅限制}
INCRASEE_RANGE:=100;{突破后涨幅限制}
攻击线:=MA(C,5);
操盘线:=MA(C,10);
生命线:=MA(C,30);
决策线:=MA(C,60);
建仓线:=MA(C,250);
AMPLITUDE:=(HHV(H,DAY_NUM)-LLV(L,DAY_NUM))/LLV(L,DAY_NUM)<=(AMPLITUDE_RANGE/100);{横盘:持续 DAY_NUM 天振幅小于 AMPLITUDE_RANGE}
BREACH_DAYS:=BARSLAST(AMPLITUDE);{满足横盘条件的时间节点到今天的天数}
UPYAN:=REF(HHV(H,DAY_NUM),BREACH_DAYS);{箱体上沿}
BREACH:=BREACH_DAYS<=BREACH_NUM AND (C>UPYAN OR REF(C,1)>UPYAN);{向上突破}
{上帝之手拐头向上 & 股价运行在建仓线上方}
ABOVE250:=决策线>REF(决策线,3) AND REF(决策线,3)>REF(决策线,6) AND (L>建仓线 OR REF(L,1)>建仓线);
{股价不低于箱体上沿、生命线、决策线}
PRICE:= C>UPYAN AND REF(C,1)>生命线 AND REF(C,1)>决策线 AND (EVERY(L>建仓线,4) OR (C>建仓线 AND C>攻击线));
{突破以来的涨幅限制}
INCRASEE:=(REF(C,BREACH_DAYS)-REF(C,1))/REF(C,BREACH_DAYS)<=INCRASEE_RANGE/100;
{中短期均线多头发散}
BUL_MA:=EVERY(攻击线>操盘线 AND 操盘线>生命线 AND 生命线>决策线,10);
{箱体内中期均线多头排列, 并且至今没有死叉,突破后股价一直在生命线以上}
BUL_MID:=REF(生命线>决策线,BREACH_DAYS) AND 生命线>决策线;
{有明显的场外资金进场的迹象}
{回踩建仓线}
{上市以来总交易日数大于设定的横盘天数}
FULL_DAYS:=BARSCOUNT(C)>DAY_NUM;
{输出}
金牛抬头:FULL_DAYS AND BUL_MID AND ABOVE250 AND PRICE AND BUL_MA AND BREACH, RGBX0000FF;
满足横盘时间:IF(BARSLAST(AMPLITUDE)=0,1.1,1.2), RGBXFF0000;
突破箱体:IF(BARSLAST(BREACH-1)=1,0.3,0), RGBXFF0000;
大均线:IF(ABOVE250,0.2,0), RGBX00CF00;
中期均线:IF(BUL_MID,0.1,0), RGBX00FF00;
TOP:1.2, RGBX000000;
{07-行业、概念板块}
DRAWTEXT_FIX(ISLASTBAR,0.10,0.01,0,STRCAT('地区:',DYBLOCK)),RGBX000000;
DRAWTEXT_FIX(ISLASTBAR,0.10,0.06,0,STRCAT('行业:',HYBLOCK)),RGBX000000;
DRAWTEXT_FIX(ISLASTBAR,0.10,0.11,0,STRCAT('概念:',GNBLOCK)),RGBX000000;