主力潜伏海魂通达信主图指标
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;M80:MA(C,80),LINETHICK0;M200:MA(C,200),LINETHICK0;DRAWBAND(M200,RGB(40,100,40),M80,RGB(100,100,0)),LINETHICK0;DRAWKLINE(H,O,L,C);MA03:MA(C,3),COLORYELLOW,DOTLINE,LINETHICK0;IF(MA03>=REF(MA03,1),MA03,DRAWNULL),COLOR0066FF,LINETHICK0;IF(MA03< REF(MA03,1),MA03,DRAWNULL),,COLORGREEN,LINETHICK0;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,COLORGREEN,LINETHICK2;IF(多空线>=REF(多空线,1),多空线,DRAWNULL),COLORRED,LINETHICK3;IF(多空线< REF(多空线,1),多空线,DRAWNULL),,COLORGREEN,LINETHICK3;牛皮熊:DRAWICON(CROSS(MA03,多空线) AND CLOSE/REF(CLOSE,1)>1.03,LOW*0.96,25);DRAWTEXT(FILTER(牛皮熊,8),多空线-0.05,'↖跟庄买进'),COLORGREEN;DRAWTEXT(CROSS(MA03,多空线) AND MA03>0,多空线-0.23,'★←'),COLORYELLOW;花:=SLOPE(EMA(C,3),3);神:=SLOPE(EMA(C,7),7);DRAWICON(CROSS(花,神) AND CLOSE/REF(CLOSE,1)>1.03,LOW*0.96,25);DRAWTEXT(CROSS(花,神) AND CLOSE/REF(CLOSE,1)>1.03,LOW*0.96,'买'),COLORWHITE;花2:=EMA(SLOPE(1,1)+C,3),COLORRED;神2:=EMA(SLOPE(1,1)+C,7),COLORBLUE;A02:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5<-0.1 AND A5>A6);财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.01,0.08,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.09,0.08,0,EXTERNSTR(0,1))COLOR0000FF;窗口显示:=C>REF(C,1)*1.095 AND C=H;T:=BARSLAST(窗口显示),LINETHICK0;涨停价:REF(C,T)NODRAW,LINETHICK0;涨停日期:REF(DATE-1000000,T)NODRAW,LINETHICK0;STICKLINE(L>REF(H,1),L,REF(H,1),20,1001), COLORYELLOW ,LINETHICK0;STICKLINE(REF(L,1)>H,REF(L,1),H,20,1001), COLORGREEN ,LINETHICK0;TJ01:=C<O AND REFX(C<O,1) AND REFX(C>O,2);DRAWLINE(TJ01,REFX(LLV(L,2),1),REF(TJ01,1),REF(REFX(LLV(L,2),1),1),1)COLORYELLOW,LINETHICK0;DRAWLINE(TJ01,REFX(HHV(C,2),1),REF(TJ01,1),REF(REFX(HHV(C,2),1),1),1)COLORYELLOW,LINETHICK0;{波峰}TY:=H;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); C002:=BACKSET(B2,10+1);LD:=FILTER(C002,10);波峰:REF(H,BARSLAST(HD)),COLOR00808F,POINTDOT,LINETHICK4;STICKLINE(H,波峰,波峰,8,0),COLOR00808F,LINETHICK4;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2
输出M80:C的80日简单移动平均,LINETHICK0
输出M200:C的200日简单移动平均,LINETHICK0
DRAWBAND(M200,RGB(40,100,40),M80,RGB(100,100,0)),LINETHICK0
DRAWKLINE(H,O,L,C)
输出MA03:C的3日简单移动平均,画黄色,DOTLINE,LINETHICK0
IF(MA03>=1日前的MA03,MA03,DRAWNULL),COLOR0066FF,LINETHICK0
IF(MA03< 1日前的MA03,MA03,DRAWNULL),,画绿色,LINETHICK0
X赋值:(3*C+L+O+H)/6
输出多空线:(20*X+19*1日前的X+18*2日前的X+17*3日前的X+16*4日前的X+15*5日前的X+14*6日前的X+13*7日前的X+12*8日前的X+11*9日前的X+10*10日前的X+9*11日前的X+8*12日前的X+7*13日前的X+6*14日前的X+5*15日前的X+4*16日前的X+3*17日前的X+2*18日前的X+20日前的X)/210,画绿色,LINETHICK2
IF(多空线>=1日前的多空线,多空线,DRAWNULL),画红色,LINETHICK3
IF(多空线< 1日前的多空线,多空线,DRAWNULL),,画绿色,LINETHICK3
输出牛皮熊:DRAWICON(MA03上穿多空线 AND 收盘价/1日前的收盘价>1.03,最低价*0.96,25)
DRAWTEXT(牛皮熊的8过滤,多空线-0.05,'↖跟庄买进'),画绿色
DRAWTEXT(MA03上穿多空线 AND MA03>0,多空线-0.23,'★←'),画黄色
花赋值:SLOPE(C的3日指数移动平均,3)
神赋值:SLOPE(C的7日指数移动平均,7)
DRAWICON(花上穿神 AND 收盘价/1日前的收盘价>1.03,最低价*0.96,25)
DRAWTEXT(花上穿神 AND 收盘价/1日前的收盘价>1.03,最低价*0.96,'买'),COLORWHITE
花2:=EMA(SLOPE(1,1)+C,3),画红色
神2:=EMA(SLOPE(1,1)+C,7), 画蓝色
A02赋值:3*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)-2*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)
A4赋值:(34日内H最高值-C)/(34日内H最高值-34日内L最低值)*100
A5赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
A6赋值:A5的9日指数移动平均
A7赋值:(A5<-0.1 AND A5>A6)
财输出神:IF(A7,21日内L最低值,DRAWNULL)画红色,CIRCLEDOT
当满足条件1时,在横轴0.07纵轴0位置书写文字
当满足条件1时,在横轴0.01纵轴0.08位置书写文字
DRAWTEXT_FIX(1,0.09,0.08,0,EXTERNSTR(0,1))COLOR0000FF
窗口显示赋值:C>1日前的C*1.095 AND C=H
T赋值:上次窗口显示距今天数,LINETHICK0
输出涨停价:T日前的CNODRAW,LINETHICK0
输出涨停日期:T日前的DATE-1000000NODRAW,LINETHICK0
STICKLINE(L>1日前的H,L,1日前的H,20,1001), 画黄色 ,LINETHICK0
STICKLINE(1日前的L>H,1日前的L,H,20,1001), 画绿色 ,LINETHICK0
TJ01:=CO,2)
DRAWLINE(TJ01,REFX(2日内L最低值,1),1日前的TJ01,REF(REFX(2日内L最低值,1),1),1)画黄色,LINETHICK0
DRAWLINE(TJ01,REFX(2日内C最高值,1),1日前的TJ01,REF(REFX(2日内C最高值,1),1),1)画黄色,LINETHICK0
{波峰}TY:=H
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过滤
C002赋值:BACKSET(B2,10+1)
LD赋值:C002的10过滤
输出波峰:REF(H,上次HD距今天数),COLOR00808F,POINTDOT,LINETHICK4
当满足条件H时,在波峰和波峰之间画柱状线