角买量能平台公式 指标 选股 源码[通达信公式]
指标公式源码分析及使用说明:
涵盖了各种指标和条件。让我分析一下:
量能评台:这部分代码通过绘制柱状图来显示量能,其中包括一个量能评台的显示。它也包括了一个止损点的计算和显示。
压力一:这一部分似乎涉及到价格的压力和支撑。它计算了一些价格的高低点,并通过绘图方式显示在图表上,以及绘制了均线和标准差。
买卖信号:根据代码中的注释,它似乎还包括了一些买卖信号的判断。比如根据价格的相对位置来判断买入或卖出的时机,并以箭头或文本的形式标注在图表上。
追涨追跌:代码中还包括了一些追涨追跌的逻辑,根据收盘价和前一日的收盘价的涨跌幅度来判断是否为追涨或追跌信号,并以柱状图的形式显示。
技术指标:最后,代码中还涉及了一些技术指标的计算和显示,比如移动平均线等。
源码:
{角买量能评台}DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);N1:=30;T1:=CONST(HHVBARS(V,N1));T0:IF(CURRBARSCOUNT<=N1+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),LINETHICK3;IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,T0,' 量能评台');STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,100,0),COLORWHITE,LINETHICK3;DRAWNUMBER(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95),LINETHICK3;止损点:=(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95),LINETHICK3;DRAWTEXT(ISLASTBAR ,止损点,' 止损点'),LINETHICK3;{压力一}TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW;E5:=EMA(C,5);E13:=EMA(C,13);DRAWBAND(E5,RGB(200,0,0),E13,RGB(0,200,0));DRAWKLINE(H,O,L,C);平衡:EMA(C,20)COLORYELLOW;上轨:平衡 + 2*STD(C,20),LINETHICK2,COLORMAGENTA;下轨:平衡 - 2*STD(C,20),LINETHICK3,COLORGREEN;上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;{IF(上>中 AND 上>REF(上,1), 上,DRAWNULL),LINETHICK2,COLORRED;IF(中>下 AND 中>REF(中,1), 中,DRAWNULL),LINETHICK2,COLORRED;}QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;cxh1W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));cxh2W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));cxh3W:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));{DRAWTEXT(CROSS(cxh2W,MA(cxh3W,6)),LOW -0.6,'(买)'),COLORFF99FF;DRAWTEXT(CROSS(MA(cxh3W,6),cxh1W),HIGH +0.9,'(卖)'),COLORCCFF13;}cxh3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);STICKLINE(cxh3P>90,L,L*0.92,1,1),COLORFF00FF;DRAWTEXT(cxh3P>90,LOW*0.92,'追涨'),COLORFF00FF;SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;MR:=SC AND COUNT(SS,2);买:=MR AND NOT(REF(MR,1));STICKLINE(买,L,L*0.95,2,1),COLORBLUE;DRAWTEXT(买,L*0.95, '必涨'),COLORRED;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);
{程序化久久公式网cxh99}MA5:MA(C,5);MA25:=MA(C,25),COLORGREEN,LINETHICK2;cxh1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值 AND 昨收>=2日前的收盘价}cxh2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}cxh3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值 AND (昨收<2日前的收盘价}cxh4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3,0),COLORFF6600;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3,0),COLORFFAA00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFCC00;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR0000DD;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLOR0000FF;{绿}STICKLINE(cxh3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900;STICKLINE(cxh3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00;STICKLINE(cxh3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;{灰}STICKLINE(cxh4 AND MM,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999;STICKLINE(cxh4 AND MM,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;STICKLINE(cxh4 AND MM,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD;STICKLINE(cxh4 AND MM,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;AA10:=MA(CLOSE,8),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);均线30:=MA(CLOSE,30);均线89:=MA(CLOSE,89);均线:=MA(CLOSE,16);DRAWTEXT((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0))AND (CLOSE > 均线89)) AND (BB10 > 1)) AND ((CLOSE / OPEN) > 1.04)),LOW,'←天马过桥'),COLORCC99FF;DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLORCYAN;DRAWTEXT_FIX(1,0.06,0,0,HYBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLORCYAN;DRAWTEXT_FIX(1,0.20,0,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.30,0.00,0,'主题投资:'),COLORCYAN;DRAWTEXT_FIX(1,0.36,0.00,0,EXTERNSTR(0,2)),COLORLIRED;DRAWTEXT_FIX(1,0.00,0.05,0,'主营业务:')COLORCYAN;DRAWTEXT_FIX(1,0.06,0.05,0,EXTERNSTR(0,3)),COLORRED;;DRAWTEXT_FIX(1,0.00,0.15,0,'莸利比例:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.06,0.15,0,CONST(WINNER(C )*100)),COLORWHITE;DRAWTEXT_FIX(1,0.12,0.15,0,'动态PE:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.17,0.15,0,CONST(DYNAINFO(39))),COLORWHITE;DRAWTEXT_FIX(1,0.22,0.15,0,'市值:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.26,0.15,0,FINANCE(40)/100000000),COLORWHITE;DRAWTEXT_FIX (1,0.31,0.15,0,'公积金(股):'),COLORYELLOW;DRAWNUMBER_FIX(1,0.38,0.15,0,FINANCE(18)),COLORWHITE;DRAWTEXT_FIX (1,0.43,0.15,0,'收益:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.47,0.15,0,FINANCE(33)),COLORWHITE;角线:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);角线MA:=MA(角线,5);ANA:=PLOYLINE(CROSS(角线,角线MA),角线MA),COLORRED;ANB:=PLOYLINE(CROSS(角线MA,角线),角线MA),COLORFF00FF ;角买点:=CROSS(角线,角线MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角线MA<=0) OR ((角线MA<=-45 OR CROSS(角线MA,-45)) AND (ANB<-60 OR LLV("KDJ.J",3)<=-49) AND ANB>0)),COLORGREEN;角起涨:=COUNT(CROSS(角线,角线MA),ANA<REF(ANA,5) AND ANB>REF(ANB,5));角卖点:=(CROSS(角线MA,角线) AND (ANB>REF(ANB,1) OR ANA<
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容