通达信回调就买主图指标,一个指标,觉得有帮助就用
MA10:MA(C,10),COLOR00FFFF;
MA20:MA(C,20),COLORLIBLUE;
MA60:MA(C,60),COLORLIGREEN;
MA120:=MA(C,120),COLOR0000FF;
DRAWKLINE(H,O,L,C);
BDGD:=C=HHV(C,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLORFF00FF,POINTDOT;
突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ<=6,高点,高点,3,0),COLORFF00FF;
DRAWTEXT(突破,LOW,'↑'),COLOR00FFFF;
BDDD:=C=LLV(C,13);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FF00,POINTDOT;
STICKLINE(DDSJ<=6,低点,低点,3,0),COLOR00FF00;
LC:=REF(C,1);
RSI5:=((SMA(MAX((C-LC),0),5,1)/SMA(ABS((C-LC)),5,1))*100);
TR1:=SUM(MAX(MAX((H-L),ABS((H-REF(C,1)))),ABS((L-REF(C,1)))),10);
HD:=(H-REF(H,1));
LD:=(REF(L,1)-L);
DMP:=SUM(IF(((HD>0) AND (HD>LD)),HD,0),10);
DMM:=SUM(IF(((LD>0) AND (LD>HD)),LD,0),10);
PDI:=DMP*100/TR1;
MDI:=DMM*100/TR1;
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:=(RSI5+ADX);
DXR:=(((ADX+REF(ADX,5))/2)+RSI5);
WR10:=((100*(HHV(H,10)-C))/(HHV(H,10)-LLV(L,10)));
NEWVOL:=(RSI5-WR10);
回调买:=(AV+NEWVOL);
DRAWTEXT(CROSS(回调买,0),L*0.999,' 回调买'),COLORYELLOW;
DRAWICON(CROSS(回调买,0),L*0.999,11);
DRAWICON(CROSS(回调买,-5),L*0.98,1);
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出MA10:C的10日简单移动平均,COLOR00FFFF
输出MA20:C的20日简单移动平均,COLORLIBLUE
输出MA60:C的60日简单移动平均,COLORLIGREEN
MA120赋值:C的120日简单移动平均,COLOR0000FF
DRAWKLINE(H,O,L,C)
BDGD赋值:C=13日内C最高值
GDSJ赋值:上次FILTER(0.8上穿BDGD,2距今天数)+1
输出高点:GDSJ日前的C,COLORFF00FF,POINTDOT
输出突破:CROSS(C,1日前的高点),COLOR00FFFF,POINTDOT,NODRAW
当满足条件GDSJ<=6时,在高点和高点之间画柱状线
当满足条件突破时,在最低价和'↑'位置书写文字
BDDD赋值:C=13日内C最低值
DDSJ赋值:上次FILTER(0.8上穿BDDD,2距今天数)+1
输出低点:DDSJ日前的C,COLOR00FF00,POINTDOT
当满足条件DDSJ<=6时,在低点和低点之间画柱状线
LC赋值:1日前的C
RSI5赋值:((SMA(MAX((C-LC),0),5,1)/SMA((C-LC的绝对值),5,1))*100)
TR1赋值:SUM(MAX(MAX((H-L),(H-1日前的C的绝对值)),ABS((L-1日前的C))),10)
HD赋值:(H-1日前的H)
LD赋值:(1日前的L-L)
DMP赋值:SUM(IF(((HD>0) AND (HD>LD)),HD,0),10)
DMM赋值:SUM(IF(((LD>0) AND (LD>HD)),LD,0),10)
PDI赋值:DMP*100/TR1
MDI赋值:DMM*100/TR1
ADX赋值:MA((((MDI-PDI的绝对值)/(MDI+PDI))*100),5)
AV赋值:(RSI5+ADX)
DXR赋值:(((ADX+5日前的ADX)/2)+RSI5)
WR10赋值:((100*(10日内H最高值-C))/(10日内H最高值-10日内L最低值))
NEWVOL赋值:(RSI5-WR10)
回调买赋值:(AV+NEWVOL)
DRAWTEXT(回调买上穿0,L*0.999,' 回调买'),画黄色
DRAWICON(回调买上穿0,L*0.999,11)
DRAWICON(回调买上穿-5,L*0.98,1)