源码
DRAWGBK(CLOSE>1,COLORRGB(50,80,40),COLORRGB(20,70,110),1);
A0:=BARSCOUNT(CLOSE);
A3:=SYSPARAM(3);
A2:=SYSPARAM(2);
A4:=SYSPARAM(4);
A5:=SYSPARAM(5);
NN0:=A3-A2;
NN:=A0-A2;
HH1:=(A4-A5)/8;
Y0:=A0>=A2;
VV0:=IF(Y0=1 AND SYSPARAM(1)>=A0,VOL,0);
C1:=IF(BETWEEN(CLOSE,A4-0*HH1,A4-1*HH1),VV0,0);
C2:=IF(BETWEEN(CLOSE,A4-1*HH1,A4-2*HH1),VV0,0);
C3:=IF(BETWEEN(CLOSE,A4-2*HH1,A4-3*HH1),VV0,0);
C4:=IF(BETWEEN(CLOSE,A4-3*HH1,A4-4*HH1),VV0,0);
C5:=IF(BETWEEN(CLOSE,A4-4*HH1,A4-5*HH1),VV0,0);
C6:=IF(BETWEEN(CLOSE,A4-5*HH1,A4-6*HH1),VV0,0);
C7:=IF(BETWEEN(CLOSE,A4-6*HH1,A4-7*HH1),VV0,0);
C8:=IF(BETWEEN(CLOSE,A4-7*HH1,A4-8*HH1),VV0,0);
C9:=IF(BETWEEN(CLOSE,A4-8*HH1,A4-9*HH1),VV0,0);
C10:=IF(BETWEEN(CLOSE,A4-9*HH1,A4-10*HH1),VV0,0);
V1:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C1,NN0),0),2));
V2:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C2,NN0),0),2));
V3:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C3,NN0),0),2));
V4:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C4,NN0),0),2));
V5:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C5,NN0),0),2));
V6:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C6,NN0),0),2));
V7:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C7,NN0),0),2));
V8:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C8,NN0),0),2));
V9:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C9,NN0),0),2));
V10:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C10,NN0),0),2));
AV0:=MAX(V1,MAX(V2,MAX(V3,MAX(V4,MAX(V5,MAX(V6,MAX(V7,MAX(V8,MAX(V9,V10)))))))));
X1:=V1/AV0>=NN/NN0 AND NN>=0;
FILLRGN(V1/AV0>=NN/NN0 AND NN>=0,A4-0*HH1,A4-1*HH1+HH1*0.9),colorFF0000;
FILLRGN(V2/AV0>=NN/NN0 AND NN>=0,A4-1*HH1,A4-2*HH1+HH1*0.9),color555555;
FILLRGN(V3/AV0>=NN/NN0 AND NN>=0,A4-2*HH1,A4-3*HH1+HH1*0.9),color666666;
FILLRGN(V4/AV0>=NN/NN0 AND NN>=0,A4-3*HH1,A4-4*HH1+HH1*0.9),color777777;
FILLRGN(V5/AV0>=NN/NN0 AND NN>=0,A4-4*HH1,A4-5*HH1+HH1*0.9),color888888;
FILLRGN(V6/AV0>=NN/NN0 AND NN>=0,A4-5*HH1,A4-6*HH1+HH1*0.9),color999999;
FILLRGN(V7/AV0>=NN/NN0 AND NN>=0,A4-6*HH1,A4-7*HH1+HH1*0.9),colorAAAAAA;
FILLRGN(V8/AV0>=NN/NN0 AND NN>=0,A4-7*HH1,A4-8*HH1+HH1*0.9),colorBBBBBB;
DRAWNUMBER(REFX(X10,A4*1.03,A4-0*HH1,2);
RSV:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55));
K:=SMA(RSV,21,1);
D:=SMA(K,5,1);
J:=3*K-2*D;
三线开花:=(K+D+J)/3-13;
三线开花2:=(HIGH+LOW+CLOSE*2)/4;
三线开花3:=EMA(三线开花2,10);
三线开花4:=STD(三线开花2,10);
实战素质:=(三线开花2-三线开花3)/三线开花4;
三线开花6:=EMA(三线开花2,3.5);
KLK:=EMA(三线开花6,21);
KS:=(三线开花+KLK)/2-13;
M:=REF(LOW,5)/LOW;
M1:=EMA(M,21)/M*CLOSE;
CD:=EMA(M1,55);
平均成本:=IF(KS>KLK,CD,CD);
STICKLINE(三线开花2<平均成本,平均成本,三线开花2,1,0),POINTDOT,color999900;
STICKLINE(三线开花2>平均成本,平均成本,三线开花2,1,0),POINTDOT,color330099;
STICKLINE(三线开花3<平均成本,平均成本,三线开花3,1,0),POINTDOT,color6633;
宝一线:EMA(CLOSE,55),LINETHICK0;
宝二线:EMA(EMA(HIGH,55),3.5),LINETHICK0,colorFF00;
STICKLINE(宝二线>宝一线,宝二线,宝一线,1,0),colorBBBBBB;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,8,0),colorFF00FF;
STICKLINE(CLOSE>MA(CLOSE,10),HIGH,LOW,1,0),colorDDFF;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,8,0),colorAAFF;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,6.6,0),colorBBFF;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,4.4,0),colorCCFF;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,3.3,0),colorDDFF;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,2.2,0),colorEEFF;
STICKLINE(CLOSE>MA(CLOSE,10),CLOSE,OPEN,1,0),colorFFFF;
STICKLINE(CLOSE<=MA(CLOSE,10),CLOSE,OPEN,8,0),colorFF0000;
STICKLINE(CLOSE<=MA(CLOSE,10),HIGH,LOW,1,0),colorFF0000;
STICKLINE(CLOSE<=MA(CLOSE,10),CLOSE,OPEN,8,0),colorFF5D10;
STICKLINE(CLOSE<=MA(CLOSE,10),CLOSE,OPEN,6,0),colorFF8810;
STICKLINE(CLOSE<=MA(CLOSE,10),CLOSE,OPEN,4,0),colorFF7710;
STICKLINE(CLOSE<=MA(CLOSE,10),CLOSE,OPEN,2,0),colorFF9910;
STICKLINE(CLOSE<=MA(CLOSE,10),HIGH,LOW,1,0),colorFF6610;
STICKLINE(MA(CLOSE,5)<=MA(CLOSE,10),CLOSE,OPEN,8,0),colorFFAA00;
STICKLINE(MA(CLOSE,5)<=MA(CLOSE,10),CLOSE,OPEN,6,0),colorFFBB11;
STICKLINE(MA(CLOSE,5)<=MA(CLOSE,10),CLOSE,OPEN,4,0),colorFFCC22;
STICKLINE(MA(CLOSE,5)<=MA(CLOSE,10),CLOSE,OPEN,2,0),colorFFDD33;
STICKLINE(MA(CLOSE,5)<=MA(CLOSE,10),CLOSE,OPEN,2,0),colorFFEE44;
STICKLINE(MA(CLOSE,5)<=MA(CLOSE,10),LOW,HIGH,1,0),colorFFFF55;
STICKLINE(CLOSE=MA(CLOSE,3),LOW,HIGH,1,1),colorFF00FF;
STICKLINE(CLOSE=MA(CLOSE,3),CLOSE,OPEN,8,0),LINETHICK0,colorFF00FF;
STICKLINE(CLOSE=MA(CLOSE,3),CLOSE,OPEN,6,0),LINETHICK0,colorFF43FF;
STICKLINE(CLOSE=MA(CLOSE,3),CLOSE,OPEN,4,0),LINETHICK0,colorFF63FF;
STICKLINE(CLOSE=MA(CLOSE,3),CLOSE,OPEN,2,0),LINETHICK0,colorFF83FF;
STICKLINE(CLOSE=MA(CLOSE,3),CLOSE,OPEN,1,0),colorFF93FF;
STICKLINE(CLOSE=MA(CLOSE,5),CLOSE,OPEN,8,0),color10A210;
STICKLINE(CLOSE=MA(CLOSE,5),CLOSE,OPEN,6,0),color10B210;
STICKLINE(CLOSE=MA(CLOSE,5),CLOSE,OPEN,4,0),color10C210;
STICKLINE(CLOSE=MA(CLOSE,5),LOW,HIGH,1.1,0),color10D210;
STICKLINE(MA(CLOSE,5)=MA(CLOSE,10),CLOSE,OPEN,8,0),colorBB;
STICKLINE(MA(CLOSE,5)=MA(CLOSE,10),CLOSE,OPEN,6,0),color11BB;
STICKLINE(MA(CLOSE,5)=MA(CLOSE,10),CLOSE,OPEN,4,0),color22CC;
STICKLINE(MA(CLOSE,5)=MA(CLOSE,10),CLOSE,OPEN,3,0),color33DD;
STICKLINE(MA(CLOSE,5)=MA(CLOSE,10),CLOSE,OPEN,2,0),color44EE;
STICKLINE(MA(CLOSE,5)=MA(CLOSE,10),LOW,HIGH,1,0),color55FF;
贝贝线:EMA(EMA(CLOSE,20),3.5),LINETHICK0,colorFF;
宝宝贝贝:EMA(CLOSE,89),LINETHICK0,colorFF00FF;
初理念:=((CLOSE-REF(宝二线,1))/20+宝二线)*1.13;
TT1:=CROSS(宝二线,宝一线) AND CROSS(宝二线,宝宝贝贝) AND VOL>REF(VOL,1);
TT2:=宝二线>REF(宝二线,2) AND VOL>REF(VOL,1) AND CROSS(CLOSE,宝二线);
STICKLINE(TT1,LOW,LOW-0.09,4,0),colorFFFF;
STICKLINE(CROSS(CLOSE,宝一线) AND CROSS(CLOSE,宝宝贝贝) AND CROSS(CLOSE,宝二线),LOW,LOW,8,1),colorFFFF;
STICKLINE(TT2,LOW,CLOSE,8,0),color99FF;
STICKLINE(TT2,LOW,CLOSE,6,0),color66FF;
STICKLINE(TT2,LOW,CLOSE,4,0),color33FF;
STICKLINE(TT2,LOW,CLOSE,2,0),color11FF;
STICKLINE(TT2,LOW,HIGH,1,0),color11FF;
STICKLINE(TT2,HIGH,LOW,1,0),color11FF;
STICKLINE(CROSS(CLOSE,初理念),HIGH,CLOSE,8,0),colorFF00;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,CLOSE,8,0),colorA1;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,CLOSE,6,0),colorB5;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,CLOSE,4,0),colorC5;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,CLOSE,2,0),colorD4;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,CLOSE,1,0),colorEC;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,LOW,1,0),colorEC;
STICKLINE(宝宝贝贝>=REF(宝宝贝贝,1) AND 宝二线>=REF(宝二线,1) AND CROSS(CLOSE,宝宝贝贝),LOW,HIGH,1,0),colorEC;
STICKLINE(宝一线>=REF(宝一线,1) AND CROSS(CLOSE,宝二线) AND CROSS(CLOSE,宝一线) AND VOL>REF(VOL,1),LOW,LOW,6,1),colorFF00FF;
M:=60;
X:=5;
P:=SYSPARAM(3);
WS:=BARPOS;
WS1:=IF(WS
WSP1:=WS1-1;
H1:=HHV(HIGH,WS1);
L1:=LLV(LOW,WS1);
HP:=H1[P];
LP:=L1[P];
HLPX:=(HP-LP)/X;
IF WS1[P]>1 THEN BEGIN
END;
N:=SYSPARAM(3)-SYSPARAM(1)+1;
A:=BACKSET(ISLASTBAR,HHVBARS(HIGH,N)+1);
B:=COUNT(A,N)=1;
前高:=REF(HIGH,BARSLAST(B));
A2:=BACKSET(ISLASTBAR,LLVBARS(LOW,N)+1);
B2:=A2>REF(A2,1);
前低:=REF(LOW,BARSLAST(B2));
DRAWSL(BARPOS=SYSPARAM(3),LP+HLPX,0,N-1,1),POINTDOT,colorCC0099;
DRAWNUMBER(BARPOS=SYSPARAM(3),LP+HLPX,LP+HLPX,2),SHIFT2,color6688CC;
DRAWSL(BARPOS=SYSPARAM(3),LP+HLPX*2,0,N-1,1),POINTDOT,colorCC0088;
DRAWNUMBER(BARPOS=SYSPARAM(3),LP+HLPX*2,LP+HLPX*2,2),SHIFT2,color6677CC;
DRAWSL(BARPOS=SYSPARAM(3),LP+HLPX*3,0,N-1,1),POINTDOT,colorCC0077;
DRAWNUMBER(BARPOS=SYSPARAM(3),LP+HLPX*3,LP+HLPX*3,2),SHIFT2,color6655CC;
DRAWSL(BARPOS=SYSPARAM(3),LP+HLPX*4,0,N-1,1),POINTDOT,colorCC0066;
DRAWNUMBER(BARPOS=SYSPARAM(3),LP+HLPX*4,LP+HLPX*4,2),SHIFT2,color6611CC;
DRAWSL(BARPOS=SYSPARAM(3),HP,0,N-1,1),POINTDOT,colorCC0055;
DRAWNUMBER(BARPOS=SYSPARAM(3),HP,HP,2),SHIFT2,color6622CC;
DRAWSL(BARPOS=SYSPARAM(3),LP,0,N-1,1),POINTDOT,colorCC0044;
DRAWNUMBER(BARPOS=SYSPARAM(3),LP,LP,2),SHIFT2,color6633CC;
NJN:=SYSPARAM(3)-SYSPARAM(2);
A:=BACKSET(ISLASTBAR,HHVBARS(HIGH,NJN)+1);
B:=COUNT(A,NJN)=1;
REF(HIGH,BARSLAST(B)),color336600;
DRAWNUMBER(ISLASTBAR,前高,前高,2),POINTDOT,PXUP4,color336600;
A2:=BACKSET(ISLASTBAR,LLVBARS(LOW,NJN)+1);
B2:=A2>REF(A2,1);
REF(LOW,BARSLAST(B2)),color6633CC;
DRAWNUMBER(ISLASTBAR,前低,前低,2),POINTDOT,PXUP4,color336600;
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(CLOSE),三线开花2,'指标:宝宝鹰贝贝眼系列'),ALIGN4,colorFF;
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(CLOSE),三线开花2,'
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(CLOSE),三线开花2,'