2015-12-25

## 分时主图显示最近五个交易日K线和成交量

(2015-06-29 10:52:20)

因为要在分时图上画5个交易日的K线和成交量 所以先建立引用“分时K线引用”所以名字固定为 fsky
` 引用公式内容 V1:REF(HSL,1)*10; V2:REF(HSL,2)*10; V3:REF(HSL,3)*10; V4:REF(HSL,4)*10; ZO:REF(O,1); ZC:REF(C,1); ZH:REF(H,1); ZL:REF(L,1); JO:REF(O,2); JC:REF(C,2); JH:REF(H,2); JL:REF(L,2); JO3:REF(O,3); JC3:REF(C,3); JH3:REF(H,3); JL3:REF(L,3); JO4:REF(O,4); JC4:REF(C,4); JH4:REF(H,4); JL4:REF(L,4); JC5:REF(C,5); 建好上面的引用请退出该公式 再建下面分时主图 {分时主图} N:=500; M:=250; N2:=150; KP:=DYNAINFO(4); ZX:=DYNAINFO(7); ZS:=DYNAINFO(3); ZG:=DYNAINFO(5); ZD:=DYNAINFO(6); OP:=100-(KP/ZS-1)*1000; CL:=100-(ZX/ZS-1)*1000; HI:=100-(ZG/ZS-1)*1000; LO:=100-(ZD/ZS-1)*1000; N1:=950; Q:=IF(ZX>KP,RGB(255,0,0),IF(ZXZO,RGB(255,0,0),IF(ZCJO,RG       55,0,0),IF(JCJO3,RGB(255,0,0),IF(JC3JO4,RGB(255,0,0),IF(JC4KP OR (ZX=KP AND ZX>=ZS),RGB(255,0,0),RGB(84,255,255)); T2:=IF(ZC>ZO OR (ZC=ZO AND ZC>=JC),RGB(255,0,0),RGB(84,255,255)); T3:=IF(JC>JO OR (JC=JO AND JC>=JC3),RGB(255,0,0),RGB(84,255,255)); T4:=IF(JC3>JO3 OR (JC3=JO3 AND JC3>=JC4),RGB(255,0,0),RGB(84,255,255)); T5:=IF(JC4>JO4 OR (JC4=JO4 AND JC4>=JC5),RGB(255,0,0),RGB(84,255,255)); DRAWRECTREL(N1+2,N2-(HSL#DAY*10/N2-1)*M,N1+10,N,T1); DRAWRECTREL(N1-12,N2-("FSKY.V1#DAY"/N2-1)*M,N1,N,T2); DRAWRECTREL(N1-24,N2-("FSKY.V2#DAY"/N2-1)*M,N1-10,N,T3); DRAWRECTREL(N1-36,N2-("FSKY.V3#DAY"/N2-1)*M,N1-22,N,T4); DRAWRECTREL(N1-48,N2-("FSKY.V4#DAY"/N2-1)*M,N1-34,N,T5);`

0条评论

×

¥.00

• 全站无广告

• 全屏阅读

• 全站电子书免费读

• VIP专属标识