以下是同花顺ma4公式用于参考点王者源码和截图
同花顺ma4均线公式用于参考买卖点波段王者源码:
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS 95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100) 0ANDG1)+1);
KS:=(((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13))*(0-100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
线:=EMA(((KS/10)+EMA(CLOSE,10)),3);
AA:=-100*(趋势线-CLOSE)/趋势线;
AC:=(EMA(AA,5));
SSL:=EMA(CLOSE,3);
MMV:=EMA(((SLOPE(CLOSE,22)*20)+CLOSE),55);
MM:=MA(MMV,1);
STICKLINE(((SSL MM)),SSL,MM,0.01,0),colorred;
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
捞钱手:IF(((SSL MM)),MM,SA),LINETHICK2,COLORFF00FF;
{IF(SSL MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}
能量线:=DMA(((CLOSE+OPEN)/2),(VOL/(SMA(VOL,4,1)*4)));
上开:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,4);
智能黄金线:A,coloryellow,LINETHICK1;
B:=REF(A,1);
STICKLINE(((SSL MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★绝佳'),LINETHICK2,colorred;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖');
DRAWTEXT(CROSS(VA1,VA2)AND(C =O)AND智能黄金线 REF(智能黄金线,1),VA1*0.97,'★买'),COLOR00FF00;
选手A:=MA(上收,3);
箱顶A:=MA(REF(HHV(上收,6),1),3);
箱底A:=MA(REF(LLV(上收,3),1),3);
T1:=MA(上收,20) =REF(MA(上收,20),1);
T2:=CROSS(选手A,箱底A)AND箱顶A/箱底A 100/100ANDT1;
T3:=CROSS(箱顶A,选手A)AND箱顶A/箱底A 100/100;
选手:=MA(上收,2);
箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
T4:=CROSS(选手,箱底)AND箱顶/箱底 110/100;
T5:=CROSS(箱顶,选手)AND箱顶/箱底 110/100;
VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
///{DR/AWTEXT(VAR3 =VAR4,箱顶,'--中期好'),COLOR00FFFF;
///DRAWTEXT(VAR3 VAR4,箱顶,'--中期坏'),COLORF0F000;
///DRAWTEXT(A B,箱底,'--短期好'),COLOR00FFFF;
///DRAWTEXT(A B,箱底,'--短期坏'),COLORF0F000;}
DRAWTEXT(CROSS(VAR3,VAR4)AND(C =O)ANDVAR3 40ANDUOO 0,LOW*0.96,'★'),COLORF00FF0;
STICKLINE(C =O,C,O,5,0),colorred;
STICKLINE(C =O,H,L,0,0),coloryellow;
STICKLINE(C =O,C,O,5,0),colorgreen;
STICKLINE(C =O,H,L,0,0),COLORFFFF00;
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(买线,卖线)AND箱顶 =REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
MA7:MA(CLOSE,M7);
MA8:MA(CLOSE,M8);
MA9:MA(CLOSE,M9);
MA10:MA(CLOSE,M10);
STICKLINE(CLOSE/REF(C,1) =1.09,O,C,2.7,0),colorred;
AAA:=MA(LOW,5)*(1-5/100);
BBB:=(HHV(AAA,5)+LLV(AAA,5))/2;
DRAWTEXT(CROSS(BBB,L)ANDBBB REF(BBB,1),L*0.98,'←'),colorwhite;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
DRAWTEXT(REF(CROSS(DEA,DIF),1)ANDCROSS(DIF,DEA),L*0.97,'←'),colormagenta;MA18:=MA(CLOSE,18);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)ANDCROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),colorred;
加1:=MA18 =REF(MA18,3)ANDCROSS(CLOSE,MA18);
DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;
卖一:=HHV(DX,2)=HHV(DX,7)ANDCOUNT(DX 50,2)ANDCROSS(MA(DX,2),DX);
DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),colorgreen;
XXS1:=MA(HIGH,5)*(1+5/100);
均线:=C,colorgreen;
AAAA:=CLOSE/REF(CLOSE,3) =0.85ANDCROSS(C,XXS)ANDC REF(C,1),LINETHICK0;
DRAWTEXT(AAAA,L*0.95,'下影买'),colorred;
BBAA:=CROSS(XXS1,C);
DRAWTEXT(CROSS(XXS1,C),H,'开盘逃'),colorwhite;
DDDD:=CROSS(C,XXS1);
DRAWTEXT(DDDD,H,'明日走'),coloryellow;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
MA5:=MA(C,7),COLORWHITE;
MA20:=MA(C,20),COLORFF00FF;
MA90:MA(C,90),COLORFFCC66;
Y1:=BARSLAST(CROSS(MA5,MA20))ANDMA5 MA20;
Y2:=Y1ANDBARSLAST(CROSS(MA5,MA90));
Y3:=Y2ANDCROSS(MA20,MA90);
DRAWICON(Y3,L-0.10,1);
DRAWTEXT(Y3,L-0.40,'双跨越'),COLORMAGENTA;
F0:=BARSLAST(CROSS(MA(C,5),MA(C,90)));
F1:=F0ANDBARSLAST(CROSS(MA(C,20),MA(C,90)));
F2:=F1ANDCROSS(MA(C,5),MA(C,20))ANDMA(C,20) MA(C,90);
DRAWICON(F2,L-0.10,1);
DRAWTEXT(F2,L-0.40,'双蹄奋起');
MA51:=MA(C,5);
MA10:=MA(C,10);
MA201:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
FA:=BARSLAST(CROSS(MA10,MA51))ANDCROSS(MA51,MA10);
FB:=FAANDMA51 MA30ANDMA10 MA30ANDMA10 REF(MA10,1);
STICKLINE(FB,L,L-0.09,1,0),COLORYELLOW;
DRAWTEXT(FB,L-0.13,'雄起'),COLORYELLOW;
同花顺ma4均线公式用于参考买卖点波段王者截图