C13:=REF(C,1);
涨停:=IF((C-C13)*100/C13>=(10-0.01*100/C13),1,0);
STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;
跌停:=IF((C13-C)*100/C13>=(10-0.01*100/C13),1,0);
STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORBLUE;
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1);
SC:=CROSS(C,BBI) AND MACD1>REF(MACD1,1);
XC:=CROSS(BBI,C);
STICKLINE(SC,C,O,2,0),COLORRED;
STICKLINE(XC,C,O,2,0),COLORBLUE;
MA30:MA(CLOSE,30);
MA120:MA(CLOSE,120);
MA3:MA(CLOSE,5);
MA4:MA(CLOSE,10);
MA5:MA(CLOSE,20);
MA6:MA(CLOSE,250);
MA7:=MA(CLOSE,550);
ZT:=C>REF(C,1)*1.099 AND C<REF(C,1)*1.105;
DT:=C<REF(C,1)*0.901 AND C>REF(C,1)*0.898;
STICKLINE(ZT,C,O,4,0),COLORYELLOW;
STICKLINE(DT,C,O,4,0),COLORBLUE;
流通市值FINANCE(40)/100000000),NODRAW,COLORRED;
AAAA:=BARSLAST(ZT);
XX:=DRAWLINE(ZT,(L+H)/2,REF(ZT,1),REF((L+H)/2,1),1);
涨停中价:IF(AAAA<=30,XX,DRAWNULL);{N==是以N天为距离的};
XX1:=DRAWLINE(ZT,L,REF(ZT,1),REF(L,1),1);
涨停最低:IF(AAAA<=30,XX1,DRAWNULL);{N==是以N天为距离的};
RC1:=REF(C,1);
大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;
大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}
大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};
大阴中价: REF((H+L)/2,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};
TY:=H; {求最高价}
A1:=REF(TY,10)=HHV(TY,2*10+1);
{逻辑表达式,10天前的最高价等于21天内的最高价,则返回1,否则返回0}
B1:=FILTER(A1,10);
{把A1成立后10个周期的A1值都设为0,为什么要设为0呢。。。}
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
波峰:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(H,波峰,波峰,8,0),COLORYELLOW; |