通达信千一公式通道主图公式源码
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,COLORGRAY;
下:(1-7/100)*DD,COLORGRAY;
中:(上+下)/2,COLORF0F000;
危:(1+14/100)*DD,DOTLINE,COLORGRAY;
机:(1-14/100)*DD,DOTLINE,COLORGRAY;
IF(上>=REF(上,1), 上,DRAWNULL),COLOR0099FF;
IF(中>=REF(中,1), 中,DRAWNULL),COLOR0099FF;
IF(下>=REF(下,1), 下,DRAWNULL),COLOR0099FF;
DRAWNUMBER(ISLASTBAR,上,上),COLOR00FFFF;
DRAWNUMBER(ISLASTBAR,下,下),COLORFFFF00;
DRAWNUMBER(ISLASTBAR,中,中),COLOR00FF00;
DRAWNUMBER(ISLASTBAR,危,危),COLOR0000FF;
DRAWNUMBER(ISLASTBAR,机,机),COLORWHITE;
61177469.jpg
|