通达信佛手向上主图指标公式

主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2,COLORFF00FF;
股价重心:=DMA(AMOUNT/vol/100,VOL/CAPITAL),COLORGREEN,LINETHICK2;
MA14:=EMA(CLOSE,14);
MA34:=EMA(CLOSE,26);
MA54:=EMA(CLOSE,54);
MA90:=EMA(CLOSE,90);
MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE;
年线:EMA(C,250),COLORYELLOW,LINETHICK2;
{中短波}
HZ:=EMA(CLOSE,13);
短波:EMA(HZ,1),COLOR00DD00,LINETHICK1;
中波:EMA(HZ,26),COLORRED,LINETHICK1;
均线148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN;
成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW ,LINETHICK2 ;
HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2;
HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2;
A1:STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;
A2:STICKLINE(短波>HZ2,短波,HZ2,2,0),COLORGREEN;
A3:STICKLINE(中波>HZ4,中波,HZ4,1.5,0),COLORFF00FF;
{慢速kdj}
RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
FASTK:=SMA(RSV,12,1);
K:=SMA(FASTK,9,1),COLORYELLOW;
D:=SMA(K,3,1),LINETHICK2,COLORBLUE;
J:=3*K-2*D,LINETHICK1,COLORGREEN;
{中波}
VAR11:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))
/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR22:=100-VAR11;
中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2;
TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;
强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED;
大盘线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),LINETHICK1,COLOR009900;
{量选}
AA:=VOL/SUM(VOL,13);
BB:=DMA(C,AA);
CC:=VOL/SUM(VOL,34);
DD:=DMA(C,CC);
{背离}
VAR00:=WINNER(CLOSE);
VAR1:=FORCAST(VAR00,10);
VAR2:=MA(VAR1,3);
VAR3:=MA(VAR2,12);
VAR4:=MA(VAR3,16);
VAR5:=MA(VAR4,31);
VAR6:=MA(VAR5,55);
VAR7:=VAR5;
VAR8:=VAR4>VAR2*1.11 AND VAR3>VAR2*1.095;
A:=VAR4/VAR2;
B:=VAR3/VAR2;
VAR9:=VAR2>VAR1*0.95;
TD:=VAR2/VAR1;
VAR1H:=INDEXC;
VAR2H:=MA(VAR1H,6);
VAR3H:=MA(VAR1H,24);
VAR4H:=MA(VAR1H,32);
VAR5H:=MA(VAR1H,62);
VAR6H:=MA(VAR1H,105);
VAR7H:=VAR5H;
VAR8H:=VAR4H>VAR2H*1.11 AND VAR3H>VAR2H*1.095;
VAR9H:=VAR2H>VAR1H*0.95;
PT:=(IF(H=L AND C=O AND L=C AND C>0 AND REF(H,1)=REF(L,1) AND REF(C,1)=REF(O,1)
AND REF(H,1)=REF(C,1) AND REF(C,1)>0,0,1))>0;
G:=(VAR7H AND VAR8H AND VAR9H AND CLOSE/COST(8)<=0.7985
AND (COUNT(C=L,4)<3 OR C>REF(C,1)))AND PT OR
VAR7 AND VAR8 AND VAR9 AND CLOSE/COST(5)<=0.8 AND
((VAR1>OPEN OR VAR1>REF(OPEN,1) OR
REF(VAR1,1)));
背离:=VAR2<REF(VAR2,1) AND A>REF(A,1);
买入信号1:=VAR1>A AND VAR2>B;
买入信号2:=B>A AND 1>B AND A<1 AND H=HHV(H,21);
BUY:=COUNT(背离,20)>1 AND 买入信号2=1 AND C>O OR crOSS(BB,DD);
DRAWICON(CROSS(短波,HZ2),中波,1);
{- }
X1:=CROSS(主线,MA90) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND
中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;
X2:=CROSS(主线,MA120) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND
中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;
X3:=CROSS(MA120,均线148天) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND
中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;
X4:=CROSS(中势线,33) AND 短波>HZ2 AND O>REF(O,1) AND C>REF(C,1) AND J>D AND
J<65 AND 大盘线<36 AND 强势线>36 AND 主线>REF(主线,1)
AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O AND
MA34>REF(MA34,1) AND 短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;
X5:=CROSS(短波,HZ2) AND 大盘线<36 AND 短波>中波 AND 中波>HZ4 AND
短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;
X6:=J>K AND 大盘线<36 AND 短波>HZ2 AND CROSS(强势线,36);
X7:=CROSS(短波,HZ2) AND CROSS(强势线,36);
X8:=CROSS(J,K) AND CROSS(强势线,33);
X9:=CROSS(短波,HZ2) AND CROSS(强势线,54);
X10:=CROSS(J,K) AND 大盘线<36 AND J<65 AND C>O AND 短波-REF(短波,1)>0.088;
X11:=CROSS(J,K) AND 短波>HZ2 AND J<68 AND 短波>REF(短波,1) AND HZ2>REF(HZ2,1)
AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088;
X12:=CROSS(J,K) AND 大盘线<36 AND J<68 AND 短波-REF(短波,1)>0.088;
X13:=CROSS(J,K) AND CROSS(短波,HZ2) AND 大盘线<36;
X14:=CROSS(短波,HZ2) AND 大盘线<36 AND J>K AND J<68 AND 强势线>REF(强势线,1) AND
中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088;
X15:=CROSS(短波,HZ2) AND 中波>MA120 AND 中波>均线148天 AND HZ2>MA120 AND
MA120>均线148天 AND 短波-REF(短波,1)>0.088;
X16:=CROSS(J,K) AND 强势线>54 AND 强势线>REF(强势线,1) AND J<68;
X17:=COUNT(背离,20)>1 AND 短波>HZ2 AND O>REF(O,1) AND C>REF(C,1) AND J>D AND
J<65 AND 买入信号2=1 AND 主线>REF(主线,1)
AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O;
X18:=CROSS(BB,DD) AND J<74 AND MA34>REF(MA34,1) AND 短波-REF(短波,1)>0.088;
X19:=大盘线<36 AND J>D AND J<65 AND C>O AND 短波>REF(短波,1) AND CROSS(HZ2,中波)
AND 短波-REF(短波,1)>0.088 AND O>REF(C,1);
X20:=C>O AND 短波>REF(短波,1) AND J>D AND J<65 AND 大盘线<36 AND CROSS(中势线,33) AND 中势线-REF(中势线,1)>0.23 AND 短波-REF(短波,1)>0.088
AND O>REF(C,1) AND 强势线>12;
X21:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND CROSS(J,K) AND J<65 AND 短波-REF(短波,1)>0.088;
X22:=短波>HZ2 AND 大盘线<36 AND CROSS(J,K) AND J<65 AND 短波-REF(短波,1)>0.088;
X23:=CROSS(J,K) AND CROSS(短波,HZ2) AND 大盘线<36 AND J<56;
X24:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND J>D AND J<65 AND CROSS(HZ4,年线) AND 短波-REF(短波,1)>0.088;
X25:=短波>HZ2 AND HZ2>HZ4 AND 大盘线<36 AND J>D AND J<65 AND J<65 AND CROSS(强势线,46) AND 短波-REF(短波,1)>0.088;
X26:=短波>HZ2 AND 大盘线<36 AND J>D AND J<65 AND CROSS(中势线,36) AND 短波-REF(短波,1)>0.088;
DRAWTEXT(X1 OR X2 OR X3 OR X4 OR X5 OR X6 OR X7 OR X8 OR X9 OR X10 OR X11 OR
X12 OR X13 OR X14 OR X15 OR X16 OR X17 OR X18 OR X19 OR X20 OR X21 OR X22 OR
X23 OR X24 OR X25 OR X26,HZ2-0.18,'!追'),COLORWHITE;{好}
DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.09,'●'),COLORYELLOW;
DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.12,'做趋势'), COLORYELLOW;
DRAWTEXT(CROSS(短波,HZ2),C,'♂');
DRAWTEXT(CROSS ( 中波,HZ4),C,'♂');
DRAWTEXT(CROSS ( 中波,MA120),C,'♂');
DRAWTEXT(CROSS (HZ4,MA120),C,'♂');




