以下是一组绝顶精品公式(源码、主图、贴图)

高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);H1:=高1-(高1-低1)*0.191;
 H2:=高1-(高1-低1)*0.382;
 H3:=高1-(高1-低1)*0.5;
 H4:=高1-(高1-低1)*0.618;
 H5:=高1-(高1-低1)*0.809;
突破:=REF(EMA(C,14),1);
 A1X:=(EMA(C,10)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
 STICKLINE(A1X>=0,基准,突破+0.001*C,10.4,0),COLORYELLOW;
 STICKLINE(A1X<0,基准,突破-0.001*C,10.4,0),COLORGREEN;
 STICKLINE(A1X>=0,基准,突破,10,0),COLOR000099;
 STICKLINE(A1X<0,基准,突破,10,0),COLOR320000;

HH0:=CONST(HHV(H,75));
 LL0:=CONST(LLV(L,75));
 MM0:=CONST((HH0+LL0)/2);
 HL0:=CONST(IF(CONST(C)>=MM0,LL0-(HH0-LL0)*0.2,HH0+(HH0-LL0)*0.2));
 HH1:=IF(CONST(C)<MM0,HH0*1.01,HL0);
 LL1:=IF(CONST(C)>=MM0,LL0*0.99,HL0);
 HL1:=(HH1+LL1)/2,COLORFFFFFF;
 STICKLINE(“MACD.MACD”>0,”MACD.MACD”+HL1,HL1,2.5,1),COLOR007FFF;
 STICKLINE(“MACD.MACD”>0 AND “MACD.MACD”>REF(“MACD.MACD”,1),
 “MACD.MACD”+HL1,HL1,2.5,0),COLORRED;
 STICKLINE(“MACD.MACD”<0,”MACD.MACD”+HL1,HL1,2.5,0),COLOR00D080;
 STICKLINE(“MACD.MACD”<0 AND “MACD.MACD”>REF(“MACD.MACD”,1),
 “MACD.MACD”+HL1,HL1,2.5,1),COLOR00D080;
 IF(“MACD.DIF”>0,HL1*0.975,DRAWNULL),COLOR0000FF,LINETHICK1,CIRCLEDOT;
 IF(“MACD.DIF”>0 AND “MACD.MACD”<0,HL1*0.975,DRAWNULL),COLOR00FFFF,CIRCLEDOT;
 IF(“MACD.DIF”<0 AND “MACD.MACD”>0,HL1*0.975,DRAWNULL),COLORFF0080,CIRCLEDOT;

JJ:=(CLOSE+HIGH+LOW)/3;
 A:=EMA(JJ,10);
 B:=REF(A,1);
 STICKLINE(A>B,A,B,5,0),COLORYELLOW;
 STICKLINE(A<B,A,B,5,0),COLORBLUE;

TT:=IF(ISLASTBAR,240/FROMOPEN,1);
 NN:=120;
 HH:=HHV(V*TT,NN);
 LL:=LLV(V,NN);
最高:=CONST(HH);
最低:=CONST(LL);
最高2:=CONST(HHV(H,NN));
最低2:=CONST(LLV(L,NN));
 PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW;
 RCC1:=最高2*0.9-(最高2-最低2)*PP;
最低3:=MIN(RCC1,最低2);
 AA:=最低3;
 MA5:=EMA(C,5),NODRAW;
 MAR5:=SMA(C,5,1),COLORYELLOW,LINETHICK4;
 MA20:MA(C,20),COLORRED,LINETHICK2;
 MA55:MA(C,55),COLORFF00FF,LINETHICK2;
 DRAWBAND(MAR5,RGB(0,200,200),MA5,RGB(200,0,0));

JRH:=HHV(C,2);
 JRL:=LLV(C,2);
 MA3:=MA(CLOSE,3);
 YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
 VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
 VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
 VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
 VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
 VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
 VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);
红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
短买:VAR19,COLOR33AACC,NODRAW;
品红离场:VAR1A,COLORFF99FF,NODRAW;
 STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
 STICKLINE(C<O,L,H,0,0),COLOR999900;
 STICKLINE(1,C,O,3.5,0),COLOR858500;
 STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;
 STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;
 STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;
 STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;
 STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;
 STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;
 CO:=(C-O);
 STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;
 STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;
 STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;
 STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;
 STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;
 STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;
 STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;
 STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;
 STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;
 STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;

币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;
股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED; WJ:=(H+L+C)/3;
 DRAWICON(A1X>=0 AND REF(A1X,1)<0,L*0.98,9);
 DRAWICON(A1X<0 AND REF(A1X,1)>=0,H*1.02,14);

IF(MA55<REF(MA55,1),MA55,DRAWNULL),COLORFFFFFF,LINETHICK2;
 IF(MA20<REF(MA20,1),MA20,DRAWNULL),COLOR00FFFF,LINETHICK2;
 DRAWICON( CROSS(C,MA20),MA20,5);
 DRAWTEXT( CROSS(C,MA20),MA20*0.995,’★’);
 DRAWICON( CROSS(MA20,MA55),MA20,23);
 DRAWTEXT( CROSS(MA20,MA55),MA20*0.995,’☆’);

DRAWTEXT(短买,REF(CLOSE,1),’★’),COLOR33FFCC;
 DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,’$’),COLORFF99FF;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。