手机端
当前位置:爱约股 > 公式技巧 > 把轨道主图指标指标改成通达信的

把轨道主图指标指标改成通达信的

{轨道} CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上:(1+7/100)*DD,COLORgray; {疯:(1+14/100)*DD,COLORred;} 下:(1-7/100)*DD,COLORgray; 中:(上+下)/2,colorf0f000; A := DISPSTATUS=2; DRAWTEXT(A AND 上,上,NUMTOSTRN(上,2)),ColorEA91B5; PARTLINE(上 ,(上>REF(上,1))-1,rgb(0,255,200),1,rgb(255,0,255) ),LINETHICK1,LAYER0; {DRAWTEXT(A AND 疯,疯,NUMTOSTRN(疯,2)),ColorEA91B5;} DRAWTEXT(A AND 中,中,NUMTOSTRN(中,2)),ColorEA91B5; PARTLINE(中 ,(中>REF(中,1))-1,rgb(0,255,200),1,rgb(255,0,255) ),LINETHICK1,LAYER0; DRAWTEXT(A AND 下,下,NUMTOSTRN(下,2)),ColorEA91B5;STICKLINE(C>=O,C,O, 7,0),COLORred; PARTLINE(下 ,(下>REF(下,1))-1,rgb(0,255,200),1,rgb(255,0,255) ),LINETHICK1,LAYER0;

爱约股解答:

CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

DD:=DMA(CLOSE,CC);

上:(1+7/100)*DD,COLORGREEN;

下:(1-7/100)*DD,COLORGREEN;

中:(上+下)/2,COLORGREEN;

 

DRAWNUMBER(ISLASTBAR,上,上),COLOR00FFFF;

DRAWNUMBER(ISLASTBAR,下,下)COLORFFFF00;

DRAWNUMBER(ISLASTBAR,中,中),COLOR00FF00;

DRAWNUMBER(ISLASTBAR,疯,疯),COLOR0000FF;

DRAWNUMBER(ISLASTBAR,底,底),COLORWHITE;

 

上轨红:IF(上>=REF(上,1),上,DRAWNULL),COLORRED,LINETHICK1;

中轨红:IF(中>=REF(中,1),中,DRAWNULL),COLORRED, LINETHICK1;

下轨红:IF(下>=REF(下,1),下,DRAWNULL),COLORRED,LINETHICK1;

TAG:
分享至:

相关推荐