通达信五线顺上主图+副图+选股指标 源码 贴图
2022-07-08 10:07:00来源:本站整理浏览:1309
根据唐能通老师2010年底推出的(股价走势构造)教学视频原理,彩带MA主图进行修改,保留突破买入指示('↑')主图里面的黄色小箭头及压力线支撑线,还有论坛另一高手的主图源码,即回调买入指示进行了组合.取名(五线顺上主图).股价运行红色彩带上参入,在红色彩带附近的回调买入提示,可靠性要好些,在红色彩带以外的回调买入指示过滤掉就更好了,股价运行在蓝色带下观望.
五线顺上副图源码:
{五线顺上副图公式}
A:=MA(CLOSE,5);
AA:=REF(A,1);
B:=MA(CLOSE,10);
BB:=REF(B,1);
C1:=MA(CLOSE,20);
CC:=REF(C1,1);
D:=MA(CLOSE,60);
DD:=REF(D,1);
E:=MA(CLOSE,120);
EE:=REF(E,1);{www.gpxiazai.com}
AA>=BB AND BB>=CC AND CC>=DD AND DD>=EE AND A>AA AND B>BB AND C1>CC AND D>DD AND E>EE;
五线顺上选股源码:
A:=MA(CLOSE,5);
AA:=REF(A,1);
B:=MA(CLOSE,10);
BB:=REF(B,1);
C1:=MA(CLOSE,20);
CC:=REF(C1,1);
D:=MA(CLOSE,60);
DD:=REF(D,1);
E:=MA(CLOSE,120);
EE:=REF(E,1);{www.gpxiazai.com}
AA>=BB AND BB>=CC AND CC>=DD AND DD>=EE AND A>AA AND B>BB AND C1>CC AND D>DD AND E>EE;
{五线顺上主图}
DRAWBAND(MA(CLOSE,60),RGB(200,80,80),MA(CLOSE,120),RGB(0,0,115));
MA5:MA(CLOSE,5),COLORFFFFFF;
MA10:MA(CLOSE,10),COLOR00FFFF;
MA20:MA(C,20),COLORFF00FF;
MA60:MA(CLOSE,60),COLORFF9988;
MA120:MA(CLOSE,120),COLOR0000FF;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
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);{WWW.GPXIAZAI.COM}
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FF00,POINTDOT;
STICKLINE(DDSJ<=6,低点,低点,3,0),COLOR00FF00;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
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(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
回调买:=(AV + NEWVOL);
DRAWTEXT(CROSS(回调买,0),L*0.95,'←回调买'),COLORYELLOW;
DRAWICON(CROSS(回调买,-5),L*0.98,1);