主图
结合各种指标综合而成的波段操作的全自动生成的多空平衡点主图,此图对于股票的股性以及股票是否属于强势个股都能很好的体现。
很多股票,大部分在第一阻力位就受阻回落了,回落到平衡点或者第一支撑位能获得支持反弹或者反正。这都是波段的高抛低吸。比较强势的股票能突破倒第2阻力,市场比较热的股票能图片到第3阻力,两市极少的股票也能突破第三阻力之后继续大涨,这就是做最强股票的基础。
个人应用后觉得对于发现主力运作股票的轨迹有很大帮助
源码
DH:=CONST(REF(HHV(H,周期),1));
DL:=CONST(REF(LLV(L,周期),1));
DC:=(DH+DL)/2;
DK:CONST((DH+DL+DC)/3);
多空平衡点:CONST(DK),DOTLINE,COLORMAGENTA;
第一支撑:CONST(2*DK-DH),DOTLINE,COLORGREEN;
第二支撑:CONST(DK-(DH-DL)),DOTLINE,COLORGREEN;
第三支撑:CONST(DL-(DH-DK)*2),DOTLINE,COLORGREEN;
第一阻力:CONST(DK*2-DL),DOTLINE,COLORRED;
第二阻力:CONST(DK+(DH-DL)),DOTLINE,COLORRED;
第三阻力:CONST((DK*2-DL)+(DH-DL)),DOTLINE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=文字位置,多空平衡点,STRCAT('平衡点',CON2STR(多空平衡点,2))),DRAWABOVE,COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=文字位置,第一支撑,STRCAT('第1支撑',CON2STR(第一支撑,2))),DRAWABOVE,COLORLIBLUE;
DRAWTEXT(CURRBARSCOUNT=文字位置,第二支撑,STRCAT('第2支撑',CON2STR(第二支撑,2))),DRAWABOVE,COLORLIBLUE;
DRAWTEXT(CURRBARSCOUNT=文字位置,第三支撑,STRCAT('第3支撑',CON2STR(第三支撑,2))),DRAWABOVE,COLORLIBLUE;
DRAWTEXT(CURRBARSCOUNT=文字位置,第一阻力,STRCAT('第1阻力',CON2STR(第一阻力,2))),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=文字位置,第二阻力,STRCAT('第2阻力',CON2STR(第二阻力,2))),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=文字位置,第三阻力,STRCAT('第3阻力',CON2STR(第三阻力,2))),DRAWABOVE,COLORRED;
多空日周期平衡副图
(注:此指标因引用了周、月指标参数,当周末月末还未过去的日期内可能发生信号漂移现象)
{KDJ日金}
日K:="KDJ.K#DAY"(9,3,3);2,COLOR000000;
日D:="KDJ.D#DAY"(9,3,3);
DRAWICON(日K>日D,1,1);
DRAWICON(日K<日D,1,2);
{DRAWTEXT(ISLASTBAR=1,1,'日K'),COLORFFFFFF;}
{MACD日金}
日DIF:="MACD.DIF#DAY"(12,26,9);
日DEA:="MACD.DEA#DAY"(12,26,9);
DRAWICON(日DIF>日DEA,1.1,1);
DRAWICON(日DIF<日DEA,1.1,2);
{DRAWTEXT(ISLASTBAR=1,1.1,'日M'),COLORFFFFFF;}
{RSI日}
日RSI:="RSI.RSI1#DAY"(9);
DRAWICON(日RSI>50,1.2,1);
DRAWICON(日RSI<50,1.2,2);
{DRAWTEXT(ISLASTBAR=1,1.2,'日R'),COLORFFFFFF;}
{KDJ周金}
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
DRAWICON(周K>周D,1.3,1);
DRAWICON(周K<周D,1.3,2);
{DRAWTEXT(ISLASTBAR=1,1.3,'周K'),COLORFFFFFF;}
{MACD周金}
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
DRAWICON(周DIF>周DEA,1.4,1);
DRAWICON(周DIF<周DEA,1.4,2);
{DRAWTEXT(ISLASTBAR=1,1.4,'周M'),COLORFFFFFF;}
{RSI周}
周RSI:="RSI.RSI1#WEEK"(9);
DRAWICON(周RSI>50,1.5,1);
DRAWICON(周RSI<50,1.5,2);
{DRAWTEXT(ISLASTBAR=1,1.5,'周R'),COLORFFFFFF;}
{KDJ月金}
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
DRAWICON(月K>月D,1.6,1);
DRAWICON(月K<月D,1.6,2);
{DRAWTEXT(ISLASTBAR=1,1.6,'月K'),COLORFFFFFF;}
{MACD月金}
月DIF:="MACD.DIF#MONTH"(12,26,9);
月DEA:="MACD.DEA#MONTH"(12,26,9);
DRAWICON(月DIF>月DEA,1.7,1);
DRAWICON(月DIF<月DEA,1.7,2);
{DRAWTEXT(ISLASTBAR=1,1.7,'月M'),COLORFFFFFF;}
{RSI月}
月RSI:="RSI.RSI1#MONTH"(9);
DRAWICON(月RSI>50,1.8,1);
DRAWICON(月RSI<50,1.8,2);
{DRAWTEXT(ISLASTBAR=1,1.8,'月R'),COLORFFFFFF;}
{前一天涨停板??若出现全部金叉以后
第二天 开盘前挂单买进 }
选股:=IF(月RSI>50 AND 月DIF>月DEA AND 月K>月D AND 日RSI>50 AND 日DIF>日DEA AND 日K>日D AND 周RSI>50 AND 周DIF>周DEA AND 周K>周D,1,0);
STICKLINE(选股=1 ,1,1.88,1.5,1 ),COLORRED;
XG:IF(选股=1,0.8,0)COLORRED;
低买:IF((CROSS(XG,0.01)),1,0),COLOR00FFFF,LINETHICK3;
多空力度强弱副图
运用“三维视角分析趋势”,走势强弱是判断趋势好坏的大方向,人气强弱是判断趋势好坏的量变条件,而力度强弱则是判断趋势好坏的质变条件,核心就是“三维视角”各有独立的分析视角、又有彼此的内在联系。这一点,同学们要细心体会,这样才能更好地通过“三维视角”看出个股趋势。
DRAWGBK(C>0, RGB(310,108,108),RGB(88,30,0),0,'',0);
NOTEXT顶部标线:120,COLORBROWN;
NOTEXT底部标线:-80,COLORBROWN;
{力度平衡信号}
力度平衡点:40,COLORBROWN,LINETHICK2;
LDA1:=FORCAST(FORCAST(SMA(MAX(CLOSE-REF(CLOSE,1),0),9,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),9,1)*100,3),18);
LDA2:=LDA1>REF(LDA1,1) AND LDA1>40;
LDA3:=LDA1<=REF(LDA1,1) AND LDA1>40;
LDA4:=LDA1>REF(LDA1,1) AND LDA1<=40;
LDA5:=LDA1<=REF(LDA1,1) AND LDA1<=40;
STICKLINE(LDA2,40,LDA1,3,0),COLORFF00FF;
STICKLINE(LDA3,40,LDA1,3,0),COLORBROWN;
STICKLINE(LDA4,40,LDA1,3,0),COLORRED;
STICKLINE(LDA5,40,LDA1,3,0),COLORWHITE;
趋势平衡线:MA(SMA(MAX(CLOSE-REF(CLOSE,1),0),9,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),9,1)*100,26),COLORBLUE,LINETHICK2;
{力度强弱信号}
力度强弱:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) * 100);
STICKLINE(力度强弱>=20,8,10,3,0),COLORFF00FF;
STICKLINE(力度强弱>=0 AND 力度强弱<20 AND 力度强弱>6,8,10,3,0),COLORRED;
STICKLINE(力度强弱>=0 AND 力度强弱<20 AND 力度强弱<=6,8,10,3,1),COLORDDDDDD;
STICKLINE(力度强弱<=0 AND 力度强弱>-20,8,10,3,1),COLORDDDDDD;
STICKLINE(力度强弱<=-20,8,10,3,0),COLORDDDDDD;
{力度波动信号}
BD1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
BD2:=(20*BD1+19*REF(BD1,1)+18*REF(BD1,2)+17*REF(BD1,3)+16*REF(BD1,4)+15*REF(BD1,5)+
14*REF(BD1,6)+13*REF(BD1,7)+12*REF(BD1,8)+11*REF(BD1,9)+10*REF(BD1,10)+9*REF(BD1,11)+
8*REF(BD1,12)+7*REF(BD1,13)+6*REF(BD1,14)+5*REF(BD1,15)+4*REF(BD1,16)+3*REF(BD1,17)+
2*REF(BD1,18)+REF(BD1,20))/210;
BD3:=MA(BD2,6);
BD4:=V*100/CAPITAL;
BD5:=MA(BD4,5);
BD6:=MA(BD4,55);
BD7:=(BD5-BD6);
BD8:=(C-BD2);
BD9:=BD7+BD8;
BD10:=EMA(V,5);
BD11:=EMA(V,50);
OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
BD12:=EMA(OBV,5);
BD13:=EMA(OBV,50);
BD14:=(BD10-BD11)*0.00001;
BD15:=(BD12-BD13)*0.000001;
BD16:=BD14+BD15;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
BD17:=MA(DKX,6);
BD18:=(DKX-BD17)*1.2;
BD19:=(C*2+H+L)/4*10;
BD20:=EMA(BD19,6)-EMA(BD19,55);
BD21:=EMA(BD20,6);
BD22:=(BD20-BD21)*0.06;
BD23:=BD18+BD22;
BD24:=MA(C,5)>REF(MA(C,5),1);
BD25:=EMA(C,12)>REF(EMA(C,12),1);
BD26:=MA(C,20)>REF(MA(C,20),1);
BD27:=MA(C,30)>REF(MA(C,30),1);
BD28:=MA(C,60)>REF(MA(C,60),1);
BD29:=MA(C,120)>REF(MA(C,120),1);
BD30:=MA(C,250)>REF(MA(C,250),1);
BD31:=BD25 + BD26 + BD27 + BD28;
BD32:=C>BD2 AND BD9>0 AND BD16>0 AND BD23>0;
BD33:=C<=BD2 OR BD9<=0 OR BD16<=0 OR BD23<=0;
力度波动A:=BD31=4 AND BD32;
力度波动B:=BD31=3 AND BD32;
力度波动C:=BD31<3 OR BD33;
STICKLINE(力度波动A,-2,0,3,0),COLORFF00FF;
STICKLINE(力度波动B,-2,0,3,0),COLORRED;
STICKLINE(力度波动C,-2,0,3,1),COLORDDDDDD;
BD34:=C>MA(C,3) AND BD24 AND BD25 AND BD26 AND BD27 AND BD28;
一帆风顺:BD34 AND (COUNT(BD34,5)=2) AND REF(NOT(BD34),1),COLORGREEN,NODRAW;
DRAWTEXT(一帆风顺,38,'↖★'),COLORGREEN;
STICKLINE(一帆风顺,40,LDA1,2.06,0),COLORGREEN;
BD35:=C>MA(C,5) AND BD24 AND BD25 AND BD26 AND BD27 AND BD28 AND BD29;
BD36:=COUNT(BD35,5)=2 OR COUNT(BD35,5)=3 OR COUNT(BD35,5)=4 OR COUNT(BD35,9)=2;
二龙戏珠:BD35 AND BD36 AND REF(BD35=0,1) AND BD32,COLORYELLOW,NODRAW;
DRAWTEXT(二龙戏珠,35,'↖★★'),COLORYELLOW;
STICKLINE(二龙戏珠,40,LDA1,1.36,0),COLORYELLOW;
三阳开泰:BD32 AND (REF(BD32=0,1) OR REF(BD32=1,1)) AND BD35 AND REF(BD35=0,1),COLORRED,NODRAW;
DRAWTEXT(三阳开泰,32,'↖★★★'),COLORRED;
STICKLINE(三阳开泰,40,LDA1,0.56,0),COLORRED;
{力度临界信号}
破界线1:=EMA(C,21)*4;
封印1:=EMA(HY_INDEXC,144)/MA(C,144);
临界线:=EMA(HY_INDEXC/封印1,21)*4;
STICKLINE(破界线1>临界线,-12,-10,3,0),COLORRED;
STICKLINE(破界线1<=临界线,-12,-10,3,1),COLORDDDDDD;
破除临界点:=CROSS(破界线1,临界线) AND 破界线1>REF(破界线1,1);
DRAWTEXT(破除临界点,-15,'↖越过临界');
{力度结界信号}
破界线2:=EMA(C,21)*4;
封印2:=EMA(INDEXC,144)/MA(C,144);
结界线:=EMA(INDEXC/封印2,21)*4;
STICKLINE(破界线2>结界线,-22,-20,3,0),COLORRED;
STICKLINE(破界线2<=结界线,-22,-20,3,1),COLORDDDDDD;
破除结界点:=CROSS(破界线2,结界线) AND 破界线2>REF(破界线2,1);
DRAWTEXT(破除结界点,-25,'↖冲破结界');
{信号名称标注}
DRAWTEXT(ISLASTBAR,40,'★力度平衡点★')COLORGREEN;
DRAWTEXT(ISLASTBAR,10,'★力度强弱★')COLORGREEN;
DRAWTEXT(ISLASTBAR,0,'★力度波动★')COLORGREEN;
DRAWTEXT(ISLASTBAR,-10,'★力度临界★')COLORGREEN;
DRAWTEXT(ISLASTBAR,-20,'★力度结界★')COLORGREEN;
{用法标注}
DRAWTEXT_FIX(ISLASTBAR,0,0.01,0,'★模型设计思路★ 当股价上涨的时候,其内在影响因素很多,
其中力度强弱就是重要因素之一。基于此,准确判定股价上涨力度的强弱,就是判定股价上涨是否
具备持续性的关键环节'),COLORB2FFAA;
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,'★力度基本判定★ 1.“4柱+1点+1线”:
洋红柱+棕色柱+白色柱+红色柱+力度平衡点+趋势平衡线'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.09,0,'2.洋红柱:代表力度持续增大;棕色柱:代表力度逐渐减小;
白色柱:代表力度明显弱势;红色柱:代表力度开始增大'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.13,0,'3.力度平衡点:代表力度变强、变弱的分界点,
在平衡点之上的力度柱,需要重点关注'),COLORFFD1C3;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.17,0,'4.趋势平衡线:代表力度强弱的重要分界线,
在平衡线之上的力度柱,需要进一步重点关注,这是力度增强的象征'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.21,0,'5.力度柱在趋势平衡线下方,下跌概率大,宜观望空仓;
趋势平衡线在40之下,加速下跌或者下跌末期的概率大,宜等待转势'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.72,0,'★力度辅助判定★ 1.分为四个维度:力度强弱、力度波动、
力度临界、力度结界'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.76,0,'2.第一维度~力度强弱:顾名思义,股价向上拉升,
必须是有力度的上涨,才能形成上涨趋势。因此,这个维度是判定股价上涨力度是否增强的要素之一。
红色代表上涨力度由弱转强,洋红色代表上涨力度明显增强'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.80,0,'3.第二维度~力度波动:顾名思义,就是上涨力度具备了
很大波动空间,才能推动股价不断向上,这也是股价能否上涨的重要特征之一,更是影响股价上涨的
要素之一。洋红色代表力度波动开始加大'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.84,0,'4.第三维度~力度临界:是从逆向思维的角度考虑,当出现
股价横盘期间该跌不跌、下跌末期刻意无量下跌等情况,意味着股价内在走势发生改变,
突破弱的极限转为强的状态。红色为信号,伴随越过临界信号更好'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.078,0.88,0,'5.第四维度~力度结界:是从抽向思维的角度考虑,将市场
的无形力量看作无形压力,如同束缚股价的结界一样。当股价走势悄然冲破结界之时,意味着股价
内在走势发生质变。红色为信号,伴随冲破结界信号更好'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0.92,0,'★力度判定步骤★ 1.力度柱位于40之上;2.力度柱超过趋势平衡线;
3.“四个维度”全部红色,2个红色+2个洋红更好;4.伴随“冲破结界+越过临界”信号更好;
5.出现“打破力度平衡”信号;6.优选“力度结界”红色的个股进行关注'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.788,0.01,0,'★判断打破力度平衡的3种信号★'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.788,0.05,0,'1.一帆风顺:绿色力度柱 【等级】★ 力度突增'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.788,0.09,0,'2.二龙戏珠:黄色力度柱 【等级】★★ 力度大增'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.788,0.13,0,'3.三阳开泰:红色力度柱 【等级】★★★力度巨增'),COLORWHITE;
多空平衡通道副图指标
看圈中筹码带宽的变化,筹码上限虽然没变化,但筹码下限在下行,筹码带宽的形态是由收敛转向变宽,上破的效果开始出现,细节决定成败,仔细观察就会明白指标的用法。
X_1:=COST(10);
LA:(CLOSE-X_1)/X_1*100,COLORWHITE;
X_2:=COUNT(LA<(-2.05),3);
X_3:=IF(X_2>=3,0,DRAWNULL);
X_4:=IF(COUNT(X_3=0,6)>5,(-4),0);
STICKLINE(COUNT(X_3=0,6)>5,(-4),0,3,0),COLORFF0077;
STICKLINE(COUNT(X_3=0,6)>5,(-4),0,2.2,0),COLORFF0099;
STICKLINE(COUNT(X_3=0,6)>5,(-4),0,1.5,0),COLORFF00BB;
STICKLINE(COUNT(X_3=0,6)>5,(-4),0,0.5,0),COLORCC00CC;
X_5:=COST(90);
HB:(CLOSE-X_5)/X_5*100,COLORYELLOW;
X_6:=COUNT(HB>2.05,3);
X_7:=IF(X_6>=3,4,DRAWNULL);
X_8:=IF(COUNT(X_7=4,6)>5,4,0);
STICKLINE(COUNT(X_7=4,6)>5,4,0,3,0),COLORFF7700;
STICKLINE(COUNT(X_7=4,6)>5,4,0,2.2,0),COLORFF9900;
STICKLINE(COUNT(X_7=4,6)>5,4,0,1.5,0),COLORFFBB00;
STICKLINE(COUNT(X_7=4,6)>5,4,0,0.5,0),COLORCYAN;
X_9:=CLOSE;
ZB:(COST(X_9)-COST(99.900002))/COST(99.900002)*100,COLORMAGENTA;
DB:(COST(X_9)-COST(0.01))/COST(0.01)*100,COLORCYAN;