影子变盘三角通达信指标 源码 贴图
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
周K:=MA("KDJ.K#WEEK"(9,3,3) ,5);
周D:=MA("KDJ.D#WEEK"(9,3,3) ,5);
周J:=MA("KDJ.J#WEEK"(9,3,3) ,5);
{股票指标网}
关注区:STICKLINE(周J>=REF(周J,1) AND 周J<0,-50,50,5,0),COLORAA66CC;
STICKLINE(周J>=REF(周J,1) AND 周J>=0,50,150,5,0),COLORCC99CC;
AA:-BARSLAST(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1))*8+50,COLOR0000FF,LINETHICK4;
BB:BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1))*8+50,COLORFF0000,LINETHICK4;
DRAWBAND(REF(AA,1),RGB(200,105,255),AA,RGB(200,65,180));
DRAWBAND(50,RGB(0,200,150),AA,RGB(200,200,150));
DRAWBAND(BB,RGB(50,0,0),REF(BB,1),RGB(50,120,250));
DRAWBAND(BB,RGB(250,50,80),50,RGB(0,0,0));
STICKLINE(周K>=周D,50,2*(周K-周D)+50,2,0),COLORCC0099;
STICKLINE(周K<周D,50,2*( 周K-周D)+50,2,0)*2,COLORCC0000;
STICKLINE(K>=D,50,2*(K-D)+50,0.5,0)*2,COLORFF00FF;
STICKLINE(K<D,50,2*(K-D)+50,0.5,0)*2,COLOR00FF00;
周J1:MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFF0000,LINETHICK2;
IF(周J1>=REF(周J1,1),周J1,DRAWNULL),COLOR00FFFF,LINETHICK2;
DRAWTEXT_FIX(1,0.0,0.0,0,'★★ 暗粉色为周J0以下拐点向上—关注★★ 淡粉色为周J0以上拐点向—买入★★红色三角—轻仓★★ 淡粉色区 红色三角—全仓★★绿色为—减仓★★★★ '),COLORFFFFFF;
DRAWTEXT_FIX(1,0.0,0.05,0,'★★ 红柱表示日KD金叉★★绿柱为KD死叉★★宽紫色为月KD金叉★★宽蓝色为周KD死叉★★'),COLORFFFFFF;
DRAWTEXT_FIX(1,0.0,0.1,0,'★★三角影子为变盘信号 ★★变色曲线为周J'),COLORFFFFFF;
未来函数检测结果如下:
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
周K赋值:MA("KDJ.K#WEEK"(9,3,3) ,5)
周D赋值:MA("KDJ.D#WEEK"(9,3,3) ,5)
周J赋值:MA("KDJ.J#WEEK"(9,3,3) ,5)
输出
{股票指标网}
关注区:STICKLINE(周J>=1日前的周J AND 周J<0,-50,50,5,0),COLORAA66CC
STICKLINE(周J>=1日前的周J AND 周J>=0,50,150,5,0),COLORCC99CC
输出
AA:-上次收盘价的5日指数移动平均>1日前的收盘价的5日指数移动平均距今天数*8+50,COLOR0000FF,LINETHICK4
输出
BB:上次收盘价的5日指数移动平均<1日前的收盘价的5日指数移动平均距今天数*8+50,COLORFF0000,LINETHICK4
DRAWBAND(1日前的AA,RGB(200,105,255),AA,RGB(200,65,180))
DRAWBAND(50,RGB(0,200,150),AA,RGB(200,200,150))
DRAWBAND(BB,RGB(50,0,0),1日前的BB,RGB(50,120,250))
DRAWBAND(BB,RGB(250,50,80),50,RGB(0,0,0))
STICKLINE(周K>=周D,50,2*(周K-周D)+50,2,0),COLORCC0099
STICKLINE(周K<周D,50,2*( 周K-周D)+50,2,0)*2,COLORCC0000
STICKLINE(K>=D,50,2*(K-D)+50,0.5,0)*2,COLORFF00FF
STICKLINE(K
周J1:MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFF0000, 线宽为2
IF(周J1>=1日前的周J1,周J1,DRAWNULL),COLOR00FFFF, 线宽为2
当满足条件1时,在横轴0.0纵轴0.0位置书写文字
当满足条件1时,在横轴0.0纵轴0.05位置书写文字
当满足条件1时,在横轴0.0纵轴0.1位置书写文字