您的位置:爱股网 > 查股公式 > 通达信平台支撑线主图指标公式源码[查股公式]
股票行情消息数据:

通达信平台支撑线主图指标公式源码[查股公式]

2023/3/6 11:55:20

N日平台:=20;
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【概念】',GNBLOCK)),STRCAT('【地区】',DYBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.00,0.0,0,所属板块),COLORBLUE;
MA5:MA(CLOSE,5),COLORDDDDDD;
MA10:MA(CLOSE,10),COLOR00DDDD;
MA20:MA(CLOSE,20),DOTLINE,COLORDD00DD;
MA60:MA(CLOSE,60),DOTLINE,COLOR00DD00;
X_1:=vol/REF(MA(VOL,5),1);
X_2:=(CLOSE/REF(CLOSE,1)-1)*100;
X_3:=CLOSE=HHV(CLOSE,N日平台);
X_4:=BArslAST(FILTER(crOSS(0.9,X_3),2))+1;
平台高点:REF(CLOSE,X_4),NODRAW,COLOR8800FF;
X_5:=CLOSE=LLV(CLOSE,N日平台);
X_6:=BARSLAST(FILTER(CROSS(0.9,X_5),2))+1;
平台低点:REF(CLOSE,X_6),NODRAW,COLORFF8800;
X_7:=IF(FINDHIGHBARS(平台高点,1,20,1)>=10,1,0);
X_8:=CROSS(CLOSE,平台高点);
STICKLINE(X_8>0 AND X_1>1 AND X_2>=3 AND X_7>0,OPEN,CLOSE,2,0),COLORYELLOW;
平台突破:IF(X_8>0 AND X_1>1 AND X_2>=3 AND X_7>0,1,0),NODRAW,COLORYELLOW;
STICKLINE(X_4<=30,平台高点,平台高点,4,0),COLOR8800FF;
STICKLINE(X_6<=30,平台低点,平台低点,4,0),COLORFF8800;
KCBB:=IF(CODELIKE('68') OR CODELIKE('30'),1,0);
ZF0:=IF(KCBB=1,1.195,1.093);
炸1:=H>REF(C,1)*ZF0 AND C<H;
涨停10:=C>REF(C,1)*ZF0;
炸2:=IF(炸1 AND NOT(涨停10),1,0);
LX11:=BARSLAST(炸2>0);
炸3:IF(炸1 AND NOT(涨停10),H*1,DRAWNULL),CIRCLEDOT,COLORBLUE,LINETHICK2;
ZB:=炸1 AND NOT(涨停10);
Z16:=BARSLAST(ZB>0);
Z26:=REF(HHV(H,2),Z16);
Z36:=CROSS(C,Z26 )AND 涨停10;
H3:=IF(BARSLAST(ZB)>0 AND BARSLAST(ZB)<190,REF(H,BARSLAST(ZB)),DRAWNULL),LINETHICK1,COLORGREEN;
{STICKLINE(CURRBARSCOUNT>=1,H3,H3,-1,0),,COLOR7CAE39,NODRAW;}
DRAWTEXT(ISLASTBAR,H3,'--炸'),COLOR7CAE39;
BK:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(FILTER(H3,3)))+1);
{DT:=REF(REF(H,1),BK),DOTLINE,COLORGREEN;}
STICKLINE(BK,H3,H3,-1,0),COLOR7CAE39;
{DT1:=REF(H3,BK),DOTLINE,COLORGREEN;};
快线:MA(CLOSE,6),COLORWHITE,LINETHICK1;
慢线:MA(CLOSE,18),COLORYELLOW,LINETHICK1;
生命线:MA(CLOSE,89),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(快线,慢线) AND REF(CLOSE,1)>快线 AND VOL/REF(VOL,1)>1,LOW,'买入');
DRAWTEXT(CROSS(快线,(CLOSE,1)) AND (CLOSE,1)>慢线 ,HIGH,'减仓');
{MA01 : MA(CLOSE,P1);
MA02 : MA(CLOSE,P2);
MA03 : MA(CLOSE,P3);
MA04 : MA(CLOSE,P4);
MA05 : MA(CLOSE,P5);
MA06 : MA(CLOSE,P6);
MA07 : MA(CLOSE,P7);
MA08 : MA(CLOSE,P8);}
X_1X:=(C+L+H)/3;
X_2X:=EMA(X_1X,6);
X_3X:=EMA(X_2X,5);
B点:=CROSS(X_2X,X_3X);
S点:=CROSS(X_3X,X_2X);
持股:=B点>0 AND REF(B点,1)>0;
信号:=IF( B点,2,IF(S点,-1, IF(持股,1,0)));
DRAWICON(CROSS(X_2X,X_3X),L*0.98,7);{B}
DRAWICON(CROSS(X_3X,X_2X),H*1.02,8);{S};

相关文章列表
天天查股公式列表

股票公式分类

天天查股:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红数据 股票评级报告
广告客服:315126368   843010021
爱股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29