等级: 新手上路
- 注册:
- 2021-6-14
- 曾用名:
|
[size=13.3333px]求助下述公式,无法在期货品种中应用,是因为期货中没有 有效的“成交额”函数吗?要怎样修改才能在竖轴上显示 “成交量” 柱形图?
[size=13.3333px]希望得道的高僧,成了仙的大神指点一二,在此先谢过啦!祝新年发大财!来年赚多多!
[size=13.3333px]
[size=13.3333px]
[size=13.3333px][size=13.3333px]时长:=50;
[size=13.3333px]换手次数:=2;
[size=13.3333px]选择方式:=1;
[size=13.3333px]统计时长:IF(选择方式=1,CONST(SUMBARS(V/FINANCE(7)*100,换手次数)),时长),NODRAW;
[size=13.3333px]KK:=统计时长;
[size=13.3333px]高:=CONST(HHV(H,KK));
[size=13.3333px]低:=CONST(LLV(L,KK));
[size=13.3333px]STICKLINE(CURRBARSCOUNT=KK,高,低,0,0);{竖线统计起点位置}
[size=13.3333px]XX:=(高-低);
[size=13.3333px]均价:AMOUNT/V/100,NODRAW;
[size=13.3333px]L0:=低+XX*0/9;
[size=13.3333px]L1:=低+XX*1/9;
[size=13.3333px]L2:=低+XX*2/9;
[size=13.3333px]L3:=低+XX*3/9;
[size=13.3333px]L4:=低+XX*4/9;
[size=13.3333px]L5:=低+XX*5/9;
[size=13.3333px]L6:=低+XX*6/9;
[size=13.3333px]L7:=低+XX*7/9;
[size=13.3333px]L8:=低+XX*8/9;
[size=13.3333px]L9:=低+XX*9/9;
[size=13.3333px]MLZ:=SUM((CURRBARSCOUNT<KK+1)*V,KK);
[size=13.3333px]ML1:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L0-0.001,L1+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML1*200)),L0,L1*0.99,5,0),COLORFF5555;
[size=13.3333px]ML2:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L1,L2+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML2*200)),L1,L2*0.99,5,0),COLORFFAA55;
[size=13.3333px]ML3:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L2,L3+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML3*200)),L2,L3*0.99,5,0),COLORAAFF55;
[size=13.3333px]ML4:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L3,L4+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML4*200)),L3,L4*0.99,5,0),COLOR5FFF00;
[size=13.3333px]ML5:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L4,L5+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML5*200)),L4,L5*0.99,5,0),COLORFFFFF0;
[size=13.3333px]ML6:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L5,L6+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML6*200)),L5,L6*0.99,5,0),COLORFF0FFF;
[size=13.3333px]ML7:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L6,L7+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML7*200)),L6,L7*0.99,5,0),COLOR509FDD;
[size=13.3333px]ML8:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L7,L8+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML8*200)),L7,L8*0.99,5,0),COLORAA5DDD;
[size=13.3333px]ML9:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L8,L9+0.001))*V,KK)/MLZ;
[size=13.3333px]STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML9*200)),L8,L9*0.99,5,0),COLOR0055DD;
[size=13.3333px]DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
|
|