通達信區間成本主圖指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 圖表
- 畫線方法: 主圖
- 日期:2024-08-16 來源:互聯網
通達信區間成本主圖指標公式:
起點:=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);
區間成本:CONST(CYC),NODRAW;
區間換手:(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<=終點,區間成本*N1,區間成本*N2,5,0),COLOR808080;
STICKLINE(CURRBARSCOUNT<=終點,區間成本,區間成本,5,0),COLORWHITE;
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);
通達信區間成本主圖指標公式實例圖解:
通達信區間成本主圖指標公式