一、指标源码
{三红一紫共振主图}
TOP1:=EMA(C,5) > EMA(C,19);
TOP2:=EMA(C,5) < EMA(C,19);
TOP3:= EMA(C,5) > EMA(C,10);
TOP5:=EMA(C,5) < EMA(C,10);
TOP6:=CLOSE<OPEN;
STICKLINE(TOP1 AND C>=O,H,C,0,0),COLORRED;
STICKLINE(TOP1 AND C>=O,O,L,0,0),COLORRED;
STICKLINE(TOP1 AND C<O,H,L,0,0),COLORRED;
STICKLINE(TOP1,O,C,3,1),COLORRED;
STICKLINE(TOP1 AND TOP6,O,C,0.5,0),COLORBLUE ;
STICKLINE(TOP2 AND C>=O,H,C,0,0),COLORGREEN;
STICKLINE(TOP2 AND C>=O,O,L,0,0),COLORGREEN;
STICKLINE(TOP2 AND C<O,H,L,0,0),COLORGREEN;
STICKLINE(TOP2,O,C,3,1),COLORGREEN;
STICKLINE(TOP2 AND TOP6,O,C,3,0),COLORGREEN;
STICKLINE(TOP2 AND TOP3 AND C>=O,H,C,0,1),COLORWHITE;
STICKLINE(TOP2 AND TOP3 AND C>=O,O,L,0,1),COLORWHITE;
STICKLINE(TOP2 AND TOP3 AND C<O,H,L,0,1),COLORWHITE;
STICKLINE(TOP2 AND TOP3,O,C,3,1),COLORWHITE;
STICKLINE(TOP2 AND TOP3 AND TOP6,O,C,3,0),COLORWHITE;
STICKLINE(TOP1 AND TOP5 AND C>=O,H,C,0,0),COLORWHITE;
STICKLINE(TOP1 AND TOP5 AND C>=O,O,L,0,0),COLORWHITE;
STICKLINE(TOP1 AND TOP5 AND C<O,H,L,0,0),COLORWHITE;
STICKLINE(TOP1 AND TOP5,O,C,3,1),COLORWHITE;
STICKLINE(TOP1 AND TOP5 AND TOP6,O,C,3,0),COLORWHITE;
持仓线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
IF(REF(持仓线,1)>持仓线,持仓线,DRAWNULL),COLORBLUE,LINETHICK2;
TOPX:=(2*CLOSE+HIGH+LOW)/4;
TOPC1:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
TOPC11:=SMA(TOPC1,5,1);
TOPC12:=SMA(TOPC11,3,1);
TOPY:=3*TOPC11-2*TOPC12;
K:=SMA(TOPY,7,1);
D:=SMA(K,4,1),COLORYELLOW,LINETHICK2;
EMA13:=EMA(C,13);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA55:=EMA(C,55);
共振:=BARSLASTCOUNT(持仓线 AND K>D AND EMA13>EMA55 AND EMA10>EMA20)=1;
STICKLINE(共振,O,C,2,0),COLORMAGENTA;
DRAWTEXT(共振,L*0.96,' ★共振')COLORYELLOW;
DRAWICON(共振,L,9);
{周期情绪副图}
TOPY:=(2*CLOSE+HIGH+LOW)/4;
TOPX:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
MA10:=SMA(TOPX,5,1);
TOPX2:=SMA(MA10,3,1);
TOP13:=3*MA10-2*TOPX2;
K:=SMA(TOP13,7,1);
D:SMA(K,4,1),COLORBLUE,LINETHICK2;
EMA13:=EMA(C,13);
EMA55:=EMA(C,55);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
IF(D>REF(D,1) AND EMA13>EMA55 AND EMA10>EMA20,D,DRAWNULL),COLORYELLOW,LINETHICK3;
STICKLINE(K>D AND EMA13>EMA55 AND EMA10>EMA20,D,K,2,0),COLORMAGENTA;
STICKLINE(EMA13>EMA55 AND EMA10>EMA20,2,7,2,0),COLOR0000FF;
STICKLINE(EMA13<EMA55 OR EMA10<EMA20,2,7,2,0),COLOR00FF00;
STICKLINE(EMA13>EMA55 AND EMA10>EMA20,98,93,2,0),COLOR0000FF;
STICKLINE(EMA13<EMA55 OR EMA10<EMA20,98,93,2,0),COLOR00FF00;
短线顶部:90,COLOR00FF00,LINETHICK2;
长线底部:10,COLOR0000FF,LINETHICK2;
{三红一紫共振选股}
持仓线:=EMA(EMA(C,10),10);
TOPX:=(2*CLOSE+HIGH+LOW)/4;
TOPC1:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
TOPC11:=SMA(TOPC1,5,1);
TOPC12:=SMA(TOPC11,3,1);
TOPY:=3*TOPC11-2*TOPC12;
K:=SMA(TOPY,7,1);
D:=SMA(K,4,1),COLORYELLOW,LINETHICK2;
EMA13:=EMA(C,13);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA55:=EMA(C,55);
共振:BARSLASTCOUNT(持仓线 AND K>D AND EMA13>EMA55 AND EMA10>EMA20)=1;
二、指标介绍
通达信【三红一紫】共振加强版套装指标 钱袋子共振信号表示市场可能即将出现强势上涨行情
“三红共振”一词源于指标中的多个红色+紫色信号(共振)同时出现的情况。
这些红色信号代表了市场短期、中期和长期趋势的共振,为大家提供了较为明确的买入信号。
因此,将该指标命名为“三红一紫共振强化策略”指标,旨在强调其捕捉市场强势上涨信号的能力。
共振信号:当副图"红+紫+红"+主图红多个条件同时满足时,生成"钱袋子"共振信号,表示市场可能即将出现强势上涨行情。
三、指标图示