【通達(dá)信】區(qū)間成本主圖指標(biāo)公式
攻城獅 2016.03.27 17:20
起點:=1;終點:=100;
AA:=起點;
BB:=終點;
CYC:=IF(CAPITAL=0,(SUM(C,AA)-SUM(C,BB))/(AA-BB),(SUM(AMOUNT,AA)-SUM(AMOUNT,BB))/(SUM(VOL,AA)-SUM(VOL,BB))/100);
區(qū)間成本:CONST(CYC),NODRAW;
區(qū)間換手:(SUM(VOL,AA)-SUM(VOL,BB))/CAPITAL*100,NODRAW;
計算周期:AA-BB,NODRAW;
HH:=REFDATE(HHV(H,起點),DATE);
LL:=REFDATE(LLV(L,起點),DATE);
N1:=IF(PERIOD=7,1.05,IF(PERIOD=6,1.02,1.01));
N2:=IF(PERIOD=7,0.95,IF(PERIOD=6,0.98,0.99));
STICKLINE(CURRBARSCOUNT<=終點,區(qū)間成本*N1,區(qū)間成本*N2,5,0),COLOR808080;
STICKLINE(CURRBARSCOUNT<=終點,區(qū)間成本,區(qū)間成本,5,0),COLORWHITE;
{m.chiang1015.com 概念股網(wǎng)_最新股票指標(biāo)公式}
STICKLINE(CURRBARSCOUNT=起點,HH,LL,0,-1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=終點,HH,LL,0,-1),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=起點,LL,’起點’),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=終點,LL,’終點’),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨立思考之上。