2024年3月27日发(作者:字秀逸)
【大智慧】多空博弈(主力、持币、吸筹区、取点)-指标公式源码
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖
线,-50+REF(HHV(H,0),DATE)/5,-50+REF(LLV(L,0),DATE)/5,6,0),COLORMAGENT
A;
STICKLINE(买线<卖
线,-50+REF(HHV(H,0),DATE)/5,-50+REF(LLV(L,0),DATE)/5,6,0),COLORBLUE;
RSV:=((((HHV(HIGH,10) - CLOSE) / (HHV(HIGH,10) - LLV(LOW,10))) * 200) -
125);
散户:SMA(RSV,5,1)+15,COLORGREEN,LINETHICK1;
RSV1:=((((CLOSE - LLV(LOW,10)) / (HHV(HIGH,10) - LLV(LOW,10))) * 200) -
105);
主力:SMA(RSV1,5,1)+15,COLORRED,LINETHICK1;
买进:=IF(主力>REF(主力,1),主力,0);
持币:=IF(散户>REF(散户,1),散户,0);
{P(10,1,100),A(5,1,100);}
SVOL:=INTPART(SUM(V,0)/CAPITAL);
TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;
S1:=BARSLAST(TJ0)+1;
TJ2:=S1S2:=IF(TJ2,REF(S1,1)+1,S1);
S3:=SUM(TJ2,0);
ZK1:="KD.K#WEEK"(9,3,3);
ZD2:="KD.D#WEEK"(9,3,3);
ZF1:="#WEEK"(12,26,9);
ZA2:="#WEEK"(12,26,9);
换手:=V/CAPITAL*100;
JCD:=FILTER(CROSS(ZK1,ZD2) AND REF(ZD2,1)<30,13);
取点:=BARSLAST(JCD);
吸筹区:=IF(取点>0 AND 取点<61,取点,0);
ZS1:=吸筹区;
ZS2:=吸筹区+1;
ZS3:=换手/5;
ZSA:=IF(ZS1>0,SUM((ZS3),吸筹区+1),0);
主力筹码:=ZSA;
建仓天数:=ZS1;
阶段总额(万):=SUM(AMOUNT/10000,S2)*100;
阶段总量(手):=SUM(V,S2)*100;
阶段成本(元):=(阶段总额(万)/(阶段总量(手)/100));
换手冷清:STICKLINE(换手<3,-80,(换手+5-40)*2,0.0,0),COLORCYAN;
{换手冷清:(换手<3,-80,(换手-6)*4,0.0,0);}
换手活跃:STICKLINE(换手>=3 AND 换手<7,-80,(换手
+5-40)*2,0.0,0),COLORYELLOW;
{换手活跃:(换手>=3 AND 换手<7,-80,(换手-6)*4,0.0,0);}
换手热烈:STICKLINE(换手>=7,-80,(换手+5-40)*2,0.5,0),COLORRED;
{换手热烈:(换手>=7,-80,(换手-6)*4,0.5,0);}
STICKLINE(JCD,(0-6)*4,6*6,0.5,0),COLORGREEN;
DRAWTEXT(建仓天数,40,'建仓'),COLORGREEN;
LL:=REF(CLOSE,1);
MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;
出: IF(CROSS(80,MM),90,100),COLORCYAN;
DRAWTEXT(CROSS(80,MM),MM,'卖 '),COLORWHITE;
DRAWTEXT(CROSS(主力,散户),0,'买 '),COLORRED;
AA:=(WINNER((CLOSE + ((CLOSE * 15) / 100))) * 100);
BB:=(WINNER((CLOSE + ((CLOSE * 0) / 100))) * 100);
CC:=(AA - BB);
DD:=((WINNER((CLOSE - ((CLOSE * 0.1) / 100))) - WINNER((CLOSE - ((CLOSE
* 15) / 100)))) * 100);
EE:=(((CC < 3) AND (DD < 0.5)) AND (OPEN > LOW));
A1:=DYNAINFO(6);
A22:=IF((LOW > A1),0,IF((HIGH < A1),1,(((A1 - LOW) + 0.01) / ((HIGH - LOW)
+ 0.01))));
A3:=(VOL / WINNER(LOW));
A4:=REF(HHV(CLOSE,120),1);
A5:=REF(LLV(CLOSE,120),1);
A6:=((100 * (CLOSE - A5)) / (A4 - A5));
A7:=((A22 > 0) OR (A22 = 1));
2024年3月27日发(作者:字秀逸)
【大智慧】多空博弈(主力、持币、吸筹区、取点)-指标公式源码
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖
线,-50+REF(HHV(H,0),DATE)/5,-50+REF(LLV(L,0),DATE)/5,6,0),COLORMAGENT
A;
STICKLINE(买线<卖
线,-50+REF(HHV(H,0),DATE)/5,-50+REF(LLV(L,0),DATE)/5,6,0),COLORBLUE;
RSV:=((((HHV(HIGH,10) - CLOSE) / (HHV(HIGH,10) - LLV(LOW,10))) * 200) -
125);
散户:SMA(RSV,5,1)+15,COLORGREEN,LINETHICK1;
RSV1:=((((CLOSE - LLV(LOW,10)) / (HHV(HIGH,10) - LLV(LOW,10))) * 200) -
105);
主力:SMA(RSV1,5,1)+15,COLORRED,LINETHICK1;
买进:=IF(主力>REF(主力,1),主力,0);
持币:=IF(散户>REF(散户,1),散户,0);
{P(10,1,100),A(5,1,100);}
SVOL:=INTPART(SUM(V,0)/CAPITAL);
TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;
S1:=BARSLAST(TJ0)+1;
TJ2:=S1S2:=IF(TJ2,REF(S1,1)+1,S1);
S3:=SUM(TJ2,0);
ZK1:="KD.K#WEEK"(9,3,3);
ZD2:="KD.D#WEEK"(9,3,3);
ZF1:="#WEEK"(12,26,9);
ZA2:="#WEEK"(12,26,9);
换手:=V/CAPITAL*100;
JCD:=FILTER(CROSS(ZK1,ZD2) AND REF(ZD2,1)<30,13);
取点:=BARSLAST(JCD);
吸筹区:=IF(取点>0 AND 取点<61,取点,0);
ZS1:=吸筹区;
ZS2:=吸筹区+1;
ZS3:=换手/5;
ZSA:=IF(ZS1>0,SUM((ZS3),吸筹区+1),0);
主力筹码:=ZSA;
建仓天数:=ZS1;
阶段总额(万):=SUM(AMOUNT/10000,S2)*100;
阶段总量(手):=SUM(V,S2)*100;
阶段成本(元):=(阶段总额(万)/(阶段总量(手)/100));
换手冷清:STICKLINE(换手<3,-80,(换手+5-40)*2,0.0,0),COLORCYAN;
{换手冷清:(换手<3,-80,(换手-6)*4,0.0,0);}
换手活跃:STICKLINE(换手>=3 AND 换手<7,-80,(换手
+5-40)*2,0.0,0),COLORYELLOW;
{换手活跃:(换手>=3 AND 换手<7,-80,(换手-6)*4,0.0,0);}
换手热烈:STICKLINE(换手>=7,-80,(换手+5-40)*2,0.5,0),COLORRED;
{换手热烈:(换手>=7,-80,(换手-6)*4,0.5,0);}
STICKLINE(JCD,(0-6)*4,6*6,0.5,0),COLORGREEN;
DRAWTEXT(建仓天数,40,'建仓'),COLORGREEN;
LL:=REF(CLOSE,1);
MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;
出: IF(CROSS(80,MM),90,100),COLORCYAN;
DRAWTEXT(CROSS(80,MM),MM,'卖 '),COLORWHITE;
DRAWTEXT(CROSS(主力,散户),0,'买 '),COLORRED;
AA:=(WINNER((CLOSE + ((CLOSE * 15) / 100))) * 100);
BB:=(WINNER((CLOSE + ((CLOSE * 0) / 100))) * 100);
CC:=(AA - BB);
DD:=((WINNER((CLOSE - ((CLOSE * 0.1) / 100))) - WINNER((CLOSE - ((CLOSE
* 15) / 100)))) * 100);
EE:=(((CC < 3) AND (DD < 0.5)) AND (OPEN > LOW));
A1:=DYNAINFO(6);
A22:=IF((LOW > A1),0,IF((HIGH < A1),1,(((A1 - LOW) + 0.01) / ((HIGH - LOW)
+ 0.01))));
A3:=(VOL / WINNER(LOW));
A4:=REF(HHV(CLOSE,120),1);
A5:=REF(LLV(CLOSE,120),1);
A6:=((100 * (CLOSE - A5)) / (A4 - A5));
A7:=((A22 > 0) OR (A22 = 1));