本指标前面一截是DMI指标改的,主要是后面的指标,结合在一起等于一个副图看两种有用的指标。
N 2 100 7
M 1 100 6
上面的输入到框内
{牛牛指标网提供:www.tdx001.com}
通达信指标低点买进出现,买必赚副图 源码
复制内容到剪贴板
- TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
- HD :=HIGH-REF(HIGH,1);
- LD :=REF(LOW,1)-LOW;
- DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
- DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
- PDI: DMP*100/TR;
- MDI: DMM*100/TR;
- A7:=C-REF(C,1);
- A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
- SHORT:=7;
- LONG:=19;
- RMA:=EMA(CLOSE,SHORT);
- NMA:=EMA(CLOSE,LONG);
- UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);
- DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);
- 买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1),STICK,COLORBLUE,LINETHICK3;
- DRAWTEXT(买进,0.5,'买进'),COLORRED;
8A74627975.png
|