此公式通过换手率的精确计算,将市场交易活跃度细分为多个等级,从地量到巨量,每个等级都用不同的颜色和STICKLINE在图表上进行直观展示。换手率的这种多级划分,帮助交易者快速识别市场情绪和潜在的资金流向,为交易决策提供重要参考。
公式源码如下:
换手率:vol/CAPITAL*100,NODRAW,COLORFFFF00;
实际量:VOL/10000,NODRAW;
量:V/CONST(HHV(V,90))*100,LINETHICK0,VOLSTICK;
顶:82,COLORFFFF00,LINETHICK1;
顶A:92,COLORFF9500,LINETHICK7;
地量0_1:换手率<1,COLORFFFFFF;
STICKLINE(C=C AND 换手率<1,0,量+10,2.7,0 ),COLORFFFFFF;
低靡1_2:C=C AND 换手率>=1 AND 换手率<2,COLORFFFF00;
STICKLINE(C=C AND 换手率>=1 AND 换手率<2,0,量+10,2.7,0 ),COLORFFFF00;
温和2_3:C=C AND 换手率>=2 AND 换手率<3,COLOR208FFF;
STICKLINE(C=C AND 换手率>=2 AND 换手率<3,0,量+10,2.7,0 ),COLOR208FFF;
活跃3_5:C=C AND 换手率>=3 AND 换手率<5,COLOR00FFFF;
STICKLINE(C=C AND 换手率>=3 AND 换手率<5,0,量+10,2.7,0 ),COLOR00FFFF;
带量5_8:C=C AND 换手率>=5 AND 换手率<8,COLORFF00FF;
STICKLINE(C=C AND 换手率>=5 AND 换手率<8,0,量+10,2.7,0 ),COLORFF00FF;
放量8_15:C=C AND 换手率>=8 AND 换手率<15,COLOR00FF00;
STICKLINE(C=C AND 换手率>=8 AND 换手率<15,0,量+10,2.7,0),COLOR00FF00;
巨量15_25:C=C AND 换手率>=15 AND 换手率<25,COLORFF2900;
STICKLINE(C=C AND 换手率>=15 AND 换手率<25,0,量+10,2.7,0 ),COLORFF0000;
怪异:C=C AND 换手率>=25,COLORFF6600;
STICKLINE(C=C AND 换手率>=25,0,量+10,2.7,0 ),COLORFF6600;
低:18,COLORFF0000,LINETHICK2;
DRAWTEXT(ISLASTBAR,顶,' 顶'),COLORFFFF00;
DRAWTEXT(ISLASTBAR,低,' 低'),COLOR208FFF;
MA5:MA(量,5),COLORFFFFFF;
MA13:MA(量,13),COLOR208FFF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:=3*K-2*D,COLORFFAAFF,LINETHICK2;
DRAWBAND(K,RGB(139,10,10),D,RGB(0,100,0));
TJ1:=(C-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
TJ2:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
TJ3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
TJF:=SMA(TJ1,13,8);
TJF2:(EMA(TJ3,3)),COLORFFAAFF,LINETHICK2;
TJF3:=TJ2+100;
106,COLORFFFFFF;
STICKLINE(TJF3>90,106,100,1.5,0) ,COLORFF3900;
STICKLINE(TJF2>80,106,103,1.5,0) ,COLOR00FFFF;
STICKLINE(TJF>86,106,104,1.5,0) ,COLOR0000FF;
DRAWTEXT(ISLASTBAR AND TJF2>REF(TJF2,1),TJF2,'▲'),COLORFF00FF;
DRAWTEXT(ISLASTBAR AND TJF2<REF(TJF2,1),TJF2,'▼'),COLOR00FF00;
公式不仅关注换手率,还将实际成交量与历史极值进行比较,通过量价关系和移动平均线(MA5和MA13)的结合,进一步分析市场的稳定性和趋势持续性。此外,通过RSV和KDJ指标的引入,公式提供了市场超买超卖状态的即时反馈,增强了交易信号的准确性。
公式通过TJF、TJF2和TJF3等指标,结合DRAWTEXT和DRAWBAND函数,将市场的异常波动和趋势转折点以不同颜色的线条和文本形式在图表上突出显示。这种综合的可视化方法,使交易者能够在同一图表上获得丰富的交易信息,包括市场活跃度、成交量变化、超买超卖状态以及趋势转折点,从而在复杂多变的市场中做出更加明智的交易决策。