通達(dá)信軟件,一條5日均線,向上為紅色,向下為藍(lán)色: 長(zhǎng)趨勢(shì)線:MA(CLOSE,5),COLORWHITE,LINETHICK2; 買:IF(長(zhǎng)趨勢(shì)線>REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,DRAWNULL),COLORRED,LINETHICK2; 長(zhǎng)平:=IF(長(zhǎng)趨勢(shì)線=REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,DRAWNULL),COLOR00FFFF,LINETHICK2; 賣:IF(長(zhǎng)趨勢(shì)線<REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,DRAWNULL),COLORBLUE,LINETHICK2;
但該線為一條線,如何畫(huà)成每天為一條短線,依次向上或向下。
答:長(zhǎng)趨勢(shì)線:=MA(CLOSE,5); STICKLINE(長(zhǎng)趨勢(shì)線>REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,長(zhǎng)趨勢(shì)線*0.9995,5,0),COLORAA99FF; STICKLINE(長(zhǎng)趨勢(shì)線<REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,長(zhǎng)趨勢(shì)線*0.9995,5,0),COLORFFAA66; STICKLINE(長(zhǎng)趨勢(shì)線=REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,長(zhǎng)趨勢(shì)線*0.9995,5,0),COLOR00FFFF;
或者用下面的試試
長(zhǎng)趨勢(shì)線:=MA(CLOSE,5);
DRAWTEXT(長(zhǎng)趨勢(shì)線>REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,'↑'),COLORAA99FF; DRAWTEXT(長(zhǎng)趨勢(shì)線<REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,'↓'),COLORFFAA99; DRAWTEXT(長(zhǎng)趨勢(shì)線=REF(長(zhǎng)趨勢(shì)線,1),長(zhǎng)趨勢(shì)線,'→'),COLOR00FFFF;
除此以外就不知道"畫(huà)成每天為一條短線,依次向上或向下。"是什么意思了 |