通达信指标公式源码跟庄器指标
AAA1:49;
BBB2:52;
B1:=REF(CLOSE,1);
B2:=REF(CLOSE,2);
B3:=REF(CLOSE,3);
B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
BT:=REF(VOL,1);
BB1:=IF(O=REF(C,1),O,REF(C,1));
多建:=IF((C>CMIN)*(VOL>BT) OR (C>CMAX)*(VOL>BT),VOL-BT,0);
空平:=IF((C>CMIN)*(VOLCMAX)*(VOL
空建:=IF((CBT) OR (CBT),VOL-BT,0);
多平:=IF((C
AAA:=多建+多平;
BBB:=空建+空平;
多头持单:=SUM(AAA,0);
AAT1:=多头持单>REF(多头持单,1);
AAT2:=多头持单
AAT3:=多头持单=REF(多头持单,1);
空头持单:=SUM(BBB,0);
BBT1:=空头持单>REF(空头持单,1);
BBT2:=空头持单
BBT3:=空头持单=REF(空头持单,1);
当日主力买入量:=(BUYVOL*0.5+SELLVOL
*0.1)/2;
庄家持仓量:=SUM(VOL,100)*0.20;
HOLD:=庄家持仓量;
B5:=SUM(VOL,5)/5;
B6:=SUM(HOLD,5)/5;
VAR1:=(VOL/ (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
VAR2:=(HIGH-LOW);
VAR3:=ABS((OPEN-CLOSE));
VAR4:=(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE>OPEN),OPEN,CLOSE)-LOW);
VAR6:=((VAR3/VAR2)*VOL);
VAR7:=((VAR4/VAR2)*VOL);
VAR8:=((VAR5/VAR2)*VOL);
多头:=((CLOSE=CMAX)*(B1=CMIN))*((HOLD>B6)*(VOL>B5)) OR ((CLOSE=CMAX)*(B1>=B2 OR B1>=B3)
OR ((B1=CMAX)*(B2=CMIN OR B3=CMIN)*(CLOSE>=B2)) OR (B2=CMAX)*(B3=CMIN)*(CLOSE>=B1)
OR (B3=CMAX)*(CLOSE>=B1)*(CLOSE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R B3=CMIN)*(CLOSE>=B2)) OR (B2=CMAX)*(B3=CMIN)*(CLOSE>=B1)
OR (B3=CMAX)*(CLOSE>=B1)*(CLOSE>=B2))*((HOLDB5)) OR ((B1=CMIN)*(CLOSE>=B2)
OR (B2=CMIN)*(B1<=B3) OR (B3=CMIN)*(B1<=B2)*(B2=B1))*((HOLDB5));
STICKLINE(多头 OR 多头3,0,ABS(HOLD-REF(HOLD,1)),2,0),COLORRED;
STICKLINE(多衰,0,ABS(HOLD-REF(HOLD,1)),2,0),COLORWHITE;
STICKLINE(多平1,0,ABS(HOLD-REF(HOLD,1)),2,1),COLORRED;
STICKLINE(空头 OR 空头3,0,-ABS(HOLD-REF(HOLD,1)),2,0),COLORGREEN;
STICKLINE(空衰,0,-ABS(HOLD-REF(HOLD,1)),2,0),COLORWHITE;
STICKLINE(空平1,0,-ABS(HOLD-REF(HOLD,1)),2,1),COLORGREEN;
BBB2:52;
B1:=REF(CLOSE,1);
B2:=REF(CLOSE,2);
B3:=REF(CLOSE,3);
B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
BT:=REF(VOL,1);
BB1:=IF(O=REF(C,1),O,REF(C,1));
多建:=IF((C>CMIN)*(VOL>BT) OR (C>CMAX)*(VOL>BT),VOL-BT,0);
空平:=IF((C>CMIN)*(VOL
空建:=IF((C
多平:=IF((C
AAA:=多建+多平;
BBB:=空建+空平;
多头持单:=SUM(AAA,0);
AAT1:=多头持单>REF(多头持单,1);
AAT2:=多头持单
AAT3:=多头持单=REF(多头持单,1);
空头持单:=SUM(BBB,0);
BBT1:=空头持单>REF(空头持单,1);
BBT2:=空头持单
BBT3:=空头持单=REF(空头持单,1);
当日主力买入量:=(BUYVOL*0.5+SELLVOL
*0.1)/2;
庄家持仓量:=SUM(VOL,100)*0.20;
HOLD:=庄家持仓量;
B5:=SUM(VOL,5)/5;
B6:=SUM(HOLD,5)/5;
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MIN)) OR ((HOLD>B6)*(VOL>B5))*
((CLOSE=CMIN)*(B1
(B2=CMIN)*(B3=CMAX)*(CLOSE
空头3:=((HOLD>B6)*(VOL
((CLOSE=CMIN)*(B1
(B2=CMIN)*(B3=CMAX)*(CLOSE
空衰:=((HOLD
((CLOSE=CMIN)*(B1
(B2=CMIN)*(B3=CMAX)*(CLOSE
空平1:=((CLOSE=CMAX)*(B1=CMIN))*((HOLD
OR ((B1=CMAX)*(B2=CMIN OR B3=CMIN)*(CLOSE>=B2)) OR (B2=CMAX)*(B3=CMIN)*(CLOSE>=B1)
OR (B3=CMAX)*(CLOSE>=B1)*(CLOSE>=B2))*((HOLD
OR (B2=CMIN)*(B1<=B3) OR (B3=CMIN)*(B1<=B2)*(B2
STICKLINE(多头 OR 多头3,0,ABS(HOLD-REF(HOLD,1)),2,0),COLORRED;
STICKLINE(多衰,0,ABS(HOLD-REF(HOLD,1)),2,0),COLORWHITE;
STICKLINE(多平1,0,ABS(HOLD-REF(HOLD,1)),2,1),COLORRED;
STICKLINE(空头 OR 空头3,0,-ABS(HOLD-REF(HOLD,1)),2,0),COLORGREEN;
STICKLINE(空衰,0,-ABS(HOLD-REF(HOLD,1)),2,0),COLORWHITE;
STICKLINE(空平1,0,-ABS(HOLD-REF(HOLD,1)),2,1),COLORGREEN;