LCY_Y_生命线:为MA(Close,89);
下部黄横杠:MA7 前一天的MA7;上部白横杠:MA7小于等于前一天的MA7;
CYC13:CYC(13),LINETHICK1,COLORYELLOW;
LCY_Y_MA7:=MA(CLOSE,7);
LCY_Y_A:=REF(LCY_Y_MA7,1);
STICKLINE(LCY_Y_MA7 LCY_Y_A,LOW*0.982,LOW*0.986,3,0),COLOR00BBFF;
STICKLINE(LCY_Y_MA7 =LCY_Y_A,HIGH*1.012,HIGH*1.016,3,0),COLORWHITE;}
MA7:MA(CLOSE,7),COLORFF00FF,LINETHICK3;
绿降:IF(MA7 =REF(MA7,1),MA7,DRAWNULL),COLORGREEN,LINETHICK3;
STICKLINE(MA(C,7) REF(MA(C,7),1),LOW*0.982,LOW*0.986,3,0),COLOR00BBFF;
STICKLINE(MA7 =REF(MA7,1),HIGH*1.012,HIGH*1.016,3,0),COLORWHITE;
DRAWICON((REF(MA7,1) REF(MA7,2)) AND (MA7 REF(MA7,1)),LOW*0.98,11);{图标 黄食指向上}
DRAWICON((REF(MA7,1) REF(MA7,2)) AND (MA7 =REF(MA7,1)),HIGH*1.04,12);{图标 黄食指向下}
MA20:MA(CLOSE,20),COLORCYAN,LINETHICK2;
上升趋势:IF(MA(CLOSE,20) =REF(MA(CLOSE,20),1),MA(CLOSE,20),DRAWNULL),COLORYELLOW,LINETHICK2;
MA30:MA(C,30),COLORMAGENTA;
MA60:MA(C,60),COLORRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);{画K线}
{STICKLINE(CLOSE OPEN,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(CLOSE =OPEN,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(CLOSE OPEN,HIGH,CLOSE,0,0),COLORRED;
STICKLINE(CLOSE OPEN,LOW,OPEN,0,0),COLORRED;
STICKLINE(CLOSE =OPEN,HIGH,OPEN,0,0),COLORGREEN;
STICKLINE(CLOSE =OPEN,LOW,CLOSE,0,0),COLORGREEN;}
LC:=REF(CLOSE,1);{以下是LCY移植部分}
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
{FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);}
DRAWTEXT({CROSS(FF,MA15)}CROSS(RSI,15),(LOW * 0.98),'↖底背离'),COLOR00FFFF;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),' 顶背离'),COLORCYAN;
买线:=EMA(C,2);{www.9m8.cn 九毛八公式指标网}
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),{COLOR00FFFF}COLORYELLOW;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),{COLORFF0000}COLORBLUE;
买:=EMA(C,1);
卖:=EMA(SLOPE(C,10)*10+C,20);
DRAWICON(CROSS(买,卖),L*0.99,42);{多}
DRAWICON(CROSS(卖,买),H*1.02,43);{空};