以下是同花顺红支撑趋势大师公式

同花顺红支撑趋势大师公式

“趋势大师”就是专门针对股民在市场的操作中经常会迷失方向,不知道当前趋势是什么而胡乱操作。趋势大师有三条彩色趋势带。红色趋势带代表长期趋势;蓝色趋势带代表中期趋势;黄色趋势带代表短期趋势。最里面的红色线也叫生命线。

 

十九日绿线:EMA((O+C)/2,19),COLOR00FF00,LINETHICK2;

黄线1:EMA((O+C)/2,30),COLOR00FFFF;

黄线2:EMA((O+C)/2,35),POINTDOT,COLOR00FFFF;

黄线3:EMA((O+C)/2,40),POINTDOT,COLOR00FFFF;

黄线4:EMA((O+C)/2,45),COLOR00FFFF;

蓝1:EMA((C+O)/2,90),COLORFF4A00;

蓝2:EMA((C+O)/2,97),POINTDOT,COLORFF4A00;

蓝3:EMA((C+O)/2,103),POINTDOT,COLORFF4A00;

蓝4:EMA((C+O)/2,110),COLORFF4A00;

红1:EMA((C+O)/2,140),COLOR0000FF;

红2:EMA((C+O)/2,152),COLOR0000FF,POINTDOT;

红3:EMA((C+O)/2,170),COLOR0000FF,POINTDOT;

红4:EMA((C+O)/2,180),COLOR0000FF;

XX1:=EMA(SLOPE(1,1)+C,3),colorred;

YY1:=EMA(SLOPE(1,1)+C,7),colorblue;

DRAWTEXT(COUNT (XX1<YY1,5)=4 AND XX1>=YY1,C*0.95,’B’), colorred;

DRAWTEXT(COUNT (XX1>=YY1,5)=4 AND XX1<YY1,C*1.08,’S’), coloryellow;

操盘线:STRLEFT(‘★自用★’,38),coloryellow;

ema13:=EMA(C,20),COLORFF8080;

ema34:=EMA(C,60),colorFFFF00;

ema55:=EMA(C,80),colorff00ff;

YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;

YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);

Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;

YZ:=YZ1 AND YZ2 AND Y>10;

X11:DRAWTEXT(YZ,HIGH+0.2,’减仓’),COLORF00FF0;

gr1:=BARSLAST(BETWEEN(“bias.bias2″(6,13,24),0,5) );

gr2:=ema13>ema34 AND ema34>ema55 AND ema13>REF(ema13,1);

gr3:=COUNT(“bias.bias2″(6,13,24)>10 AND H=HHV(H,gr1),gr1);

gr4:=H=HHV(H,gr1);

gr5:=”macd.macd”(12,26,9)<REF(“macd.macd”(12,26,9),1);

gr6:=gr2 AND gr3 AND gr4;

gr7:=gr2 AND gr3 AND gr4 AND gr5;

DRAWTEXT(gr6 AND gr7,H+0.3,’保存利润’),color00ff00;

XX2:=EMA(SLOPE(1,1)+C,3),colorred;

YY2:=EMA(SLOPE(1,1)+C,7),colorblue;

XX3=MA(CLOSE, 5);

YY3=MA(CLOSE, 60);

XX4=CROSS(XX2,YY2) AND XX3>YY3;

YY4=CROSS(YY2,XX2) AND XX3>YY3 AND COUNT(CROSS(XX1,YY1) AND XX3>YY3 ,30);

DRAWTEXT(XX4,LOW/1.1,’↖买’),colorwhite;

DRAWTEXT(YY4,HIGH*1.06,’卖’),coloryellow;

A1:=EMA(C,14),colorwhite,LINETHICK1;

A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colorred,LINETHICK1;

阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),colorgreen,LINETHICK1;

DRAWICON(CROSS(XX1,YY1) AND CLOSE/REF(CLOSE,1)>1.03,LOW/1.06,25);

买线:EMA(C,5),color000999;

卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,colorblue,linethick1;

BUY1:=CROSS(买线,卖线);

SEL1:=CROSS(卖线,买线);

DRAWTEXT(buy1,LOW*0.96,’B  ‘),colorlired;

限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV (((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;

平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);

DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((H+C)/2,13),10)<REF(HHV(MA((H+C)/2,13),10),1) AND((C+L)/2)>REF((C+L)/2,1),5)AND 限制<88,L*0.98,’    ——‘),colorcyan;

 

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