通达信鱼网3合1主图
好线:=38,COLORFF3311;
平线:=51,COLORFF1155;
OK:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORWHITE;
RSI2:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORWHITE;
鱼:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORYELLOW,;
RSI4:=SMA(鱼,7,1),LINETHICK1,COLORWHITE;
趋势A:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,COLORFFFFFF;
趋势B:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;
A1:=MA(趋势A,7)*1.372,COLORGREEN,LINETHICK1;
A2:=A1*1.0887;
A3:=(1.5*(趋势B+RSI4)-(A2+A1))+12,COLORGREEN,LINETHICK1,;
鱼网:=IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,A3) AND A3<好线 AND RSI1<平线),48,38),COLORRED,LINETHICK1;
XG:鱼网=48 AND CROSS(鱼,好线) AND REF(MA(C,3),1)<=MA(C,3),NODRAW;
{WWW.}
J:=MA("KDJ.J#WEEK",5)/1.1;
XG2:J>=REF(J,1),NODRAW;
LC:=REF(CLOSE,1);
RSI11:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORMAGENTA;
RSI22:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLORWHITE;
RSI33:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,COLORYELLOW;
RSI50安全线:=(RSI11>49 AND RSI22>49 AND RSI33>49),COLOR00FFFF;
OK2:=REF(CLOSE,1);
鱼2:=SMA(MAX(CLOSE-OK2,0),7,1)/SMA(ABS(CLOSE-OK2),7,1)*100,COLORRED;
RSI42:=SMA(鱼2,7,1),LINETHICK1,COLORWHITE;
白绿线:=SMA(鱼2,7,1),LINETHICK1,COLORWHITE;
HH:=BARSLAST(鱼2<=15)<5;
深水鱼:CROSS(鱼2,RSI42) AND HH AND 白绿线>15,NODRAW;
M3:MA(CLOSE,3),COLORFF309B;
M7:MA(CLOSE,7),COLOR9BCD9B;
M21:MA(CLOSE,21),COLORWHITE;
M30:MA(CLOSE,30),COLOR2D52A0;
M60:MA(CLOSE,60),COLORRED;
DRAWICON(CROSS(M3,M7),M7,1);
未来函数检测结果如下:
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
好线赋值:38,COLORFF3311
平线赋值:51,COLORFF1155
OK赋值:1日前的收盘价
RSI1赋值:SMA(收盘价-OK和0较大值,7,1)/SMA(收盘价-OK的绝对值,7,1)*100,画白色
RSI2赋值:SMA(收盘价-OK和0较大值,7,1)/SMA(收盘价-OK的绝对值,7,1)*100,画白色
鱼赋值:SMA(收盘价-OK和0较大值,7,1)/SMA(收盘价-OK的绝对值,7,1)*100,画黄色,
鱼的7日[1日权重]移动平均
趋势A赋值:MA(((收盘价-48日内最低价最低值)/(48日内最高价最高值-48日内最低价最低值)*50),17)+9,COLORFFFFFF
趋势B赋值:MA(((收盘价-53日内最低价最低值)/(53日内最高价最高值-53日内最低价最低值)*50),17)+9,COLOR3377DD
A1赋值:趋势A的7日简单移动平均*1.372,画绿色,LINETHICK1
A2赋值:A1*1.0887
A3赋值:(1.5*(趋势B+RSI4)-(A2+A1))+12,画绿色,LINETHICK1,
鱼网:=IF((RSI2上穿RSI4 OR RSI2上穿A3 AND A3<好线 AND RSI1<平线),48,38),画红色,LINETHICK1
输出XG:鱼网=48 AND 鱼上穿好线 AND REF(C的3日简单移动平均,1)<=C的3日简单移动平均,NODRAW
{WWW.}
J赋值:"KDJ.J#WEEK"的5日简单移动平均/1.1
XG2:J>=1日前的J,NODRAW
LC赋值:1日前的收盘价
RSI11:=SMA(收盘价-LC和0较大值,6,1)/SMA(收盘价-LC的绝对值,6,1)*100,画洋红色
RSI22:=SMA(收盘价-LC和0较大值,12,1)/SMA(收盘价-LC的绝对值,12,1)*100,画白色
RSI33赋值:SMA(收盘价-LC和0较大值,24,1)/SMA(收盘价-LC的绝对值,24,1)*100,画黄色
RSI50安全线赋值:(RSI11>49 AND RSI22>49 AND RSI33>49),COLOR00FFFF
OK2:=1日前的收盘价
鱼2:=SMA(收盘价-OK2和0较大值,7,1)/SMA(收盘价-OK2的绝对值,7,1)*100,画红色
鱼2的7日[1日权重]移动平均
鱼2的7日[1日权重]移动平均
HH赋值:上次鱼2<=15距今天数<5
深水输出鱼:鱼2上穿RSI42 AND HH AND 白绿线>15,NODRAW
输出M3:收盘价的3日简单移动平均,COLORFF309B
输出M7:收盘价的7日简单移动平均,COLOR9BCD9B
输出M21:收盘价的21日简单移动平均,画白色
M30:收盘价的30日简单移动平均,COLOR2D52A0
输出M60:收盘价的60日简单移动平均,画红色
DRAWICON(M3上穿M7,M7,1)