改良的趨勢為先--千鈞指標(biāo)發(fā)表時(shí)間:2008-08-05 15:51:08 閱讀:2747 次 回復(fù):32個(gè)
改良的趨勢為先。 我發(fā)現(xiàn)指標(biāo)線比柱狀線更直觀。
N大家可以根據(jù)自己的喜好調(diào)整,這里目前是22天的。 喜歡短線的朋友可以調(diào)整為3---7天。 N:=22; LT:=ESTDATA(12)/10; JJ:=AMOUNT/vol/100; 流通:IF(CAPITAL<1,ESTDATA(12)/10000,FINANCE( 7)/10000),LINETHICK,PRECISION2,Color00FF00; 市值:IF(CAPITAL<1,(JJ*ESTDATA(12))/10000,FINANCE( 7)*C/10000),LINETHICK,PRECISION2,ColorFFDD00; DT:=CURRENTDATE; AA:=REF(DATE,BARSLAST(SYSPARAM(1)=BARPOS)); BB:=IF(AA=DT,1,0); CC:=BB[SYSPARAM(3)]; if CC=1 then DD:=ISLASTBAR; else DD:=BARPOS=ISLASTBAR; qj:=DD; 機(jī):=IF(qj,STKINDI(\'\',\'機(jī)構(gòu).機(jī)構(gòu)\',0,0),EXTDATA(9)); 券:=IF(qj,STKINDI(\'\',\'券商.券商\',0,0),EXTDATA(10)); 大:=IF(qj,STKINDI(\'\',\'大戶.大戶\',0,0),EXTDATA(11)); 中:=IF(qj,STKINDI(\'\',\'中戶.中戶\',0,0),EXTDATA(12)); 散:=IF(qj,STKINDI(\'\',\'散戶.散戶\',0,0),EXTDATA(13)); 滬:=IF(qj,STKINDI(\'\',\'滬機(jī)構(gòu).機(jī)構(gòu)\',0,0),EXTDATA(6)); 滬0:=IF(qj,STKINDI(\'\',\'滬中戶.中戶\',0,0),EXTDATA(5)); 滬1:=IF(qj,STKINDI(\'\',\'滬大戶.大戶\',0,0),EXTDATA(7)); 滬2:=IF(qj,STKINDI(\'\',\'滬散戶.散戶\',0,0),EXTDATA(8)); AA1:=SUM(REF(滬,1),N)+滬; AA:=IF(CAPITAL<1,AA1,SUM(REF(機(jī),1),N)+機(jī)); BB:=SUM(REF(券,1),N)+券; BB1:=SUM(REF(滬1,1),N)+滬1; CC:=IF(CAPITAL<1,BB1,SUM(REF(大,1),N)+大); CC1:=SUM(REF(滬0,1),N)+滬0; DD:=IF(CAPITAL<1,CC1,SUM(REF(中,1),N)+中); FF1:=SUM(REF(滬2,1),N)+滬2; FF:=IF(CAPITAL<1,FF1+CC1,SUM(REF(散,1),N)+散); 機(jī)構(gòu):IF(CAPITAL<1,AA1/LT,AA/FINANCE( 7)),COLOR00FFFF,PRECISION2,LINETHICK1; 券商:BB/FINANCE( 7),ColorFE00EF,PRECISION2,LINETHICK1; 大戶:IF(CAPITAL<1,BB1/LT,CC/FINANCE( 7)),Color0000FF,PRECISION2,LINETHICK1; 中戶:IF(CAPITAL<1,CC1/LT,DD/FINANCE( 7)),COLORGREEN,PRECISION2,LINETHICK1; 散戶:IF(CAPITAL<1,FF1/LT,FF/FINANCE( 7)),COLORFFFF00,PRECISION2,LINETHICK1;
|
|