通达信黄金芙蓉主图指标 量托黄金眼 源码
DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0);
总涨幅:(H-LLV(L,180))/LLV(L,180)*100,NODRAW,COLORYELLOW;
DRAWKLINE(H,O,L,C);
HGW1:=SUM((WINNER(C)*100),30)/30*0.1;
HGW2:=SUM((WINNER(C)*100),20)/20*0.4;
HGW3:=SUM((WINNER(C)*100),10)/10*0.3;
HGW4:=SUM((WINNER(C)*100),5)/5*0.1;
HGW5:=SUM((WINNER(C)*100),3)/3*0.1;
HGWZ:=HGW1+HGW2+HGW3+HGW4+HGW5;
赚钱效应:IF(HGWZ>38,HGWZ,HGWZ*1.3),NODRAW;
活跃度:IF(SUMBARS(VOL,CAPITAL)<100,100-SUMBARS(VOL,CAPITAL),1),NODRAW;
获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0.02,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
MA1:MA(C,5);
MA2:MA(C,10);
MA3:MA(C,30);
MA4:MA(C,60);
STICKLINE(MA1<MA3 AND MA2<MA3 AND MA1>MA2, MA1, MA2,2,0),COLORYELLOW;
STICKLINE(MA2<MA1 AND MA3<MA1 AND MA3>MA2, MA2, MA3,2,0),COLORYELLOW;
黄金眼:=MA1>MA2 AND CROSS(MA2,MA3);
DRAWTEXT(黄金眼,L*0.99,'黄金眼'),COLORYELLOW;
DRAWICON(黄金眼,H*1.02,23),COLORYELLOW;
STICKLINE(黄金眼,H,L,3,0),COLORYELLOW;
DING:=MAX(O,C);{实顶}
DI:=MIN(O,C);{实底}
YANG:=(DI>=REF(DING,1)) OR (C>O AND NOT(DING<=REF(DI,1))) OR(C>REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DING,1)=C);{阳线}
YIN:=NOT(YANG);
HGW63:=YANG AND C>=REF(DING,BARSLAST(YIN)) AND (V>REF(V,BARSLAST(YIN))OR (BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V,BARSLAST(YIN))*1.05))),NODRAW;
HGW62:=V/C,NODRAW;
HGW61:=MA(HGW62,3),NODRAW;
HGW60:=1.5;
BLZ:=V>REF(V,1)*1.5;
好股网1:=BETWEEN(V,REF(V,1)*0.95,REF(V,1)*1.05) OR BETWEEN(V,REFX(V,1)*0.95,REFX(V,1)*1.05) OR (BETWEEN(V,REF(V,2)*0.95,REF(V,2)*1.05) AND V>REF(V,1)*1.2) OR (BETWEEN(V,REF(V,3)*0.95,REF(V,3)*1.05) AND V>REF(MA(V,2),1)*1.2 AND V>REF(HHV(V,2),1)) ;
好股网2:=(BETWEEN(V,REF(V,4)*0.95,REF(V,4)*1.05) AND V>REF(MA(V,3),1)*1.2 AND V>REF(HHV(V,3),1)) OR (BETWEEN(V,REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(MA(V,4),1)*1.2 AND V>REF(HHV(V,4),1)) ;
好股网3:=(BETWEEN(V,REF(V,6)*0.95,REF(V,6)*1.05) AND V>REF(MA(V,5),1)*1.2 AND V>REF(HHV(V,5),1)) OR (BETWEEN(V,REF(V,7)*0.95,REF(V,7)*1.05) AND V>REF(MA(V,6),1)*1.2 AND V>REF(HHV(V,6),1)) ;
好股网4:=(BETWEEN(V,REF(V,8)*0.95,REF(V,8)*1.05) AND V>REF(MA(V,7),1)*1.2 AND V>REF(HHV(V,7),1)) OR (BETWEEN(V,REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(MA(V,8),1)*1.2 AND V>REF(HHV(V,8),1));
好股网5:=(BETWEEN(V,REF(V,10)*0.95,REF(V,10)*1.05) AND V>REF(MA(V,9),1)*1.2 AND V>REF(HHV(V,9),1)) OR (BETWEEN(V,REF(V,11)*0.95,REF(V,11)*1.05) AND V>REF(MA(V,10),1)*1.2 AND V>REF(HHV(V,10),1));
PLZ:=好股网1 OR 好股网2 OR 好股网3 OR 好股网4 OR 好股网5 OR (BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V>REF(MA(V,11),1)*1.2 AND V>REF(HHV(V,11),1));
GLZ:=V=HHV(V,3) AND V=REFX(HHV(V,3),2);
TLZ:=(V*1.1<REFX(V,1) AND REFX(V,1)*1.1<REFX(V,2)) OR (V>REF(V,1)*1.1 AND V*1.1<REFX(V,1)) OR (V>REF(V,1)*1.1 AND REF(V,1)>REF(V,2)*1.1);
JSLS:=C<=REFX(C,1) AND REFX(C,1)<=REFX(C,2) AND HGW62>REFX(HGW62,1) AND REFX(HGW62,1)>REFX(HGW62,2);
JZ:=BLZ OR GLZ OR PLZ OR TLZ,NODRAW;
JJZ:=CURRBARSCOUNT>=4 AND YANG AND (HGW63) AND JZ AND REFX(LLV(DI,3),3)>=DI AND (REFX(MA(HGW62,3),3)<=HGW60*HGW62 OR REFX(JSLS,1)) AND REFX(C,3)>=DING,NODRAW;HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING AND REFX(MA(HGW62,3),3)<=HGW62 AND REFX(YANG,3);
HJZ2:=YANG AND HGW63 AND JZ AND REFX(DI,1)>=DI AND REFX(JJZ,2) AND REFX(C,2)>DING AND REFX(HGW62,1)<HGW62;
HJZ3:=YANG AND HGW63 AND JZ AND REFX(LLV(DI,2),2)>=DI AND REFX(JJZ,3)AND REFX(C,3)>DING AND REFX(MA(HGW62,2),2)<HGW62;
HJZ4:=JJZ AND REFX(LLV(DI,3),3)>=DING AND REFX(MA(HGW62,3),3)<=HGW62 AND REFX(YANG,3) AND (REFX(YANG,1) OR REFX(YANG,2));
WP:=JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW;
HGW50:=JJZ AND REF(NOT(WP),1);
HGW51:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP),1);
STICKLINE(HGW50,C,O,1,0),COLORYELLOW;
STICKLINE(HGW51,C,O,1,0),COLORMAGENTA;
DRAWTEXT(HJZ4 AND REF(NOT(HJZ4),1),L*0.98,'H'),COLORRED;
VOL5:=MA(VOL,5),COLORWHITE;
VOL10:=MA(VOL,10),COLORYELLOW;
VOL40:=MA(VOL,40),COLORFF00FF ;
MA5:=MA(CLOSE,5),COLORWHITE;
MA10:=MA(CLOSE,10),COLORYELLOW;
MA20:=MA(CLOSE,20),COLORMAGENTA;
MA60:=MA(CLOSE,60),COLORGREEN;
MA120:=MA(CLOSE,120),COLORLIMAGENTA;
MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;
量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);
DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;
AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));
BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);
CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;
芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;
STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;
STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;
MA01:=MA(CLOSE,14);
MA02:=MA(CLOSE,25);
MA03:=MA(CLOSE,99);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
一穿三:=MA01>O AND MA02>O AND MA03>O AND MA01<C AND MA02<C AND MA03<C AND CLOSE>OPEN ;
DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF;
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)),,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORGREEN;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:REFX
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
填充背景(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0)
输出总涨幅:(H-180日内L最低值)/180日内L最低值*100,NODRAW,画黄色
DRAWKLINE(H,O,L,C)
HGW1赋值:SUM((C计算的获利盘比例*100),30)/30*0.1
HGW2赋值:SUM((C计算的获利盘比例*100),20)/20*0.4
HGW3赋值:SUM((C计算的获利盘比例*100),10)/10*0.3
HGW4赋值:SUM((C计算的获利盘比例*100),5)/5*0.1
HGW5赋值:SUM((C计算的获利盘比例*100),3)/3*0.1
HGWZ赋值:HGW1+HGW2+HGW3+HGW4+HGW5
如果HGWZ>38返回HGWZ否则返回HGWZ*1.3
输出活跃度:IF(成交量累加至当前流通股本的天数<100,100-成交量累加至当前流通股本的天数,1),NODRAW
输出获利筹码:IF(收盘价计算的获利盘比例,收盘价计算的获利盘比例*100,0),NODRAW
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0.02,0,STRCAT(Z3,GNBLOCK)),画黄色
输出MA1:C的5日简单移动平均
输出MA2:C的10日简单移动平均
输出MA3:C的30日简单移动平均
输出MA4:C的60日简单移动平均
当满足条件MA1MA2时,在 MA1和 MA2之间画柱状线
当满足条件MA2MA2时,在 MA2和 MA3之间画柱状线
黄金眼赋值:MA1>MA2 AND MA2上穿MA3
当满足条件黄金眼时,在L*0.99和'黄金眼'位置书写文字
当满足条件黄金眼时,在H*1.02和23之间画图标
当满足条件黄金眼时,在H和L之间画柱状线
DING赋值:O和C较大值
{实顶}
DI赋值:O和C的较小值
{实底}
YANG赋值:(DI>=1日前的DING) OR (C>O AND NOT(DING<=1日前的DI)) OR(C>1日前的C AND C=O) OR (C=1日前的C AND C=O AND 1日前的DING=C)
{阳线}
YIN赋值:NOT(YANG)
HGW63赋值:YANG AND C>=REF(DING,上次YIN距今天数) AND (V>REF(V,上次YIN距今天数)OR (BETWEEN(V,REF(V,上次YIN距今天数)*0.95,REF(V,上次YIN距今天数)*1.05))),NODRAW
HGW62赋值:V/C,NODRAW
HGW61赋值:HGW62的3日简单移动平均,NODRAW
HGW60赋值:1.5
BLZ赋值:V>1日前的V*1.5
好股网1赋值:BETWEEN(V,1日前的V*0.95,1日前的V*1.05) OR BETWEEN(V,REFX(V,1)*0.95,REFX(V,1)*1.05) OR (BETWEEN(V,2日前的V*0.95,2日前的V*1.05) AND V>1日前的V*1.2) OR (BETWEEN(V,3日前的V*0.95,3日前的V*1.05) AND V>REF(V的2日简单移动平均,1)*1.2 AND V>REF(2日内V最高值,1))
好股网2赋值:(BETWEEN(V,4日前的V*0.95,4日前的V*1.05) AND V>REF(V的3日简单移动平均,1)*1.2 AND V>REF(3日内V最高值,1)) OR (BETWEEN(V,REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(V的4日简单移动平均,1)*1.2 AND V>REF(4日内V最高值,1))
好股网3赋值:(BETWEEN(V,6日前的V*0.95,6日前的V*1.05) AND V>REF(V的5日简单移动平均,1)*1.2 AND V>REF(5日内V最高值,1)) OR (BETWEEN(V,REF(V,7)*0.95,REF(V,7)*1.05) AND V>REF(V的6日简单移动平均,1)*1.2 AND V>REF(6日内V最高值,1))
好股网4赋值:(BETWEEN(V,8日前的V*0.95,8日前的V*1.05) AND V>REF(V的7日简单移动平均,1)*1.2 AND V>REF(7日内V最高值,1)) OR (BETWEEN(V,REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(V的8日简单移动平均,1)*1.2 AND V>REF(8日内V最高值,1))
好股网5赋值:(BETWEEN(V,10日前的V*0.95,10日前的V*1.05) AND V>REF(V的9日简单移动平均,1)*1.2 AND V>REF(9日内V最高值,1)) OR (BETWEEN(V,REF(V,11)*0.95,REF(V,11)*1.05) AND V>REF(V的10日简单移动平均,1)*1.2 AND V>REF(10日内V最高值,1))
PLZ赋值:好股网1 OR 好股网2 OR 好股网3 OR 好股网4 OR 好股网5 OR (BETWEEN(V,12日前的V*0.95,12日前的V*1.05) AND V>REF(V的11日简单移动平均,1)*1.2 AND V>REF(11日内V最高值,1))
GLZ赋值:V=3日内V最高值 AND V=REFX(3日内V最高值,2)
TLZ赋值:(V*1.11日前的V*1.1 AND V*1.11日前的V*1.1 AND 1日前的V>2日前的V*1.1)
JSLS赋值:C<=REFX(C,1) AND REFX(C,1)<=REFX(C,2) AND HGW62>REFX(HGW62,1) AND REFX(HGW62,1)>REFX(HGW62,2)
JZ赋值:BLZ OR GLZ OR PLZ OR TLZ,NODRAW
JJZ赋值: 到最后交易的周期>=4 AND YANG AND (HGW63) AND JZ AND REFX(3日内DI最低值,3)>=DI AND (REFX(HGW62的3日简单移动平均,3)<=HGW60*HGW62 OR REFX(JSLS,1)) AND REFX(C,3)>=DING,NODRAW
HJZ1赋值:JJZ AND REFX(C的3日简单移动平均,3)>=DING AND REFX(HGW62的3日简单移动平均,3)<=HGW62 AND REFX(YANG,3)
HJZ2赋值:YANG AND HGW63 AND JZ AND REFX(DI,1)>=DI AND REFX(JJZ,2) AND REFX(C,2)>DING AND REFX(HGW62,1)
HJZ3赋值:YANG AND HGW63 AND JZ AND REFX(2日内DI最低值,2)>=DI AND REFX(JJZ,3)AND REFX(C,3)>DING AND REFX(HGW62的2日简单移动平均,2)
HJZ4:=JJZ AND REFX(3日内DI最低值,3)>=DING AND REFX(HGW62的3日简单移动平均,3)<=HGW62 AND REFX(YANG,3) AND (REFX(YANG,1) OR REFX(YANG,2))
WP赋值:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW
HGW50:=JJZ AND REF(NOT(WP),1)
HGW51:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP),1)
当满足条件HGW50时,在C和O之间画柱状线
当满足条件HGW51时,在C和O之间画柱状线
DRAWTEXT(HJZ4 AND REF(NOT(HJZ4),1),L*0.98,'H'),画红色
VOL5赋值:成交量的5日简单移动平均,画白色
VOL10赋值:成交量的10日简单移动平均,画黄色
VOL40赋值:成交量的40日简单移动平均,COLORFF00FF
MA5赋值:收盘价的5日简单移动平均,画白色
MA10:=收盘价的10日简单移动平均,画黄色
MA20:=收盘价的20日简单移动平均,画洋红色
MA60赋值:收盘价的60日简单移动平均,画绿色
MA120:=收盘价的120日简单移动平均,COLORLIMAGENTA
MA240:=收盘价的240日简单移动平均, 画蓝色,NODRAW
量托赋值:VOL5>=VOL40 AND VOL10上穿VOL40 AND 1日前的VOL10<1日前的VOL40
当满足条件量托时,在L-0.012和'量托'位置书写文字
AA1赋值:上次MA60>MA20 AND (MA20=MA10 OR MA20>MA10距今天数)
BB1赋值:1日前的统计AA1日满足C
CC1赋值:C上穿MA60 AND 成交量>成交量的5日简单移动平均 AND (C-1日前的C)/1日前的C*100>3
芙蓉出水赋值:BB AND CC1,COLOR00FF00
当满足条件芙蓉出水时,在H+0.12和'芙蓉出水'位置书写文字
当满足条件芙蓉出水时,在H和L之间画柱状线
当满足条件芙蓉出水时,在O和C之间画柱状线
MA01赋值:收盘价的14日简单移动平均
MA02赋值:收盘价的25日简单移动平均
MA03赋值:收盘价的99日简单移动平均
ZJ赋值:成交额/10000
{资金}
TM赋值:V-V的10日简单移动平均
{量填满}
一穿三赋值:MA01>O AND MA02>O AND MA03>O AND MA01开盘价
当满足条件一穿三时,在L-0.012和'穿'位置书写文字
TY赋值:C
A1赋值:10日前的TY=2*10+1日内TY最高值
B1赋值:A1的10过滤
C1赋值:BACKSET(B1,10+1)
HD赋值:C1的10过滤
A2赋值:10日前的TY=2*10+1日内TY最低值
B2赋值:A2的10过滤
C2赋值:BACKSET(B2,10+1)
LD赋值:C2的10过滤
输出前期高位:REF(C,上次HD距今天数),,POINTDOT
当满足条件C时,在前期高位和前期高位之间画柱状线
STICKLINE((最高价-收盘价和开盘价较大值)/(最高价-最低价)>0.667,H,C,0.8,0), 画蓝色