未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

主线赋值:(收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均+收盘价的36日简单移动平均)/4,LINETHICK2,COLORFF00FF
股价重心赋值:DAMOUNT/成交量/100的成交量/CAPITAL日简单移动平均,COLORGREEN,LINETHICK2
MA14赋值:收盘价的14日指数移动平均
MA34赋值:收盘价的26日指数移动平均
MA54赋值:收盘价的54日指数移动平均
MA90赋值:收盘价的90日指数移动平均
输出MA120:收盘价的120日指数移动平均,POINTDOT,LINETHICK2,画白色
输出年线:C的250日指数移动平均,画黄色,LINETHICK2
{中短波} HZ赋值:收盘价的13日指数移动平均
输出短波:HZ的1日指数移动平均,COLOR00DD00,LINETHICK1
输出中波:HZ的26日指数移动平均,COLORRED,LINETHICK1
均线148天赋值:C的148日指数移动平均,POINTDOT,LINETHICK1,COLORGREEN
成本赋值:0的AMOUNT日累和/0的成交量日累和/100,画黄色 ,LINETHICK2
输出HZ2:HZ的8日指数移动平均,COLORGREEN,LINETHICK2
输出HZ4:HZ的39日指数移动平均,COLORFF00FF,LINETHICK2
当满足条件HZ2当满足条件短波>HZ2时,在短波和HZ2之间画柱状线
当满足条件中波>HZ4时,在中波和HZ4之间画柱状线
{慢速KDJ} RSV赋值:(收盘价-60日内最低价最低值)/(60日内HIGH最高值-60日内最低价最低值)*100
RSV的12日[1日权重]移动平均
FASTK的9日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D,LINETHICK1,COLORGREEN
{中波} VAR11:=3*SMA((收盘价-75日内最低价最低值)/(75日内HIGH最高值-75日内最低价最低值)*100,20,1)-2*SMA(SMA((收盘价-75日内最低价最低值) /(75日内HIGH最高值-75日内最低价最低值)*100,20,1),15,1)
VAR22赋值:100-VAR11
中势线赋值:(-1)*(VAR22的1日指数移动平均-50)+42,画黄色,LINETHICK2
TZ赋值:(收盘价-331日内最低价最低值)/(331日内HIGH最高值-331日内最低价最低值)*100
TZ的5日[1日权重]移动平均
大盘线赋值:70*(39日内HIGH最高值-收盘价)/(39日内HIGH最高值-39日内最低价最低值),LINETHICK1,COLOR009900
{量选} AA赋值:成交量/13的成交量日累和
BB赋值:DC的AA日简单移动平均
CC赋值:成交量/34的成交量日累和
DD赋值:DC的CC日简单移动平均
{背离} VAR00赋值:收盘价计算的获利盘比例
VAR1赋值:VAR00的10日线性回归预测值
VAR2赋值:VAR1的3日简单移动平均
VAR3赋值:VAR2的12日简单移动平均
VAR4赋值:VAR3的16日简单移动平均
VAR5赋值:VAR4的31日简单移动平均
VAR6赋值:VAR5的55日简单移动平均
VAR7赋值:VAR5
VAR8赋值:VAR4>VAR2*1.11 AND VAR3>VAR2*1.095
A赋值:VAR4/VAR2
B赋值:VAR3/VAR2
VAR9:=VAR2>VAR1*0.95
TD赋值:VAR2/VAR1
VAR1H:=INDEXC
VAR2H:=VAR1H的6日简单移动平均
VAR3H:=VAR1H的24日简单移动平均
VAR4H:=VAR1H的32日简单移动平均
VAR5H:=VAR1H的62日简单移动平均
VAR6H:=VAR1H的105日简单移动平均
VAR7H:=VAR5H
VAR8H:=VAR4H>VAR2H*1.11 AND VAR3H>VAR2H*1.095
VAR9H:=VAR2H>VAR1H*0.95
PT赋值:(IF(H=L AND C=O AND L=C AND C>0 AND 1日前的H=1日前的L AND 1日前的C=1日前的O AND 1日前的H=1日前的C AND 1日前的C>0,0,1))>0
G赋值:(VAR7H AND VAR8H AND VAR9H AND 收盘价/获利盘为8%的成本分布<=0.7985 AND (统计4日满足C=L的天数<3 OR C>1日前的C))AND PT OR VAR7 AND VAR8 AND VAR9 AND 收盘价/COST(5)<=0.8 AND ((VAR1>开盘价 OR VAR1>1日前的开盘价 OR 1日前的VAR1))
背离赋值:VAR2<1日前的VAR2 AND A>1日前的A
买入信号1赋值:VAR1>A AND VAR2>B
买入信号2赋值:B>A AND 1>B AND A<1 AND H=21日内H最高值
BUY:=统计20日满足背离的天数>1 AND 买入信号2=1 AND C>O OR BB上穿DD
DRAWICON(短波上穿HZ2,中波,1)
{- } X1赋值:主线上穿MA90 AND 大盘线<36 AND J>K AND 强势线>1日前的强势线 AND 中势线>1日前的中势线 AND 短波-1日前的短波>0.088 AND HZ4-1日前的HZ4>0.028
X2赋值:主线上穿MA120 AND 大盘线<36 AND J>K AND 强势线>1日前的强势线 AND 中势线>1日前的中势线 AND 短波-1日前的短波>0.088 AND HZ4-1日前的HZ4>0.028
X3赋值:MA120上穿均线148天 AND 大盘线<36 AND J>K AND 强势线>1日前的强势线 AND 中势线>1日前的中势线 AND 短波-1日前的短波>0.088 AND HZ4-1日前的HZ4>0.028
X4赋值:中势线上穿33 AND 短波>HZ2 AND O>1日前的O AND C>1日前的C AND J>D AND J<65 AND 大盘线<36 AND 强势线>36 AND 主线>1日前的主线 AND 强势线>1日前的强势线 AND 中势线>1日前的中势线 AND 中势线<70 AND C>O AND MA34>1日前的MA34 AND 短波-1日前的短波>0.088 AND HZ4-1日前的HZ4>0.028
X5赋值:短波上穿HZ2 AND 大盘线<36 AND 短波>中波 AND 中波>HZ4 AND 短波-1日前的短波>0.088 AND HZ4-1日前的HZ4>0.028
X6赋值:J>K AND 大盘线<36 AND 短波>HZ2 AND 强势线上穿36
X7赋值:短波上穿HZ2 AND 强势线上穿36
X8赋值:J上穿K AND 强势线上穿33
X9赋值:短波上穿HZ2 AND 强势线上穿54
X10赋值:J上穿K AND 大盘线<36 AND J<65 AND C>O AND 短波-1日前的短波>0.088
X11赋值:J上穿K AND 短波>HZ2 AND J<68 AND 短波>1日前的短波 AND HZ2>1日前的HZ2 AND 中势线>1日前的中势线 AND 短波-1日前的短波>0.088
X12赋值:J上穿K AND 大盘线<36 AND J<68 AND 短波-1日前的短波>0.088
X13赋值:J上穿K AND 短波上穿HZ2 AND 大盘线<36
X14赋值:短波上穿HZ2 AND 大盘线<36 AND J>K AND J<68 AND 强势线>1日前的强势线 AND 中势线>1日前的中势线 AND 短波-1日前的短波>0.088
X15赋值:短波上穿HZ2 AND 中波>MA120 AND 中波>均线148天 AND HZ2>MA120 AND MA120>均线148天 AND 短波-1日前的短波>0.088
X16赋值:J上穿K AND 强势线>54 AND 强势线>1日前的强势线 AND J<68
X17赋值:统计20日满足背离的天数>1 AND 短波>HZ2 AND O>1日前的O AND C>1日前的C AND J>D AND J<65 AND 买入信号2=1 AND 主线>1日前的主线 AND 中势线>1日前的中势线 AND 中势线<70 AND C>O
X18赋值:BB上穿DD AND J<74 AND MA34>1日前的MA34 AND 短波-1日前的短波>0.088
X19赋值:大盘线<36 AND J>D AND J<65 AND C>O AND 短波>1日前的短波 AND HZ2上穿中波 AND 短波-1日前的短波>0.088 AND O>1日前的C
X20:=C>O AND 短波>1日前的短波 AND J>D AND J<65 AND 大盘线<36 AND 中势线上穿33 AND 中势线-1日前的中势线>0.23 AND 短波-1日前的短波>0.088 AND O>1日前的C AND 强势线>12
X21:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND J上穿K AND J<65 AND 短波-1日前的短波>0.088
X22:=短波>HZ2 AND 大盘线<36 AND J上穿K AND J<65 AND 短波-1日前的短波>0.088
X23:=J上穿K AND 短波上穿HZ2 AND 大盘线<36 AND J<56
X24:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND J>D AND J<65 AND HZ4上穿年线 AND 短波-1日前的短波>0.088
X25:=短波>HZ2 AND HZ2>HZ4 AND 大盘线<36 AND J>D AND J<65 AND J<65 AND 强势线上穿46 AND 短波-1日前的短波>0.088
X26:=短波>HZ2 AND 大盘线<36 AND J>D AND J<65 AND 中势线上穿36 AND 短波-1日前的短波>0.088
当满足条件X1 OR X2 OR X3 OR X4 OR X5 OR X6 OR X7 OR X8 OR X9 OR X10 OR X11 OR X12 OR X13 OR X14 OR X15 OR X16 OR X17 OR X18 OR X19 OR X20 OR X21 OR X22 OR X23 OR X24 OR X25 OR X26时,在HZ2-0.18和'!追'位置书写文字
{好} DRAWTEXT(短波上穿HZ2 AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.09,'●'),画黄色
DRAWTEXT(短波上穿HZ2 AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.12,'做趋势'), 画黄色
DRAWTEXT(短波上穿HZ2,C,'♂')
DRAWTEXT(CROSS ( 中波,HZ4),C,'♂')
DRAWTEXT(CROSS ( 中波,MA120),C,'♂')
DRAWTEXT(CROSS (HZ4,MA120),C,'♂')


联系我们  |  股朋指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股朋指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股朋指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图