同花顺红绿操盘公式
-
相关简介:同花顺红绿操盘公式 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWICON(BU,L-0.1,1); DRAWICON(SEL,H+0.1,2); STICKLINE(买线=卖线,LOW,HIGH,0.0,1),colorred; STICKLINE(买线=卖线,CLOSE,OPEN,2,1),colorred; STICKLINE(买线卖线,LOW,HIGH,0.0,1)
-
文章来源:股海网作者:股海网发布时间:2015-02-13浏览次数:
同花顺红绿操盘公式
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),colorred;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),colorgreen;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),colorgreen;
生命线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),45),coloryellow,LINETHICK2;
IF(C>=生命线,生命线,DRAWNULL),coloryellow,LINETHICK2;
IF(C<生命线,生命线,DRAWNULL),colorblue,LINETHICK2;
操盘:MA(CLOSE,9),colorred,LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
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;
顶:REFDATE(高1,DATE),colorred;
低:REFDATE(低1,DATE),colorred;
DRAWTEXT(CROSS(H1,H2) AND C>=REF(C,2),L*0.95,'金叉'),colorred;
STICKLINE(CROSS(H1,H2) AND C>=REF(C,2),L*0.99,L*0.95,0.001,0);
DRAWTEXT(CROSS(H2,H3) AND C>=REF(C,2),L*0.92,'双金叉'),colorred;
STICKLINE(CROSS(H2,H3) AND C>=REF(C,2),L*0.99,L*0.92,0.001,0);
涨停:=C=H AND C>REF(C,1)*1.098;
STICKLINE(涨停,C,O-0.01,5,0),coloryellow;
白色:=SMA(HIGH,21,2)*1.05;
绿色:=SMA(CLOSE,2,1);
粉色:=SMA(LOW,5,1);
波段买入:=CROSS(绿色,粉色);
领头羊:=CROSS(绿色,白色);
DRAWTEXT(领头羊,L*0.98,'步步为赢'),coloryellow,LINETHICK3;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'A'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'B'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.96,'C买'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.01,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.99,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.01,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.99,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.01,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.95,'1短'),COLORFF6000;
DRAWTEXT(EX2 AND DTJD10=2,H*1.04,'2'),COLORFF6000;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'3买'),COLORFF6000;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'一卖'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.98,'二补'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'三清'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'四持'),LINETHICK3,COLOR00FFFF;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888; STICKLINE(
LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888; STICKLINE(C=O,H,L,1,0),colorwhite; STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred; STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888;
STICKLINE(LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888;
STICKLINE(C=O,H,L,1,0),colorwhite;
STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred;
STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'A'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'B'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.01,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.99,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.01,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.99,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.01,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.95,'1短'),colorred;
DRAWTEXT(EX2 AND DTJD10=2,H*1.04,'2跑'),colorred;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'3买'),colorred;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'一卖'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.98,'二补'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'清仓'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'四持'),LINETHICK3,COLOR00FFFF;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888; STICKLINE(
LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888; STICKLINE(C=O,H,L,1,0),colorwhite; STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred; STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888;
STICKLINE(LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888;
STICKLINE(C=O,H,L,1,0),colorwhite;
STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred;
STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;