源码
VAR1:=(HIGH+LOW+OPEN+CLOSE)/4;
生命线: MA(3*VAR1-2*SMA(VAR1,2,1),12),COLORGREEN;
VAR2:=IF(VAR1<生命线,VAR1,生命线);
VAR30:=2*EMA(LLV(VAR1,7),10)-VAR1;
多空线:=3*VAR30-2*SMA(VAR30,10,1),COLORWHITE;
DRAWICON(CROSS(生命线,多空线),多空线,1);
B:EMA(C,2),COLORYELLOW;
S:EMA(SLOPE(C,21)*20+C,42),POINTDOT,COLORYELLOW;
BUY:=CROSS(B,S);
SEL:=CROSS(S,B);
STICKLINE(B>=S,LOW,HIGH,0.1,0),COLORRED;
{STICKLINE(B>=S,CLOSE,OPEN,4.5,0),COLOR0000AA;
STICKLINE(B>=S,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(B>=S,CLOSE,OPEN,2,0),COLOR0000DD;}
STICKLINE(B>=S,CLOSE,OPEN,2,0),COLOR0000FF;
STICKLINE(B
{STICKLINE(B
STICKLINE(B
STICKLINE(B
STICKLINE(B
STICKLINE(CROSS(B,S) OR CROSS(S,B),OPEN,CLOSE,3.5,0),COLORWHITE;
V1:=IF(SMA(CLOSE,2,1)/SMA(CLOSE,13,2)<1.1 AND SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05){,POINTDOT,COLORFF6600};
V2:=IF(SMA(CLOSE,5,1)/SMA(CLOSE,15,1)<1.09 AND SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)){,POINTDOT,COLORF00FF0};
V3:=IF(MA(VOL,2)>MA(VOL,3)/2
STICKLINE(CROSS(V3,MA(CLOSE,15)),H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(CROSS(V3,MA(CLOSE,15)),O,C,4,1),COLORYELLOW,LINETHICK2;
VAR3:=LLV(HIGH,240);
VAR4:=((100 * (CLOSE - VAR3)) / VAR3);
VAR5:=REF(LLV(CLOSE,480),1);
VAR6:=REF(HHV(CLOSE,480),1);
VAR7:=((100 * (CLOSE - VAR5)) / (VAR6 - VAR5));
VAR8:=(((CLOSE - LLV(CLOSE,981)) / (HHV(CLOSE,981) - LLV(CLOSE,981))) * 100);
VAR9:=(((CLOSE - LLV(CLOSE,393)) / (HHV(CLOSE,393) - LLV(CLOSE,393))) * 100);
VARA:=(((CLOSE - LLV(LOW,981)) / (HHV(HIGH,981) - LLV(LOW,981))) * 100);
VARB:=(((CLOSE - LLV(LOW,393)) / (HHV(HIGH,393) - LLV(LOW,393))) * 100);
VARC:=(EMA(((100 * (CLOSE - LLV(LOW,100))) / (HHV(HIGH,100) - LLV(LOW,100))),5) / 4);
VARD:=IF((DATE < 1031231),IF((VARC > 23.16),VARC,0),0);
VARE:=(VARC < 1);
VARF:=VARD;
VAR10:=((VAR4 < 0) AND (VAR7 < 0));
VAR11:=1;
VAR12:=((((HIGH + LOW) + (CLOSE * 2)) / 4) * VAR11);
VAR13:=EMA(VAR12,21);
VAR14:=STD(VAR12,21);
VAR15:=((((((VAR12 - VAR13) / VAR14) * 100) + 200) / 4) * VAR11);
VAR16:=(((EMA(VAR15,89) - 25) * 1.56) * VAR11);
VAR17:=((EMA(VAR16,5) * 1.22) * VAR11);
VAR18:=(EMA(VAR17,3) * VAR11);
VAR19:=((3 * VAR17) - ((2 * VAR18) * VAR11));
VAR1A:=IF(((CROSS(VAR19,VAR17) AND CROSS(VAR19,VAR18)) AND CROSS(VAR17,VAR18)),1,0);
VAR1B:=IF(((CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19)) AND CROSS(VAR18,VAR17)),1,0);
VAR1C:=(EMA(((100 * (CLOSE - LLV(LOW,100))) / (HHV(HIGH,100) - LLV(LOW,100))),13) / 4);
VAR1D:=(EMA(CLOSE,2) - EMA(CLOSE,89));
VAR1E:=EMA(VAR1D,30);
VAR1F:=((2 * (VAR1D - VAR1E)) * 10);
VAR20:=((POW(VAR1F,3) * 0.1) + POW(VAR1F,2));
VAR21:=SQRT(SQRT((((LOW * HIGH) * OPEN) * CLOSE)));
VAR22:=EMA((VAR21 * 0.97),3);
VAR23:=(((HIGH + LOW) + CLOSE) / 3);
VAR24:=((VAR23 - MA(VAR23,14)) / (0.015 * AVEDEV(VAR23,14)));
VAR25:=(IF(((YEAR < 2008) AND (VAR1F > 0.015)),VAR20,0) / 45);
VAR26:=(EMA(CLOSE,2) - EMA(CLOSE,150));
VAR27:=EMA(VAR26,100);
VAR28:=(2 * (VAR26 - VAR27));
VAR29:=((POW(VAR28,3) * 0.1) + POW(VAR28,1));
VAR2A:=SQRT(SQRT((((LOW * HIGH) * OPEN) * CLOSE)));
VAR2B:=EMA((VAR2A * 0.97),3);
VAR2C:=(((HIGH + LOW) + CLOSE) / 3);
VAR2D:=((VAR2C - MA(VAR2C,14)) / (0.015 * AVEDEV(VAR2C,14)));
VAR2E:=IF((FILTER((((((CLOSE - MA(CLOSE,21)) / MA(CLOSE,21)) * 100) > 0) AND ((((CLOSE - MA(CLOSE,21)) / MA(CLOSE,21)) * 100) < 3)),5) = 1),12,0);
FF1:=FILTER(((((VAR25>0) AND (VAR25<0.5)) AND VAR2E) AND (VAR1C<3)),10);
DRAWTEXT(FF1,L*0.99,'买'),LINETHICK2,COLORYELLOW;
STICKLINE(FF1,H,L,0.5,0),COLORYELLOW;
STICKLINE(FF1,O,C,6,0),COLORYELLOW;