通达信资金监控主副图指标 识别主力资金吸筹拉升行为 源码分享
本公式综合了多种市场分析和资金趋势的计算方法,可更全面地理解市场动态和资金流向。
从主力"吸筹建仓-买入拉升-减仓卖出"的过程,它结合了价格行为、成交量分析、以及特定的市场趋势识别技术,为大家提供了丰富的信息。
核心思路:
1、通过计算低价位的波动和趋势,识别主力资金可能的吸筹建仓行为。
2、利用不同颜色和粗细的柱子线信号,形象地展示资金的吸筹力度和强度。
3、通过对成交量的深入分析和处理,计算资金的流入流出情况,以及市场的买卖压力。
4、通过平滑移动平均等技术,追踪资金的长期和短期趋势,来把握市场的资金动向。
5、计算价格相对于其历史高低点的位置,以百分比形式展示,来了解价格的趋势和强度。
6、特殊市场信号:副图"红色柱+紫色柱"同时出现,出"钱袋子"信号,此信号可。以及包括资金底背离、资金顶背离等特殊市场信号,以及针对特定市场情况的柱线图和图标提示,为大家提供及时的买卖信号。
本公式适用于股票、期货、外汇等金融市场的分析和交易决策。可以利用该公式来识别市场的资金动向和趋势,结合其他分析工具和技术公式,制定更为科学的交易策略。
使用中注意:1、可根据自己的需求进行优化,但公式的计算涉及多个复杂的数学公式和算法,需要专业的编程和数据处理能力。2、公式的有效性可能受到市场情况、交易规则等多种因素的影响,在使用时应结合实际情况进行分析。3、 公式只是一种辅助工具,不能作为唯一的交易依据。使用时应结合其他分析工具和技术公式,以及个人的投资经验和风险承受能力,进行综合判断。
HGW1:=REF(LOW,1);
HGW2:=SMA(ABS(LOW-HGW1),3,1)/SMA(MAX(LOW-HGW1,0),3,1)*100;
HGW3:=EMA(IF(CLOSE*1.2,HGW2*10,HGW2/10),3);
HGW4:=LLV(LOW,38);
HGW5:=HHV(HGW3,38);
HGW6:=1971101;
HGW7:=1971201;
HGW8:=IF(DATE>HGW6,IF(CLOSE< 80,1,0),0);
HGW9:=IF(DATE>HGW7,1,HGW8);
HGW10:=IF(HGW9=0,1,0);
HGW11:=EMA(IF(LOW<=HGW4,(HGW3+HGW5*2)/50,0),3)/258*HGW10;
HGW12:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
HGW13:=SMA(HGW12,13,8);
主力建仓:HGW11,NODRAW,COLORMAGENTA;
吸筹1:STICKLINE(HGW11,0,HGW11,6,0),COLORRED;
吸筹2:STICKLINE(HGW11,0,HGW11,5,0),COLOR6600FF;
吸筹3:STICKLINE(HGW11,0,HGW11,4,0),COLORBB00FF;
吸筹4:STICKLINE(HGW11,0,HGW11,3,0),COLORMAGENTA;
吸筹5:STICKLINE(HGW11,0,HGW11,2,0),COLORFF33FF;
吸筹6:STICKLINE(HGW11,0,HGW11,1,0),COLORFF66FF;
吸筹7:STICKLINE(HGW11,0,HGW11,0,0),COLORFF99FF;
STICKLINE(1,0,0,6,0),COLOR454545;
STICKLINE(1,100,100,6,0),COLOR454545;
STICKLINE(1,50,50,6,0),COLOR454545;
HGW14:=VOL/10000;
HGW15:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
HGW16:=IF(CLOSE>OPEN,HGW15*(HIGH-LOW),IF(CLOSE< OPEN,HGW15*(HIGH-OPEN+(CLOSE-LOW)),IF(CLOSE=OPEN AND CLOSE>REF(CLOSE,1)*1.09,VOL,0)))/10000;
HGW17:=IF(CLOSE>OPEN,0-HGW15*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE< OPEN,0-HGW15*(HIGH-LOW),IF(CLOSE=OPEN AND CLOSE< REF(CLOSE,1)*0.91,0-VOL,0)))/10000;
HGW18:=HGW16+HGW17;
HGW19:=SUM(HGW18,5);
HGW20:=MA(HGW18,1);
HGW21:=SMA(SMA(SMA(HGW20,2,1),2,1),2,1);
HGW22:=REF(HGW21,1);
HGW23:=SMA(MAX(HGW21-HGW22,0),7,1)/SMA(ABS(HGW21-HGW22),7,1)*100;
STICKLINE(HGW23>80,97,100,3,0),COLORCYAN;
HGW24:=LLV(HGW21,35);
HGW25:=HHV(HGW21,30);
HGW26:=EMA((HGW21-HGW24)/(HGW25-HGW24)*4,4)*25;
HGW27:=HGW26;
HGW28:=87.5;
HGW29:=(HGW26-LLV(HGW26,4))/(HHV(HGW26,4)-LLV(HGW26,4))*4*25;
HGW30:=EMA(100*(HGW21-LLV(HGW21,18))/(HHV(HGW21,18)-LLV(HGW21,18)),3)/4*4*1;
DRAWBAND(HGW30,RGB(88,0,0),MA(HGW30,2),RGB(0,88,0));
HGW31:=(2*CLOSE+HIGH+LOW)/4;
HGW32:=LLV(LOW,30);
HGW33:=HHV(HIGH,30);
HGW34:=IF(HGW9!=1,EMA((HGW31-HGW32)/(HGW33-HGW32)*100,8),0);
HGW35:=EMA(HGW34,4);
STICKLINE(HGW34-HGW35>0,HGW34,HGW35,2,1),COLOR990099;
STICKLINE(HGW34-HGW35< 0,HGW34,HGW35,2,1),COLOR999900;
HGW36:=HGW21;
HGW37:=LLV(HGW21,30);
HGW38:=HHV(HGW21,30);
HGW39:=IF(HGW9!=1,EMA((HGW36-HGW37)/(HGW38-HGW37)*100,8),0);
HGW40:=EMA(HGW39,4);
STICKLINE(HGW39-HGW40>0,HGW39,HGW40,4,0),COLOR0000CC;
STICKLINE(HGW39-HGW40< 0,HGW39,HGW40,4,0),COLOR00CC00;
共振:=BARSLASTCOUNT(HGW39-HGW40>0 AND HGW34-HGW35>0)=1;
HGW41:=HGW39>50 AND HGW39-HGW40>0 OR (HGW39-HGW40>0 AND HGW34-HGW35>0 AND HGW30>MA(HGW30,2));
HGW42:=HGW39< 50 AND HGW39-HGW40< 0 OR (HGW39-HGW40< 0 AND HGW34-HGW35< 0 AND HGW30< MA(HGW30,2));
STICKLINE(HGW42,HGW39,50,1,(-1)),COLOR00CC00;
STICKLINE(HGW41,HGW39,50,1,(-1)),COLOR0000CC;
HGW43:=HGW21;
HGW44:=LLV(HGW21,21);
HGW45:=HHV(HGW21,34);
HGW46:=EMA((HGW43-HGW44)/(HGW45-HGW44)*100,13);
HGW47:=EMA(0.667*REF(HGW46,1)+0.333*HGW46,2);
HGW48:=EMA(0.382*REF(HGW46,2)+0.618*HGW46,12);
HGW49:=IF(HGW9=1,0,1);
HGW50:=MA((-100)*(HHV(HGW21,34)-HGW21)/(HHV(HGW21,34)-LLV(HGW21,34)),19)*HGW49;
流动资金:EMA(100*(HGW21-LLV(HGW21,18))/(HHV(HGW21,18)-LLV(HGW21,18)),3)/4*4*HGW49,NODRAW,COLOR000088;
资金趋势:HGW39,NODRAW,COLOR0000CC;
价格趋势:HGW34,NODRAW,COLOR990099;
HGW51:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
HGW52:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
HGW53:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
HGW54:=HGW51+100;
HGW55:=HGW52+100;
HGW56:=HGW53+100;
HGW57:=REF(HGW56,1)>85 AND REF(HGW55,1)>85 AND REF(HGW54,1)>65 AND CROSS(HGW54,HGW55);
HGW58:=HGW56< REF(HGW56,1) AND REF(HGW56,1)>80 AND (REF(HGW55,1)>95 OR REF(HGW55,2)>95) AND HGW54>60 AND HGW55< 83.5 AND HGW55< HGW56 AND HGW55< HGW54+4;
HGW59:=FILTER(HGW58,4);
STICKLINE(HGW59,97,100,3,0),COLORCYAN;
HGW60:=HGW54< 12 AND HGW56< 8 AND (HGW55< 7.2 OR REF(HGW55,1)< 5) AND (HGW56>REF(HGW56,1) OR HGW55>REF(HGW55,1)) OR (HGW54< 8 AND HGW56< 7 AND HGW55< 15 AND HGW55>REF(HGW55,1)) OR (HGW54< 10 AND HGW56< 7 AND HGW55< 1);
STICKLINE(HGW60,(-3),0,8,0),COLORGREEN;
QXS:=NOT(CODELIKE('4'));
QKC:=NOT(CODELIKE('688'));
QST:=IF(NAMELIKE('S'),0,1);
QXX:=IF(NAMELIKE('*'),0,1);
QBJ:=NOT(CODELIKE('8'));
HGW110:=QXS AND QST AND QKC AND QXX AND QBJ;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
HGW111:=MA5>MA10 AND MA10>MA20;
DRAWICON(共振 AND HGW110 AND HGW111,50,9);
HGW61:=BARSLAST(REF(CROSS(HGW39,HGW40),1));
HGW62:=REF(CLOSE,HGW61+1)>CLOSE AND REF(HGW39,HGW61+1)< HGW39 AND CROSS(HGW39,HGW40) AND HGW39< 50;
HGW63:=BARSLAST(REF(CROSS(HGW40,HGW39),1));
HGW64:=REF(CLOSE,HGW63+1)< CLOSE AND REF(HGW39,HGW63+1)>HGW39 AND CROSS(HGW40,HGW39) AND HGW39>50;
DRAWICON(HGW62,(-2),7);
DRAWICON(HGW64,111,8);
资金底背离:HGW62,NODRAW,COLORYELLOW;
资金顶背离:HGW64,NODRAW,COLORGREEN;