以下是经典之建仓区指标公式源码和使用说明
经典成交量之建仓区选股指标公式源码:
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
AA:=SMA(V3,2,1);
BB:=SMA(AA,2,1);
DRAWBAND(AA,RGB(200,0,200),BB,RGB(200,200,200));
IF(C 0,60,DRAWNULL),COLOR00FF00,LINETHICK6;
IF(AA =BB,60,DRAWNULL),COLOR0000FF,LINETHICK6;
DRAWICON(CROSS(AA,BB),BB-6,1);
DRAWICON(CROSS(BB,AA),AA+6,2);
IF(AA =BB,100,120),COLORFF8400;
DRAWICON(AA =BB,115,1);
DRAWICON(BB AA,105,2);
STICKLINE(C 0,5,0,2,1),COLOR00FF00;
VAR1:AA;
VAR2:BB,COLORFFFFFF;
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
MAVOL3:=MA(VOLUME,60);
STICKLINE((MAVOL1 =MAVOL2)AND(MAVOL1 =MAVOL3),0,7,4,0),COLOR00FFFF;
STICKLINE((MAVOL1 =MAVOL2)AND(MAVOL1 =MAVOL3),0,11,3,0),COLOR00FFFF;
STICKLINE((MAVOL1 =MAVOL2)AND(MAVOL1 =MAVOL3),0,17,1.5,0),COLOR00FFFF;
VOL1叉:(MAVOL1 =MAVOL2),POINTDOT,COLOR00FFFF;
STICKLINE((MAVOL1 MAVOL2),0,5,2,0),COLORAA00AA;
STICKLINE((MAVOL1 MAVOL2),0,9,0.5,0),COLORCC00CC;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区:IF((VARO7 10),100,118);
P:=30;
N:=8;
线A1:=(ma(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;
线A2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6;
线A3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3;
线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;
stICKLINE(线A1 线A4,线A1,线A4,0.1,1),COLORFF0080;
STICKLINE(线A1 线A4,线A1,线A4,0.1,1),COLOR00FF00;
STICKLINE(C OOR(C=OANDC REF(C,1)),H,L,0.1,0),COLORRED;
STICKLINE(C OOR(C=OANDC REF(C,1)),O,C,4,1),COLORRED;
STICKLINE(C OOR(C=OANDC =REF(C,1)),H,L,0.1,0),COLORFFEEAF;
STICKLINE(C OOR(C=OANDC =REF(C,1)),O,C,4,0),COLORFFEEAF;
DRAWICON(crOSS(线A1,线A4),线A1,1);
线:IF(线A1 线A3,线A1,线A3),COLOR00FF00;
IF(线A1 线A3,线A3,线A1),COLORRED;
HV1:=REF(H,P)=HHV(H,2*P+1);
HV2:=FILTER(HV1,P);
HV3:=BacKSET(HV2,P+1);
HV4:=FILTER(HV3,P);
R11:=BACKSET(ISLASTBAR,BArslAST(HV4)+1);
S11:=R11 REF(R11,1);
BOH:DRAWLINE(HV4,H,S11,H,1),COLORBLUE;
AA2:=REF(L,P)=LLV(L,2*P+1);
BB2:=FILTER(AA2,P);
CC2:=BACKSET(BB2,P+1);
DD2:=FILTER(CC2,P);
T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
U11:=T11 REF(T11,1);
BOL:DRAWLINE(DD2,L,U11,L,1),COLOR00FFFF;
bov:=L =BOLANDC
M:=INTPART(3*N/5);
AAA:=REF(H,M)=HHV(H,2*M+1);
QYY:=BACKSET(AAA,M+1);
CCC:=FILTER(QYY,M)ANDH=HHV(H,M+1);
DDDD:=BARSLAST(CCC),NODRAW;
GDTSS:=IF(CCC,CURRBARSCOUNT,0);
DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS);
GDCS11:=CONST(DINGBUTSS);
DINGBUTS11:=REF(DINGBUTSS,DDDD+1);
GDCS22:=CONST(DINGBUTS11);
AA11:=REF(L,M)=LLV(L,2*M+1);
QY11:=BACKSET(AA11,M+1);
CC11:=FILTER(QY11,M)ANDL=LLV(L,M+1);
DD11:=BARSLAST(CC11);
DDTSS:=IF(CC11,CURRBARSCOUNT,0);
DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);
DDCS11:=CONST(DDTS11);
DDTS22:=REF(DDTS11,DD11+1);
DDCS22:=CONST(DDTS22);
线1:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORFFAA99,LINETHICK1;
线2:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1)COLOR9966FF,LINETHICK1;
卖出:H =线1ANDREF(H 线1,1),COLOR00FFFF,NODRAW;
STICKLINE(卖出,O,C,3,0),COLOR00FFFF;
{
选股公式:
线A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;
线A2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6;
线A3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3;
线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;
红箭头:CROSS(线A1,线A4);
}
经典成交量之建仓区选股指标公式截图