同花順區(qū)間三分割主圖指標(biāo)公式
基本概況:
- 指標(biāo)類別: 同花順指標(biāo)
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)語(yǔ)言: 簡(jiǎn)體中文
- 指標(biāo)來源: 互聯(lián)網(wǎng)
- 指標(biāo)日期: 2017-08-15 00:00:00
內(nèi)容介紹:
同花順區(qū)間三分割主圖指標(biāo)公式起點(diǎn):=60;終點(diǎn):=10;切換:=5;
DRAWGBKLAST(1,STRIP(RGB(30,80,220),RGB(130,80,180),1));
nx:=CURRBARSCOUNT+1;
wz:=CURRBARSCOUNT+1=1;
wx:=CURRBARSCOUNT+1=起點(diǎn);
wt:=BARSLAST(wx);
wxz:=IF(wt>=0,1,DRAWNULL);
QH:=IF(nx>=終點(diǎn) AND nx<=起點(diǎn),H,DRAWNULL);
QL:=IF(nx>=終點(diǎn) AND nx<=起點(diǎn),L,DRAWNULL);
XZ:=IF(nx>=終點(diǎn),1,DRAWNULL);
//分割計(jì)算
ZH:=HHV(QH,0);
ZL:=LLV(QL,0);
HXT:=(ZH-ZL);
J1:=ZH-HXT*0.241;
J2:=ZH-HXT*0.382;
J3:=ZH-HXT*0.613;
J4:=ZH-HXT*0.786;
JXT:=(ZH-ZL)/8;
H1:=ZH-JXT*1;
H2:=ZH-JXT*2;
H3:=ZH-JXT*3;
H4:=ZH-JXT*5;
H5:=ZH-JXT*6;
H6:=ZH-JXT*7;
BXT:=(ZH-ZL)/10;
B1:=ZH-BXT*1;
B2:=ZH-BXT*2;
B3:=ZH-BXT*3;
B4:=ZH-BXT*4;
B5:=ZH-BXT*6;
B6:=ZH-BXT*7;
B7:=ZH-BXT*8;
B8:=ZH-BXT*9;
//股票k線
STICKLINE(OPEN,CLOSE ,OPEN,9,0 ),COLOR000000;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,8,0 ),COLOR007700;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00bb00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00dd00;
STICKLINE(OPEN>CLOSE ,HIGH,LOW,1.5 ,0 ),COLOR00ff00;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,8,0) ,COLOR000077;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,7,0) ,COLOR000099;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,5,0) ,COLOR0000bb;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,3,0) ,COLOR0000dd;
STICKLINE(CLOSE>=OPEN ,HIGH,LOW,1.5,0 ),COLOR0000FF;
STICKLINE(HIGH=LOW AND CLOSE>REF(CLOSE,1),HIGH-0.01,HIGH+0.01,8,0 ),COLOR0000FF;
STICKLINE(HIGH=LOW AND CLOSE<REF(CLOSE,1),HIGH-0.01,HIGH+0.01,8,0 ),COLOR00FF00;
//分割顯示
IF 切換>=1 AND 切換<=3 THEN BEGIN
VERLINE(nx=終點(diǎn) OR nx=起點(diǎn),2),COLOR009fff;
x1:=IF(切換=1,J1,IF(切換=2,H1,IF(切換=3,B1,DRAWNULL)));
x2:=IF(切換=1,J2,IF(切換=2,H2,IF(切換=3,B2,DRAWNULL)));
x3:=IF(切換=1,J3,IF(切換=2,H3,IF(切換=3,B3,DRAWNULL)));
x4:=IF(切換=1,J4,IF(切換=2,H4,IF(切換=3,B4,DRAWNULL)));
高:BACKSET(IF(wz,ZH,DRAWNULL),起點(diǎn)-1)*wxz,COLORff88ff,LINETHICK2;
低:BACKSET(IF(wz,ZL,DRAWNULL),起點(diǎn)-1)*wxz,COLORff88ff,LINETHICK2;
中:BACKSET(IF(wz,(ZH+ZL)/2,DRAWNULL),起點(diǎn)-1)*wxz,COLORff88ff;
分1:BACKSET(IF(wz,X1,DRAWNULL),起點(diǎn)-1)*wxz,COLORffff00;
分2:BACKSET(IF(wz,X2,DRAWNULL),起點(diǎn)-1)*wxz,COLORffff00;
分3:BACKSET(IF(wz,X3,DRAWNULL),起點(diǎn)-1)*wxz,COLORffff00;
分4:BACKSET(IF(wz,X4,DRAWNULL),起點(diǎn)-1)*wxz,COLORffff00;
END;
IF 切換=2 OR 切換=3 THEN BEGIN
x5:=IF(切換=2,H5,B5);
x6:=IF(切換=2,H6,B6);
分5:BACKSET(IF(wz,X5,DRAWNULL),起點(diǎn)-1)*wxz,COLORffff00;
分6:BACKSET(IF(wz,X6,DRAWNULL),起點(diǎn)-1)*wxz,COLORffff00;
END;
IF 切換=3 THEN BEGIN
x7:=B7;
x8:=B8;
分7:BACKSET(IF(wz,X7,NULL),起點(diǎn)-1)*wxz,COLORffff00;
分8:BACKSET(IF(wz,X8,NULL),起點(diǎn)-1)*wxz,COLORffff00;
END;
//分割提示
DRAWTEXT(wz,高,'`'+TOSTRING(高,2)+'(高)'),COLORff88ff;
DRAWTEXT(wz,低,'`'+TOSTRING(低,2)+'(低)'),COLORff88ff;
DRAWTEXT(wz,中,'`'+TOSTRING(中,2)+'(中)'),COLORff88ff;
DRAWTEXT(wz,分1,'`'+TOSTRING(分1,2)+'(分1)&
- ·中泰化學(xué)業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比略低于預(yù)期
- ·敏芯股份業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比減少674.39%
- ·百潤(rùn)股份業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)104.7%
- ·陶瓷行業(yè)股票2023業(yè)績(jī)分析:陶瓷基板發(fā)展迅速,精密陶瓷零部件有望加速國(guó)產(chǎn)化
- ·天奧電子業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)10.37%
- ·香飄飄業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)110%
相關(guān)推薦: