通达信趋势临界线副图指标 买卖点止损点提示 源码 贴图
2022-09-14 10:09:00来源:本站整理浏览:1432
本指标可以看到中线操作的买卖点和止损线参考使用
R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;
R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);
绿底买入:=R19,NODRAW,COLOR00DD00;
棕底离场:=R1A,NODRAW,COLOR2288EE;
红底持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR
R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;
{公式网WWW.GPXIAZAI.COM}
灰底超跌:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRAW;
Q1:=CONST(IF(绿底买入,0,IF(棕底离场,180,IF(红底持股,220,IF(灰底超跌,150,100))))),NODRAW;
Q2:=CONST(IF(绿底买入,150,IF(棕底离场,100,IF(红底持股,0,IF(灰底超跌,150,100))))),NODRAW;
Q3:=CONST(IF(绿底买入,0,IF(棕底离场,50,IF(红底持股,50,IF(灰底超跌,150,100))))),NODRAW;
DRAWGBK(C>0,RGB(Q1,Q2,Q3),RGB(0,50,50),0,' ',0);
H1:=HHV(HIGH,50);
L1:=LLV(LOW,50);
H2:=HHV(INDEXH,50);
L2:=LLV(INDEXL,50);
ZY:=CLOSE/INDEXC;
获利:=WINNER(C)*100;
趋势线:EMA(ZY,3)*10000 LINETHICK2 COLORLIBLUE;
临界线:EMA(ZY,17)*10000 LINETHICK2 COLORYELLOW ;
止损线:EMA(ZY,34)*10000 LINETHICK2 COLORLIMAGENTA;
DX5:=CROSS(趋势线,临界线);
ZX6:=CROSS(临界线, 趋势线);
ZX7:=CROSS(止损线, 趋势线);
DRAWTEXT( DX5 AND DX5<80 AND 获利>60 ,临界线,'↖买'),COLORGREEN;
DRAWTEXT( ZX6 ,临界线,'↖卖 '),COLORRED;
DRAWTEXT( ZX7 ,止损线,'↖止损 '),COLORYELLOW;
- 上一篇公式:通达信罗盘趋势线副图指标 小波段参考指标 源码 贴图
- 下一篇公式:通达信满仓精确抄底副图/选股指标 源码 贴图