通達(dá)信三角分割主圖看壓力趨勢(shì)指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類: 圖表
- 畫線方法: 主圖
- 日期:2024-05-21 來(lái)源:互聯(lián)網(wǎng)
通達(dá)信三角分割主圖看壓力趨勢(shì)指標(biāo)公式:
N:=10;P:=60;
趨勢(shì):ZIG(3,N);
↑:TROUGHBARS(3,N,1),COLOR0000FF,NODRAW;
↓:PEAKBARS(3,N,1),COLOR00FF00,NODRAW;
低:IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))),COLOR00FFFF,NODRAW;
漲%:IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)),COLOR0000FF,NODRAW;
高:IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))),COLOR00FF00,NODRAW;
跌%:IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)),COLORFFFF00,NODRAW;
{以下設(shè)置主圖顯示方式}
上:IF(趨勢(shì)>REF(趨勢(shì),1),趨勢(shì),DRAWNULL),COLORRED,LINETHICK2;
下:IF(趨勢(shì)<REF(趨勢(shì),1),趨勢(shì),DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(↑=0,H*1.01,高,0,0),COLOR00FF00;
STICKLINE(↓=0,L*0.99,低,0,0),COLORFF00FF;
STICKLINE(BETWEEN(↑,0,7),低,低,3,1),COLOR00FFFF;
STICKLINE(BETWEEN(↓,0,7),高,高,3,1),COLOR00FF00;
STICKLINE(↑<↓,低,低,1,1),COLOR00FFFF;
STICKLINE(↓<↑,高,高,1,1),COLOR00FF00;
{以下設(shè)置黃金分割}
KJ:=高-低;
H1:高-KJ*0.191,COLOR00FFFF,NODRAW;
H2:高-KJ*0.382,COLOR0000FF,NODRAW;
H3:高-KJ*0.500,COLORFFFFFF,NODRAW;
H4:高-KJ*0.618,COLORFF00FF,NODRAW;
H5:高-KJ*0.809,COLOR00FF00,NODRAW;
STICKLINE(↑<↓ AND ↑>0 AND 趨勢(shì)<高,高,高,1,1),COLOR00FF00;
STICKLINE(↑<↓ AND ↑>0 AND 趨勢(shì)<H1,H1,H1,1,1),COLOR00FF00;
STICKLINE(↑<↓ AND ↑>0 AND 趨勢(shì)<H2,H2,H2,1,1),COLOR00FF00;
STICKLINE(↑<↓ AND ↑>0 AND 趨勢(shì)<H3,H3,H3,1,1),COLORFFFFFF;
STICKLINE(↑<↓ AND ↑>0 AND 趨勢(shì)<H4,H4,H4,1,1),COLOR00FF00;
STICKLINE(↑<↓ AND ↑>0 AND 趨勢(shì)<H5,H5,H5,1,1),COLOR00FF00;
STICKLINE(↓<↑ AND ↓>0 AND 趨勢(shì)>H1,H1,H1,1,1),COLORFF00FF;
STICKLINE(↓<↑ AND ↓>0 AND 趨勢(shì)>H2,H2,H2,1,1),COLORFF00FF;
STICKLINE(↓<↑ AND ↓>0 AND 趨勢(shì)>H3,H3,H3,1,1),COLORFFFFFF;
STICKLINE(↓<↑ AND ↓>0 AND 趨勢(shì)>H4,H4,H4,1,1),COLORFF00FF;
STICKLINE(↓<↑ AND ↓>0 AND 趨勢(shì)>H5,H5,H5,1,1),COLORFF00FF;
STICKLINE(↓<↑ AND ↓>0 AND 趨勢(shì)>低,低,低,1,1),COLORFF00FF;
ZHSJ:=IF(↓<↑,BACKSET(ISLASTBAR,↓),IF(↑<↓,BACKSET(ISLASTBAR,↑),0));
DRAWTEXT(↓<↑ AND CROSS(ZHSJ,0.1),H1,'險(xiǎn)'),COLOR00FFFF;
DRAWTEXT(↓<↑ AND CROSS(ZHSJ,0.1),H2,'高'),COLOR00FFFF;
DRAWTEXT(↓<↑ AND CROSS(ZHSJ,0.1),H3,'中'),COLOR00FF00;
DRAWTEXT(↓<↑ AND CROSS(ZHSJ,0.1),H4,'低'),COLOR00FFFF;
DRAWTEXT(↓<↑ AND CROSS(ZHSJ,0.1),H5,'支'),COLOR00FFFF;
DRAWTEXT(↓>↑ AND CROSS(ZHSJ,0.1),H1,'壓'),COLORFFFFFF;
DRAWTEXT(↓>↑ AND CROSS(ZHSJ,0.1),H2,'高'),COLORFFFFFF;
DRAWTEXT(↓>↑ AND CROSS(ZHSJ,0.1),H3,'中'),COLOR0000FF;
DRAWTEXT(↓>↑ AND CROSS(ZHSJ,0.1),H4,'低'),COLORFFFFFF;
DRAWTEXT(↓>↑ AND CROSS(ZHSJ,0.1),H5,'彈'),COLORFFFFFF;
通達(dá)信三角分割主圖看壓力趨勢(shì)指標(biāo)公式實(shí)例圖解:
通達(dá)信三角分割主圖看壓力趨勢(shì)指標(biāo)公式
- ·通達(dá)信短線英豪壓力支撐指標(biāo)公式
- ·通達(dá)信壓力趨勢(shì)主圖指標(biāo)公式
- ·通達(dá)信趨勢(shì)壓力支撐主圖指標(biāo)公式
- ·通達(dá)信壓力支撐線主圖指標(biāo)公式
- ·通達(dá)信突破壓力線主圖指標(biāo)公式
- ·通達(dá)信小牛望月主圖壓力與支撐指標(biāo)公式
- ·通達(dá)信CCI+支撐壓力位主圖指標(biāo)公式
- ·通達(dá)信RSI壓力突破指標(biāo)公式
- ·通達(dá)信牛熊分界主圖壓力與支撐指標(biāo)公式
- ·通達(dá)信按部就班主圖支撐壓力買賣指標(biāo)公式
- ·通達(dá)信量能平臺(tái)主圖支撐與壓力指標(biāo)公式
- ·通達(dá)信SSL壓力與支撐指標(biāo)公式