生命线改的主图我自用
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
筹码突破:=C>TYX3 AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORRED;
A111:=COST(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
M5:MA(C,3),COLORRED,LINETHICK1;
BB55:=ATAN((M5/REF(M5,1)-1)*100)*180/3.1416;
IF(BB55>30 AND M5>REF(M5,1), M5,DRAWNULL),COLORRED,LINETHICK1;
IF(BB55<0 AND M5<REF(M5,1), M5,DRAWNULL),COLORGREEN,LINETHICK1;
重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
【操盘线】:EMA(((SLOPE(C,22)*20)+C),60),COLORGREEN,LINETHICK1;
{【黄金线】:}IF(重心>=【操盘线】,【操盘线】,DRAWNULL),COLORRED,LINETHICK1;
{【空仓线】:}IF(重心<【操盘线】,【操盘线】,DRAWNULL),COLORFF6C00,LINETHICK1;
NN:=21;
MM:=8;
显示均线:=1;
P:=4;
K:=12;
K2:=1;
K3:=8;
L1:MA(CLOSE,67),COLORYELLOW,LINETHICK02;
L2:MA(CLOSE,127),COLORMAGENTA,LINETHICK2;
STICKLINE(((C >= L1) AND (C >= O)),H,L,0,1),COLORRED;
STICKLINE(((C >= L1) AND (C >= O)),O,C,2,1),COLORRED;
STICKLINE(((C >= L1) AND (C <= O)),H,L,0,0),COLORRED;
STICKLINE(((C >= L1) AND (C <= O)),O,C,2,0),COLORRED;
STICKLINE(((C < L1) AND (C >= O)),H,L,0,1),COLORGREEN;
STICKLINE(((C < L1) AND (C >= O)),O,C,2,1),COLORGREEN;
STICKLINE(((C < L1) AND (C <= O)),H,L,0,0),COLORGREEN;
STICKLINE(((C < L1) AND (C <= O)),O,C,2,0),COLORGREEN;
{买入------------------------}
MA3:=MA(CLOSE,3),COLORGREEN,LINETHICK1;{COLOR1030FF;}
ZVAR4:=(((HIGH + LOW) + CLOSE) / 3);
QQ2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
QQ3:=SMA(QQ2, 9, 1);
QQ4:=SMA(QQ3, 3, 1);
长趋势:=3*QQ3-2*QQ4,COLORWHITE,LINETHICK3;
趋势线1:=EMA(QQ3, 3),COLORRED,LINETHICK3;
金叉:= CROSS(长趋势,趋势线1);
AAAA1:=AMOUNT/V;
BBB1:=L<AAAA1*0.9;
CCC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DDD1:=L<MA(C,5)*0.921;
EEE1:=V<MA(V,5)*1.5;
老鼠仓:=BBB1 AND CCC1 AND DDD1 AND EEE1,NODRAW;
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
VAR2:=( MA((CLOSE-VAR1)/VAR1,1));
VVAR3:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
A:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);
A1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;
A2:=EMA((EMA(C,3)+EMA(C,5)+EMA( C,7))/3,3),COLOR1020FF;
MT1:=IF(ISLASTBAR,REF((C*2-REF(C,3)),1),DRAWNULL);
MT2:=IF(ISLASTBAR,REF((C*2-REF(C,3)),2),DRAWNULL);
MT3:=IF(ISLASTBAR,C*2-REF(C,3),DRAWNULL);
JRH:=HHV(C,2);
JRL:=LLV(C,2);
{5日变色线}
越过成仙M240:=MA(C,240),COLORGRAY;
M144:=MA(C,144),COLORWHITE;
M88:=MA(C,88),COLORLIGRAY;
越过有道M120:=MA(C,120),COLORMAGENTA;
{越过强势M60:MA(C,60),COLORGREEN,LINETHICK3;}
M30:=MA(C,27),COLORGREEN;
M20:=MA(C,17),COLORMAGENTA;
M10:=MA(C,10),COLORWHITE;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.0,'★卖') , COLORGREEN;
DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*1,3);
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.0,'★卖') , COLORGREEN;
{K线类别}
VAR9Q:=C=HHV(C,4)AND (REF(C,1)>=REF(C,2)OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4)AND CLOSE>=REF(C,2)OR REF(C,2)=HHV(C,4)
AND REF(C,3)=LLV(C,4)AND C>=REF(C,1)OR REF(C,3)=HHV(C,4)AND C>=REF(C,1)
AND C>=REF(C,2);
VARAQ:=C=HHV(C,4)AND REF(C,1)=LLV(C,4);
粉变:=VARAQ;
STICKLINE(VARAQ,C,(O+C)/2,4,0),COLOR981198;
STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORCC55CC;
STICKLINE(VARAQ,C,(O+C)/2,0.5,0),COLORFF99FF;
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFDDFF;
VARBQ:=C=LLV(C,4)AND(REF(C,1)<REF(C,2)OR REF(C,1)<REF(C,3))
OR REF(C,1)=LLV(C,4)AND C<REF(C,2)OR REF(C,2)=LLV(C,4)
AND REF(C,1)=HHV(C,4)AND C<REF(C,1)OR REF(C,3)=LLV(C,4)
AND C<REF(C,1)AND C<REF(C,2);
灰跌:=VARBQ;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,4,0),COLOR888888;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,1,0),COLORAAAAAA;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,0.5,0),COLORCCCCCC;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,0.1,0),COLORFFFFFF;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,2,0),COLOR888888;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,1,0),COLORAAAAAA;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,0.5,0),COLORCCCCCC;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,0.1,0),COLORFFFFFF;
VARCQ:=REF(C,1)=LLV(C,4)AND C>=REF(C,2)OR REF(C,2)=LLV(C,4)
AND REF(C,1)<=REF(C,3)AND REF(C,2)<REF(C,4)AND C>=REF(C,1);
黄买:=VARCQ;
STICKLINE(VARCQ,O,(O+C)/2,5,0),COLORYELLOW;
STICKLINE(VARCQ,O,(O+C)/2,2,0),COLORYELLOW;
STICKLINE(VARCQ,O,(O+C)/2,0.5,0),COLORYELLOW;
STICKLINE(VARCQ,O,(O+C)/2,0.1,0),COLORYELLOW;
VARDQ:=REF(C,1)=HHV(C,4)AND C<REF(C,2)OR(REF(C,2)=HHV(C,4)
AND REF(C,1)>REF(C,3)OR REF(C,3)=HHV(C,4)AND REF(C,1)>REF(C,2))
AND REF(C,2)>=REF(C,4)AND C<REF(C,1);
DRAWTEXT_FIX(1,0.00,0,0,'所属地区:'),COLORWHITE;
DRAWTEXT_FIX(1,0.04,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.11,0,0,'所属行业:'),COLORWHITE;
DRAWTEXT_FIX(1,0.15,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.25,0,0,'概念题材:'),COLORWHITE;
DRAWTEXT_FIX(1,0.29,0,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.05,0,'风格板块:'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.04,0.05,0,FGBLOCK),COLORLIMAGENTA;
{DRAWTEXT_FIX(ISLASTBAR,0,0.16,0,STRCAT(DYBLOCK,GNBLOCK)),COLORLIRED;}
DRAWTEXT_FIX(ISLASTBAR,0,0.39,0,EXTERNSTR(0,3)),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.36,0,EXTERNSTR(0,6)),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0,0.33,0,EXTERNSTR(0,12)),COLORLIGREEN;{老王}
DRAWTEXT_FIX(ISLASTBAR,0,0.3,0,EXTERNSTR(0,1)),COLORYELLOW;{融胜};
A7:=(2*C+H+L)/4;
操作:=MA(A7,5),COLOR00FF00,LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7,5)*0.97,LINETHICK2;
压力1:HHV(A7,21),COLORFFFFE5,NODRAW{,CIRCLEDOT};
压力2:HHV(A7,36),COLORFFFFE5;