【大智慧】戰(zhàn)略資金指標公式
攻城獅 2015.11.27 02:55
N:=5;
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE賣:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE bz:=SUM(買,1);
sz:=SUM(賣,1);
az:=bz+sz;
cz:=bz-sz;
總金額:az,linethick0;
買入:bz,linethick0;
賣出:sz,linethick0;
凈入:cz,linethick0;
N總凈入:SUM(凈入,n),ColorFF00FF,linethick2;
打壓1:=HHV(H,1);
打壓2:=HHV(H,3);
打壓3:=HHV(H,6);
打壓4:=HHV(H,10);
打壓5:=HHV(H,15);
打壓6:=HHV(H,20);
拉升1:=LLV(L,1);
拉升2:=LLV(L,3);
拉升3:=LLV(L,6);
拉升4:=LLV(L,10);
拉升5:=LLV(L,15);
拉升6:=LLV(L,20);
拉升1買量:=IF(拉升1>REF(拉升1,1),VAR1*(HIGH-LOW),IF(REF(打壓1,1)>打壓1,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000;
打壓1賣量:=IF(拉升1>REF(拉升1,1),VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(拉升1>REF(拉升1,1),VAR1*(HIGH-LOW),AMOUNT/2))/10000;
拉升1總:=SUM(拉升1買量,n);
打壓1總:=SUM(打壓1賣量,n);
打拉1:拉升1總-打壓1總,Color00FFFF;
拉升2買量:=IF(拉升2>REF(拉升2,1),VAR1*(HIGH-LOW),IF(REF(打壓2,1)>打壓2,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000;
打壓2賣量:=IF(拉升2>REF(拉升2,1),VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(拉升2>REF(拉升2,1),VAR1*(HIGH-LOW),AMOUNT/2))/10000;
拉升2總:=SUM(拉升2買量,n);
打壓2總:=SUM(打壓2賣量,n);
打拉2:拉升2總-打壓2總,ColorFFFFFF;
拉升3買量:=IF(拉升3>REF(拉升3,1),VAR1*(HIGH-LOW),IF(REF(打壓3,1)>打壓3,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000;
打壓3賣量:=IF(拉升3>REF(拉升3,1),VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(拉升3>REF(拉升3,1),VAR1*(HIGH-LOW),AMOUNT/2))/10000;
拉升3總:=SUM(拉升3買量,n);
打壓3總:=SUM(打壓3賣量,n);
打拉3:拉升3總-打壓3總,ColorFF0082;
拉升4買量:=IF(拉升4>REF(拉升4,1),VAR1*(HIGH-LOW),IF(REF(打壓4,1)>打壓4,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000;
打壓4賣量:=IF(拉升4>REF(拉升4,1),VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(拉升4>REF(拉升4,1),VAR1*(HIGH-LOW),AMOUNT/2))/10000;
拉升4總:=SUM(拉升4買量,n);
打壓4總:=SUM(打壓4賣量,n);
打拉4:拉升4總-打壓4總,Color00FF00,linethick2,LAYER2;
拉升5買量:=IF(拉升5>REF(拉升5,1),VAR1*(HIGH-LOW),IF(REF(打壓5,1)>打壓5,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000;
打壓5賣量:=IF(拉升5>REF(拉升5,1),VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(拉升5>REF(拉升5,1),VAR1*(HIGH-LOW),AMOUNT/2))/10000;
拉升5總:=SUM(拉升5買量,n);
打壓5總:=SUM(打壓5賣量,n);
打拉5:拉升5總-打壓5總,ColorFF0000,linethick2;
拉升6買量:=IF(拉升6>REF(拉升6,1),VAR1*(HIGH-LOW),IF(REF(打壓6,1)>打壓6,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000;
打壓6賣量:=IF(拉升6>REF(拉升6,1),VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(拉升6>REF(拉升6,1),VAR1*(HIGH-LOW),AMOUNT/2))/10000;
拉升6總:=SUM(拉升6買量,n);
打壓6總:=SUM(打壓6賣量,n);
打拉6:拉升6總-打壓6總,Color0000FF,linethick2;
DRAWTEXTREL(12,10,’■’+NUMTOSTRN (n,0)+’天總凈入:’+NUMTOSTRN (N總凈入,2)),ColorFF00FF,LAYER1;
DRAWTEXTREL(12,150,’■一拉升打壓資金:’+NUMTOSTRN (打拉1,2)),Color00FFFF,LAYER1;
DRAWTEXTREL(12,290,’■二拉升打壓資金:’+NUMTOSTRN (打拉2,2)),ColorFFFFFF,LAYER1;
DRAWTEXTREL(12,430,’■三拉升打壓資金:’+NUMTOSTRN (打拉3,2)),ColorFF0082,LAYER1;
DRAWTEXTREL(12,570,’■短■拉升打壓資金:’+NUMTOSTRN (打拉4,2)),Color00FF00,LAYER1;
DRAWTEXTREL(12,710,’■中■拉升打壓資金:’+NUMTOSTRN (打拉5,2)),ColorFF0000,LAYER1;
DRAWTEXTREL(12,850,’■長■拉升打壓資金:’+NUMTOSTRN (打拉6,2)),Color0000FF,LAYER1;
0,DOTLINE,LAYER1;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。